Skip to content

Commit

Permalink
Update docs/src/model_simulation/ode_simulation_performance.md
Browse files Browse the repository at this point in the history
Co-authored-by: Sam Isaacson <[email protected]>
  • Loading branch information
vyudu and isaacsas authored Nov 8, 2024
1 parent 999d34e commit 36eef0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/model_simulation/ode_simulation_performance.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 36eef0b

Please sign in to comment.