[Cbc] CBC Relative MIP gap calculation

John Forrest john.forrest at fastercoin.com
Wed Mar 20 11:04:05 EDT 2013


Marco,

CbcModel::canStopOnGap()

not exactly the same - effectively

relative_gap = | bestnode - bestinteger | / max(|bestnode|, | 
bestinteger | )

John Forrest
On 20/03/13 14:44, mg wrote:
> Hi All,
> please someone can clarify how the relative MIP gap is calculated in CBC ?
>
> I searched but I wasn't able to find the formula (I'm using 2.7.8)
>
> For example in cplex is computed as follows:
>
> relative_gap = | bestnode - bestinteger | / (1e-10 + | bestinteger | )
>
> is it exactly the same ?
>
>
> Thanks in advance,
> Marco
>
>
>
>
> _______________________________________________
> Cbc mailing list
> Cbc at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/cbc

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cbc/attachments/20130320/b003e7d8/attachment.html>


More information about the Cbc mailing list