Hello. For a level variable whose expression is Lt = L(t-1) + Inp - Oup
How is L(t-1) entered into the Vensim equation?
I hope I was clear. Thank.
Equation Variable Level
Re: Equation Variable Level
In spite of the title, https://metasd.com/2017/11/discrete-time-stinks/ provides some advice.
Generally you just need a stock equation,
L = INTEG( input - output, L initial )
Generally you just need a stock equation,
L = INTEG( input - output, L initial )
/*
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Re: Equation Variable Level
L(t) = L(t-1) ... implies discrete indexing, i.e. discrete steps with TIME STEP = 1. Generally it's best to avoid constraining the time interval - you want to think of it as "arbitrarily short". A better recurrence for Euler integration is:
L(t) = L(t-dt) + (input-output)*dt
where dt is shorthand for the TIME STEP of the integration. If dt=1, this reduces to the previous, except that it's dimensionally consistent. This also shows why stocks have units of stuff and flows have units of stuff/time.
L(t) = L(t-dt) + (input-output)*dt
where dt is shorthand for the TIME STEP of the integration. If dt=1, this reduces to the previous, except that it's dimensionally consistent. This also shows why stocks have units of stuff and flows have units of stuff/time.
/*
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Re: Equation Variable Level
Thank.