Group: sci.op-research
From: Paul Rubin
Date: Tuesday, March 04, 2008 8:52 AM
Subject: Re: about heuristic callback

Amy wrote:

>
> Thanks for your reply. Now setSolution works for my MIP basic model.
> But it doesn't work when I add inequalities to the basic model. At the
> root node, my heuristic can give an IP solution and CPLEX cannot find
> any IP solution. I add the inequalities as follows ( I don't use the
> cutcallback function):
>
> 1. solve LP
> 2. add inequalities
> 3. solve LP with added inequalities
>
> repeat steps 2 and 3 for multiple iterations until no violated
> inequalities could be found, then solve the strong formulation as IP.
>
> Do you know where the problem is? Thanks,

Amy,

Can you provide the skeleton of your code so that I can see what you are
doing? Something like the following:

IloCplex lp;
// omit unnecessary details
lp.solve();
// generate new cut expression in newCut
lp.addLe(newCut, 0);
// ...

In other words, I only need to see the declarations of key components
and the calls to solve, addLe (or whatever), setSolution and other
things that most directly relate to the problem. Please comment out the
gory details.

/Paul

Safety Articles | Usenet Groups | Usenet News | Bluegrass