Originally posted by: SystemAdmin
[Sylvain said:]
[quote author=prubin link=topic=1252.msg3542#msg3542 date=1247079879]
I don't have 12 yet, so this answer applies to 11 (and probably to 12). There are two approaches I can think of. One is to add IloConversion instances for each integer variable or variable array, then delete them when you are ready to "unrelax" the problem. The other (which I confess I've never tried) is easier (if it works): set the integer tolerance parameter (EpInt) to 0.5 and solve it as a MIP. The solution to the root relaxation should look sufficiently integer to CPLEX, and so there should be no branching.
/Paul
Just a follow up here to mention that in the first case (integer variables considered as continuous), a true LP relaxation is solved.
However, in the second case, a tighter relaxation is obtained.
Indeed, keeping the information on integrality of some variables might allow the MIP presolve to fix some variable or tigthen the bounds of some other variables, etc... Also if cut generation is kept active, new cuts (depending on the integrality information) will probably be added to the root node. All that will allow you to get a tighter (thus better) relaxation of your MIP.
This last method answers one of my previous question on this forum.
Thanks Paul.
#CPLEXOptimizers#DecisionOptimization