humoto
|
Constraints 'x[I] <= ub'.
t_Base | Base class (humoto::constraints::ConstraintsBase or humoto::TaskBase) |
Definition at line 930 of file constraints.h.
#include <constraints.h>
Public Member Functions | |
void | checkConsistency () const |
Check consistency of the constraints. More... | |
void | computeViolations (ViolationsConstraints &violations, const Location &location, const Solution &solution) const |
Compute violations given a solution vector. More... | |
virtual void | copyBodyTo (Eigen::MatrixXd &A, const Location &location) const |
Copy body to the given matrix. More... | |
void | copyBoundsTo (Eigen::VectorXd &lb, Eigen::VectorXd &ub, const Location &location) const |
Copy bounds to given vectors. More... | |
virtual void | copyNegativeBodyTo (Eigen::MatrixXd &A, const Location &location) const |
Copy body to the given matrix. More... | |
std::size_t | copyTo (ContainerALU &container, const std::size_t constraints_offset) const |
Set constraints. More... | |
virtual std::size_t | copyTo (ContainerAL &container, const std::size_t constraints_offset) const |
Set constraints. More... | |
std::size_t | copyTo (ContainerILU &container, const std::size_t constraints_offset) const |
Set constraints. More... | |
void | determineActiveSet (ActiveSetConstraints &active_set, const Location &location, const Solution &solution) const |
Determine active set given a solution vector. More... | |
humoto::IndexVector & | getIndices () |
Get indices. More... | |
const humoto::IndexVector & | getIndices () const |
Get indices. More... | |
std::size_t | getNumberOfConstraints () const |
Returns number of constraints in the task. More... | |
double | getProduct (const std::size_t i, const Eigen::VectorXd &vector) const |
Compute A(i,:) * vector. More... | |
ConstraintType::Type | getType () const |
Returns type of the constraints. More... | |
Eigen::VectorXd & | getUpperBounds () |
Get upper bounds (ub vectors from 'A*x <= ub'). More... | |
const Eigen::VectorXd & | getUpperBounds () const |
Get upper bounds (ub vectors from 'A*x <= ub'). More... | |
Protected Member Functions | |
ConstraintsIU () | |
~ConstraintsIU () | |
Protected destructor: prevent destruction of the child classes through a base pointer. More... | |
void | addATA (Eigen::MatrixXd &H) const |
Compute 'A^T * A' for general equality constaints and save or add the result to H. More... | |
void | getATA (Eigen::MatrixXd &H) const |
Compute 'A^T * A' for general equality constaints and save or add the result to H. More... | |
void | logBody (humoto::Logger &logger, const LogEntryName &parent=LogEntryName(), const std::string &name="constraints") const |
Log body. More... | |
void | logBounds (humoto::Logger &logger, const LogEntryName &parent=LogEntryName(), const std::string &name="constraints") const |
Log bounds. More... | |
virtual void | resetBody (const std::size_t number_of_constraints=0, const bool initialize_matrices=false) |
Initialize I and gains. More... | |
void | resetBounds (const std::size_t number_of_constraints, const bool initialize_matrices=false) |
Reset bounds of constraints (b, lb, ub) More... | |
Protected Attributes | |
humoto::IndexVector | I_ |
Eigen::VectorXd | ub_ |
|
inlineprotected |
Protected destructor: prevent destruction of the child classes through a base pointer.
Definition at line 937 of file constraints.h.
|
inlineprotected |
Definition at line 938 of file constraints.h.
|
inlineprotectedinherited |
Compute 'A^T * A' for general equality constaints and save or add the result to H.
[in,out] | H | left lower triangular part of the result. |
Definition at line 799 of file constraints_mixins.h.
|
inline |
Check consistency of the constraints.
Definition at line 956 of file constraints.h.
|
inlineinherited |
Compute violations given a solution vector.
[in,out] | violations | violations |
[in] | location | location of the constraints in the active set |
[in] | solution | solution vector |
Definition at line 1300 of file constraints_mixins.h.
|
inlinevirtualinherited |
Copy body to the given matrix.
[in] | A | |
[in] | location | offset and length |
Reimplemented in humoto::constraints::BodyGIMixin< BoundsUMixin< t_Base > >.
Definition at line 814 of file constraints_mixins.h.
|
inlineinherited |
Copy bounds to given vectors.
[in] | lb | |
[in] | ub | |
[in] | location | offset and length |
Reimplemented in humoto::constraints::BoundsLUMixin< TaskBase >.
Definition at line 347 of file constraints_mixins.h.
|
inlinevirtualinherited |
Copy body to the given matrix.
[in] | A | |
[in] | location | offset and length |
Reimplemented in humoto::constraints::BodyGIMixin< BoundsUMixin< t_Base > >.
Definition at line 831 of file constraints_mixins.h.
|
inlineinherited |
Set constraints.
[in,out] | container | new constraints |
[in] | constraints_offset | first row offset |
Definition at line 615 of file constraints_base.h.
|
inlinevirtualinherited |
Set constraints.
[in,out] | container | new constraints |
[in] | constraints_offset | first row offset |
Definition at line 680 of file constraints_base.h.
|
inlineinherited |
Set constraints.
[in,out] | container | new constraints |
[in] | constraints_offset | first row offset |
Definition at line 743 of file constraints_base.h.
|
inlineinherited |
Determine active set given a solution vector.
[in,out] | active_set | active set |
[in] | location | location of the constraints in the active set |
[in] | solution | solution vector |
Definition at line 1151 of file constraints_mixins.h.
|
inlineprotectedinherited |
Compute 'A^T * A' for general equality constaints and save or add the result to H.
[in,out] | H | left lower triangular part of the result. |
Definition at line 789 of file constraints_mixins.h.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Returns number of constraints in the task.
Definition at line 866 of file constraints_mixins.h.
|
inlineinherited |
Compute A(i,:) * vector.
[in] | i | row index |
[in] | vector | vector |
Definition at line 873 of file constraints_mixins.h.
|
inline |
Returns type of the constraints.
Definition at line 949 of file constraints.h.
|
inlineinherited |
Get upper bounds (ub vectors from 'A*x <= ub').
Definition at line 333 of file constraints_mixins.h.
|
inlineinherited |
Get upper bounds (ub vectors from 'A*x <= ub').
Definition at line 340 of file constraints_mixins.h.
|
inlineprotectedinherited |
Log body.
[in,out] | logger | logger |
[in] | parent | parent |
[in] | name | name |
Definition at line 780 of file constraints_mixins.h.
|
inlineprotectedinherited |
Log bounds.
[in,out] | logger | logger |
[in] | parent | parent |
[in] | name | name |
Reimplemented in humoto::constraints::BoundsLUMixin< TaskBase >, and humoto::constraints::BoundsLUMixin< ContainerBase >.
Definition at line 318 of file constraints_mixins.h.
|
inlineprotectedvirtualinherited |
Initialize I and gains.
[in] | number_of_constraints | number of constraints |
[in] | initialize_matrices | initialize matrices using defaults |
Reimplemented in humoto::constraints::BodyGIMixin< BoundsUMixin< t_Base > >.
Definition at line 771 of file constraints_mixins.h.
|
inlineprotectedinherited |
Reset bounds of constraints (b, lb, ub)
[in] | number_of_constraints | number of constraints |
[in] | initialize_matrices | initialize matrices using defaults |
Reimplemented in humoto::constraints::BoundsLUMixin< TaskBase >, and humoto::constraints::BoundsLUMixin< ContainerBase >.
Definition at line 304 of file constraints_mixins.h.
|
protectedinherited |
Definition at line 746 of file constraints_mixins.h.
|
protectedinherited |
Definition at line 288 of file constraints_mixins.h.