ecell4_base
ecell4_base copied to clipboard
Simulators should support infinite reaction rates.
import numpy
with reaction_rules():
A + B > C | 0.01
C > D | numpy.inf
The second reaction must occur immediately after the first reaction.
It is hard to support an infinite rate in ode. egfrd seems supporting it already, but not correctly working with multiple reactions with infinite rates.
with reaction_rules():
A + B > C | 0.01
C > D | numpy.inf
C > E | numpy.inf
gillespie and meso work well even in the case now.