JohnGilmore Posted March 7, 2022 Share Posted March 7, 2022 I'm interested in calculating a yearly production rate. Essentially I could do this if I ran my simulation for 1 year and looked at the output. The number of entities destroyed by my "completed" sink will be what I'm looking for. How do I determine this value if I'm running for longer than 1 year? For example; If I run for 5 years, and I'm watching my model run, at week 186 I'd like to know how many entities had been destroyed by my "completed" sink between weeks 134 and 186 to determine my yearly production rate. Link to comment Share on other sites More sharing options...
MauricioBiolato Posted March 8, 2022 Share Posted March 8, 2022 Hi John, you can set up a timer. This timer fires a process every 365 days. In the process you can register the destroyed entities. Hopr this helps Rds. Mauricio Link to comment Share on other sites More sharing options...
JohnGilmore Posted March 8, 2022 Author Share Posted March 8, 2022 9 hours ago, MauricioBiolato said: Hmm, perhaps that might help, though as per the example, at week 186 I only want to consider entities destroyed in the passed 52 weeks (weeks 144~186). But won't a timer consider all destroyed entities? Including the ones from weeks 1~144? Link to comment Share on other sites More sharing options...
MauricioBiolato Posted March 8, 2022 Share Posted March 8, 2022 Usually I add a state variale that records the last value, so this way you can substract it from the current value. Link to comment Share on other sites More sharing options...
MauricioBiolato Posted March 8, 2022 Share Posted March 8, 2022 Now I remember no so long ago it was added the periodic statistic element. You can use that. Here you have an example. Rds. Periodic Statistics.spfx Link to comment Share on other sites More sharing options...
Recommended Posts