<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi, <br>
I developp a branch and cut algorithm with BCP&nbsp;&nbsp; (with OSI/CLP).<br>
Each iteration, the linear program is solved and then if it is
feasible, the solution is tested to know if it is a solution a the
ILP... So, in the method test_feasibility(..), we first have to check
if the LP was feasible (in order to not test a solution if there
doesn't exist anyone).<br>
So, as in the Fran&ccedil;ois Margot's example (.../COIN/Example/BAC/), I have
first test<br>
&nbsp;<i>
if(getLpProblemPointer()-&gt;lp_solver-&gt;isProvenPrimalInfeasible())
&nbsp;&nbsp;&nbsp; return(0);</i><br>
(I don't test if I'm during strong branching but I don't think it is
the reason of the bugs)<br>
<br>
But I have encountered several bugs. I have&nbsp; to change the test by :<br>
<i>&nbsp;if((getLpProblemPointer()-&gt;lp_solver-&gt;isProvenPrimalInfeasible())
|| (getLpProblemPointer()-&gt;lp_solver-&gt;isDualObjectiveLimitReached
()) || (getLpProblemPointer()-&gt;lp_solver-&gt;isIterationLimitReached
()) || (getLpProblemPointer()-&gt;lp_solver-&gt;isAbandoned ()))<br>
&nbsp;&nbsp;&nbsp; &nbsp; return(0);</i><br>
<br>
And I have to comment the throw error's line in the code's lines
(130-133) in the file BCP_lp_main_loop.cpp&nbsp; : <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;<i>&nbsp; if (tc &amp; BCP_Abandoned) {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // *FIXME* : later we might want to prune this node, but
continue<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; //###&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; throw BCP_fatal_error("LP solver abandoned
the lp.\n");<br>
&nbsp;&nbsp;&nbsp;&nbsp; }</i><br>
<br>
I'm not sure understanding why it isn't sufficient to only test
feasibility with BAC example's test...<br>
In any case, the new test and the comment line seems to allow the
program working well.<br>
<br>
Best regards, <br>
<br>
Mathieu LACROIX<br>
<br>
<br>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
Mathieu LACROIX
<a class="moz-txt-link-abbreviated" href="mailto:mathieu.lacroix@isima.fr">mathieu.lacroix@isima.fr</a>
Universit&eacute; Blaise Pascal - Clermont Fd II
Laboratoire LIMOS
B&acirc;timent ISIMA - Bureau D112
Complexe scientifique des C&eacute;zeaux
63 177 Aubi&egrave;re, Cedex - France
Tel : 04.73.40.79.48
Fax : 04.73.40.76.39
</pre>
</body>
</html>