Originally posted by: luluhung
Here is my code:
//each target psg select only one psg & not repeat
forall( p in SPsg )
onepsg: sum(np in Psg) pp[np][p] == 1;
forall(np in Psg)
Norepeat: sum( p in SPsg ) pp[np][p] <=1;
//total selected discrete item = 10
Numdis:
sum(nb in Discrete) bx[nb] == NBdctItem;
//UB & LB of item of psg
//selected psg length should equal to target psg length
forall( p in SPsg ,np in Psg){
psglength:
sum (pi in PItem) PsgItem[np][pi]*px[np][pi] == pp[np][p]*TargetPattern[p];}
Why cplex said there are conflicts in onepsg[1] , onepsg[2], onepsg[3], onepsg[4], Numdis,
and psglength#1#0, psglength#1#1, ...
What is the problem?
#CPLEXOptimizers#DecisionOptimization