|
humoto
|
Constraints abstract interface class.
Definition at line 117 of file constraints_base.h.
#include <constraints_base.h>

Public Member Functions | |
| Location | getCopyLocation (const std::size_t number_of_constraints, const std::size_t constraints_offset, const std::size_t number_of_variables) const |
| Computes location of the copied constraints in a container and verifies their consistency. More... | |
| virtual std::size_t | getNumberOfConstraints () const =0 |
| Returns number of constraints in the task. More... | |
| std::size_t | getNumberOfVariables () const |
| Returns number of variables in the task. More... | |
| void | log (humoto::Logger &logger, const LogEntryName &parent=LogEntryName(), const std::string &name="constraints") const |
| Log data. More... | |
Protected Member Functions | |
| ContainerBase () | |
| ~ContainerBase () | |
| Protected destructor: prevent destruction of the child classes through a base pointer. More... | |
| virtual void | logBody (humoto::Logger &logger, const LogEntryName &parent=LogEntryName(), const std::string &name="constraints") const =0 |
| Log body. More... | |
| virtual void | logBounds (humoto::Logger &logger, const LogEntryName &parent=LogEntryName(), const std::string &name="constraints") const =0 |
| Log bounds. More... | |
| void | reset (const std::size_t number_of_constraints=0, const std::size_t number_of_variables=0, const bool initialize_matrices=false) |
| Initialize constraints. More... | |
| virtual void | resetBody (const std::size_t number_of_constraints=0, const bool initialize_matrices=false)=0 |
| Reset body of constraints (matrix A or I) More... | |
| virtual void | resetBounds (const std::size_t number_of_constraints=0, const bool initialize_matrices=false)=0 |
| Reset bounds of constraints (b, lb, ub) More... | |
| void | setNumberOfVariables (const std::size_t number_of_variables) |
| Set number of variables. More... | |
Protected Attributes | |
| std::size_t | number_of_variables_ |
|
inlineprotected |
Protected destructor: prevent destruction of the child classes through a base pointer.
Definition at line 128 of file constraints_base.h.
|
inlineprotected |
Definition at line 131 of file constraints_base.h.
|
inline |
Computes location of the copied constraints in a container and verifies their consistency.
| [in] | number_of_constraints | number of added constraints |
| [in] | constraints_offset | offset in the container |
| [in] | number_of_variables | number of variables in the container |
Definition at line 262 of file constraints_base.h.
|
pure virtual |
Returns number of constraints in the task.
Implemented in humoto::constraints::BodyIMixin< BoundsBMixin< TaskBase > >, humoto::constraints::BodyIMixin< BoundsB0Mixin< TaskBase > >, humoto::constraints::BodyIMixin< BoundsLUMixin< TaskBase > >, humoto::constraints::BodyIMixin< BoundsLUMixin< ContainerBase > >, humoto::constraints::BodyIMixin< BoundsLMixin< TaskBase > >, humoto::constraints::BodyIMixin< BoundsUMixin< TaskBase > >, humoto::constraints::BodyASMixin< BoundsBMixin< TaskBase > >, humoto::constraints::BodyASMixin< BoundsB0Mixin< TaskBase > >, humoto::constraints::BodyASMixin< BoundsLUMixin< TaskBase > >, humoto::constraints::BodyASMixin< BoundsLMixin< TaskBase > >, humoto::constraints::BodyASMixin< BoundsUMixin< TaskBase > >, humoto::constraints::BodyAMixin< BoundsBMixin< TaskBase > >, humoto::constraints::BodyAMixin< BoundsB0Mixin< TaskBase > >, humoto::constraints::BodyAMixin< BoundsLUMixin< TaskBase > >, humoto::constraints::BodyAMixin< BoundsLMixin< ContainerBase > >, humoto::constraints::BodyAMixin< BoundsLUMixin< ContainerBase > >, humoto::constraints::BodyAMixin< BoundsLMixin< TaskBase > >, humoto::constraints::BodyAMixin< BoundsUMixin< TaskBase > >, and humoto::constraints::BodyAMixin< BoundsBMixin< ContainerBase > >.
|
inline |
Returns number of variables in the task.
Definition at line 215 of file constraints_base.h.
|
inline |
Log data.
| [in,out] | logger | logger |
| [in] | parent | parent |
| [in] | name | name |
Definition at line 238 of file constraints_base.h.
|
protectedpure virtual |
Log body.
| [in,out] | logger | logger |
| [in] | parent | parent |
| [in] | name | name |
Implemented in humoto::constraints::BodyGIMixin< BoundsBMixin< TaskBase > >, humoto::constraints::BodyGIMixin< BoundsB0Mixin< TaskBase > >, humoto::constraints::BodyGIMixin< BoundsLUMixin< TaskBase > >, humoto::constraints::BodyGIMixin< BoundsLMixin< TaskBase > >, humoto::constraints::BodyGIMixin< BoundsUMixin< TaskBase > >, humoto::constraints::BodyIMixin< BoundsBMixin< TaskBase > >, humoto::constraints::BodyIMixin< BoundsB0Mixin< TaskBase > >, humoto::constraints::BodyIMixin< BoundsLUMixin< TaskBase > >, humoto::constraints::BodyIMixin< BoundsLUMixin< ContainerBase > >, humoto::constraints::BodyIMixin< BoundsLMixin< TaskBase > >, humoto::constraints::BodyIMixin< BoundsUMixin< TaskBase > >, humoto::constraints::BodyASMixin< BoundsBMixin< TaskBase > >, humoto::constraints::BodyASMixin< BoundsB0Mixin< TaskBase > >, humoto::constraints::BodyASMixin< BoundsLUMixin< TaskBase > >, humoto::constraints::BodyASMixin< BoundsLMixin< TaskBase > >, humoto::constraints::BodyASMixin< BoundsUMixin< TaskBase > >, humoto::constraints::BodyAMixin< BoundsBMixin< TaskBase > >, humoto::constraints::BodyAMixin< BoundsB0Mixin< TaskBase > >, humoto::constraints::BodyAMixin< BoundsLUMixin< TaskBase > >, humoto::constraints::BodyAMixin< BoundsLMixin< ContainerBase > >, humoto::constraints::BodyAMixin< BoundsLUMixin< ContainerBase > >, humoto::constraints::BodyAMixin< BoundsLMixin< TaskBase > >, humoto::constraints::BodyAMixin< BoundsUMixin< TaskBase > >, and humoto::constraints::BodyAMixin< BoundsBMixin< ContainerBase > >.
|
protectedpure virtual |
Log bounds.
| [in,out] | logger | logger |
| [in] | parent | parent |
| [in] | name | name |
Implemented in humoto::constraints::BoundsLUMixin< TaskBase >, humoto::constraints::BoundsLUMixin< ContainerBase >, humoto::constraints::BoundsUMixin< TaskBase >, humoto::constraints::BoundsUMixin< ContainerBase >, humoto::constraints::BoundsLMixin< TaskBase >, humoto::constraints::BoundsLMixin< BoundsUMixin< ContainerBase > >, humoto::constraints::BoundsLMixin< ContainerBase >, humoto::constraints::BoundsLMixin< BoundsUMixin< TaskBase > >, humoto::constraints::BoundsBMixin< TaskBase >, humoto::constraints::BoundsBMixin< ContainerBase >, and humoto::constraints::BoundsB0Mixin< TaskBase >.
|
inlineprotected |
Initialize constraints.
| [in] | number_of_constraints | number of constraints |
| [in] | number_of_variables | number of variables |
| [in] | initialize_matrices | initialize matrices using defaults |
Definition at line 175 of file constraints_base.h.
|
protectedpure virtual |
Reset body of constraints (matrix A or I)
| [in] | number_of_constraints | number of constraints |
| [in] | initialize_matrices | initialize matrices using defaults |
Implemented in humoto::constraints::BodyGIMixin< BoundsBMixin< TaskBase > >, humoto::constraints::BodyGIMixin< BoundsB0Mixin< TaskBase > >, humoto::constraints::BodyGIMixin< BoundsLUMixin< TaskBase > >, humoto::constraints::BodyGIMixin< BoundsLMixin< TaskBase > >, humoto::constraints::BodyGIMixin< BoundsUMixin< TaskBase > >, humoto::constraints::BodyIMixin< BoundsBMixin< TaskBase > >, humoto::constraints::BodyIMixin< BoundsB0Mixin< TaskBase > >, humoto::constraints::BodyIMixin< BoundsLUMixin< TaskBase > >, humoto::constraints::BodyIMixin< BoundsLUMixin< ContainerBase > >, humoto::constraints::BodyIMixin< BoundsLMixin< TaskBase > >, humoto::constraints::BodyIMixin< BoundsUMixin< TaskBase > >, humoto::constraints::BodyASMixin< BoundsBMixin< TaskBase > >, humoto::constraints::BodyASMixin< BoundsB0Mixin< TaskBase > >, humoto::constraints::BodyASMixin< BoundsLUMixin< TaskBase > >, humoto::constraints::BodyASMixin< BoundsLMixin< TaskBase > >, humoto::constraints::BodyASMixin< BoundsUMixin< TaskBase > >, humoto::constraints::BodyAMixin< BoundsBMixin< TaskBase > >, humoto::constraints::BodyAMixin< BoundsB0Mixin< TaskBase > >, humoto::constraints::BodyAMixin< BoundsLUMixin< TaskBase > >, humoto::constraints::BodyAMixin< BoundsLMixin< ContainerBase > >, humoto::constraints::BodyAMixin< BoundsLUMixin< ContainerBase > >, humoto::constraints::BodyAMixin< BoundsLMixin< TaskBase > >, humoto::constraints::BodyAMixin< BoundsUMixin< TaskBase > >, and humoto::constraints::BodyAMixin< BoundsBMixin< ContainerBase > >.
|
protectedpure virtual |
Reset bounds of constraints (b, lb, ub)
| [in] | number_of_constraints | number of constraints |
| [in] | initialize_matrices | initialize matrices using defaults |
Implemented in humoto::constraints::BoundsLUMixin< TaskBase >, humoto::constraints::BoundsLUMixin< ContainerBase >, humoto::constraints::BoundsUMixin< TaskBase >, humoto::constraints::BoundsUMixin< ContainerBase >, humoto::constraints::BoundsLMixin< TaskBase >, humoto::constraints::BoundsLMixin< BoundsUMixin< ContainerBase > >, humoto::constraints::BoundsLMixin< ContainerBase >, humoto::constraints::BoundsLMixin< BoundsUMixin< TaskBase > >, humoto::constraints::BoundsBMixin< TaskBase >, humoto::constraints::BoundsBMixin< ContainerBase >, and humoto::constraints::BoundsB0Mixin< TaskBase >.
|
inlineprotected |
Set number of variables.
| [in] | number_of_variables | number of variables |
Definition at line 142 of file constraints_base.h.
|
protected |
Definition at line 120 of file constraints_base.h.
1.8.13