51 f <<
dot(x) == -p*x*x*z ;
69 double pp[2] = { 1.0, 1.0 };
79 integrator.
integrate( t0, tend, &x0, &z0, pp );
88 integrator.
getX ( differentialStates );
89 integrator.
getXA( algebraicStates );
91 differentialStates.
print(
"x" );
92 algebraicStates.
print(
"z" );
returnValue print(std::ostream &stream=std::cout, const char *const name=DEFAULT_LABEL, const char *const startString=DEFAULT_START_STRING, const char *const endString=DEFAULT_END_STRING, uint width=DEFAULT_WIDTH, uint precision=DEFAULT_PRECISION, const char *const colSeparator=DEFAULT_COL_SEPARATOR, const char *const rowSeparator=DEFAULT_ROW_SEPARATOR) const
returnValue getX(DVector &xEnd) const
Implements the backward-differentiation formula for integrating DAEs.
returnValue set(OptionsName name, int value)
#define USING_NAMESPACE_ACADO
Provides a time grid consisting of vector-valued optimization variables at each grid point...
Expression dot(const Expression &arg)
returnValue getXA(DVector &xaEnd) const
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.