SIMULATE>SETVAL with subscripts

Use this forum to post Vensim related questions.
Post Reply
yobiman
Member
Posts: 30
Joined: Wed May 28, 2008 1:28 am

SIMULATE>SETVAL with subscripts

Post 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
bob@vensim.com
Senior Member
Posts: 1107
Joined: Wed Mar 12, 2003 2:46 pm

Post 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.
yobiman
Member
Posts: 30
Joined: Wed May 28, 2008 1:28 am

Post by yobiman »

Thanks Bob, I upgraded to version 5.9 and it seems to be working now
Post Reply