ecell4_base icon indicating copy to clipboard operation
ecell4_base copied to clipboard

Simulators should support infinite reaction rates.

Open kaizu opened this issue 7 years ago • 1 comments

import numpy

with reaction_rules():
    A + B > C | 0.01
    C > D | numpy.inf

The second reaction must occur immediately after the first reaction.

kaizu avatar Sep 27 '18 07:09 kaizu

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.

kaizu avatar Sep 27 '18 11:09 kaizu