-
Notifications
You must be signed in to change notification settings - Fork 25
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
Delay differential equation with constant delay #303
Comments
You're right it would be nice to have but how would one handle events? Herbert |
For delay differential equations, you either have to keep track of what X's
values were N seconds ago, or be able to calculate them. I think a typical
way to do this is to just store the values you need to know about as you
calculate them, so you can look up what they used to be when you need to.
Another possibility (for constant delay) is to parallelly simulate a
N-second delayed version of the model, that the first model can look at
when it needs to. In the case of stochasticity, both obviously need to be
seeded with the same value.
In both cases, events fall out as part of the normal course of things: if
you're recording what values X had in the past, any event that affected X
is simply recorded. If you have a parallel N-second delayed version of the
model, that model will also have events in it that will proceed normally.
…-Lucian
|
I think we need to nail down the requirements more. In the thread that Matthias linked, there's a split among people who think SUNDIALS is "good enough" and people who think you should use a dedicated DDE solver. Whether you can get away with using SUNDIALS (coupled with N-second delay memory) or not depends on several factors:
|
constant delays: yes accuracy: yes important (but interpolation between data points is In my opinion the simple interpolation method is sufficient for all I want |
Hi all, I have to work/encode some models related to the insulin/glucose regulatory system and would love to do this in SBML + roadrunner. Most of the existing minimal models contain one/multiple constant delays in the model equations (mainly to account for the delayed suppression of hepatic glucose production via insulin). With the support of constant delays I could encode everything in SBML, otherwise I have to start using the Matlab DDE solvers without SBML. An example model is attached below.
Currently roadrunner just plots the incorrect results without any warnings about the delays in the model, i.e. just ignoring the delay. Being able to simulate constant delays with roadrunner would help a lot. |
At the moment no, I'm waiting on further grant support to do major |
For the record: Matthias's linked thread is dead, but survives at archive.org: |
Also for the record: Still very interested in running such models. |
I’d be interested in having a pop at implementing such a feature. |
Hi all,
in the near future I will work a lot with PKPD models, mainly in the context of coupling cellular/tissue/organ models with whole-body models. A first review of existing models showed that most of them have at least one/two delayed differential equations (constant delays). It would be amazing if this could be handled in roadrunner.
A simple example model can be found in the SBML specification L3V1 (7-10).
The implementation of the constant delay should be not to complicated in cvode
http://sundials.2283335.n4.nabble.com/Implementing-ODE-s-with-delay-td3240846.html
I opened a discussion on libsbml
https://groups.google.com/forum/#!topic/libsbml-development/v13NATE1gVQ
It could also be interesting to extend sbml2matlab to export the delay equations for dde23 to have at least a way to simulate such models right now.
Matthias
The text was updated successfully, but these errors were encountered: