Load partial run

Use this forum to post Sable related questions.

Moderator: Administrator

Post Reply
CarlosF
Junior Member
Posts: 7
Joined: Fri May 16, 2008 2:15 pm

Load partial run

Post by CarlosF »

Hi,
When user press button "start game" I would like to load a previous run (2000 thru 2007-Historic data) and change runname. After that start gaming with variable time=96 and so on.
Any suggestion?
Carlos
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Post by Administrator »

You should be able to do all that.

Create a button and use the following commands.

Command 1:Venapp
SPECIAL>LOADRUN|runname.vdf

Command 2:Venapp
SIMULATE>RUNNAME|?

Command 3:Venapp
SIMULATE>SETVAL|INITIAL TIME=96

Command 4:Venapp
MENU>GAME
CarlosF
Junior Member
Posts: 7
Joined: Fri May 16, 2008 2:15 pm

Post by CarlosF »

Unfortunately didn't work. When Game continue it seens that its starting again. Only time is ok. I need simulation go on with every variable loaded.
Carlos
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Post by Administrator »

Do you have separate buttons for start game and continue game?
CarlosF
Junior Member
Posts: 7
Joined: Fri May 16, 2008 2:15 pm

Post by CarlosF »

I've tried both and still didn't work.
I have a run called baserun.vdf and I want to start a game from time 96 because the first 95 are equal. Using the sequence you sent, If I choose a new name I got 3 runs. If I keep the name of LOADRUN|runname.vdf it begins from 96 but empty.

Carlos
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Post by Administrator »

I am not quite sure what you want to do, but it sounds like you want to base your run on a previous run.

If so, try experimenting with the following

SIMULATE>BASED|oldrunname.vdf
CarlosF
Junior Member
Posts: 7
Joined: Fri May 16, 2008 2:15 pm

Post by CarlosF »

I've tried, but received a message:
Unable to base simulation on dataset MyGame.vdf
Let me try to explain:
I have a run called BaseRun.vdf and would like to run another game called MyGame.vdf. The latter I would like to start running from Time=96, because the first 95 are equal. My target is compare results of both runs.
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Post by Administrator »

How about something like

Command 1:Venapp (to set the run name)
SIMULATE>RUNNAME|?

Command 2:Venapp (to tell Vensim to run to time=95)
GAME>GAMEINTERVAL|95

Command 3:Venapp (start the game)
MENU>GAME

Command 4:Venapp (to forward the game to time=96)
GAME>GAMEON

Command 5:Venapp (to reset the game interval)
GAME>GAMEINTERVAL|1
CarlosF
Junior Member
Posts: 7
Joined: Fri May 16, 2008 2:15 pm

Post by CarlosF »

Ok! That's not what I wanted, but is working.
Thank You
Post Reply