Please enable JavaScript to view this site.

Vensim Help

Reset the inputs on the current screen to reflect the current model settings.  This is useful in gaming mode where SETVAL can be used to set gaming parameters to variables computed in the model.  For example:

:SCREEN GAME

TEXTONLY,"Spending ($,000,000)",2,40,0,0,L|Times New Roman|12|B|0-0-0

TEXTONLY,"Recom- mended",17,43,7,8,R||10||128-0-0

TEXTONLY,"Operations",2,50,0,0,L||10||0-0-255

SHOWVAR,"RecommendedOperatingSpending",17,55,0,0,L||||128-0-0

MODVAR,"InputOperatingSpending",2,54,13,5,,

BUTTON,"Set to Recommended",2,91,22,6,L|Times New Roman|10||0-0-0,,\

SIMULATE>SETVAL|InputOperatingSpending=RecommendedOperatingSpending\

&SPECIAL>RESETINPUT

BUTTON,"Continue",45,93,0,0,C,Cc,GAME>GAMEON

BUTTON,"End Game",80,93,0,0,C,,GAME>ENDGAME,MAIN

Here a button is available to set the value to a recommendation computed in the model.  You can use one button to set multiple values.  The final RESETINPUT brings the screen up to date.  If you do not do this, the previously entered values would be read from the screen and used.