You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For all Piecewise or Boolean expressions we create root functions to stop at the discontinuities.
Currently, their initial value is incorrectly set to true, leading to incorrect simulation results if a piecewise condition is already true at $t_0$.
The text was updated successfully, but these errors were encountered:
ts [0.1.2.]
ge0 [1.1.1.] # okge1 [0.1.1.] # okgt0 [0.0.0.] # INCORRECT! should be [0. 1. 1.] or at least [1. 1. 1.] until there is a solution to https://github.com/AMICI-dev/AMICI/issues/2707gt1 [0.1.1.] # should be [0. 0. 1.] -> https://github.com/AMICI-dev/AMICI/issues/2707
(The test case added in #2725 can also easily be updated to trigger this issue.)
I thought starting in a root would throw an error. Probably the best way to handle this is start the simulation at 0+eps, but that will make it difficult to make ge0 work at the same time.
In all honesty, I don’t think there is a good way of making this stuff work in general. It might be the better approach to throw informative errors/warnings.
For all Piecewise or Boolean expressions we create root functions to stop at the discontinuities.$t_0$ .
Currently, their initial value is incorrectly set to
true
, leading to incorrect simulation results if a piecewise condition is already true atThe text was updated successfully, but these errors were encountered: