Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simulators should support infinite reaction rates. #294

Open
kaizu opened this issue Sep 27, 2018 · 1 comment
Open

Simulators should support infinite reaction rates. #294

kaizu opened this issue Sep 27, 2018 · 1 comment
Assignees
Milestone

Comments

@kaizu
Copy link
Member

kaizu commented Sep 27, 2018

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 kaizu self-assigned this Sep 27, 2018
@kaizu kaizu added this to the nice to have milestone Sep 27, 2018
kaizu added a commit that referenced this issue Sep 27, 2018
kaizu added a commit that referenced this issue Sep 27, 2018
kaizu added a commit that referenced this issue Sep 27, 2018
kaizu added a commit that referenced this issue Sep 27, 2018
@kaizu
Copy link
Member Author

kaizu commented Sep 27, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant