Base class for all kind of constraints (except for bounds) within optimal control problems. More...
#include <constraint_element.hpp>
Public Member Functions | |
ConstraintElement () | |
ConstraintElement (const Grid &grid_, int nFcn_, int nB_) | |
ConstraintElement (const ConstraintElement &rhs) | |
returnValue | get (Function &function_, DMatrix &lb_, DMatrix &ub_) |
virtual returnValue | getBackwardSensitivities (BlockMatrix *D, int order) |
virtual returnValue | getForwardSensitivities (BlockMatrix *D, int order) |
Grid & | getGrid () |
int | getNP () const |
int | getNU () const |
int | getNW () const |
int | getNX () const |
int | getNXA () const |
virtual returnValue | getResiduum (BlockMatrix &lower_residuum, BlockMatrix &upper_residuum) |
returnValue | init (const OCPiterate &iter) |
BooleanType | isAffine () const |
ConstraintElement & | operator= (const ConstraintElement &rhs) |
virtual returnValue | setBackwardSeed (BlockMatrix *seed, int order) |
virtual returnValue | setForwardSeed (BlockMatrix *xSeed_, BlockMatrix *xaSeed_, BlockMatrix *pSeed_, BlockMatrix *uSeed_, BlockMatrix *wSeed_, int order) |
virtual returnValue | setUnitForwardSeed () |
virtual | ~ConstraintElement () |
Protected Member Functions | |
virtual returnValue | initializeEvaluationPoints (const OCPiterate &iter) |
Protected Attributes | |
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 |
Base class for all kind of constraints (except for bounds) within optimal control problems.
The class ConstraintElement serves as base class for all kind of different constraints (except for box constraints) within optimal control problems.
\author Boris Houska, Hans Joachim Ferreau
Definition at line 57 of file constraint_element.hpp.
BEGIN_NAMESPACE_ACADO ConstraintElement::ConstraintElement | ( | ) |
Default constructor.
Definition at line 45 of file constraint_element.cpp.
ConstraintElement::ConstraintElement | ( | const Grid & | grid_, |
int | nFcn_, | ||
int | nB_ | ||
) |
Default constructor.
Definition at line 82 of file constraint_element.cpp.
ConstraintElement::ConstraintElement | ( | const ConstraintElement & | rhs | ) |
Copy constructor (deep copy).
Definition at line 133 of file constraint_element.cpp.
|
virtual |
Destructor.
Definition at line 248 of file constraint_element.cpp.
returnValue ConstraintElement::get | ( | Function & | function_, |
DMatrix & | lb_, | ||
DMatrix & | ub_ | ||
) |
Definition at line 753 of file constraint_element.cpp.
|
virtual |
Returns the result for the backward sensitivities in BlockMatrix form.
D | the result for the forward sensitivi- ties |
order | the order |
Definition at line 709 of file constraint_element.cpp.
|
virtual |
Returns the result for the forward sensitivities in BlockMatrix form.
D | the result for the forward sensitivi- ties |
order | the order |
Definition at line 692 of file constraint_element.cpp.
|
inline |
returns the constraint grid
|
inline |
Returns the number of parameters
|
inline |
Returns the number of controls
|
inline |
Returns the number of disturbances
|
inline |
Returns the number of differential states
|
inline |
Returns the number of algebraic states
|
virtual |
Returns the result for the residuum.
lower_residuum | the lower residuum |
upper_residuum | the upper residuum |
Definition at line 681 of file constraint_element.cpp.
returnValue ConstraintElement::init | ( | const OCPiterate & | iter | ) |
Initializes the Constraint Element: The dimensions and
index lists.
Definition at line 479 of file constraint_element.cpp.
|
protectedvirtual |
Reimplemented in AlgebraicConsistencyConstraint.
Definition at line 731 of file constraint_element.cpp.
|
inline |
returns whether the constraint element is affine.
ConstraintElement & ConstraintElement::operator= | ( | const ConstraintElement & | rhs | ) |
Assignment operator (deep copy).
Definition at line 306 of file constraint_element.cpp.
|
virtual |
Define a backward seed in form of a block matrix.
seed | the seed matrix |
order | the order of the seed. |
Definition at line 649 of file constraint_element.cpp.
|
virtual |
Define a forward seed in form of a block matrix.
xSeed_ | the seed in x -direction |
xaSeed_ | the seed in xa-direction |
pSeed_ | the seed in p -direction |
uSeed_ | the seed in u -direction |
wSeed_ | the seed in w -direction |
order | the order of the seed. |
Definition at line 530 of file constraint_element.cpp.
|
virtual |
Defines the first order forward seed to be
the unit-directions matrix.
Definition at line 631 of file constraint_element.cpp.
|
protected |
the 1st order backward seed
Definition at line 284 of file constraint_element.hpp.
|
protected |
the 2nd order backward seed
Definition at line 292 of file constraint_element.hpp.
|
protected |
the condensing type
Definition at line 303 of file constraint_element.hpp.
|
protected |
the first order backward derivatives
Definition at line 301 of file constraint_element.hpp.
|
protected |
the first order forward derivatives
Definition at line 300 of file constraint_element.hpp.
|
protected |
the functions
Definition at line 247 of file constraint_element.hpp.
|
protected |
the constraint grid
Definition at line 246 of file constraint_element.hpp.
|
protected |
Definition at line 252 of file constraint_element.hpp.
|
protected |
lower bounds
Definition at line 248 of file constraint_element.hpp.
|
protected |
number of alg. states
Definition at line 266 of file constraint_element.hpp.
|
protected |
number of bounds
Definition at line 273 of file constraint_element.hpp.
|
protected |
number of functions
Definition at line 272 of file constraint_element.hpp.
|
protected |
number of parameters
Definition at line 268 of file constraint_element.hpp.
|
protected |
number of controls
Definition at line 267 of file constraint_element.hpp.
|
protected |
number of disturbances
Definition at line 269 of file constraint_element.hpp.
|
protected |
number of diff. states
Definition at line 265 of file constraint_element.hpp.
|
protected |
:= nx+na+nu+np+nw
Definition at line 270 of file constraint_element.hpp.
|
protected |
the 1st order forward seed in p-direction
Definition at line 280 of file constraint_element.hpp.
|
protected |
the 2nd order forward seed in p-direction
Definition at line 288 of file constraint_element.hpp.
|
protected |
the residuum vectors
Definition at line 297 of file constraint_element.hpp.
|
protected |
the residuum vectors
Definition at line 298 of file constraint_element.hpp.
|
protected |
time indices
Definition at line 259 of file constraint_element.hpp.
|
protected |
upper bounds
Definition at line 249 of file constraint_element.hpp.
|
protected |
the 1st order forward seed in u-direction
Definition at line 281 of file constraint_element.hpp.
|
protected |
the 2nd order forward seed in u-direction
Definition at line 289 of file constraint_element.hpp.
|
protected |
the 1st order forward seed in w-direction
Definition at line 282 of file constraint_element.hpp.
|
protected |
the 2nd order forward seed in w-direction
Definition at line 290 of file constraint_element.hpp.
|
protected |
the 1st order forward seed in x-direction
Definition at line 279 of file constraint_element.hpp.
|
protected |
the 2nd order forward seed in x-direction
Definition at line 287 of file constraint_element.hpp.
|
protected |
the 1st order forward seed in x-direction
Definition at line 278 of file constraint_element.hpp.
|
protected |
the 2nd order forward seed in x-direction
Definition at line 286 of file constraint_element.hpp.
|
protected |
index lists
Definition at line 258 of file constraint_element.hpp.
|
protected |
the evaluation points
Definition at line 251 of file constraint_element.hpp.