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

Add piecewise-to-events translators #363

Open
luciansmith opened this issue Jan 19, 2024 · 1 comment
Open

Add piecewise-to-events translators #363

luciansmith opened this issue Jan 19, 2024 · 1 comment

Comments

@luciansmith
Copy link
Member

We found a model that didn't work correctly on roadrunner, since there was a piecewise equation that only changed for a window of time that wasn't checked by the CVODE algorithm. Translating the logic to events worked fine, however. It might be nice to have a translator in libsbml that would convert piecewise equations to events, something like (in Antimony)

...piecewise(x, cond1, y, cond2, z)...

changes to:

...piecewise_var1...

piecewise_var1 = z
at cond1, t0=false: piecewise_var1 = x
at cond2 && !cond1, t0=false: piecewise_var1 = y
at !cond2 && !cond1, t0=false: piecewise_var1 = z

@fbergmann
Copy link
Member

good idea, that is also what COPASI does.

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

No branches or pull requests

2 participants