Accumulation of other levels

Use this forum to post Vensim related questions.
Post Reply
nesheim
Junior Member
Posts: 14
Joined: Mon Apr 30, 2018 12:12 pm
Vensim version: PLE

Accumulation of other levels

Post by nesheim »

Hi

I have four levels that have accumulated maintenance events over time (520 weeks)
Each of the four levels have accumulated to approximately 20 events.

When I sum all the four levels in a "overall" level, the sum is over 20000, it should be roughly 80. I think that all the other levels give a weekly amount even though the amount of events don't increase.
E.g. from 15 to 16 events may happen after 8 weeks. But it gives the value 15 for 8 weeks =120, whereas I only want the value when it increases.

How can I accumulate these levels only when they step up by one amount? -Is it possible to take a value "Now" minus value "yesterday" ? If it is 15 to days in a row, its 15-15 = 0. If it increases, 16-15 = 1.

I am using PLE 7.2a

I uploaded the model
Attachments
System Design V1,9.mdl
Vensim file
(6.69 KiB) Downloaded 182 times
Screenshot
Screenshot
capture 9.png (56.5 KiB) Viewed 1718 times
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Re: Accumulation of other levels

Post by Administrator »

If you had units in your model, you would find the problem immediately.

You don't use a level to sum up other levels. All you do is add them together.

total maintenance hours used elm = acccorrectivem1 + acc replace bearing el 1 events + accfillingevents 1 + acc change oil events 1
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
nesheim
Junior Member
Posts: 14
Joined: Mon Apr 30, 2018 12:12 pm
Vensim version: PLE

Re: Accumulation of other levels

Post by nesheim »

Excellent. I got it to work. Thank you so much for the quick reply.
Post Reply