{
  "name": "solve_ivp methods and tolerances on the Lotka-Volterra example: cost and error",
  "description": "Eight solve_ivp configurations run on the Lotka-Volterra system from the SciPy reference (a=1.5, b=1, c=3, d=1; y0=[10,5]; t from 0 to 15; SciPy 1.18.1). Each row gives right-hand-side evaluations, Jacobian evaluations and the maximum absolute error of x and y at t=5 and t=15 against a DOP853 reference run at rtol=atol=1e-13. Compiled by running the code; the model and solver options come from the SciPy documentation.",
  "page": "https://casrai.org/guides/ode-solver-python",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-18T05:28:46Z",
  "temporalCoverage": null,
  "spatialCoverage": null,
  "columns": [
    {
      "name": "Configuration",
      "unit": "",
      "description": ""
    },
    {
      "name": "Right-hand-side evaluations (nfev)",
      "unit": "",
      "description": "sol.nfev from the OdeResult"
    },
    {
      "name": "Jacobian evaluations (njev)",
      "unit": "",
      "description": "sol.njev; 0 for explicit methods"
    },
    {
      "name": "Maximum absolute error",
      "unit": "population units",
      "description": "Largest absolute difference in x and y at t=5 and t=15 against the reference run"
    }
  ],
  "rows": [
    {
      "Configuration": "RK45 default (rtol 1e-3, atol 1e-6)",
      "Right-hand-side evaluations (nfev)": 470,
      "Jacobian evaluations (njev)": 0,
      "Maximum absolute error": 0.1367
    },
    {
      "Configuration": "RK45 rtol 1e-6, atol 1e-9",
      "Right-hand-side evaluations (nfev)": 1394,
      "Jacobian evaluations (njev)": 0,
      "Maximum absolute error": 0.00002
    },
    {
      "Configuration": "RK45 rtol 1e-8, atol 1e-10",
      "Right-hand-side evaluations (nfev)": 3056,
      "Jacobian evaluations (njev)": 0,
      "Maximum absolute error": 0
    },
    {
      "Configuration": "DOP853 default",
      "Right-hand-side evaluations (nfev)": 644,
      "Jacobian evaluations (njev)": 0,
      "Maximum absolute error": 0.00094
    },
    {
      "Configuration": "DOP853 rtol 1e-10, atol 1e-12",
      "Right-hand-side evaluations (nfev)": 3248,
      "Jacobian evaluations (njev)": 0,
      "Maximum absolute error": 0
    },
    {
      "Configuration": "LSODA default",
      "Right-hand-side evaluations (nfev)": 459,
      "Jacobian evaluations (njev)": 0,
      "Maximum absolute error": 0.0052
    },
    {
      "Configuration": "Radau default",
      "Right-hand-side evaluations (nfev)": 1076,
      "Jacobian evaluations (njev)": 30,
      "Maximum absolute error": 0.00185
    },
    {
      "Configuration": "BDF default",
      "Right-hand-side evaluations (nfev)": 639,
      "Jacobian evaluations (njev)": 10,
      "Maximum absolute error": 0.06074
    }
  ],
  "sources": [
    {
      "title": "SciPy documentation: scipy.integrate.solve_ivp",
      "url": "https://docs.scipy.org/doc/scipy/reference/generated/scipy.integrate.solve_ivp.html",
      "accessed": "2026-11-18"
    },
    {
      "title": "SciPy documentation: Integration (scipy.integrate) tutorial",
      "url": "https://docs.scipy.org/doc/scipy/tutorial/integrate.html",
      "accessed": "2026-11-18"
    }
  ]
}