hy,
I want to extract the numerical differential equations from a model I built with ModelingToolkit. For example:
@mtkbuild dgl = System(vcat(eqs_1, eq2), t)
Define problem
prob = ODEProblem(dgl, bcs, tspan)
Now I would like to obtain the explicit ODE form with numerical parameter values substituted, e.g.
dx˙= = 2x + 4x^2
Is there a way to do this in ModelingToolkit (i.e., to print or export the ODEs with parameters replaced by their numeric values)?
Thanks a lot in advance.
Andreas