[Coin-discuss] SBB getObjValue max problem
Matthew Galati
magala at wnt.sas.com
Sat Jun 19 11:31:14 EDT 2004
sounds good to me
thanks,
matt
>
>
>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
>
>
>
>_______________________________________________
>Coin-discuss mailing list
>Coin-discuss at www-124.ibm.com
>http://www-124.ibm.com/developerworks/oss/mailman/listinfo/coin-discuss
>
>
--
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