53 const double t_end = 10.0;
59 f <<
dot(x) == -x + 0.9*x*x + u;
62 for( i = 0; i <
N; i++ )
63 f <<
dot(
y(i) ) == -
y(i) + 0.5*
y(i)*
y(i) + u;
86 OCP ocp( t_start, t_end, 5 );
94 for( i = 0; i <
N; i++ )
Allows to setup and evaluate a general function based on SymbolicExpressions.
User-interface to formulate and solve optimal control problems and static NLPs.
#define USING_NAMESPACE_ACADO
returnValue subjectTo(const DifferentialEquation &differentialEquation_)
returnValue addSubplot(PlotWindowSubplot &_subplot)
returnValue set(OptionsName name, int value)
returnValue minimizeLSQ(const DMatrix &S, const Function &h, const DVector &r)
returnValue minimizeLSQEndTerm(const DMatrix &S, const Function &m, const DVector &r)
Data class for defining optimal control problems.
Expression dot(const Expression &arg)
void setAll(const T &_value)
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.