53 const double t_end = 1.0;
59 f << -
dot(x) -x*x + p + u*u + w;
64 OCP ocp( t_start, t_end, 20 );
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)
Data class for defining optimal control problems.
Expression dot(const Expression &arg)
virtual returnValue solve()
Allows to setup and evaluate differential equations (ODEs and DAEs) based on SymbolicExpressions.