41 void ffcn_model(
double *xx,
double *f,
void *user_data ){
49 f[1] = q*q - z*z + 0.1*x;
84 f << simpledaeModel(is);
98 double pp[2] = { 1.0, 1.0 };
100 Grid interval( 0.0, 1.0, 100 );
105 integrator.
integrate( interval, &x0, &z0, pp );
111 integrator.
getX ( differentialStates );
112 integrator.
getXA( algebraicStates );
113 integrator.
getI ( intermediateStates );
returnValue getX(DVector &xEnd) const
virtual returnValue plot(PlotFrequency _frequency=PLOT_IN_ANY_CASE)
Implements the backward-differentiation formula for integrating DAEs.
#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
returnValue getXA(DVector &xaEnd) const
void ffcn_model(double *xx, double *f, void *user_data)
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.