66 hw = h_hw + A_hw*
sin(2*
M_PI*t/T_hw);
69 f <<
dot(v) == rho*A*(hw-h)/m - g - u;
76 const double t_end = 15;
78 OCP ocp( t_start, t_end, 100 );
USING_NAMESPACE_ACADO IntermediateState sin(const Expression &arg)
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)
Data class for defining optimal control problems.
Expression dot(const Expression &arg)
returnValue maximizeMayerTerm(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.