Optimization with wrong subscripts error

Use this forum to post Vensim related questions.
Post Reply
aliakhavan89
Senior Member
Posts: 94
Joined: Sun Oct 21, 2018 7:09 am
Vensim version: DSS

Optimization with wrong subscripts error

Post by aliakhavan89 »

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.
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Re: Optimization with wrong subscripts error

Post by Administrator »

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
aliakhavan89
Senior Member
Posts: 94
Joined: Sun Oct 21, 2018 7:09 am
Vensim version: DSS

Re: Optimization with wrong subscripts error

Post by aliakhavan89 »

Does this work?
Attachments
New folder.zip
(13.65 KiB) Downloaded 19 times
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Re: Optimization with wrong subscripts error

Post by Administrator »

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?
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
aliakhavan89
Senior Member
Posts: 94
Joined: Sun Oct 21, 2018 7:09 am
Vensim version: DSS

Re: Optimization with wrong subscripts error

Post by aliakhavan89 »

Thanks a lot! It can also happen when subscripts are defined incorrectly.
Post Reply