39 void mexFunction(
int nlhs, mxArray *plhs[],
int nrhs,
const mxArray *prhs[] )
50 f <<
dot(x) == -x +
sin(0.01*t);
61 double x_start[1] = { 1.0 };
64 double t_end = 1000.0;
75 integrator.
integrate( t_start, t_end, x_start );
USING_NAMESPACE_ACADO IntermediateState sin(const Expression &arg)
Implements the backward-differentiation formula for integrating DAEs.
returnValue set(OptionsName name, int value)
virtual returnValue freezeAll()
#define USING_NAMESPACE_ACADO
Expression dot(const Expression &arg)
returnValue clearAllStaticCounters()
USING_NAMESPACE_ACADO void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
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.