Page 1 of 1

how to ensure the value of many variables is equal to XYZ?

Posted: Tue Dec 22, 2009 9:42 am
by toukairin
Ok, what I'm doing is making more than one variables (up to 16 variables), each is a fraction of 1.

I want to make sure that the program checks the value of all variables, so that when we run the model, we can make sure that the amount of values of all variables is equal to 1. How can we do that? Thanks for any answer.

Posted: Tue Dec 22, 2009 11:19 am
by LAUJJL
at each time step, you add the values of all the variables and eventually take some decision implemented in the model.
You can too check the sum in a reality check checked at each time step, that will tell you when the check fails.
JJ

Posted: Tue Dec 22, 2009 11:32 am
by Administrator
You can also see this thread for a similar problem.

http://www.ventanasystems.co.uk/forum/v ... php?t=3970