Originally posted by: vjkgp
Hello,
I am writing a MILP program in opl, question is as how to define a decision variable with array filteration i.e.
{string} box={1,2,3,4};
dvar boolean A[i in box, k in box];
it is giving all the variables A[1,2], A[1,3], A[1,4], A[2,1], A[2,2], A[2,3], A[2,4], A[3,1], A[3,2], A[3,3] A[3,4], A[4,1], A[4,2], A[4,3], A[4,4].
So above underline variable is not required, i want the following variable A[1,2], A[1,3] ,A[1,4] ,A[2,3] ,A[2,4] ,A[3,4]. please tell me which commend i should write to get the desire set. want that in A[ i in box, k in box] such that i should always be less than k(i<k). please help me
#DecisionOptimization#OPLusingCPLEXOptimizer