How-to guides
Choose a solver
Updated 3 November 2026 · 2 min read
The solver is what turns your model’s rates into its stocks over time. There are nine, and for most models the default, Ode45, is right. This page is for the models where it isn’t.
Where to choose it#
In the side panel, Simulation tab, under Simulation Settings. The list is in two groups, non-stiff and stiff, with a line under it saying what the one you picked is for.
- 1The solver.
- 2What it is for.
- 3How many points the run reported, and how long the round trip took.
What changes when you change it#
Every solver adjusts its own step size as it goes, to keep its error below one part in a hundred million of each value. So a different solver doesn’t give you a rougher or finer answer. It gives you the same answer faster or slower, and on some models it is the difference between an answer and a timeout.
| Solver | Kind | Use it when |
|---|---|---|
| Ode45 | Order 4(5), Dormand–Prince | Almost always. Start here |
| Ode23 | Order 2(3), Bogacki–Shampine | The model is simple and you want cheap steps |
| Ode56, Ode67, Ode78, Ode89 | Higher order | The model is smooth and runs a long time; higher order takes fewer, longer steps |
| Ode32s, Ode43s | Stiff | Something fast and something slow share the model |
| Ode85s | Stiff, high order | A very stiff model at tight accuracy |
How to tell a model is stiff#
A model is stiff when one part of it settles thousands of times faster than another: a chemical reaction beside a slow build-up, a tank that equalises in seconds in a model that runs for years, a drug absorbed in minutes and cleared over weeks. A non-stiff solver has to take steps short enough for the fastest part even when the fastest part has long since settled, so it takes millions of tiny steps.
The signs are a run that is slow for its size, or one that stops at the 30-second limit. Switch to Ode43s and run again. If it is suddenly fast, the model was stiff. Stiff models explains why this works.
See also
- SolversThe nine ODE solvers, what each is for, and the accuracy they hold.
- Stiff modelsWhen something fast and something slow share a model, and what that does to a solver.
- Simulation settingsStart, end, time unit and solver, and how results are reported.
- LimitsHow long a run may take, how often you may run, and other bounds.