44 const double g = 9.81;
45 const double b = 0.20;
52 f <<
dot( phi ) == omega;
53 f <<
dot( omega ) == -g *
sin(phi) - a *
cos(phi) - b * omega;
66 OCP ocp(0.0, 3.0, 10);
70 ocp.minimizeLSQ(W, h);
71 ocp.minimizeLSQEndTerm(WN, hN);
USING_NAMESPACE_ACADO IntermediateState sin(const Expression &arg)
Allows to setup and evaluate a general function based on SymbolicExpressions.
#define USING_NAMESPACE_ACADO
virtual returnValue exportCode(const std::string &dirName, const std::string &_realString="real_t", const std::string &_intString="int", int _precision=16)
IntermediateState cos(const Expression &arg)
returnValue set(OptionsName name, int value)
Data class for defining optimal control problems.
Expression dot(const Expression &arg)
A user class for auto-generation of OCP solvers.
returnValue printDimensionsQP()
Allows to setup and evaluate differential equations (ODEs and DAEs) based on SymbolicExpressions.