35 #ifndef ACADO_TOOLKIT_OBJECTIVE_ELEMENT_HPP 36 #define ACADO_TOOLKIT_OBJECTIVE_ELEMENT_HPP 188 inline int getNX ()
const;
193 inline int getNXA ()
const;
198 inline int getNP ()
const;
203 inline int getNU ()
const;
208 inline int getNW ()
const;
285 #include <acado/objective/objective_element.ipp> 288 #endif // ACADO_TOOLKIT_OBJECTIVE_ELEMENT_HPP Data class for storing generic optimization variables.
returnValue init(const OCPiterate &x)
Implements a very rudimentary block sparse matrix class.
Base class for all kind of objective function terms within optimal control problems.
Allows to setup and evaluate a general function based on SymbolicExpressions.
virtual returnValue getBackwardSensitivities(BlockMatrix *D, int order)
Allows to pass back messages to the calling function.
Allows to setup function evaluation points.
Allows to conveniently handle (one-dimensional) grids consisting of time points.
#define CLOSE_NAMESPACE_ACADO
virtual ~ObjectiveElement()
void rhs(const real_t *x, real_t *f)
virtual returnValue getObjectiveValue(double &objectiveValue)
returnValue setGrid(const Grid &grid_)
#define BEGIN_NAMESPACE_ACADO
virtual returnValue setForwardSeed(BlockMatrix *xSeed_, BlockMatrix *xaSeed_, BlockMatrix *pSeed_, BlockMatrix *uSeed_, BlockMatrix *wSeed_, int order)
virtual returnValue setBackwardSeed(BlockMatrix *seed, int order)
returnValue getFunction(Function &_function)
virtual returnValue getForwardSensitivities(BlockMatrix *D, int order)
ObjectiveElement & operator=(const ObjectiveElement &rhs)