Since I didn't set 'mipgap' or 'absmipgap' in .run file, I thought it should run until gap reaches 0.
I'm wondering whether it is possible to reduce this gap by put some command on cplex?
I think there is a glitch in the CPLEX output here, so that it is reporting a large gap when it fact it has proved optimality at the root node. Perhaps this problem has been fixed in the latest version (12.4). Or, you could confirm CPLEX's answer by sending the same problem to another solver, such as Gurobi.
Current defaults for all of the CPLEX directives are given in the summary at
http://www.netlib.org/ampl/solvers/cplex/README.cplex
The default absmipgap is 0 but the default mipgap is .0001 (meaning .01%). CPLEX allows you to reduce the mipgap to as low as 1e-9, but not to zero. But it will not return a solution with a 28% gap as "optimal".
Bob Fourer
From: am...@googlegroups.com [mailto:am...@googlegroups.com]
On Behalf Of Luke Li
Sent: Wednesday, June 20, 2012 5:41 AM
To: am...@googlegroups.com
Subject: [AMPL 5927] MIP Gap problem