how to limit the number of simulation when optimizing
how to limit the number of simulation when optimizing
Hi
I would like to limit the number of simulation say to 10 when optimizing. How to do it?
I join the .voc file that I use. it generally stops the simulation after appoximately 20 simulations. Generally it congerges enough already at 1O. Making multiple optimizations controlled by VBA
I need tio reduce the optimization time.
Best regards.
JJ
I would like to limit the number of simulation say to 10 when optimizing. How to do it?
I join the .voc file that I use. it generally stops the simulation after appoximately 20 simulations. Generally it congerges enough already at 1O. Making multiple optimizations controlled by VBA
I need tio reduce the optimization time.
Best regards.
JJ
-
- Super Administrator
- Posts: 4610
- Joined: Wed Mar 05, 2003 3:10 am
Re: how to limit the number of simulation when optimizing
Can you upload the VOC file?
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Re: how to limit the number of simulation when optimizing
Sorry I forgot to upload the file.
I upload the file with a mdl extension because the voc is not allowed.
Regards.
JJ
I upload the file with a mdl extension because the voc is not allowed.
Regards.
JJ
- Attachments
-
- rentndrop.mdl
- (349 Bytes) Downloaded 280 times
Re: how to limit the number of simulation when optimizing
That is a bit unfortunate admittedly but I found you can always upload a zip-archive which might also be a good idea in itself?I upload the file with a mdl extension because the voc is not allowed.
Regards,
Guido
Re: how to limit the number of simulation when optimizing
Hi JJ,
I see that you are using the optimization control option
I fail to locate this in the reference manual - would you have a link here?
Regards,
Guido
I see that you are using the optimization control option
Code: Select all
:SIMS_MAX = 10
Regards,
Guido
Re: how to limit the number of simulation when optimizing
Hi Guido
I found easier to change the extension to mdl than zipping the file.
About the max_sims, I did not find either a reference in the Vensim manuals.
Regards.
JJ
I found easier to change the extension to mdl than zipping the file.
About the max_sims, I did not find either a reference in the Vensim manuals.
Regards.
JJ
Re: how to limit the number of simulation when optimizing
I'll have to take a look at the code - I suspect that the limit only gets checked between passes, not at every single iteration, in order to avoid a lot of if-then testing when normally not needed.
/*
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
-
- Super Administrator
- Posts: 4610
- Joined: Wed Mar 05, 2003 3:10 am
Re: how to limit the number of simulation when optimizing
I've changed the forum to allow this now.LAUJJL wrote:I found easier to change the extension to mdl than zipping the file.
Does it stop ok if you make MAX SIMS 20?About the max_sims, I did not find either a reference in the Vensim manuals.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Re: how to limit the number of simulation when optimizing
There's a funny (weird, not ha ha) quirk in the code, in that max sim values <= 10 are ignored. So, if you set it to 11, it should work. You could also try lowering the PASS LIMIT to 1.
/*
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Re: how to limit the number of simulation when optimizing
Hi Tom
Thank you for the information about the max_sims. I will experiment if that works.
Regards.
JJ
Thank you for the information about the max_sims. I will experiment if that works.
Regards.
JJ
Re: how to limit the number of simulation when optimizing
I changed the lower limit, so that any nonzero value of SIMS_MAX is recognized. Version 6.3a (soon) will incorporate that.
/*
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/