Violations corresponding to Constraints class.
Definition at line 17 of file violations.h.
#include <violations.h>
◆ copyFrom()
Set violations of a set of constraints.
- Parameters
-
[in] | other_violations | other vector of violations |
[in] | location | location in other vector of violations |
Definition at line 163 of file violations.h.
◆ copyTo()
Set violations of a set of constraints.
- Parameters
-
[in] | location | location in this vector of violations |
[in] | other_violations | other vector of violations |
Definition at line 146 of file violations.h.
◆ getLower()
double humoto::ViolationsConstraints::getLower |
( |
const std::size_t |
constraint_index | ) |
const |
|
inline |
Access violation of a lower/upper bounds.
- Parameters
-
- Returns
- reference to the violation
Definition at line 49 of file violations.h.
◆ getUpper()
double humoto::ViolationsConstraints::getUpper |
( |
const std::size_t |
constraint_index | ) |
const |
|
inline |
Access violation of a lower/upper bounds.
- Parameters
-
- Returns
- reference to the violation
Definition at line 58 of file violations.h.
◆ initialize() [1/2]
Initialize vector of violations.
- Parameters
-
[in] | other_violations | other vector of violations |
[in] | location | location in other vector of violations |
Definition at line 181 of file violations.h.
◆ initialize() [2/2]
void humoto::ViolationsConstraints::initialize |
( |
const std::size_t |
number_of_constraints | ) |
|
|
inline |
Initialize vector of violations.
- Parameters
-
[in] | number_of_constraints | number of constraints for each level |
Definition at line 202 of file violations.h.
◆ log()
Log violations.
- Parameters
-
[in,out] | logger | logger |
[in] | parent | parent |
[in] | name | |
Definition at line 218 of file violations.h.
◆ operator[]()
double humoto::ViolationsConstraints::operator[] |
( |
const std::size_t |
constraint_index | ) |
const |
|
inline |
Access violation of a constraint (const)
- Parameters
-
- Returns
- reference to the violation
Definition at line 34 of file violations.h.
◆ set()
void humoto::ViolationsConstraints::set |
( |
const std::size_t |
constraint_index, |
|
|
const double |
lower_bound_diff = 0.0 , |
|
|
const double |
upper_bound_diff = 0.0 |
|
) |
| |
|
inline |
Set violation of a constraint.
- Parameters
-
[in] | constraint_index | |
[in] | lower_bound_diff | A*x - lb (0.0 if lb is undefined) |
[in] | upper_bound_diff | A*x - ub (0.0 if ub is undefined) |
Definition at line 73 of file violations.h.
◆ setZero() [1/2]
void humoto::ViolationsConstraints::setZero |
( |
| ) |
|
|
inline |
◆ setZero() [2/2]
void humoto::ViolationsConstraints::setZero |
( |
const Location & |
location | ) |
|
|
inline |
Set violations of a set of constraints to zero.
- Parameters
-
Definition at line 130 of file violations.h.
◆ size()
std::size_t humoto::ViolationsConstraints::size |
( |
| ) |
const |
|
inline |
Size of the the vector of violations.
- Returns
- Size of the the vector of violations.
Definition at line 106 of file violations.h.
◆ data_
Eigen::VectorXd humoto::ViolationsConstraints::data_ |
|
private |
◆ lower_
Eigen::VectorXd humoto::ViolationsConstraints::lower_ |
|
private |
◆ upper_
Eigen::VectorXd humoto::ViolationsConstraints::upper_ |
|
private |
The documentation for this class was generated from the following file: