<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">I have added a ClpSimplex::cleanPrimalSolution(double
      exactMultiple) - you will use 1.0<br>
      <br>
      to trunk.  I am not sure I am allowed to add new functions to
      stable.<br>
      <br>
      If you are not using trunk then just copy ClpSimplex.?pp from
      trunk - or I can send you code.<br>
      <br>
      Tell me if that works.<br>
      <br>
      John Forrest<br>
      <br>
      On 20/06/15 20:50, Emerson wrote:<br>
    </div>
    <blockquote
cite="mid:CACbXE92mzH+CjB3=9jVsRr5mqZsLPpE-ZfHiGFQV9ZTGFwSqdA@mail.gmail.com"
      type="cite">
      <meta http-equiv="Context-Type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hi,
        <div>I'm testing a network flow problem but encounter a
          float-point headache. The output is something like the
          following:</div>
        <div>
          <div>"~/MultiCommodityFlowTest.cpp:444: Failure</div>
          <div>Value of: linkMap.at(make_pair(0, 3))</div>
          <div>  Actual: 9.9986685597741598e-13</div>
          <div>Expected: 0</div>
        </div>
        <div>"</div>
        <div>Previously, I used glpk and nothing is wrong when using
          google unit test(EXPECT_EQ). But Clp still has a couple of
          floating-point numbers failures s even I use EXPECT_DOUBLE_EQ
          or EXPECT_FLOAT_EQ. </div>
        <div>I think the reason is that glpk uses some default
          post-processing method to handle the value of variable in
          solution, but Clp doesn't have this process. </div>
        <div>Is there a way that Clp can round the solution to a
          reasonable value rather than the above value? </div>
        <div><br>
        </div>
        <div>Thanks,</div>
        <div>Emer</div>
        <div><br>
        </div>
        <div>p.s. Thanks John for the last reply, I have changed the way
          to build a constraint matrix from glpk to Clp, and it works
          better than the former. </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Clp mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Clp@list.coin-or.org">Clp@list.coin-or.org</a>
<a class="moz-txt-link-freetext" href="http://list.coin-or.org/mailman/listinfo/clp">http://list.coin-or.org/mailman/listinfo/clp</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>