Accessing value of a variable at a previous time

Use this forum to post Vensim related questions.
Post Reply
danraymond53
Junior Member
Posts: 11
Joined: Sat Apr 21, 2018 5:14 am
Vensim version: PLE+

Accessing value of a variable at a previous time

Post by danraymond53 »

I am developing a simple tank model.

I am calculating the tank volume based on inflows and outflows. In my case I need to use the tank volume at Time-1 in an equation.

How do I do that?
danraymond53
Junior Member
Posts: 11
Joined: Sat Apr 21, 2018 5:14 am
Vensim version: PLE+

Re: Accessing value of a variable at a previous time

Post by danraymond53 »

Solved it thanks
tomfid
Administrator
Posts: 3806
Joined: Wed May 24, 2006 4:54 am

Re: Accessing value of a variable at a previous time

Post by tomfid »

DELAY FIXED is one option. SMOOTH or a simple stock works if your TIME STEP is 1 (which I wouldn't always recommend - http://metasd.com/2017/11/discrete-time-stinks/).
Post Reply