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
It would be nice if the Jacobian treated the parameters the same way as parameters(sys) does. If that is not possible then having a function that returns the parameters in their split structure would help.
Thank you!!
The text was updated successfully, but these errors were encountered:
Creating an ODEProblem from the system and using prob.p gets the parameters in their split form, jac(unknowns(sys), prob.p, t), does this work for your workflow?
EDIT: constructing a MTKParameters(sys, p) also works and is probably preferable to the ODEProblem
Thank you very much! MTKParameters solved it also in my workflow!
Just a note: calculate_jacobian(sys) decreases performance since we need to update parameter values on runtime. This is why we need to use generate_jacobian.
🐞: Setting
split=true
breaks the call of a runtime generated Jacobian:Minimal Reproducible Example 👇
Error & Stacktrace⚠️
Maybe relevant to note that with
split=false
the generated Jacobian has 3 parameters:whereas with
split=true
it has 4:It would be nice if the Jacobian treated the parameters the same way as
parameters(sys)
does. If that is not possible then having a function that returns the parameters in their split structure would help.Thank you!!
The text was updated successfully, but these errors were encountered: