From 36eef0b0d220c69c29f6bda3ccbff1b1304cd81a Mon Sep 17 00:00:00 2001 From: Vincent Du <54586336+vyudu@users.noreply.github.com> Date: Fri, 8 Nov 2024 08:57:45 -0500 Subject: [PATCH] Update docs/src/model_simulation/ode_simulation_performance.md Co-authored-by: Sam Isaacson --- docs/src/model_simulation/ode_simulation_performance.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/model_simulation/ode_simulation_performance.md b/docs/src/model_simulation/ode_simulation_performance.md index 1eb6285db9..b74278a89d 100644 --- a/docs/src/model_simulation/ode_simulation_performance.md +++ b/docs/src/model_simulation/ode_simulation_performance.md @@ -190,7 +190,7 @@ end u0 = [:X₁ => 2.0, :X₂ => 3.0] ps = [:k₁ => 1.0, :k₂ => 2.0] oprob = ODEProblem(rs, u0, (0.0, 10.0), ps; remove_conserved = true) -sol = solve(oprob, Tsit5()) +sol = solve(oprob) nothing # hide ``` Conservation law elimination is not expected to ever impact performance negatively; it simply results in a (possibly) lower-dimensional system of ODEs to solve. However, eliminating conserved species may have minimal performance benefits; it is model-dependent whether elimination results in faster ODE solving times and/or increased solution accuracy.