accumulate auxillary values

Use this forum to post Vensim related questions.
Post Reply
ebr567
Member
Posts: 36
Joined: Sat Mar 14, 2015 11:26 am
Vensim version: DSS

accumulate auxillary values

Post by ebr567 »

Hello, I have animals that die at several points during the year. At a certain time each year, I need to sum up these deaths from over the previous 365 days in order to estimate how many animals are required to replace them. How do you suggest that I find this number? I am not using the death total as a Level per se, and directly feeding it into the replacements via a flow (as I might not have enough animals ready), but I am using it as a target number to inform the real number of replacements I should try to produce.
Thank you.
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Re: accumulate auxillary values

Post by Administrator »

You accumulate them using a level, then reset the level at the end of the year (or at some other point such as when the animals are replaced).
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
tomfid
Administrator
Posts: 3811
Joined: Wed May 24, 2006 4:54 am

Re: accumulate auxillary values

Post by tomfid »

You can use a stock to keep track of this. Make the inflow the current death rate, and the outflow equal to a DELAY FIXED of the same rate, with a time constant of one year (in whatever units your model is using).
ebr567
Member
Posts: 36
Joined: Sat Mar 14, 2015 11:26 am
Vensim version: DSS

Re: accumulate auxillary values

Post by ebr567 »

Thank you, producing a level with a delayed outflow worked great.
tomfid
Administrator
Posts: 3811
Joined: Wed May 24, 2006 4:54 am

Re: accumulate auxillary values

Post by tomfid »

What you choose depends on what you need to represent - if you're modeling an accounting process explicitly, the pulsed or delayed reporting stock is good. If you're just capturing the natural delay and smoothing in a perception process, it's much simpler to use a SMOOTH or SMOOTH3 function.
Reporting.mdl
(11.89 KiB) Downloaded 195 times
Post Reply