need some help about delays

Use this forum to post Vensim related questions.
Post Reply
japrap
Member
Posts: 20
Joined: Wed Jan 14, 2015 1:54 pm
Vensim version: PLE

need some help about delays

Post by japrap »

hi guys
as you know in DELAY FIXED( {in} , {dtime} , {init} ) we can't start delay from a particular day but how can i use a function like this that has a start time for delay ?

i want that delay starts from time T . for instance {in} = 1 , {dtime} = 3 , {init} = 4 but delay starts from day 2 .
for example :
--------- day: 0 1 2 3 4 5 6 7 .....
arrival rate : 1 1 4 4 4 1 1 1 .....


with best regards
Administrator
Super Administrator
Posts: 4603
Joined: Wed Mar 05, 2003 3:10 am

Re: need some help about delays

Post by Administrator »

I don't really understand your question, it would really help if you posted what you have tried.

Can you just use an auxiliary that has IF THEN ELSE in it? For example,

A TEMP = DELAY FIXED (b,c,d)

A = IF THEN ELSE ( time > start time , A TEMP , 0 )
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
japrap
Member
Posts: 20
Joined: Wed Jan 14, 2015 1:54 pm
Vensim version: PLE

Re: need some help about delays

Post by japrap »

Administrator wrote:I don't really understand your question, it would really help if you posted what you have tried.

Can you just use an auxiliary that has IF THEN ELSE in it? For example,

A TEMP = DELAY FIXED (b,c,d)

A = IF THEN ELSE ( time > start time , A TEMP , 0 )
first tnx for your response
second : the question is : suppose that the normal arrival rate to a Box variable is 3 person/hour . now i want that arrival rate becomes 4 person/hour in the second and third days and then it returns to its normal value ( =3 person/hour) .
in other word , i want that arrival rate be like the below image:
http://i58.tinypic.com/25znj2f.png
Administrator
Super Administrator
Posts: 4603
Joined: Wed Mar 05, 2003 3:10 am

Re: need some help about delays

Post by Administrator »

Can you use a lookup table?
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
bppro
Junior Member
Posts: 14
Joined: Wed Nov 06, 2013 2:06 pm
Vensim version: DSS

Re: need some help about delays

Post by bppro »

Maybe the STEP function is what you're looking for. Please take a look at my model.

Have a nice day,
BP
Attachments
STEP.mdl
(1.35 KiB) Downloaded 251 times
japrap
Member
Posts: 20
Joined: Wed Jan 14, 2015 1:54 pm
Vensim version: PLE

Re: need some help about delays

Post by japrap »

bppro wrote:Maybe the STEP function is what you're looking for. Please take a look at my model.

Have a nice day,
BP

that's what i need . very very tnx my friend . :P
japrap
Member
Posts: 20
Joined: Wed Jan 14, 2015 1:54 pm
Vensim version: PLE

Re: need some help about delays

Post by japrap »

Administrator wrote:Can you use a lookup table?
my friend , I thank you very much too .


i find another solution : 3 + pulse ( 2 , 2 )
Post Reply