Originally posted by: SystemAdmin
[ArushGadkar said:]
Hello,
I am trying to maximize the number of numbers in the range (1- 63) that can be represented by combination of numbers of the vector d .
I have a boolean vector b[i] that ranges from (1- 63) . b[i] is 1 if number i can be represented by some combination of the numbers in d.
when d is defined as a constant vector for example : [ 1,4,6,8] the program works well.
now my problem is when d is a variable vector :the program runs and say for example outputs [ 1,3,6,8] , the vector b[i] assigns b[1] = 1, b[3] = 1 , b[4] = 1 ( as it is a combination of 1 + 3 ) but is assigns b[6] = 0 when it should actually be 1 .
Ihave used the TreLim index also in my code to stop execution after certain time.
can someone guide me as to why this is happening . code available if needed.
Arush.
#CPLEXOptimizers#DecisionOptimization