34 #ifndef ACADO_TOOLKIT_OBJECTIVE_HPP 35 #define ACADO_TOOLKIT_OBJECTIVE_HPP 49 :
W( _WW ),
h( _hh ),
givenW( _givenW )
68 :
W( _WW ),
h( _hh ),
givenW( _givenW )
87 : Wlx( _Wlx ), Wlu( _Wlu ),
givenW( _givenW )
244 const int nTransitions,
347 virtual returnValue getObjectiveValue(
double &objectiveValue );
387 inline int getNX ()
const;
392 inline int getNXA ()
const;
397 inline int getNP ()
const;
402 inline int getNU ()
const;
407 inline int getNW ()
const;
460 uint getNumMayerTerms( )
const;
461 uint getNumLagrangeTerms( )
const;
490 #include <acado/objective/objective.ipp> 492 #endif // ACADO_TOOLKIT_OBJECTIVE_HPP
Data class for storing generic optimization variables.
Implements a very rudimentary block sparse matrix class.
Allows to setup and evaluate a general function based on SymbolicExpressions.
std::vector< LsqLinearData > LsqLinearElements
LsqData(const DMatrix &_WW, const Function &_hh, bool _givenW=true)
Stores and evaluates Mayer terms within optimal control problems.
Stores and evaluates the constraints of optimal control problems.
Provides a time grid consisting of vector-valued optimization variables at each grid point...
Allows to pass back messages to the calling function.
BEGIN_NAMESPACE_ACADO typedef unsigned int uint
Allows to conveniently handle (one-dimensional) grids consisting of time points.
LsqExternElements cgExternLsqElements
LsqExternElements cgExternLsqEndTermElements
#define CLOSE_NAMESPACE_ACADO
Base class for all variables within the symbolic expressions family.
LsqElements cgLsqEndTermElements
Stores and evaluates LSQ mayer terms within optimal control problems.
Provides a time grid consisting of matrix-valued optimization variables at each grid point...
std::vector< LsqData > LsqElements
void rhs(const real_t *x, real_t *f)
Allows to setup and evaluate transition functions based on SymbolicExpressions.
LsqLinearElements cgLsqLinearElements
std::vector< LsqExternData > LsqExternElements
Stores and evaluates Lagrange terms within optimal control problems.
#define BEGIN_NAMESPACE_ACADO
Stores and evaluates LSQ terms within optimal control problems.
LsqLinearData(const DVector &_Wlx, const DVector &_Wlu, bool _givenW=true)
LsqExternData(const DMatrix &_WW, const std::string &_hh, bool _givenW=true)
void init(int nV, int nC, SymmetricMatrix *H, real_t *g, Matrix *A, const real_t *const lb, const real_t *const ub, const real_t *const lbA, const real_t *const ubA, int nWSR, const real_t *const x0, Options *options, int nOutputs, mxArray *plhs[])
LsqElements cgLsqElements
Stores and evaluates the objective function of optimal control problems.
Allows to setup and evaluate differential equations (ODEs and DAEs) based on SymbolicExpressions.