Optimization and Modelingtoolkit

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.

Yes, use https://diffeqflux.sciml.ai/dev/ for solving inverse problems with the generated ODEProblem.

1 Like