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

Add Automatic Differentiation for ODE solvers #29

Open
jespfra opened this issue Mar 8, 2024 · 0 comments
Open

Add Automatic Differentiation for ODE solvers #29

jespfra opened this issue Mar 8, 2024 · 0 comments
Labels

Comments

@jespfra
Copy link
Collaborator

jespfra commented Mar 8, 2024

In Julia, you can use automatic Differentiation for the ODE solvers. However, this is so far not possible in this code. The reason is that the code has matrix products with the state. There is a work around that, see (https://docs.sciml.ai/DiffEqDocs/stable/basics/faq/#I-get-Dual-number-errors-when-I-solve-my-ODE-with-Rosenbrock-or-SDIRK-methods). However, this requires changing a fair bit of code. Also, you cannot do that with sub-arrays i.e., x[idx]. Hence, it is not prioritized at the moment. It it however stated that the performance decrease for using finite difference is small for BDF solvers which is used in the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants