Originally posted by: ChrisBr
Hello Akemati,
It is not possible to declare domains as sets directly.
You have to use a constraint, as shown in the following code:
{
int
} s =
{1, 2, 4
}; dvar
int x in (min(i in s) i)..(max(i in s) i); subject to
{ x in s;
}
I hope this helps,
Chris.
#DecisionOptimization#OPLusingCPOptimizer