<div>&nbsp;</div>
<div>Hi everyone,</div>
<div>&nbsp;</div>
<div>I am using an MPS file which is located at the following location:</div>
<div><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://uts.cc.utexas.edu/~jeetv/MIPproblem.mps" target="_blank">http://uts.cc.utexas.edu/~jeetv/MIPproblem.mps</a>&nbsp;(too big to be posted here...)</div>

<div>&nbsp;</div>
<div>When I am using the following code it returns the message isAbandoned regardless </div>
<div>whether&nbsp;branchAndBound() is called or not....but if I use Cbc solver directly, it returns the primal infeasibility. Could you check if the status functions (called in the code below) written OsiCbcSolverInterface() are working properly.. 
</div>
<div>&nbsp;</div>
<div>regards,</div>
<div>vishy</div>
<div>&nbsp;</div>
<div><strong>Code for solving the MPS file using Osi interface:</strong></div>
<div>&nbsp;</div>
<div>#include &lt;iostream.h&gt;</div>
<div>#include &quot;OsiCbcSolverInterface.hpp&quot;</div>
<div>
<p>int main() {<br>&nbsp; MP_model my_knap(new OsiCbcSolverInterface);<br>&nbsp; int num_err = 0;<br>&nbsp; num_err = my_knap-&gt;readMps(&quot;MIPproblem&quot;);<br>&nbsp; if(num_err != 0)<br>&nbsp; cout &lt;&lt; &quot;errors reading MPS file\n&quot;; 
<br>&nbsp; <br>&nbsp; my_knap-&gt;branchAndBound();<br></p>
<p>&nbsp; if( my_knap-&gt;isProvenPrimalInfeasible() == true)<br>&nbsp;&nbsp;&nbsp; cout &lt;&lt; &quot;primal infeasible\n&quot;;<br>&nbsp;&nbsp; if( my_knap-&gt;isProvenDualInfeasible() == true)<br>&nbsp;&nbsp;&nbsp; cout &lt;&lt; &quot;dual infeasible\n&quot;;&nbsp;<br>
&nbsp; if( my_knap-&gt;isAbandoned() == true)<br>&nbsp;&nbsp;&nbsp; cout &lt;&lt; &quot;isAbandoned\n&quot;;<br>&nbsp; if( my_knap-&gt;isProvenOptimal() == true)<br>&nbsp;&nbsp;&nbsp; cout &lt;&lt; &quot;isProvenOptimal\n&quot;;<br>&nbsp;&nbsp; if( my_knap-&gt;isDualObjectiveLimitReached() == true) 
<br>&nbsp;&nbsp;&nbsp; cout &lt;&lt; &quot;isDualObjectiveLimitReached\n&quot;;<br>&nbsp; if( my_knap-&gt;isPrimalObjectiveLimitReached() == true)<br>&nbsp;&nbsp;&nbsp; cout &lt;&lt; &quot;isPrimalObjectiveLimitReached\n&quot;;<br>&nbsp; if( my_knap-&gt;isIterationLimitReached() == true) 
<br>&nbsp;&nbsp;&nbsp; cout &lt;&lt; &quot;isIterationLimitReached\n&quot;;<br>}<br></p></div>
<div>executabe&nbsp; prints &quot;<strong>isAbandoned</strong>&quot;....</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>
<div><strong>Code for solving the MPS file using&nbsp;Cbc directly:</strong></div></div>
<div>&nbsp;</div>
<div><strong>Using minimum.cpp in Cbc examples --aalong with the following test:</strong></div>
<div><br>&nbsp;33&nbsp;&nbsp; if (model.isProvenInfeasible () == true)<br>&nbsp;34&nbsp;&nbsp;&nbsp;&nbsp; cout&lt;&lt; &quot;YES&quot;&lt;&lt;endl;</div>
<div>&nbsp;35&nbsp;&nbsp; else</div>
<div>&nbsp;36&nbsp;&nbsp;&nbsp;&nbsp; cout&lt;&lt; &quot;NO&quot;&lt;&lt;endl;</div>
<div>&nbsp;</div>
<div>executabe&nbsp; prints &quot;<strong>YES</strong>&quot;....</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div><br clear="all">&nbsp;</div>
<div><br>-- <br>Best Regards,<br>Vishv Jeet, Ph.D.,<br>Operations Research Scientist,<br>Gravitant Inc.,<br>(The Business Governance Company)<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.gravitant.com/" target="_blank">
http://www.gravitant.com</a><br>Austin, TX, USA. <br>Cell&nbsp;&nbsp;&nbsp;&nbsp;: 1-512-657-8678<br>Home : 1-512-788-5795<br>Work&nbsp;&nbsp;: 1-512-535-7399 <br>_______________________<br>Youngest Music Meastro<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.mayanksahu.net/" target="_blank">
http://www.mayanksahu.net</a> </div>