Ok, got it.<div>Thank you very much for your fast response (and for the work on this awesome solver)</div><div><br></div><div><br><div class="gmail_quote">On Wed, Mar 20, 2013 at 4:04 PM, John Forrest <span dir="ltr"><<a href="mailto:john.forrest@fastercoin.com" target="_blank">john.forrest@fastercoin.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Marco,<br>
<br>
CbcModel::canStopOnGap()<br>
<br>
not exactly the same - effectively<br>
<br>
relative_gap = | bestnode - bestinteger | / max(|bestnode|, |
bestinteger | )<br>
<br>
John Forrest<div><div class="h5"><br>
On 20/03/13 14:44, mg wrote:<br>
</div></div></div>
<blockquote type="cite"><div><div class="h5">Hi All,
<div>please someone can clarify how the relative MIP gap is
calculated in CBC ?</div>
<div><br>
</div>
<div>I searched but I wasn't able to find the formula (I'm using
2.7.8)</div>
<div><br>
</div>
<div>For example in cplex is computed as follows:</div>
<div><br>
</div>
<div>relative_gap = | bestnode - bestinteger | / (1e-10 + |
bestinteger | )</div>
<div><br>
</div>
<div>is it exactly the same ?</div>
<div><br>
</div>
<div><br>
</div>
<div>Thanks in advance,</div>
<div>Marco</div>
<div><br>
</div>
<div><br>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
Cbc mailing list
<a href="mailto:Cbc@list.coin-or.org" target="_blank">Cbc@list.coin-or.org</a>
<a href="http://list.coin-or.org/mailman/listinfo/cbc" target="_blank">http://list.coin-or.org/mailman/listinfo/cbc</a>
</pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
Cbc mailing list<br>
<a href="mailto:Cbc@list.coin-or.org">Cbc@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/cbc" target="_blank">http://list.coin-or.org/mailman/listinfo/cbc</a><br>
<br></blockquote></div><br></div>