You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would enable the save_idxs function without knowing the order of the variables. Currently we have:
using DifferentialEquations, ModelingToolkit, Plots
@parameters t σ ρ β
@variablesx(t) y(t) z(t)
D =Differential(t)
eqs = [D(x) ~ σ * (y - x),
D(y) ~ x * (ρ - z) - y,
D(z) ~ x * y - β * z]
@named sys =ODESystem(eqs)
u0 = [x =>1.0, y =>0.0, z =>0.0]
p = [σ =>28.0, ρ =>10.0, β =>8/3]
tspan = (0.0, 10.0)
oprob =ODEProblem(sys, u0, tspan, p, jac =true)
sol =solve(oprob,save_idxs=1) # Works.
sol =solve(oprob,save_idxs=x) # Does not work.
sol =solve(oprob,save_idxs=sys.x) # Does not work.
sol =solve(oprob,save_idxs=:x) # Does not work.
The text was updated successfully, but these errors were encountered:
This would enable the
save_idxs
function without knowing the order of the variables. Currently we have:The text was updated successfully, but these errors were encountered: