Hi there,
new to this forum, and not really an advanced Vensim user. But I am trying to accumulate the results of an equation (no raw data), and fail to do so. I am calculating sales per year, and would like to add them up according to a lifetime t of the sold item. Example: lifetime t = 3 years, starting year is 1990:
1990 1991 1992 1993 1994 1995
sales 1 2 3 4 5 6
Cum. sales 1 3 6 9 12 15
Any help would be greatly appreciated!
Thanks
Tom
Accumulation
-
- Super Administrator
- Posts: 4838
- Joined: Wed Mar 05, 2003 3:10 am
What you're specifically after would be something like the following, I think:
Cum Sales = INTEG( sales - outflow, 0 )
outflow = DELAY FIXED( sales, time to cumulate, 0)
time to cumulate = 3
The continuous version would have
outflow = Cum Sales/time to cumulate
Tom
Cum Sales = INTEG( sales - outflow, 0 )
outflow = DELAY FIXED( sales, time to cumulate, 0)
time to cumulate = 3
The continuous version would have
outflow = Cum Sales/time to cumulate
Tom
/*
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
*/