Implements the Runge-Kutta-12 scheme for integrating ODEs. More...
#include <integrator_runge_kutta12.hpp>
Protected Member Functions | |
virtual void | initializeButcherTableau () |
Protected Member Functions inherited from IntegratorRK | |
void | allocateMemory () |
void | constructAll (const IntegratorRK &arg) |
void | deleteAll () |
double | determineEta45 () |
double | determineEta45 (int number) |
void | determineEtaGForward (int number) |
void | determineEtaGForward2 (int number) |
void | determineEtaHBackward (int number) |
void | determineEtaHBackward2 (int number) |
virtual returnValue | evaluate (const DVector &x0, const DVector &xa, const DVector &p, const DVector &u, const DVector &w, const Grid &t_) |
virtual returnValue | evaluateSensitivities () |
virtual int | getDim () const |
virtual returnValue | getProtectedBackwardSensitivities (DVector &Dx_x0, DVector &Dx_p, DVector &Dx_u, DVector &Dx_w, int order) const |
virtual returnValue | getProtectedForwardSensitivities (DMatrix *Dx, int order) const |
virtual returnValue | getProtectedX (DVector *xEnd) const |
void | initializeVariables () |
void | interpolate (int jj, double *e1, double *d1, double *e2, VariablesGrid &poly) |
void | logCurrentIntegratorStep (const DVector ¤tX=emptyConstVector) |
void | printIntermediateResults () |
virtual returnValue | setBackwardSeed2 (const DVector &seed) |
returnValue | setForwardSeed2 (const DVector &xSeed, const DVector &pSeed, const DVector &uSeed, const DVector &wSeed) |
virtual returnValue | setProtectedBackwardSeed (const DVector &seed, const int &order) |
virtual returnValue | setProtectedForwardSeed (const DVector &xSeed, const DVector &pSeed, const DVector &uSeed, const DVector &wSeed, const int &order) |
Protected Member Functions inherited from Integrator | |
virtual returnValue | diffTransitionBackward (DVector &DX, DVector &DP, DVector &DU, DVector &DW, int &order) |
virtual returnValue | diffTransitionForward (DVector &DX, const DVector &DP, const DVector &DU, const DVector &DW, const int &order) |
virtual returnValue | evaluateTransition (const double time, DVector &xd, const DVector &xa, const DVector &p, const DVector &u, const DVector &w) |
virtual int | getDimX () const |
void | initializeOptions () |
virtual returnValue | setupLogging () |
virtual returnValue | setupOptions () |
Implements the Runge-Kutta-12 scheme for integrating ODEs.
The class IntegratorRK12 implements the Runge-Kutta-12 scheme for integrating ordinary differential equations (ODEs).
Definition at line 54 of file integrator_runge_kutta12.hpp.
BEGIN_NAMESPACE_ACADO IntegratorRK12::IntegratorRK12 | ( | ) |
Default constructor.
Definition at line 52 of file integrator_runge_kutta12.cpp.
IntegratorRK12::IntegratorRK12 | ( | const DifferentialEquation & | rhs_ | ) |
Default constructor.
Definition at line 58 of file integrator_runge_kutta12.cpp.
IntegratorRK12::IntegratorRK12 | ( | const IntegratorRK12 & | arg | ) |
Copy constructor (deep copy).
Definition at line 64 of file integrator_runge_kutta12.cpp.
|
virtual |
Destructor.
Definition at line 67 of file integrator_runge_kutta12.cpp.
|
virtual |
The (virtual) copy constructor
Implements IntegratorRK.
Reimplemented in IntegratorDiscretizedODE.
Definition at line 79 of file integrator_runge_kutta12.cpp.
|
virtual |
The initialization routine which takes the right-hand side of
the differential equation to be integrated.
rhs | the right-hand side of the ODE/DAE. |
Reimplemented from IntegratorRK.
Reimplemented in IntegratorDiscretizedODE.
Definition at line 86 of file integrator_runge_kutta12.cpp.
|
protectedvirtual |
This routine initializes the coefficients of the Butcher Tableau.
Implements IntegratorRK.
Definition at line 100 of file integrator_runge_kutta12.cpp.
|
virtual |
Assignment operator (deep copy).
Definition at line 70 of file integrator_runge_kutta12.cpp.
|
virtual |
Executes the next single step. This function can be used to
call the integrator step wise. Note that this function is e.g.
useful in real-time simulations where after each step a time
out limit has to be checked. This function will usually return
number | the step number |
Reimplemented from IntegratorRK.
Reimplemented in IntegratorDiscretizedODE.
Definition at line 93 of file integrator_runge_kutta12.cpp.