This repository contains the implementation of a general Runge-Kutta solver for differential equations for initial value problems (IVPs). This solver offers the option of transferring a control variable to the system, which is why it is suitable for control engineering applications. A specific butcher table is passed when the solver is instantiated, which is why different explicit solution variants can be implemented quickly.
The differential equation must be in the following form in order to be solved with this solver. In c++ code, for example, this can be formulated as a lambda expression.
With:
Generalized Runge-Kutta methods are represented using the following formulas:
These methods are defined using a Butcher Tableau:
The attached test code generates a similar image to the one on the Wikipedia page. https://en.wikipedia.org/wiki/Runge%E2%80%93Kutta_methods