Question of function "zidz"

Use this forum to post Vensim related questions.
Post Reply
hoppang47
Junior Member
Posts: 2
Joined: Wed Sep 29, 2010 9:50 pm

Question of function "zidz"

Post by hoppang47 »

Hi, all expert of vensim.
I'm just new. so I would say "nice to meet you" :)

I've been trying to visualize D.I.C.E model with vensim but I am sticking about ZIDZ function. I have no idea what it is..

Have you ever used ZIDZ FUNCTION before and Would you like to explain in please?

The equation is

" interpolation fraction = max(0, zidz(45, 20)) "

45 and 20 are what I just put for looking simply.

Thanks
Have a great day

Jin

[Edited on 9-29-2010 by hoppang47]
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Post by Administrator »

The function is "Zero if divide by zero".

Eg,

Proportion allocated = my allocation / total allocated.

If total allocated = 0, we have divide by zero. So ZIDZ is a short way of saying

if then else ( total allocated = 0 , 0 , my allocation / total allocated )
hoppang47
Junior Member
Posts: 2
Joined: Wed Sep 29, 2010 9:50 pm

Post by hoppang47 »

Thank you very much!

Have a great day!
Post Reply