Expand description
Solvers for stiff systems of ordinary differential equations y' = f(t, y).
Stiff problems mix fast decaying and slow modes; explicit methods must then take steps set by the fastest mode even after it has died out. Both solvers here are implicit (linearly or fully), so their step is limited by accuracy alone:
rosenbrock23: the L-stable Rosenbrock (linearly implicit) pair of Shampine and Reichelt (MATLAB’sode23s): one LU factorisation and three solves per step, order 2 with an order 3 error estimate. Robust at loose tolerances.bdf: variable-step, variable-coefficient backward differentiation formulas of order up to 5 with Newton iteration, ramping the order up from 1 as history accumulates. More efficient at tight tolerances.
The Jacobian ∂f/∂y may be supplied; otherwise it is formed by forward differences.
See the book entry Stiff ODE solvers.
Structs§
- OdeOptions
- Tolerances and limits shared by the ODE solvers (stiff and non-stiff). Each step must keep
every component’s local error below
absolute_tolerance + relative_tolerance · |yᵢ|. - OdeSolution
- The accepted steps of a solve.
Functions§
- bdf
- Solves
y' = f(t, y)from(t0, y0)tot1with variable-step BDF formulas of order up tomax_order(1 to 5). Orders 1 and 2 are A-stable; higher orders are more efficient at tight tolerances but only stable in a wedge about the negative real axis (fine for dissipative problems, less so for lightly damped oscillations). The local error is estimated from the difference between the Newton-corrected solution and the polynomial predictor. - rosenbrock23
- Solves
y' = f(t, y)from(t0, y0)tot1with the Rosenbrock 2(3) pair ofode23s.∂f/∂tis estimated by a forward difference.
Type Aliases§
- Stiff
OdeOptions - The former name of
OdeOptions.