[Coin-discuss] SBB getObjValue max problem

Matthew Galati magala at wnt.sas.com
Fri Jun 18 11:59:12 EDT 2004


When solving a max problem with SBB and getting back the objective
value, it looks to me like the signs are switched. I presume,
internally,  that SBB flips the objective and solves it as a min - but
it doesn't seem to switch back the final objective value.

siBB->setObjSense(-1);
SbbModel sbb(*siBB);
sbb.branchAndBound();
correctObj = -1 * sbb.getObjValue();

Matthew

-- 
Matthew Galati -- Optimization Developer
SAS Institute -- Analytical Solutions / Operations R & D
Office R4112 O: 919-531-0332 F: 919-677-4444
URL: http://sagan.ie.lehigh.edu/mgalati/






More information about the Coin-discuss mailing list