two constants as input, with a time delay on one constant
two constants as input, with a time delay on one constant
I have two inputs IV infusion and endogenous glucose production for glucose homeostatis for a type 1 diabetic. How do I delay the input for IV infusion by a certain time period eg 4hours taking into account glucose production is continious? Current model uses = step(("endogenous (mmol/min)"+"IV infusion (mmol/min)"),2). to calculate glucose intake over a 72 hour period.
Re: two constants as input, with a time delay on one constant
Maybe this?
glucose in = infusion + endogenous
endogenous = STEP( endogenous rate, endogenous start time )
endogenous start time = 2
infusion = STEP( infusion rate, endogenous start time + infusion delay )
infusion delay = 4
glucose in = infusion + endogenous
endogenous = STEP( endogenous rate, endogenous start time )
endogenous start time = 2
infusion = STEP( infusion rate, endogenous start time + infusion delay )
infusion delay = 4
/*
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/