Error Messages/42536


Error message

 No decision variables are specified in the «decisions» parameter of DefineOptimization.  
 If you are relying on All or All in «module» to find decision nodes in your model, then most 
 likely there are no decision nodes in the model or module(s) indicated.

Cause

This message can occur when you use:

 DefineOptimization(
   decisions: All,
   ...
 )

but your model has no decision nodes, or when you use:

 DefineOptimization(
   decisions: All in Mo1, All in Mo2, All in Mo3,
   ...
 )

and there are no decisions nodes inside Mo1, Mo2 or Mo3. In either of these cases, DefineOptimization is left with no decision variables to optimize over.

Remedy

You can specify your decision variables explicitly in the «decisions» parameter, for example if you want to solve for a variable that isn't actually a decision node. That might look like:

 DefineOptimization( 
    decisions: x, y
    ...
 )

Alternatively, you can change your variables into decision nodes and make sure they are in the modules indicated in the All in «module» clause.

See Also

Comments


You are not allowed to post comments.