46 const std::string& _commonHeaderName
74 const std::string &_commonHeaderName)
76 const double alpha = 1.137158042603258;
82 AA(0,0) = (1.0+alpha)/2.0;
AA(0,1) = 0.0;
AA(0,2) = 0.0;
83 AA(1,0) = -alpha/2.0;
AA(1,1) = (1.0+alpha)/2.0;
AA(1,2) = 0.0;
84 AA(2,0) = 1.0+alpha;
AA(2,1) = -(1.0+2.0*alpha);
AA(2,2) = (1.0+alpha)/2.0;
86 bb(0) = 1.0/(6.0*alpha*alpha);
87 bb(1) = 1.0-1.0/(3.0*alpha*alpha);
88 bb(2) = 1.0/(6.0*alpha*alpha);
90 cc(0) = (1.0+alpha)/2.0;
92 cc(2) = (1.0-alpha)/2.0;
DiagonallyImplicitRKExport * createDiagonallyImplicitRKExport(UserInteraction *_userInteraction, const std::string &_commonHeaderName)
IntegratorExport * createDiagonallyIRK4Export(UserInteraction *_userInteraction, const std::string &_commonHeaderName)
Allows to export a tailored diagonally implicit 3-stage Runge-Kutta method of order 4 for fast model ...
#define CLOSE_NAMESPACE_ACADO
virtual returnValue copy(const ImplicitRungeKuttaExport &arg)
virtual ~DiagonallyIRK4Export()
DiagonallyIRK4Export(UserInteraction *_userInteraction=0, const std::string &_commonHeaderName="")
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.
#define BEGIN_NAMESPACE_ACADO
virtual returnValue clear()
Allows to export a tailored diagonally implicit Runge-Kutta integrator for fast model predictive cont...