When there are issues with the subscripts defined in the Vensim Optimization Control (.voc) file, Vensim reports 'ERROR: Problems encountered in the simulation.' when running the optimizer. It would be helpful if more targeted information is provided when this error is shown.
Thank you very much.
Optimization with wrong subscripts error
-
- Senior Member
- Posts: 193
- Joined: Sun Oct 21, 2018 7:09 am
- Vensim version: DSS
-
- Super Administrator
- Posts: 4827
- Joined: Wed Mar 05, 2003 3:10 am
Re: Optimization with wrong subscripts error
Do you have an example you can provide? I can probably make changes very quickly.
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
-
- Senior Member
- Posts: 193
- Joined: Sun Oct 21, 2018 7:09 am
- Vensim version: DSS
Re: Optimization with wrong subscripts error
Does this work?
- Attachments
-
- New folder.zip
- (13.65 KiB) Downloaded 377 times
-
- Super Administrator
- Posts: 4827
- Joined: Wed Mar 05, 2003 3:10 am
Re: Optimization with wrong subscripts error
I'll see if I can improve the error reporting. Maybe if I just change
ERROR: Cannot find constant in model
To one of the following depending on what is in the optimization control file.
ERROR: Constant not found in model, cannot continue.
or
ERROR: Constant found in model, but no subscripts in optimization control defined. Are subscripts missing?
or
ERROR: Constant found in model, subscripts appear to be incorrect. Are subscripts correctly defined?
ERROR: Cannot find constant in model
To one of the following depending on what is in the optimization control file.
ERROR: Constant not found in model, cannot continue.
or
ERROR: Constant found in model, but no subscripts in optimization control defined. Are subscripts missing?
or
ERROR: Constant found in model, subscripts appear to be incorrect. Are subscripts correctly defined?
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
-
- Senior Member
- Posts: 193
- Joined: Sun Oct 21, 2018 7:09 am
- Vensim version: DSS
Re: Optimization with wrong subscripts error
Thanks a lot! It can also happen when subscripts are defined incorrectly.