Originally posted by: Rafael Colares
Hi Daniel,
Yes, the value comes from an incumbent solution... In my program I have x variables and y variables and both should be binary (but only x variables appear on the objective function). However, declaring y to be binary, automatically imposes x to be also binary (it also works if I declare only x as binary). This comes from some special mathematical properties of my model that are not relevant for the purpose of this discussion.
You are saying that if I declare both variables (or even just the ones that appear on the objective function) as binaries, cplex would do this on its own? The problem here, is that I have seen some big difference of performances when declaring either just x or just y as binaries...
Example of log_file: node 11651 should have been cutoff...
CPXPARAM_TimeLimit 7200
CPXPARAM_Threads 1
Tried aggregator 1 time.
MIP Presolve eliminated 600 rows and 360 columns.
Reduced MIP has 7980 rows, 5640 columns, and 46560 nonzeros.
Reduced MIP has 3600 binaries, 0 generals, 0 SOSs, and 0 indicators.
Presolve time = 0.02 sec. (24.59 ticks)
Found incumbent of value 116.000000 after 0.04 sec. (54.51 ticks)
Probing time = 0.00 sec. (4.13 ticks)
Tried aggregator 1 time.
Reduced MIP has 7980 rows, 5640 columns, and 46560 nonzeros.
Reduced MIP has 5640 binaries, 0 generals, 0 SOSs, and 0 indicators.
Presolve time = 0.03 sec. (32.00 ticks)
Probing time = 0.00 sec. (4.13 ticks)
Clique table members: 6900.
MIP emphasis: balance optimality and feasibility.
MIP search method: dynamic search.
Parallel mode: none, using 1 thread.
Root relaxation solution time = 0.59 sec. (572.22 ticks)
Nodes Cuts/
Node Left Objective IInf Best Integer Best Bound ItCnt Gap
........
11593 4748 50.9121 374 52.0000 49.1771 7916116 5.43%
11612 4753 50.9537 383 52.0000 49.1782 7926714 5.43%
Elapsed time = 2786.62 sec. (2944463.98 ticks, tree = 159.38 MB, solutions = 13)
11633 4755 49.7572 361 52.0000 49.1854 7938361 5.41%
11651 4761 51.3206 375 52.0000 49.1865 7949110 5.41%
11672 4770 49.5652 305 52.0000 49.1897 7957791 5.40%
11692 4775 50.3306 439 52.0000 49.1916 7967539 5.40%
Thank you!
#CPLEXOptimizers#DecisionOptimization