[Coin-discuss] SBB getObjValue max problem
John J Forrest
jjforre at us.ibm.com
Sat Jun 19 05:57:44 EDT 2004
Matt,
I have replaced the internal uses of getObjValue by getMinimizationObjValue
and modified getObjValue - is that better?
John
Matthew Galati
<magala at wnt.sas.c
om> To
Sent by:
coin-discuss-admi coin-discuss at www-124.southbury.usf.
n at www-124.southbu ibm.com
ry.usf.ibm.com cc
06/18/2004 11:59
AM
Subject
Please respond to [Coin-discuss] SBB getObjValue max
coin-discuss problem
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/
_______________________________________________
Coin-discuss mailing list
Coin-discuss at www-124.ibm.com
http://www-124.ibm.com/developerworks/oss/mailman/listinfo/coin-discuss
More information about the Coin-discuss
mailing list