Running command files
Posted: Sat Feb 24, 2018 11:51 pm
Hello
Sorry that use this forum again for a challenge I face. I wanted to Vensim to do several runs by using a command file (see attached).
1) at the moment, for some reason the file is not convertible to a cmd file?
2) If I run the script (before, I converted it to the right format), nothing happens. That is, I have my 11 runs simulated, but they are all the same. This suggests, that vensim does not read my changes. I checked my equations with the equations used in the Vensim help documentation. I can't find any difference... Could you please advice me on this?
Moreover:
3) is it possible to use this commands (using different values for a variable) for endogenously simulated variables?
4) Could I also have a code that is not only a constant, but a time series?
5) is it possible to somehow write a script that creates runs use all values between a certain interval (e.g. 1-10) for every 0.5 change? (and that also saves the runs).
Again, many thanks!
*** for some reason, I can't upload the file: so this is what is in my text-file:
SPECIAL>LOADMODEL|Consumption250218.mdl
SIMULATE>RUNNAME|Run 1
SIMULATE>SETVAL|DDisposable income HH=527216
MENU>RUN|o
SIMULATE>RUNNAME|Run 2
SIMULATE>SETVAL|DDisposable income HH=52000
MENU>RUN|o
SIMULATE>RUNNAME|Run 3
SIMULATE>SETVAL|DDisposable income HH=51500
MENU>RUN|o
.... etc.
Sorry that use this forum again for a challenge I face. I wanted to Vensim to do several runs by using a command file (see attached).
1) at the moment, for some reason the file is not convertible to a cmd file?
2) If I run the script (before, I converted it to the right format), nothing happens. That is, I have my 11 runs simulated, but they are all the same. This suggests, that vensim does not read my changes. I checked my equations with the equations used in the Vensim help documentation. I can't find any difference... Could you please advice me on this?
Moreover:
3) is it possible to use this commands (using different values for a variable) for endogenously simulated variables?
4) Could I also have a code that is not only a constant, but a time series?
5) is it possible to somehow write a script that creates runs use all values between a certain interval (e.g. 1-10) for every 0.5 change? (and that also saves the runs).
Again, many thanks!
*** for some reason, I can't upload the file: so this is what is in my text-file:
SPECIAL>LOADMODEL|Consumption250218.mdl
SIMULATE>RUNNAME|Run 1
SIMULATE>SETVAL|DDisposable income HH=527216
MENU>RUN|o
SIMULATE>RUNNAME|Run 2
SIMULATE>SETVAL|DDisposable income HH=52000
MENU>RUN|o
SIMULATE>RUNNAME|Run 3
SIMULATE>SETVAL|DDisposable income HH=51500
MENU>RUN|o
.... etc.