Originally posted by: SaiAnjani
Thanks for your Reply.
For the SOS relations posted by me earlier.
X1+X2+X3+X4=1 and X5+X6+X7+X8=1. Before hand I know, X1+X4<=1;X2+x4<=1,X3+x4<=1 and X5+X8<=1;X6+x8<=1;X7+X8<=1
Are you suggesting to add multiple SOS constraint as below
Cplex.addSOSs('111111',{[1 4]' [2 4]' [3 4]' [5 8]' [6 8]' [7 8]' },{[1 9]',[1 9]',[1 9]',[1 9]',[1 9]',[1 9]'}) . (Assuming weights 1,9 for respective indices).
If this is the only way to add SOS constraints, As no. of such constraints increases(to the order of thousands); It is not that convenient.
#CPLEXOptimizers#DecisionOptimization