Originally posted by: harrynick
Hello,
Can anyone tell me how to implement 'complement sets' in IBM OPL CPLEX?
Suppose, I have a set named 'Set' as :
{int} Set = {1,2};
Now I have a variable say Apple[Set][Setd].
Here Setd is the complement set of set 'Set'. In other words, if 'Set' takes value 1 then 'Setd' should take value 2(the complement). Also when the value in 'Set' is 2 value in 'Setd' is 1.
I hope someone shade some light on this problem.
Thanks and Regards.
#CPLEXOptimizers#DecisionOptimization