54 const double t_end = 1.0;
70 f <<
dot(x) == -(A*x) + B*u;
77 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)
returnValue addSubplot(PlotWindowSubplot &_subplot)
returnValue set(OptionsName name, int value)
Data class for defining optimal control problems.
Expression dot(const Expression &arg)
virtual returnValue read(std::istream &_stream)
Expression transpose() const
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.
virtual returnValue read(std::istream &stream)