Difference between revisions of "Error Messages/40924"
(Created page with "= Error Message = When evaluating DefineOptimization in ''My_Lp'', the Intrinsic Indexes (OptDimensions attribute) for decision variable ''Price'' is bad - it should cont...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | [[Category: Error messages]] | |
− | When evaluating | + | == Error message == |
− | decision variable | + | <pre style="background:white; border:white; margin-left: 1em; font-style:italic"> |
− | dimensionality of the decision variable | + | When evaluating DefineOptimization in 'My_Lp', the Intrinsic Indexes (OptDimensions attribute) for |
+ | decision variable 'Price' is bad - it should contain a list of index identifiers, specifying the | ||
+ | dimensionality of the decision variable 'Price'. | ||
+ | </pre> | ||
− | = Cause = | + | == Cause == |
+ | View the [[Object window]] for your decision variable (''Price'' in the example), and examine the '''intrinsic indexes''' attribute. Something about it is bad, corrupted, etc. | ||
− | + | Or, in [[typescript]], type: | |
+ | :<code>OptDimensions Price</code> | ||
− | + | where you substitute your own decision variable for ''Price''. This should be a list of valid identifiers. | |
− | + | == Remedy == | |
+ | |||
+ | Without knowing exactly what is wrong or why, start over with that attribute. Press the '''Indexes''' button in the [[Object window]] if you can and clear out the indexes (when asked whether to set to scalar or clear, clear it). Then try defining fresh. | ||
− | + | If for some reason that doesn't work, in [[typescript]] type: | |
+ | :<code>OptDimensions «x»:</code> | ||
− | + | Be sure to include the colon at the end, and substitute your identifier for «x». This will clear the attribute. | |
− | + | ==See Also== | |
− | + | * [[Indexes and arrays: An introduction]] | |
+ | * [[Classes of variables and other objects]] | ||
+ | * [[DefineOptimization]] | ||
+ | * [[Typescript]] |
Latest revision as of 00:46, 11 March 2016
Error message
When evaluating DefineOptimization in 'My_Lp', the Intrinsic Indexes (OptDimensions attribute) for decision variable 'Price' is bad - it should contain a list of index identifiers, specifying the dimensionality of the decision variable 'Price'.
Cause
View the Object window for your decision variable (Price in the example), and examine the intrinsic indexes attribute. Something about it is bad, corrupted, etc.
Or, in typescript, type:
OptDimensions Price
where you substitute your own decision variable for Price. This should be a list of valid identifiers.
Remedy
Without knowing exactly what is wrong or why, start over with that attribute. Press the Indexes button in the Object window if you can and clear out the indexes (when asked whether to set to scalar or clear, clear it). Then try defining fresh.
If for some reason that doesn't work, in typescript type:
OptDimensions «x»:
Be sure to include the colon at the end, and substitute your identifier for «x». This will clear the attribute.
See Also
Comments
Enable comment auto-refresher