Stores and evaluates path constraints within optimal control problems. More...
#include <path_constraint.hpp>
Additional Inherited Members | |
Protected Member Functions inherited from ConstraintElement | |
virtual returnValue | initializeEvaluationPoints (const OCPiterate &iter) |
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 path constraints within optimal control problems.
The class PathConstraint allows to manage and evaluate constraints along the whole horizon within optimal control problems. Note that the path constraints need to be decoupled on each control interval, otherwise the class CouplePathConstraint has to be used.
\author Boris Houska, Hans Joachim Ferreau
Definition at line 57 of file path_constraint.hpp.
BEGIN_NAMESPACE_ACADO PathConstraint::PathConstraint | ( | ) |
Default constructor.
Definition at line 46 of file path_constraint.cpp.
PathConstraint::PathConstraint | ( | const Grid & | grid_ | ) |
Default constructor.
Definition at line 51 of file path_constraint.cpp.
PathConstraint::PathConstraint | ( | const PathConstraint & | rhs | ) |
Copy constructor (deep copy).
Definition at line 56 of file path_constraint.cpp.
|
virtual |
Destructor.
Definition at line 61 of file path_constraint.cpp.
|
inline |
Adds a path-constraint component.
returnValue PathConstraint::evaluate | ( | const OCPiterate & | iter | ) |
Evaluates all components in this constraint and stores the
residuum.
Definition at line 76 of file path_constraint.cpp.
returnValue PathConstraint::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 113 of file path_constraint.cpp.
returnValue PathConstraint::evaluateSensitivities | ( | int & | count, |
const BlockMatrix & | seed, | ||
BlockMatrix & | hessian | ||
) |
Evaluates the sensitivities and Hessian.
Definition at line 191 of file path_constraint.cpp.
|
inline |
returns the dimension of a specified block of the constraints
|
inline |
returns the number of constraints
|
inline |
PathConstraint & PathConstraint::operator= | ( | const PathConstraint & | rhs | ) |
Assignment operator (deep copy).
Definition at line 65 of file path_constraint.cpp.