Posted By
Christiane Bracchi
Mon July 12, 2021 01:52 PM
Found In
Egroup:
Decision Optimization
\
view thread
Hello Andrew, You are right, the meaning of the keyword "in" is the same in both cases but the syntax is different. In the declaration part "in" requires a range, for example: dvar int x in 1..10; And in the constraint part it requires a set, for example: x in (2,5,7); or x in asSet(2..6); ...
|