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.

  1. 1The solver.
  2. 2What it is for.
  3. 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.

SolverKindUse it when
Ode45Order 4(5), Dormand–PrinceAlmost always. Start here
Ode23Order 2(3), Bogacki–ShampineThe model is simple and you want cheap steps
Ode56, Ode67, Ode78, Ode89Higher orderThe model is smooth and runs a long time; higher order takes fewer, longer steps
Ode32s, Ode43sStiffSomething fast and something slow share the model
Ode85sStiff, high orderA 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.