varmap_to_vars output and MTKParameters in ODEProblem
are Different
#2525
Labels
bug
Something isn't working
ODEProblem
are Different
#2525
Using
varmap_to_vars
to get the lowered array does not seem to return the same ordering asMTKParameters
within anODEProblem
.Here it just seems to have moved x0 to the head of the parameter vector, but I have seen it much more "jumbled" in a more complicated model.
I found this when I tried to use
ModelingToolkit.get_u0_p
to generate newu0
andp
vectors to use inremake
becauseremake
does not currently seem to updateu0
parametrically based onp
.Again, the value for
x0
is not in the same position as in theMTKParameters
vector.Environment info
The text was updated successfully, but these errors were encountered: