Optimize, stop, resume with optimal values

Use this forum to post Vensim related questions.
Post Reply
aki2007
Junior Member
Posts: 4
Joined: Tue Mar 13, 2007 6:09 pm

Optimize, stop, resume with optimal values

Post by aki2007 »

Hi guys,

I would like to be able to run an optimization for a given time period, set parameters at their optimal values, then resume the simulation using these optimal values.

I believe I know how to set up the script so that it will do everything I need, except for one thing: I don't know how to tell Vensim to change model parameters to values determined through optimization.

Is there a command that will enable me to do this?

Thanks,

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

Post by Administrator »

The optimisation process creates some .out files, these can be read in as CIN files. The script command is something like

SIMULATE>ADDCIN|optimisation_output.out

Can you give that a try and see if it does what you need?

Tony.
bob@vensim.com
Senior Member
Posts: 1107
Joined: Wed Mar 12, 2003 2:46 pm

Post by bob@vensim.com »

If you are really resuming then the values of all constants resulting from optimization are already set (assuming you resume from the optimization run). You just need to change FINAL TIME to be a bigger number to continue the simulation.
Post Reply