growth in each step

Use this forum to post Vensim related questions.
Post Reply
lidygal
Junior Member
Posts: 3
Joined: Mon Dec 27, 2004 3:11 pm

growth in each step

Post by lidygal »

If I want to know the growth in each step for an Auxiliar, and this connecting with a level.

THANKS YOU!!
LAUJJL
Senior Member
Posts: 1477
Joined: Fri May 23, 2003 10:09 am
Vensim version: DSS

saving the auxiliary value

Post by LAUJJL »

one method is to save the auxiliary in a stock. It dos not use any special function and is very transparent. Attached a simplistic model.
Regards.
J.J. Laublé
LAUJJL
Senior Member
Posts: 1477
Joined: Fri May 23, 2003 10:09 am
Vensim version: DSS

model attached

Post by LAUJJL »

Model attached
Attachments
save_auxiliary.mdl
(2.13 KiB) Downloaded 619 times
mike
Senior Member
Posts: 56
Joined: Fri May 21, 2004 12:53 am

an alternative approach

Post by mike »

for growth = ( aux-t - aux-t-1) / aux-t-1
then use

lastaux = DELAY FIXED(aux,1,aux) ~~|
auxgrowth = (aux - lastaux) / lastaux ~~|

using xidz(...) or such as called for
Post Reply