<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Aykut,<br>
      <br>
      Behaviour is due to a "feature".  initialSolve presolves the
      problem, solves it and finds it to be dual infeasible.  Because<br>
      ClpSimplex::moreSpecialOptions_ default has         "2 bit - if
      presolved problem infeasible return" set it does not create a ray.<br>
      <br>
      So - either -<br>
      <br>
      do solver-&gt;resolve() if infeasible - this will give ray as does
      not do presolve<br>
      <br>
      or<br>
      <br>
      add the elegant line<br>
      <br>
      dynamic_cast&lt;OsiClpSolverInterface *
      &gt;(solver)-&gt;getModelPtr()-&gt;setMoreSpecialOptions(0);<br>
      <br>
      before initialSolve <br>
      <br>
      John Forrest<br>
      <br>
      On 11/09/14 22:39, Aykut Bulut wrote:<br>
    </div>
    <blockquote
cite="mid:CAE6eEJnMDOix6Cp94-85=YN-L0L=Hmw3CcG_Z2DbLwkcYFasOQ@mail.gmail.com"
      type="cite">
      <meta http-equiv="Context-Type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div>I use OsiClp for my application and getPrimalRays()
          function does not return any unboundedness direction when it
          should (when dual is infeasible and primal is not). You can
          see the attached code and mps file.</div>
        <div><br>
        </div>
        <div>Any help would be appreciated.</div>
        <div><br>
        </div>
        <div>Best,</div>
        <div>Aykut</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>