Page 1 of 1

SIMULATE>SETVAL with subscripts

Posted: Tue May 12, 2009 8:43 pm
by yobiman
I am having some challenges with the SIMULATE>SETVAL command. Specifically, I have a variable IVMob, which has two subscripts say x1 and x2. Where x1=[a1,a2,a3] and x2=[b1,b2,b3]
What is the syntax for updating IVMob[x1,x2]? Do I need to do each subscript element one at a time?
It didnt seem to work when I tried to do this with the following command:
vensim_command("SIMULATE>SETVAL|IVMob[a1,b1]= 0.3")

Any help would be gratefully received

Posted: Wed May 13, 2009 10:18 am
by bob@vensim.com
SIMULATE>SETVAL|IVMob[a1,b1]= 0.3

should work fine. Make sure you are using version 5.9. If there are problem they may be related to quotes in the variable names or subscripts. If you post the exact command used those will be clear.

Posted: Fri May 15, 2009 3:45 am
by yobiman
Thanks Bob, I upgraded to version 5.9 and it seems to be working now