34 const double k10 = 1.287e12;
35 const double k20 = 1.287e12;
36 const double k30 = 9.043e09;
37 const double E1 = -9758.3;
38 const double E2 = -9758.3;
39 const double E3 = -8560.0;
40 const double H1 = 4.2;
41 const double H2 = -11.0;
42 const double H3 = -41.85;
43 const double rho = 0.9342;
44 const double Cp = 3.01;
45 const double kw = 4032.0;
46 const double AR = 0.215;
47 const double VR = 10.0;
48 const double mK = 5.0;
49 const double CPK = 2.0;
51 const double cA0 = 5.1;
54 const double FFs = 14.19;
57 const double cAs = 2.1402105301746182e00;
58 const double cBs = 1.0903043613077321e00;
59 const double thetas = 1.1419108442079495e02;
60 const double thetaKs = 1.1290659291045561e02;
66 const double P11 = 3278.78;
67 const double P21 = 1677.31;
68 const double P31 = 681.02;
69 const double P41 = 271.50;
71 const double P12 = 1677.31;
72 const double P22 = 919.78;
73 const double P32 = 344.19;
74 const double P42 = 137.27;
76 const double P13 = 681.02;
77 const double P23 = 344.19;
78 const double P33 = 172.45;
79 const double P43 = 65.53;
81 const double P14 = 271.50;
82 const double P24 = 137.27;
83 const double P34 = 65.53;
84 const double P44 = 29.28;
114 h << cA << cB << theta << thetaK << u;
115 hN << cA << cB << theta << thetaK;
120 W(0, 0) = WN(0, 0) = 0.2;
121 W(1, 1) = WN(1, 1) = 1.0;
122 W(2, 2) = WN(2, 2) = 0.5;
123 W(3, 3) = WN(3, 3) = 0.2;
131 OCP ocp(0.0, 1500.0, 10);
157 exit( EXIT_FAILURE );
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_)
const double TIMEUNITS_PER_HOUR
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()
IntermediateState exp(const Expression &arg)
Allows to setup and evaluate differential equations (ODEs and DAEs) based on SymbolicExpressions.