-
Notifications
You must be signed in to change notification settings - Fork 1
Description
It might be useful to switch between stochastic and deterministic simulation based on the time step and molecule counts of each reaction. For example, stochastic complexation is currently finding the same output as its deterministic counterpart. This is because the time step is large, and the counts of most molecules are probably large enough. So at the current state, it would be more efficient to just use a deterministic simulation.
I would think there could be a method for determining whether a reaction should be simulated stochastically or with ODEs, and this can parse out the problem into whatever solver is needed. Ideally, the stochastic method would only be invoked when necessary.
@jmason42, you probably have the best understanding of whether this is feasible, and under what conditions such a switch could be triggered. Do you have thoughts on this?