49 f[0] = -x + 0.5*x*x + u + 0.5*z;
50 f[1] = x*x + 3.0*u*u ;
51 f[2] = z +
exp(z) - 1.0 + x;
67 setc_is_1(0) = autotime;
75 f1 << cLinkModel_1(setc_is_1);
78 double dconstant1 = 0.0;
79 double dconstant2 = 5.0;
81 OCP ocp1(dconstant1, dconstant2, dconstant3);
89 window.
addSubplot(x(0),
"DIFFERENTIAL STATE x");
void myAcadoDifferentialEquation1(double *xx, double *f, void *user_data)
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.
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.