Base class for all kind of objective function terms within optimal control problems. More...
#include <objective_element.hpp>
Public Member Functions | |
virtual returnValue | getBackwardSensitivities (BlockMatrix *D, int order) |
virtual returnValue | getForwardSensitivities (BlockMatrix *D, int order) |
returnValue | getFunction (Function &_function) |
int | getNP () const |
int | getNU () const |
int | getNW () const |
int | getNX () const |
int | getNXA () const |
virtual returnValue | getObjectiveValue (double &objectiveValue) |
returnValue | init (const OCPiterate &x) |
ObjectiveElement () | |
ObjectiveElement (const Grid &grid_) | |
ObjectiveElement (const ObjectiveElement &rhs) | |
ObjectiveElement & | operator= (const ObjectiveElement &rhs) |
virtual returnValue | setBackwardSeed (BlockMatrix *seed, int order) |
virtual returnValue | setForwardSeed (BlockMatrix *xSeed_, BlockMatrix *xaSeed_, BlockMatrix *pSeed_, BlockMatrix *uSeed_, BlockMatrix *wSeed_, int order) |
returnValue | setGrid (const Grid &grid_) |
virtual | ~ObjectiveElement () |
Protected Member Functions | |
Grid | getGrid () const |
Protected Attributes | |
BlockMatrix * | bSeed |
BlockMatrix * | bSeed2 |
BlockMatrix | dBackward |
BlockMatrix | dForward |
Function | fcn |
Grid | grid |
EvaluationPoint | JJ |
int | na |
int | np |
int | nu |
int | nw |
int | nx |
int | ny |
double | obj |
BlockMatrix * | pSeed |
BlockMatrix * | pSeed2 |
int | t_index |
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 objective function terms within optimal control problems.
The class ObjectiveElement serves as base class for all kind of different objective function terms within optimal control problems.
\author Boris Houska, Hans Joachim Ferreau
Definition at line 55 of file objective_element.hpp.
BEGIN_NAMESPACE_ACADO ObjectiveElement::ObjectiveElement | ( | ) |
Default constructor.
Definition at line 43 of file objective_element.cpp.
ObjectiveElement::ObjectiveElement | ( | const Grid & | grid_ | ) |
Default constructor.
Definition at line 71 of file objective_element.cpp.
ObjectiveElement::ObjectiveElement | ( | const ObjectiveElement & | rhs | ) |
Copy constructor (deep copy).
Definition at line 100 of file objective_element.cpp.
|
virtual |
Destructor.
Definition at line 158 of file objective_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 470 of file objective_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 453 of file objective_element.cpp.
returnValue ObjectiveElement::getFunction | ( | Function & | _function | ) |
Returns the element's function
|
inlineprotected |
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.
objectiveValue | the objective value |
Definition at line 446 of file objective_element.cpp.
returnValue ObjectiveElement::init | ( | const OCPiterate & | x | ) |
Initializes the Objective Element: The dimensions and
index lists.
Definition at line 263 of file objective_element.cpp.
ObjectiveElement & ObjectiveElement::operator= | ( | const ObjectiveElement & | rhs | ) |
Assignment operator (deep copy).
Definition at line 181 of file objective_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 414 of file objective_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 313 of file objective_element.cpp.
|
inline |
Sets the discretization grid.
|
protected |
the 1st order backward seed
Definition at line 260 of file objective_element.hpp.
|
protected |
the 2nd order backward seed
Definition at line 268 of file objective_element.hpp.
|
protected |
the first order backward derivatives
Definition at line 276 of file objective_element.hpp.
|
protected |
the first order forward derivatives
Definition at line 275 of file objective_element.hpp.
|
protected |
the function
Definition at line 236 of file objective_element.hpp.
|
protected |
the objective grid
Definition at line 235 of file objective_element.hpp.
|
protected |
Definition at line 239 of file objective_element.hpp.
|
protected |
number of alg. states
Definition at line 245 of file objective_element.hpp.
|
protected |
number of parameters
Definition at line 247 of file objective_element.hpp.
|
protected |
number of controls
Definition at line 246 of file objective_element.hpp.
|
protected |
number of disturbances
Definition at line 248 of file objective_element.hpp.
|
protected |
number of diff. states
Definition at line 244 of file objective_element.hpp.
|
protected |
:= nx+na+nu+np+nw
Definition at line 249 of file objective_element.hpp.
|
protected |
the objective value
Definition at line 273 of file objective_element.hpp.
|
protected |
the 1st order forward seed in p-direction
Definition at line 256 of file objective_element.hpp.
|
protected |
the 2nd order forward seed in p-direction
Definition at line 264 of file objective_element.hpp.
|
protected |
time index
Definition at line 242 of file objective_element.hpp.
|
protected |
the 1st order forward seed in u-direction
Definition at line 257 of file objective_element.hpp.
|
protected |
the 2nd order forward seed in u-direction
Definition at line 265 of file objective_element.hpp.
|
protected |
the 1st order forward seed in w-direction
Definition at line 258 of file objective_element.hpp.
|
protected |
the 2nd order forward seed in w-direction
Definition at line 266 of file objective_element.hpp.
|
protected |
the 1st order forward seed in x-direction
Definition at line 255 of file objective_element.hpp.
|
protected |
the 2nd order forward seed in x-direction
Definition at line 263 of file objective_element.hpp.
|
protected |
the 1st order forward seed in x-direction
Definition at line 254 of file objective_element.hpp.
|
protected |
the 2nd order forward seed in x-direction
Definition at line 262 of file objective_element.hpp.
|
protected |
index lists
Definition at line 241 of file objective_element.hpp.
|
protected |
the evaluation point
Definition at line 238 of file objective_element.hpp.