This class represents one level of a hierarchy.
Definition at line 18 of file hierarchy_level.h.
#include <hierarchy_level.h>
|
std::list< TaskInfo > | tasks_ |
| General constraints are added in the beginning, simple – in the end. It is easier to process tasks this way and formulation of the Hessian can be slightly faster, if objective includes general and simple tasks. More...
|
|
◆ HierarchyLevel()
humoto::HierarchyLevel::HierarchyLevel |
( |
| ) |
|
|
inline |
◆ computeViolations()
Compute violations based on the solution.
- Parameters
-
[out] | violations | violations |
[in] | solution | solution |
Definition at line 167 of file hierarchy_level.h.
◆ determineActiveSet()
Determine active set based on the solution.
- Parameters
-
[out] | active_set | active set |
[in] | solution | solution |
Definition at line 148 of file hierarchy_level.h.
◆ form()
Form hierarchy.
- Parameters
-
[in] | sol_structure | initialized solution structure |
[in] | model | model of the system |
[in] | control_problem | control problem associated with the model |
[in] | is_active_set_guessing_enabled | |
Definition at line 54 of file hierarchy_level.h.
◆ getAllConstraints()
Generates objective containing all constraints on this level.
- Parameters
-
[in] | sol_structure | structure of the solution |
[out] | constraints | constraints |
Definition at line 398 of file hierarchy_level.h.
◆ getEqualityConstraints()
Generates (general) objective containing all equality constraints on this level.
- Parameters
-
[out] | eq_constraints | equality constraints |
[in] | sol_structure | structure of the solution |
Definition at line 346 of file hierarchy_level.h.
◆ getGeneralConstraints()
Generates objective containing all general constraints on this level.
- Parameters
-
[in] | sol_structure | structure of the solution |
[out] | constraints | constraints |
Definition at line 423 of file hierarchy_level.h.
◆ getInequalityConstraints()
Generates (general) objective containing all equality constraints on this level.
- Parameters
-
[out] | ineq_constraints | equality constraints |
[in] | sol_structure | structure of the solution |
Definition at line 372 of file hierarchy_level.h.
◆ getNumberOfConstraints()
std::size_t humoto::HierarchyLevel::getNumberOfConstraints |
( |
| ) |
const |
|
inline |
Get total number of constraints.
- Returns
- total number of constraints
Definition at line 255 of file hierarchy_level.h.
◆ getNumberOfEqualityConstraints()
std::size_t humoto::HierarchyLevel::getNumberOfEqualityConstraints |
( |
| ) |
const |
|
inline |
Get number of inequality constraints.
- Returns
- number of inequality constraints
Definition at line 290 of file hierarchy_level.h.
◆ getNumberOfGeneralConstraints()
std::size_t humoto::HierarchyLevel::getNumberOfGeneralConstraints |
( |
| ) |
const |
|
inline |
Get number of general constraints.
- Returns
- number of general constraints
Definition at line 279 of file hierarchy_level.h.
◆ getNumberOfInequalityConstraints()
std::size_t humoto::HierarchyLevel::getNumberOfInequalityConstraints |
( |
| ) |
const |
|
inline |
Get number of inequality constraints.
- Returns
- number of inequality constraints
Definition at line 301 of file hierarchy_level.h.
◆ getNumberOfInequalityConstraintsOneSided()
std::size_t humoto::HierarchyLevel::getNumberOfInequalityConstraintsOneSided |
( |
| ) |
const |
|
inline |
Get number of inequality constraints, two-sided constraints counted twice.
- Returns
- number of inequality constraints
Definition at line 312 of file hierarchy_level.h.
◆ getNumberOfSimpleConstraints()
std::size_t humoto::HierarchyLevel::getNumberOfSimpleConstraints |
( |
| ) |
const |
|
inline |
Get number of simple constraints.
- Returns
- number of simple constraints
Definition at line 268 of file hierarchy_level.h.
◆ getObjective()
void humoto::HierarchyLevel::getObjective |
( |
Eigen::MatrixXd & |
H, |
|
|
Eigen::VectorXd & |
g |
|
) |
| const |
|
inline |
Form objective of a QP.
- Parameters
-
[out] | H | hessian |
[out] | g | gradient |
Definition at line 479 of file hierarchy_level.h.
◆ getSimpleConstraints()
Generates objective containing all simple constraints on this level.
- Parameters
-
[in] | sol_structure | structure of the solution |
[out] | constraints | constraints |
Definition at line 450 of file hierarchy_level.h.
◆ guessActiveSet()
Form active set guess.
- Parameters
-
[out] | active_set | active set guess |
Definition at line 113 of file hierarchy_level.h.
◆ isEquality()
bool humoto::HierarchyLevel::isEquality |
( |
| ) |
const |
|
inline |
True if all constraints on this level are equalitites.
- Returns
- true/false
Definition at line 334 of file hierarchy_level.h.
◆ isSimple()
bool humoto::HierarchyLevel::isSimple |
( |
| ) |
const |
|
inline |
True if all constraints on this level are simple.
- Returns
- true/false
Definition at line 323 of file hierarchy_level.h.
◆ log()
Log hierarchy as a set of tasks.
- Parameters
-
[in,out] | logger | logger |
[in] | parent | parent |
[in] | name | name |
Definition at line 505 of file hierarchy_level.h.
◆ processActiveSet()
Process actual active set: extract active sets of individual tasks.
- Parameters
-
Definition at line 130 of file hierarchy_level.h.
◆ pushTask()
Add task to the optimization problem.
- Parameters
-
[in,out] | task_pointer | pointer to a task |
Definition at line 184 of file hierarchy_level.h.
◆ reset()
void humoto::HierarchyLevel::reset |
( |
| ) |
|
|
inlineprivate |
◆ OptimizationProblem
◆ number_of_equality_constraints_
std::size_t humoto::HierarchyLevel::number_of_equality_constraints_ |
|
private |
◆ number_of_general_constraints_
std::size_t humoto::HierarchyLevel::number_of_general_constraints_ |
|
private |
◆ number_of_simple_constraints_
std::size_t humoto::HierarchyLevel::number_of_simple_constraints_ |
|
private |
◆ number_of_twosided_constraints_
std::size_t humoto::HierarchyLevel::number_of_twosided_constraints_ |
|
private |
◆ tasks_
std::list<TaskInfo> humoto::HierarchyLevel::tasks_ |
General constraints are added in the beginning, simple – in the end. It is easier to process tasks this way and formulation of the Hessian can be slightly faster, if objective includes general and simple tasks.
Definition at line 235 of file hierarchy_level.h.
The documentation for this class was generated from the following file: