65 hw = h_hw + A_hw*
sin(2*
M_PI*t/T_hw);
67 f <<
dot(v) == rho*A*(hw-h)/m - g - a*v;
77 x_start[0] = h_hw - 2*A_hw;
81 Grid timeInterval( 0.0, 25.0, 200 );
84 integrator.
integrate( timeInterval, x_start );
89 integrator.
getX ( differentialStates );
90 integrator.
getI ( intermediateStates );
USING_NAMESPACE_ACADO IntermediateState sin(const Expression &arg)
returnValue getX(DVector &xEnd) const
virtual returnValue plot(PlotFrequency _frequency=PLOT_IN_ANY_CASE)
returnValue set(OptionsName name, int value)
#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 addSubplot(PlotWindowSubplot &_subplot)
returnValue getI(VariablesGrid &I) const
Expression dot(const Expression &arg)
Implements the Runge-Kutta-45 scheme for integrating ODEs.
Provides an interface to Gnuplot for plotting algorithmic outputs.
returnValue integrate(double t0, double tend, double *x0, double *xa=0, double *p=0, double *u=0, double *w=0)
Allows to setup and evaluate differential equations (ODEs and DAEs) based on SymbolicExpressions.