Page 1 of 1

How to call variable value of previous time period in a equation

Posted: Sun Nov 19, 2017 2:50 am
by amitkaram
I want to use the variable value of previous time periods , that is of (t-1) or (t-2) in the equation for time t.How do i do that
I will be very grateful if i could get help on this

Re: How to call variable value of previous time period in a equation

Posted: Sun Nov 19, 2017 3:34 am
by amitkaram
I understand about delay fixed function, but it treats variable on left side as level variable.In my case, variable on left side is a auxiliary variable whose value is changing every time period.

Re: How to call variable value of previous time period in a equation

Posted: Sun Nov 19, 2017 5:21 am
by amitkaram
Also, I am unable to use GET TIME VALUE function to know the current value of time. Vensim says that this function is not operable with this configuration.What option do I have other than above function to get the current time value.

Re: How to call variable value of previous time period in a equation

Posted: Sun Nov 19, 2017 7:17 am
by tomfid
Just use the time variable.

Re: How to call variable value of previous time period in a equation

Posted: Sun Nov 19, 2017 7:19 am
by tomfid
You just need to delay whatever it is on the right hand side of the equation that you need. But be careful.
http://metasd.com/2017/11/discrete-time-stinks/

Re: How to call variable value of previous time period in a equation

Posted: Mon Dec 11, 2017 3:14 pm
by amitkaram
Thanks @tomfid :)