Delay

Use this forum to post Vensim related questions.
Post Reply
CatherineCouture.8
Junior Member
Posts: 9
Joined: Mon Mar 13, 2017 7:33 pm
Vensim version: PLE

Delay

Post by CatherineCouture.8 »

Hi!
I'm not familiar to «delay» in vensim and how to use it. I need one for one of my variables, average daily gain (ADG), which is, in my model, the gain in kg per day for a pig. To be able to create this variable, I need a delay, because I need to compare two bodyweights (Time step = 1 day). For example, on day 20, the pig weights 20 kg and, on day 21, it weights 21 kg. So, the ADG is 1 kg per day. Also, should I use a fixed delay or another type of delay would be more appropriate?

Thanks for your help! :)
tomfid
Administrator
Posts: 3811
Joined: Wed May 24, 2006 4:54 am

Re: Delay

Post by tomfid »

DELAY FIXED( weight, one day ) would work. There's a sample model for it (and everything else) in the Help system.
Post Reply