44 const double h = 0.01;
47 const double tStart = 0.0;
48 const double tEnd = 1.0;
50 Grid timeHorizon( tStart,tEnd );
55 f <<
next(x) == x - h*x + h*u*u;
82 intAlg.
integrate( timeHorizon, xStart, xaStart, pStart, uStart );
#define USING_NAMESPACE_ACADO
Allows to conveniently handle (one-dimensional) grids consisting of time points.
returnValue integrate(VariablesGrid *x, VariablesGrid *xa, VariablesGrid *p, VariablesGrid *u, VariablesGrid *w)
Allows to setup and evaluate discretized differential equations based on SymbolicExpressions.
returnValue set(OptionsName name, int value)
User-interface to integrate a DynamicSystem, possibly over multiple stages.
Expression next(const Expression &arg)
virtual returnValue addStage(const DynamicSystem &dynamicSystem_, const Grid &stageIntervals, const IntegratorType &integratorType_=INT_UNKNOWN)