Originally posted by: WillemUilhoorn
All,
I have a question about defining a sequence from a range. For example:
I have a range for my items with
range i = 1..n;
And have a binary decision variable (later used in constraints)
dvar int xp[i][k]; //BIN 1 if item i is right of item k
which is about the relative placement of an item in a packing problem. The k however, indicates here the item k that comes after item i. So in fact, it is i+1 in the same range. How can I define this in CPLEX OPL?
Any ideas? Many thanks in advance
#CPLEXOptimizers#DecisionOptimization