Hi,
I wonder if there is anyway to define a lag time in the differential equations? Thanks.
Jun
Posted 16 November 2010 - 10:36 PM
Posted 17 November 2010 - 03:50 PM
Jun,
In ASCII code, lag time in DE were handled in the form of "if, then" statements relating the time variable defined as X. See PD14 in Weiner and Gabrielsson (4th Ed).
PHX handles time in DE through the use of the sleep statement through a sequence block, which is an elegant way of handling the unstability of the if then statements. Syntax in PML is:
sequence{"initialize"
sleep("whatever")
"switch on"
}
Keeping PD14 as an example, the code in PML would look like:
sequence{E1 = Kin / Kout
E2 = Kin / Kout
ACTH = 1
sleep(T1)
ACTH = 2^n
sleep(T2)
ACTH = 1
}
This allows you to turn compartments on and off by changing the appropriate switch following the sleep time.
martin
0 members, 0 guests, 0 anonymous users