Stores and evaluates pointwise constraints within optimal control problems. More...
#include <point_constraint.hpp>

Protected Member Functions | |
| returnValue | computeForwardSensitivityBlock (int offset, int offset2, DMatrix *seed) |
Protected Member Functions inherited from ConstraintElement | |
| virtual returnValue | initializeEvaluationPoints (const OCPiterate &iter) |
Protected Attributes | |
| double * | blb |
| double * | bub |
| int * | index |
| int | nb |
| int | point_index |
| VariableType * | var |
Protected Attributes inherited from ConstraintElement | |
| BlockMatrix * | bSeed |
| BlockMatrix * | bSeed2 |
| CondensingType | condType |
| BlockMatrix | dBackward |
| BlockMatrix | dForward |
| Function * | fcn |
| Grid | grid |
| EvaluationPoint * | JJ |
| double ** | lb |
| int | na |
| int | nB |
| int | nFcn |
| int | np |
| int | nu |
| int | nw |
| int | nx |
| int | ny |
| BlockMatrix * | pSeed |
| BlockMatrix * | pSeed2 |
| BlockMatrix | residuumL |
| BlockMatrix | residuumU |
| int * | t_index |
| double ** | ub |
| BlockMatrix * | uSeed |
| BlockMatrix * | uSeed2 |
| BlockMatrix * | wSeed |
| BlockMatrix * | wSeed2 |
| BlockMatrix * | xaSeed |
| BlockMatrix * | xaSeed2 |
| BlockMatrix * | xSeed |
| BlockMatrix * | xSeed2 |
| int ** | y_index |
| EvaluationPoint * | z |
Stores and evaluates pointwise constraints within optimal control problems.
The class PointConstraint allows to manage and evaluate pointwise constraints within optimal control problems.
Definition at line 55 of file point_constraint.hpp.
| BEGIN_NAMESPACE_ACADO PointConstraint::PointConstraint | ( | ) |
Default constructor.
Definition at line 47 of file point_constraint.cpp.
| PointConstraint::PointConstraint | ( | const Grid & | grid_, |
| int | point_index_ | ||
| ) |
Default constructor.
Definition at line 59 of file point_constraint.cpp.
| PointConstraint::PointConstraint | ( | const PointConstraint & | rhs | ) |
Copy constructor (deep copy).
Definition at line 71 of file point_constraint.cpp.
|
virtual |
Destructor.
Definition at line 99 of file point_constraint.cpp.
| returnValue PointConstraint::add | ( | const double | lb_, |
| const Expression & | arg, | ||
| const double | ub_ | ||
| ) |
Adds a point-constraint component.
Definition at line 148 of file point_constraint.cpp.
|
inlineprotected |
only for internal use (routine which computes a part of the block matrix needed for forward differentiation.)
Definition at line 677 of file point_constraint.cpp.
| returnValue PointConstraint::evaluate | ( | const OCPiterate & | iter | ) |
Evaluates all components in this constraint and stores the
residuum.
Definition at line 190 of file point_constraint.cpp.
| returnValue PointConstraint::evaluateSensitivities | ( | ) |
Evaluates the sensitivities of all components in this
constraint. Note that the seed can be defined via the base
class ConstraintElement.
Definition at line 225 of file point_constraint.cpp.
| returnValue PointConstraint::evaluateSensitivities | ( | const DMatrix & | seed, |
| BlockMatrix & | hessian | ||
| ) |
Evaluates the sensitivities and Hessian.
Definition at line 341 of file point_constraint.cpp.
| returnValue PointConstraint::getBounds | ( | const OCPiterate & | iter | ) |
Writes a special copy of the bounds that is needed within the OptimizationAlgorithm into the optimization variables.
Definition at line 605 of file point_constraint.cpp.
|
inline |
returns the number of constraints
|
inline |
returns whether object only comprises box constraints.
| PointConstraint & PointConstraint::operator= | ( | const PointConstraint & | rhs | ) |
Assignment operator (deep copy).
Definition at line 107 of file point_constraint.cpp.
|
protected |
lower bounds
Definition at line 157 of file point_constraint.hpp.
|
protected |
upper bounds
Definition at line 158 of file point_constraint.hpp.
|
protected |
component of the variable
Definition at line 156 of file point_constraint.hpp.
|
protected |
counts the number of simple point bounds
Definition at line 154 of file point_constraint.hpp.
|
protected |
index of the constraint relative to the constraint grid
Definition at line 152 of file point_constraint.hpp.
|
protected |
variable types
Definition at line 155 of file point_constraint.hpp.