[Cbc] Interpreting output close to 1 or 0, but not 1 or 0

Daniel Grace danwgrace at gmail.com
Sun Jan 19 08:24:09 EST 2020


Hi,

I noticed that CBC sometimes outputs values, from a MIP, very close, but
not equal to 1 or 0. When interpreting the variable value from CBC as a 1
or 0, but 1 or 0 is not outputted, what is a good tolerance to use i.e.
with a tolerance of 0.00001?

if (x > 0.99999)
  x = 1;
else if (x < 0.00001)
  x = 0;

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


More information about the Cbc mailing list