help

Use this forum to post Vensim related questions.
Post Reply
zhouchchun
Junior Member
Posts: 8
Joined: Tue Apr 20, 2010 1:45 pm

help

Post by zhouchchun »

in vensim PLE, how to do accumulation
Administrator
Super Administrator
Posts: 4841
Joined: Wed Mar 05, 2003 3:10 am

Post by Administrator »

Use the integ function.
zhouchchun
Junior Member
Posts: 8
Joined: Tue Apr 20, 2010 1:45 pm

Post by zhouchchun »

I have simulate ET for 230 days, I want to accumulate them, that is ETS=ET1+ET2+。。。+ET230, I think the integ function can not do it, I don't know how to do it
tomfid
Administrator
Posts: 3995
Joined: Wed May 24, 2006 4:54 am

Post by tomfid »

If your model is running with a time step of one day, INTEG(ET,0) will be exactly the sum that you describe. A simple check would be to define ET = time and ETSUM = INTEG(ET,0), to see whether you get the anticipated result.

Note that this discrete sum logic is likely to result in inconsistent units of measure.

Tom
zhouchchun
Junior Member
Posts: 8
Joined: Tue Apr 20, 2010 1:45 pm

Post by zhouchchun »

thank you for your help, Tom
Post Reply