ModelingToolkit & DifferentialEquations -- `save_idxs`?

Coding my own models using DifferentialEquations solvers, it is possible to specify keyword save_idxs to specify which variables are saved.

What if I write the model using MTK instead?

  • Will save_idxs only work with a list of positive integers referring to the states(sys) vector of variables? Or…
  • Is there a way to specify saving any variable, both states and observed? Or,
  • Should this be done after computing the solution?

This is being worked on. You’ll see a few open unmerged PRs in SciMLBase and ModelingToolkit.jl on it. Basically, it should be solved rather soon but it is still open.

1 Like