Jamesflynn1 / pyRBM

A Python framework to build and simulate stochastic rules-based models.
GNU General Public License v3.0
3 stars 0 forks source link

[FEATURE] Add "analyse" feature to norules_behaviour #51

Open Jamesflynn1 opened 1 month ago

Jamesflynn1 commented 1 month ago

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.