Open m-d-grunnill opened 2 years ago
Yes need to seriously revisit how time dependent processes are done. It is too complex for deterministic models and (probably) impossible for stochastic ones. @j-c-gibson I think you had some ideas on this?
Hopefully there is a solution which doesn't require us to define the dummy state for time. In the worst case, we can at least do this behind the scenes so that the end user doesn't have to.
The issue of time evolving stochastically is tough. In fact, I don't think there is any way for PyGOM to currently mix stochastically and deterministically evolving variables.
Also, we might wish to make a distinction between states (which are reserved for populations) and variables. Otherwise, defining time as a state is a bit tricky conceptually.
I am trying to think of how you would stochastically simulate a model with a periodic term within pygom. The common_models module intialisis a determiistic SIS model with periodic transmision in the following way.
From this example I would intialise a stochastic version of this model in the following way:
The issue is that this would stochisticise time if the model.simulate_jump() method was called.