-
-
Notifications
You must be signed in to change notification settings - Fork 564
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
Casadi extrapolate warning/error #976
Comments
It's not possible to do this directly as we don't have control over the casadi objects. |
You mean an event in the solver? |
Yes, events are stored in the model then used by the solver |
Can you create a branch and add a test where it fails? |
Looking into this issue at the moment and trying to recall what we discussed. The issue is that the Casadi interpolant throws NaNs when it extrapolates (side note here: the default interpolant behaviour is to extrapolate, is Casadi ignoring it or is it taking Adding events would be an easy fix (we then would know which interpolant broke and on which limit). But what do we want to do then? Stop the simulation and just tell the user that this was the issue? Throw an error? Throw a warning? |
When Casadi extrapolates you get errors like
which are hard to trace back to the interpolant. It would be useful to throw a warning/error when this happens which is more insightful.
The text was updated successfully, but these errors were encountered: