RKF45 (Fehlberg)¶
- class pathsim.solvers.rkf45.RKF45(*solver_args, **solver_kwargs)[source]¶
Bases:
ExplicitRungeKuttaRunge-Kutta-Fehlberg 4(5) pair. Six stages, 4th order propagation with 5th order error estimate.
The historically first widely-used embedded pair for automatic step-size control. The 4th order solution is propagated; the difference to the 5th order solution provides a local error estimate.
Characteristics¶
Order: 4 (propagating) / 5 (error estimate)
Stages: 6
Explicit, adaptive timestep
Note
Largely superseded by the Dormand-Prince (
RKDP54) and Cash-Karp (RKCK54) pairs, which achieve better accuracy per function evaluation on most problems. Still useful for reproducing legacy results or when comparing against published benchmarks that used RKF45.References