Page 1 of 1

Optimize, stop, resume with optimal values

Posted: Tue Mar 20, 2007 11:11 pm
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

Posted: Wed Mar 21, 2007 8:09 am
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.

Posted: Wed Mar 21, 2007 10:19 am
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.