I am new to Vensim and try to run Vensim 5.11A from a Windows7 command line:
Code: Select all
vensim.exe treez.cmd
Code: Select all
SPECIAL>NOINTERACTION
SPECIAL>LOADMODEL|treez.mdl
SIMULATE>SETVAL|CarFlow=4
MENU>RUN|o
MENU>VDF2DAT|treez.vdf|treez.dat|treez.lst
MENU>EXIT
* load my model treez.mdl,
* set the value of a variable "CarFlow" to 4
* run the simulation
* write the calculated values of CarStock to result file treez.dat
However, the variable CarFlow does not seem to change.
It's value is always 1 as defined in the original treez.mdl file.
Therefore, the last calculated value of CarStock is 100 instead of 400.
=>How do I have to adapt my model or command file to correctly set the variable value?
Do I have to use a different type of variable? Do I need to execute an additional command?
The files treez.mdl, treez.vdf and treez.lst are attached.
I also tried to only use the first three lines of the command file...
Code: Select all
SPECIAL>NOINTERACTION
SPECIAL>LOADMODEL|treez.mdl
SIMULATE>SETVAL|CarFlow=4
in the Vensim User Interface but it is 1.