45 const double g = 9.81;
46 const double b = 0.20;
53 f <<
dot( phi ) == omega;
54 f <<
dot( omega ) == -g *
sin(phi) - a *
cos(phi) - b * omega;
58 h << p << v << phi << omega << a;
59 hN << p << v << phi << omega;
73 OCP ocp(0.0, 3.0, 10);
102 exit( EXIT_FAILURE );
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)
returnValue subjectTo(const DifferentialEquation &differentialEquation_)
IntermediateState cos(const Expression &arg)
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)
A user class for auto-generation of OCP solvers.
returnValue printDimensionsQP()
Allows to setup and evaluate differential equations (ODEs and DAEs) based on SymbolicExpressions.