-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Is your feature request related to a problem? Please describe.
I want to know if there is a rule that might have non-zero propensity to determine whether or not to end a simulation early.
Additionally, with an event queue, we could search this queue for the next time that a rule has a non-zero propensity.
Describe the solution you'd like
Work left:
I want a partial evaluation function added to the simulation Rule class. If the function evaluates to zero (rather than the value of a model variable) on the basis of current compartment values (i.e. not evaluating model variables as a number) for every compartment, then we end, otherwise we skip.
Describe alternatives you've considered
The skip/end setting works - but could be wasteful.We could be performing many wasted iterations that are not required.
Additional context
Add any other context or screenshots about the feature request here.