66 hw = h_hw + A_hw*
sin(2*
M_PI*t/T_hw);
68 f <<
dot(v) == rho*A*(hw-h)/m - g - a*v;
74 xStart(0) = h_hw - 2.0*A_hw;
78 Grid timeHorizon( 0.0,25.0 );
USING_NAMESPACE_ACADO IntermediateState sin(const Expression &arg)
USING_NAMESPACE_ACADO int main()
#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)
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.
Allows to setup and evaluate differential equations (ODEs and DAEs) based on SymbolicExpressions.