-
-
Notifications
You must be signed in to change notification settings - Fork 590
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
idklu solver for convert_to_casadi=True
#1863
Comments
…ll solvers have access to casadi functions
Iterative solvers only start to outperform direct solvers at relatively large matrix sizes, right? (don't know how large) |
Yes, iterative solvers can give speed benefits at the very large matrix sizes, as long as you have a decent preconditioner (i.e. a good approximation to the jacobian that you can solve easily). |
This is largely finished, see pr #2002, here is my todo list for subsequent issues:
|
Summary
The current idklu solver goes back to python whenever it needs to calculate the rhs, algebraic or event equations. It also runs very slow when using
convert_to_casadi=True
. This issue aims to develop a new idklu solver that directly calls casadi functions from C++, with ideally no memory copying to/from casadi arraysMotivation
We want to get the superior event handling capabilities of the ida solvers with efficient casadi evaluation of equations
The text was updated successfully, but these errors were encountered: