Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom ODE Solvers in predict() #63

Open
3 tasks
shanemcq18 opened this issue Jun 13, 2024 · 0 comments
Open
3 tasks

Custom ODE Solvers in predict() #63

shanemcq18 opened this issue Jun 13, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@shanemcq18
Copy link
Member

Currently, opinf.models.ContinuousModel.predict() wraps scipy.integrate.solve_ivp(). It would be nice to be able to pass a custom time-stepper, probably as the method attribute. This is also important for certain types of models, like Hamiltonian systems, which require symplectic integrators.

  • Write an IntegratorTemplate somewhere (new opinf.integrate submodule?)
  • Update predict() so that method can be an integrator object.
  • Write a few common integrators as examples (forward/backward Euler, IMEX, etc.).

Need to think about how the integrator should interact with the list of operators or the model's rhs() method.

@shanemcq18 shanemcq18 added the enhancement New feature or request label Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant