46 const std::string& _commonHeaderName
74 const std::string &_commonHeaderName)
81 AA(0,1) = 2.0/9.0-1.0/15.0*
sqrt(15.0);
82 AA(0,2) = 5.0/36.0-1.0/30.0*
sqrt(15.0);
83 AA(1,0) = 5.0/36.0+1.0/24.0*
sqrt(15.0);
85 AA(1,2) = 5.0/36.0-1.0/24.0*
sqrt(15.0);
86 AA(2,0) = 5.0/36.0+1.0/30.0*
sqrt(15.0);
87 AA(2,1) = 2.0/9.0+1.0/15.0*
sqrt(15.0);
94 cc(0) = 1.0/2.0-
sqrt(15.0)/10.0;
96 cc(2) = 1.0/2.0+
sqrt(15.0)/10.0;
100 _eig(0,0) = 3.677814645373912; _eig(0,1) = 3.508761919567443;
101 _eig(1,0) = 4.644370709252173; _eig(1,1) = 0.0;
103 DMatrix _simplified_transf1(3,3);
104 _simplified_transf1(0,0) = -18.636486890695167; _simplified_transf1(0,1) = -15.250990917842101; _simplified_transf1(0,2) = 3.156971624093098;
105 _simplified_transf1(1,0) = -27.017033488529613; _simplified_transf1(1,1) = 7.134863930477463; _simplified_transf1(1,2) = 1.101474723408009;
106 _simplified_transf1(2,0) = 28.095293818520428; _simplified_transf1(2,1) = 5.341817943917859; _simplified_transf1(2,2) = 2.027127483041268;
108 DMatrix _simplified_transf2(3,3);
109 _simplified_transf2(0,0) = -0.077948357550038; _simplified_transf2(0,1) = -0.056982523211087; _simplified_transf2(0,2) = 0.071464556714801;
110 _simplified_transf2(1,0) = 0.050295169925554; _simplified_transf2(1,1) = 0.299699605816585; _simplified_transf2(1,2) = 0.117700617809852;
111 _simplified_transf2(2,0) = 0.947801449544836; _simplified_transf2(2,1) = 0.0; _simplified_transf2(2,2) = 0.990474321575646;
113 DMatrix _simplified_transf1_T(3,3);
114 _simplified_transf1_T(0,0) = -4.866177185043021e-01; _simplified_transf1_T(0,1) = 1.236550876742378e+00; _simplified_transf1_T(0,2) = 3.485838052042621e+00;
115 _simplified_transf1_T(1,0) = 6.393107026830797e-02; _simplified_transf1_T(1,1) = 9.257658225120670e-01; _simplified_transf1_T(1,2) = -3.325609633473744e+00;
116 _simplified_transf1_T(2,0) = 3.319078939559111e-01; _simplified_transf1_T(2,1) = 5.466453018169597e-01; _simplified_transf1_T(2,2) = 4.600129927392348e+00;
118 DMatrix _simplified_transf2_T(3,3);
119 _simplified_transf2_T(0,0) = -6.321680651380311e+00; _simplified_transf2_T(0,1) = -1.314846346969297e+00; _simplified_transf2_T(0,2) = 6.049321980812397e+00;
120 _simplified_transf2_T(1,0) = -1.201954582051780e+00; _simplified_transf2_T(1,1) = 3.086679860636697e+00; _simplified_transf2_T(1,2) = 1.150170448985970e+00;
121 _simplified_transf2_T(2,0) = 5.989523296137209e-01; _simplified_transf2_T(2,1) = -2.719295284863776e-01; _simplified_transf2_T(2,2) = 4.364697845938469e-01;
125 double _single_tau = 0.202740066519113;
127 _lower_triang(0) = 1.291180015430378; _lower_triang(1) = -1.430998974529736; _lower_triang(2) = 2.108070244672127;
130 _single_transf1(0,0) = 1.000000000000000; _single_transf1(0,1) = 0.358037439038676; _single_transf1(0,2) = -0.031545235223924;
131 _single_transf1(1,0) = -1.291180015430378; _single_transf1(1,1) = 0.537709213937389; _single_transf1(1,2) = 0.059994748344832;
132 _single_transf1(2,0) = 1.430998974529736; _single_transf1(2,1) = -1.595719036564529; _single_transf1(2,2) = 0.914248574982086;
135 _single_transf2(0,0) = 1.0; _single_transf2(0,1) = -0.358037439038676; _single_transf2(0,2) = 0.038442529688880;
136 _single_transf2(1,0) = 0.0; _single_transf2(1,1) = 1.0; _single_transf2(1,2) = -0.019264171041652;
137 _single_transf2(2,0) = 0.0; _single_transf2(2,1) = 0.0; _single_transf2(2,2) = 1.0;
139 DMatrix _single_transf1_T(3,3);
140 _single_transf1_T(0,0) = 1.517302006625726e+00; _single_transf1_T(0,1) = -1.318747024436147e+00; _single_transf1_T(0,2) = 1.430998974529736e+00;
141 _single_transf1_T(1,0) = -4.390769920057278e-01; _single_transf1_T(1,1) = 1.040610225761180e+00; _single_transf1_T(1,2) = -2.108070244672127e+00;
142 _single_transf1_T(2,0) = 3.844252968887955e-02; _single_transf1_T(2,1) = -1.926417104165177e-02; _single_transf1_T(2,2) = 1.000000000000000e+00;
144 DMatrix _single_transf2_T(3,3);
145 _single_transf2_T(0,0) = 1.0; _single_transf2_T(0,1) = 0.0; _single_transf2_T(0,2) = 0.0;
146 _single_transf2_T(1,0) = 3.580374390386760e-01; _single_transf2_T(1,1) = 1.0; _single_transf2_T(1,2) = 0.0;
147 _single_transf2_T(2,0) = -3.154523522392352e-02; _single_transf2_T(2,1) = 1.926417104165177e-02; _single_transf2_T(2,2) = 1.0;
156 integrator->
setSingleTransformations(_single_tau, _lower_triang, _single_transf1, _single_transf2, _single_transf1_T, _single_transf2_T);
IntermediateState sqrt(const Expression &arg)
returnValue setSimplifiedTransformations(const DMatrix &_transf1, const DMatrix &_transf2)
#define CLOSE_NAMESPACE_ACADO
returnValue setSingleTransformations(const double _tau, const DVector &_low_tria, const DMatrix &_transf1, const DMatrix &_transf2)
GaussLegendre6Export(UserInteraction *_userInteraction=0, const std::string &_commonHeaderName="")
virtual returnValue copy(const ImplicitRungeKuttaExport &arg)
Allows to export a tailored implicit Runge-Kutta integrator for fast model predictive control...
virtual ~GaussLegendre6Export()
Encapsulates all user interaction for setting options, logging data and plotting results.
returnValue initializeButcherTableau(const DMatrix &_AA, const DVector &_bb, const DVector &_cc)
Allows to export a tailored integrator for fast model predictive control.
returnValue setEigenvalues(const DMatrix &_eig)
#define BEGIN_NAMESPACE_ACADO
Allows to export a tailored Gauss-Legendre method of order 6 for fast model predictive control...
virtual returnValue clear()
IntegratorExport * createGaussLegendre6Export(UserInteraction *_userInteraction, const std::string &_commonHeaderName)