52 const double t_end = 10.0;
56 f <<
dot(x) == -x + 0.5*x*x + u + 0.5*z;
57 f <<
dot(l) == x*x + 3.0*u*u ;
58 f << 0 == z +
exp(z) - 1.0 + x ;
63 OCP ocp( t_start, t_end, 10 );
User-interface to formulate and solve optimal control problems and static NLPs.
#define USING_NAMESPACE_ACADO
returnValue subjectTo(const DifferentialEquation &differentialEquation_)
returnValue minimizeMayerTerm(const Expression &arg)
returnValue addSubplot(PlotWindowSubplot &_subplot)
returnValue set(OptionsName name, int value)
Data class for defining optimal control problems.
Expression dot(const Expression &arg)
IntermediateState exp(const Expression &arg)
Provides an interface to Gnuplot for plotting algorithmic outputs.
virtual returnValue solve()
Allows to setup and evaluate differential equations (ODEs and DAEs) based on SymbolicExpressions.