<div> </div>
<div>Hi everyone,</div>
<div> </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> (too big to be posted here...)</div>
<div> </div>
<div>When I am using the following code it returns the message isAbandoned regardless </div>
<div>whether 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> </div>
<div>regards,</div>
<div>vishy</div>
<div> </div>
<div><strong>Code for solving the MPS file using Osi interface:</strong></div>
<div> </div>
<div>#include <iostream.h></div>
<div>#include "OsiCbcSolverInterface.hpp"</div>
<div>
<p>int main() {<br> MP_model my_knap(new OsiCbcSolverInterface);<br> int num_err = 0;<br> num_err = my_knap->readMps("MIPproblem");<br> if(num_err != 0)<br> cout << "errors reading MPS file\n";
<br> <br> my_knap->branchAndBound();<br></p>
<p> if( my_knap->isProvenPrimalInfeasible() == true)<br> cout << "primal infeasible\n";<br> if( my_knap->isProvenDualInfeasible() == true)<br> cout << "dual infeasible\n"; <br>
if( my_knap->isAbandoned() == true)<br> cout << "isAbandoned\n";<br> if( my_knap->isProvenOptimal() == true)<br> cout << "isProvenOptimal\n";<br> if( my_knap->isDualObjectiveLimitReached() == true)
<br> cout << "isDualObjectiveLimitReached\n";<br> if( my_knap->isPrimalObjectiveLimitReached() == true)<br> cout << "isPrimalObjectiveLimitReached\n";<br> if( my_knap->isIterationLimitReached() == true)
<br> cout << "isIterationLimitReached\n";<br>}<br></p></div>
<div>executabe prints "<strong>isAbandoned</strong>"....</div>
<div> </div>
<div> </div>
<div> </div>
<div>
<div><strong>Code for solving the MPS file using Cbc directly:</strong></div></div>
<div> </div>
<div><strong>Using minimum.cpp in Cbc examples --aalong with the following test:</strong></div>
<div><br> 33 if (model.isProvenInfeasible () == true)<br> 34 cout<< "YES"<<endl;</div>
<div> 35 else</div>
<div> 36 cout<< "NO"<<endl;</div>
<div> </div>
<div>executabe prints "<strong>YES</strong>"....</div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div><br clear="all"> </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 : 1-512-657-8678<br>Home : 1-512-788-5795<br>Work : 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>