52 f <<
dot(x) == -x +
sin(0.01*t);
66 double x_start[1] = { 1.0 };
69 double t_end = 1000.0;
76 integrator.
integrate( t_start, t_end, x_start );
85 integrator.
getX( differentialStates );
87 differentialStates.
print(
"x" );
USING_NAMESPACE_ACADO IntermediateState sin(const Expression &arg)
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)
virtual returnValue printRunTimeProfile() 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.