Error Messages/42496
Error message
The decision variable Y has a Discrete domain, which cannot be used in an optimization problem since it is too vague. Perhaps an integer domain would be more appropriate?
Cause
This error is issued by DefineOptimization when one of the decision variables] (in the first parameter, «decisions») has an implicit discrete domain selected as shown in the above image.
The discrete domain is used for purposes other than optimization, when you want to indicate that a variable's values are discrete numeric or categorical (such as textual), but where you cannot commit to a particular set of values. That information may be useful for Analytica in a variety of contexts (such as when selecting defaults for graphing or probability estimation). But, it has no use for optimization -- there is no way for the optimizer to determine what the search space is.
Remedy
Select a different domain type. Since you've selected this, your variable is clearly not continuous. If it is integer-valued, then that would be the ideal option to select. If it is textual, can use list the explicit values that are possible?
Enable comment auto-refresher