how to fix the value of a variable var in the past (time-1),

Use this forum to discuss any issues relating to Systems Dynamics and Systems Thinking.
Post Reply
menade
Junior Member
Posts: 2
Joined: Fri Dec 11, 2015 2:09 am
Vensim version: PLE+

how to fix the value of a variable var in the past (time-1),

Post by menade »

I have a stock (prices) that change over time, I want to limit its increase, for this I need the value of my stock (prices) at (time-1) to determine its evolution as:

Stock (price) at (time) = stock (prices) at (time-1) * growth rate

Can you tell me the way to fixe the stock (prices) at (time-1) in may model, or how to determine the average stok (prices) in the last 05 years.

Thank you in advance
LAUJJL
Senior Member
Posts: 1427
Joined: Fri May 23, 2003 10:09 am
Vensim version: DSS

Re: how to fix the value of a variable var in the past (time

Post by LAUJJL »

I am not sure about what you mean by fixing a value. If you mean register the value at time t-1 to use it at time t, then you can either use a level to store the value, or use the delay fixed function with a delay of time step. You can too use the smooth function over say a 5 time unit period, to use a kind of average.

Regards.

JJ
menade
Junior Member
Posts: 2
Joined: Fri Dec 11, 2015 2:09 am
Vensim version: PLE+

Re: how to fix the value of a variable var in the past (time

Post by menade »

Thank you so much for your answer to may question, I used the DELAY FIXED function, I think is a simple way .

Thank you for your help
Post Reply