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
Thanks. This issue might take a bit to solve. It's rather difficult because on the DiffEq end it doesn't know about systems and these maps. A lot of #340 is necessary to fix this.
Thanks! This workaround worked (though there was an error in your suggestion - one needs parameters and not states); for reference, the end of the code is now:
using ModelingToolkit: varmap_to_vars
init_prob =ODEProblem(sys,u0,(0.0,tmax),[β=>0.05, c=>10.0, γ=>0.2])
pnew =varmap_to_vars([β=>beta, c=>10.0, γ=>gamma],parameters(sys))
prob =remake(init_prob,p=pnew)
sol =solve(prob,alg,saveat=δt)
Activity
ChrisRackauckas commentedon Jun 22, 2020
Thanks. This issue might take a bit to solve. It's rather difficult because on the DiffEq end it doesn't know about systems and these maps. A lot of #340 is necessary to fix this.
sdwfrost commentedon Jun 22, 2020
As a workaround for now, is there a way to compile the system into a nonsymbolic form that can be remade?
ChrisRackauckas commentedon Jun 23, 2020
ModelingToolkit.varmap_to_vars([β=>beta, c=>10.0, γ=>gamma],states(sys))sdwfrost commentedon Jun 24, 2020
Thanks! This workaround worked (though there was an error in your suggestion - one needs
parametersand notstates); for reference, the end of the code is now:ChrisRackauckas commentedon Mar 11, 2021
Remove from FAQ when fixed.
ChrisRackauckas commentedon Feb 23, 2024
remakewas made to work with this.