ukhsa-collaboration / pygom

ODE modelling in Python
GNU General Public License v2.0
27 stars 20 forks source link

Copy transitions within the stochastic framework #48

Open hareball90 opened 4 years ago

hareball90 commented 4 years ago

To keep track of cumulative numbers of infections, say, it would be useful to be able to couple up the disease transition (TransitionType.T) with a cumulative counter (TransitionType.B), so that equations dealing with the same symbolic flows (rate*state) use the same values in the stochastic framework. Currently they are treated as independent stochastic processes (which is what they've been set up to be).

twomagpi commented 4 years ago

Perhaps this couold be handled via a liked transition type?

The internal mechanics might be a little more complex and need bookeeping the steps.