[Cbc] How to get the ''Lower bound''?

Alexis Guigue aguigue at softree.com
Thu Oct 4 13:11:01 EDT 2012


Hi all,

I am calling CBC in my C++ program, i.e., callCbc("-solve -quit", 
cbcSolver);
where cbcSolver is an instance of CbcModel.

I have a time limit that I have specified, i.e., 
cbcSolver.setMaximumSeconds(OptiVariables::dMaxRunTime);

Time limit is reached in some cases and the output looks like

Objective value : .....
Lower bound    : ......
Gap                    : ......

My understanding is that Objective value is the objective value of the 
best integer solution obtained
so far and that Lower bound is that  the best integer solution that 
could be hoped for considering the cuts, etc..
and Gap is just the gap between the two.

Now, if my understanding is correct, how do I retrieve within my program 
the Lower bound. I tried
to call cbcSolver.getBestPossibleObjValue(); but it seems to give 
Objective value instead.

Help??

Thanks

Cheers

Alexis

-- 
Software Engineer/Research Engineer
Softree Technical Systems Inc.
www.softree.com
Engineering an Easier Way



More information about the Cbc mailing list