50 f <<
dot(x) == -x +
sin(0.01 * t);
61 Grid timeHorizon(tStart, tEnd, 2);
62 Grid timeGrid(tStart, tEnd, 20);
91 intAlg.
getX(differentialStates);
93 cout <<
"x = " << endl << differentialStates << endl;
98 cout <<
"xEnd = " << endl << xEnd << endl;
USING_NAMESPACE_ACADO IntermediateState sin(const Expression &arg)
#define USING_NAMESPACE_ACADO
Provides a time grid consisting of vector-valued optimization variables at each grid point...
Allows to conveniently handle (one-dimensional) grids consisting of time points.
returnValue getX(DVector &xEnd) const
returnValue integrate(VariablesGrid *x, VariablesGrid *xa, VariablesGrid *p, VariablesGrid *u, VariablesGrid *w)
returnValue addSubplot(PlotWindowSubplot &_subplot)
returnValue set(OptionsName name, int value)
User-interface to integrate a DynamicSystem, possibly over multiple stages.
Expression dot(const Expression &arg)
virtual returnValue addStage(const DynamicSystem &dynamicSystem_, const Grid &stageIntervals, const IntegratorType &integratorType_=INT_UNKNOWN)
Provides an interface to Gnuplot for plotting algorithmic outputs.
USING_NAMESPACE_ACADO int main()
Allows to setup and evaluate differential equations (ODEs and DAEs) based on SymbolicExpressions.