-
-
Notifications
You must be signed in to change notification settings - Fork 563
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
Reformat casadi solver again #1082
Comments
From discussion this morning with @rtimms , we should look into whether the casadi solver can give information on when it fails. This would allow us to do away with |
Had a little play with this using a solution from here to capture stdout, so seems like something along these lines will work. One thing to be careful of is that you don't fall into the trap of not having enough points in |
If we manage to make this work then we should rethink the default max simulation time in the experiment when doing "until" conditions (currently 1 week, could probably be shorter by default, or based on C-rate) |
Another idea: make the rhs "rhs * switch" where "switch" is a heaviside that turns off when an event is crossed; make the algebraic "algebraic * switch + y * (1- switch)" |
This doesn't work with all events as some have a |
Another reformatting of the casadi solver is needed with
dt_max
(dt_max = 0.1 * min(timescale, t_final)
[0,1]
and rescaling time - "safe without grid" modeAnything else?
The text was updated successfully, but these errors were encountered: