[Cbc] bestSolution() return decimal number for integer variable

Patrik Dufresne info at patrikdufresne.com
Fri Jun 20 12:30:56 EDT 2014


Hello,

Sometime, when I make a call to bestSolution() to retreive the solution to
a MIP, the array return a number htat is not equal to zero(0) or one(1).
e.g.:
0.9999999999988346
0.9999999999999998
0.9999999999999998
0.999999999999899
1.0000000000000004

Am I doing something wrong ? Why is the variable not fixed to either 0 or 1
?

--
Patrik Dufresne Service Logiciel
http://patrikdufresne.com/
514-971-6442
438-738-1376
114 rue des Hautbois, app1
St-Colomban, QC J5K 2H6
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cbc/attachments/20140620/3e9ac9d7/attachment.html>


More information about the Cbc mailing list