<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi Patrik,<br>
<br>
This is expected.<br>
<br>
The simplex method performs a series of operations with limited
precision numbers, so that the final result is an approximation
(usually a good one) of the optimal solution.<br>
<br>
Usually rounding numbers up to the 8-th decimal place should give
you the right integral values.<br>
<br>
Cheers,<br>
<br>
Haroldo<br>
<br>
<div class="moz-cite-prefix">On 20-06-2014 13:30, Patrik Dufresne
wrote:<br>
</div>
<blockquote
cite="mid:CAJ=kj5xtN4ieXzbcUzjksP-QZMWeZkyg73Udp9BArMdMZusHbA@mail.gmail.com"
type="cite">
<div dir="ltr">Hello,
<div><br>
</div>
<div>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).</div>
<div>e.g.:</div>
<div><span style="color:rgb(0,0,0);font-family:'Courier
New',Courier,monospace;font-size:14px">0.9999999999988346</span></div>
<div><span style="color:rgb(0,0,0);font-family:'Courier
New',Courier,monospace;font-size:14px">0.9999999999999998</span><br
style="color:rgb(0,0,0);font-family:'Courier
New',Courier,monospace;font-size:14px">
<span style="color:rgb(0,0,0);font-family:'Courier
New',Courier,monospace;font-size:14px">0.9999999999999998</span><br
style="color:rgb(0,0,0);font-family:'Courier
New',Courier,monospace;font-size:14px">
<span style="color:rgb(0,0,0);font-family:'Courier
New',Courier,monospace;font-size:14px">0.999999999999899</span><br
style="color:rgb(0,0,0);font-family:'Courier
New',Courier,monospace;font-size:14px">
<span style="color:rgb(0,0,0);font-family:'Courier
New',Courier,monospace;font-size:14px">1.0000000000000004</span><br>
</div>
<div><br>
</div>
<div>Am I doing something wrong ? Why is the variable not fixed
to either 0 or 1 ?</div>
<div><br clear="all">
<div>
<div dir="ltr">
<div>--</div>
Patrik Dufresne Service Logiciel
<div><a moz-do-not-send="true"
href="http://patrikdufresne.com/" target="_blank">http://patrikdufresne.com</a>/<br>
<div>
<div><a moz-do-not-send="true" href="tel:514-971-6442"
value="+15149716442" target="_blank">514-971-6442</a></div>
<div><a moz-do-not-send="true" href="tel:438-738-1376"
value="+14387381376" target="_blank">438-738-1376</a></div>
<div>114 rue des Hautbois, app1</div>
<div>St-Colomban, QC J5K 2H6</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Cbc mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Cbc@list.coin-or.org">Cbc@list.coin-or.org</a>
<a class="moz-txt-link-freetext" href="http://list.coin-or.org/mailman/listinfo/cbc">http://list.coin-or.org/mailman/listinfo/cbc</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
==================================================
Haroldo Gambini Santos
D.Sc, Computer Science
Universidade Federal de Ouro Preto
<a class="moz-txt-link-freetext" href="http://www.decom.ufop.br/haroldo/">http://www.decom.ufop.br/haroldo/</a></pre>
</body>
</html>