juliascrub:
Side question: Whats the best way to solve non-dynamic models such as this one? Since the outputs are all the same at every time step I can just use a timespan of (0.0, 0.0) and be fine, but is there a better way?
Use a NonlinearSystem type instead. Note that in the near future we’re going to make the lowering process automatically detect this, but for now you have to specify it.
juliascrub:
Ive got a simple voltage divider system (my intended model is more complex but I figured Id start small) modeled using modelingtoolkit. What I am trying to do next is the inverse problem of taking a given set of outputs and finding the model parameters that best match those outputs (given voltages and currents, find the R’s) Is there any magic I can do with modelingtoolkit to accomplish this?
Yes, use https://diffeqflux.sciml.ai/dev/ for solving inverse problems with the generated ODEProblem.
1 Like