humoto
|
Active set corresponding to Constraints class.
Definition at line 43 of file active_set.h.
#include <active_set.h>
Public Member Functions | |
void | copyFrom (const ActiveSetConstraints &other_active_set, const Location &location) |
Set type of a set of constraints. More... | |
void | copyTo (const Location &location, const ActiveSetConstraints &other_active_set) |
Set type of a set of constraints. More... | |
std::size_t | countActiveInequalities () const |
Returns number of active inequality constraints. More... | |
void | initialize (const std::size_t number_of_constraints) |
Initialize active set. More... | |
void | initialize (const ActiveSetConstraints &other_active_set, const Location &location) |
Initialize active set. More... | |
void | initialize (const std::size_t number_of_constraints, const ConstraintActivationType::Type type) |
Initialize active set. More... | |
void | log (humoto::Logger &logger, const LogEntryName &parent=LogEntryName(), const std::string &name="") const |
Log an active set. More... | |
const humoto::ConstraintActivationType::Type & | operator[] (const std::size_t constraint_index) const |
Access activation flag of a constraint (const) More... | |
humoto::ConstraintActivationType::Type & | operator[] (const std::size_t constraint_index) |
Access activation flag of a constraint. More... | |
void | reset () |
Reset active set. More... | |
void | set (const ConstraintActivationType::Type type) |
Set type of all constraints. More... | |
void | set (const Location &location, const ConstraintActivationType::Type type) |
Set type of a set of constraints. More... | |
void | shift (const std::size_t shift_size, const ConstraintActivationType::Type type) |
Shift active set forward while preserving the length, the trailing elements are initialized with the given type. More... | |
std::size_t | size () const |
Size of the active set. More... | |
Private Attributes | |
std::vector< humoto::ConstraintActivationType::Type > | data_ |
|
inline |
Set type of a set of constraints.
[in] | other_active_set | other active set |
[in] | location | location in other active set |
Definition at line 150 of file active_set.h.
|
inline |
Set type of a set of constraints.
[in] | location | location in this active set |
[in] | other_active_set | other active set |
Definition at line 133 of file active_set.h.
|
inline |
Returns number of active inequality constraints.
Definition at line 238 of file active_set.h.
|
inline |
Initialize active set.
[in] | number_of_constraints | number of constraints for each level |
Definition at line 167 of file active_set.h.
|
inline |
Initialize active set.
[in] | other_active_set | other active set |
[in] | location | location in other active set |
Definition at line 180 of file active_set.h.
|
inline |
Initialize active set.
[in] | number_of_constraints | number of constraints for each level |
[in] | type | type of the constraints |
Definition at line 201 of file active_set.h.
|
inline |
Log an active set.
[in,out] | logger | logger |
[in] | parent | parent |
[in] | name | name |
Definition at line 266 of file active_set.h.
|
inline |
Access activation flag of a constraint (const)
[in] | constraint_index |
Definition at line 56 of file active_set.h.
|
inline |
Access activation flag of a constraint.
[in] | constraint_index |
Definition at line 71 of file active_set.h.
|
inline |
Reset active set.
Definition at line 93 of file active_set.h.
|
inline |
Set type of all constraints.
[in] | type | type of the constraints |
Definition at line 104 of file active_set.h.
|
inline |
Set type of a set of constraints.
[in] | location | |
[in] | type |
Definition at line 117 of file active_set.h.
|
inline |
Shift active set forward while preserving the length, the trailing elements are initialized with the given type.
[in] | shift_size | shift size |
[in] | type | type of the trailing elements |
Definition at line 217 of file active_set.h.
|
inline |
|
private |
Definition at line 46 of file active_set.h.