<html><body>
<p>Mathieu,<br>
<br>
It sounds as if the cut generators you are using have &quot;mustCallAgain&quot; flag set so that they go round and round until no cut is generated.  - is that so?<br>
<br>
I have modified code so eventHappened_ will be set - that seems to skip more stuff and I hope it will do the trick for you (and stop a bit faster).<br>
<br>
John<br>
<br>
<img width="16" height="16" src="cid:1__=0ABBFC8EDFC297378f9e8a93df938@us.ibm.com" border="0" alt="Inactive hide details for Mathieu LACROIX ---08/25/2009 10:25:35 AM---John, Thank you for having updated Cbc. The trunk version"><font color="#424282">Mathieu LACROIX ---08/25/2009 10:25:35 AM---John, Thank you for having updated Cbc. The trunk version stops when time</font><br>
<br>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td width="1%"><img width="96" height="1" src="cid:2__=0ABBFC8EDFC297378f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2" color="#5F5F5F">From:</font></td><td width="100%"><img width="1" height="1" src="cid:2__=0ABBFC8EDFC297378f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2">Mathieu LACROIX &lt;lacroix@lamsade.dauphine.fr&gt;</font></td></tr>

<tr valign="top"><td width="1%"><img width="96" height="1" src="cid:2__=0ABBFC8EDFC297378f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2" color="#5F5F5F">To:</font></td><td width="100%"><img width="1" height="1" src="cid:2__=0ABBFC8EDFC297378f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2">John J Forrest/Watson/IBM@IBMUS</font></td></tr>

<tr valign="top"><td width="1%"><img width="96" height="1" src="cid:2__=0ABBFC8EDFC297378f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2" color="#5F5F5F">Cc:</font></td><td width="100%" valign="middle"><img width="1" height="1" src="cid:2__=0ABBFC8EDFC297378f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2">Mathieu Lacroix &lt;lacroix@isima.fr&gt;, cbc@list.coin-or.org, cbc-bounces@list.coin-or.org</font></td></tr>

<tr valign="top"><td width="1%"><img width="96" height="1" src="cid:2__=0ABBFC8EDFC297378f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2" color="#5F5F5F">Date:</font></td><td width="100%"><img width="1" height="1" src="cid:2__=0ABBFC8EDFC297378f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2">08/25/2009 10:25 AM</font></td></tr>

<tr valign="top"><td width="1%"><img width="96" height="1" src="cid:2__=0ABBFC8EDFC297378f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2" color="#5F5F5F">Subject:</font></td><td width="100%"><img width="1" height="1" src="cid:2__=0ABBFC8EDFC297378f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2">Re: [Cbc] [CBC] Time limit in Cbc</font></td></tr>
</table>
<hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br>
<br>
<br>
<tt>John,<br>
<br>
Thank you for having updated Cbc. The trunk version stops when time <br>
limit is reached. However, there is another problem.<br>
When the time limit is reached, Cbc stops the cut generation but does <br>
not check if there exist some violated constraints.<br>
Therefore, in some cases, the solution obtained by Cbc is integer and <br>
thus, it is considered as feasible. Unfortunately,<br>
this is not the case in my problem since I have an exponential number of <br>
constraints in my formulation.<br>
<br>
In order to avoid this problem, another cut generation must be done. If <br>
any violated constraint is found, thus, the solution<br>
obtained by Cbc is infeasible, even if it is integer. Is there any <br>
option to force Cbc to compute another cut generation in order<br>
to know if the last solution is feasible for the problem?<br>
<br>
Thank you for your help,<br>
Best regards,<br>
Mathieu<br>
<br>
John J Forrest a écrit :<br>
&gt;<br>
&gt; Mathieu,<br>
&gt;<br>
&gt; Cbc does check time after each round of cuts and a solve. When I <br>
&gt; played around with a time limit, I found that it was still going into <br>
&gt; heuristics at root node. This could be the problem, especially as the <br>
&gt; time limit check in an expensive heuristic (i.e. one that does a small <br>
&gt; branch and bound) checks the time it has spent against smaller of its <br>
&gt; time limit and overall time limit. It should be checking total time spent.<br>
&gt;<br>
&gt; Will put in a few more checks and fix time check at weekend - see if <br>
&gt; that helps.<br>
&gt;<br>
&gt; Solution etc looks OK to me.<br>
&gt;<br>
&gt; John<br>
&gt;<br>
&gt; Inactive hide details for Mathieu Lacroix ---08/19/2009 05:43:05 <br>
&gt; AM---Hello everybody, It is possible to give a time limit to CMathieu <br>
&gt; Lacroix ---08/19/2009 05:43:05 AM---Hello everybody, It is possible to <br>
&gt; give a time limit to Cbc. However, it seems that cbc<br>
&gt;<br>
&gt;<br>
&gt; From:                  <br>
&gt; Mathieu Lacroix &lt;lacroix@isima.fr&gt;<br>
&gt;<br>
&gt; To:                  <br>
&gt; cbc@list.coin-or.org<br>
&gt;<br>
&gt; Date:                  <br>
&gt; 08/19/2009 05:43 AM<br>
&gt;<br>
&gt; Subject:                  <br>
&gt; [Cbc] [CBC] Time limit in Cbc<br>
&gt;<br>
&gt; Sent by:                  <br>
&gt; cbc-bounces@list.coin-or.org<br>
&gt;<br>
&gt; ------------------------------------------------------------------------<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Hello everybody,<br>
&gt;<br>
&gt; It is possible to give a time limit to Cbc. However, it seems that cbc<br>
&gt; checks whether the time limit is reached only before branching. As in my<br>
&gt; problem, the time limit is reached before branching (due to cut<br>
&gt; generation at the root node), is it possible to force cbc to check the<br>
&gt; time limit after each cut generation? And if the time limit is reached,<br>
&gt; how to stop cbc without loosing all the informations (upper bound, lower<br>
&gt; bound and best solution found if any)?<br>
&gt;<br>
&gt; Thanks you for any reply,<br>
&gt; Cheers,<br>
&gt;<br>
&gt; Mathieu LACROIX<br>
&gt;<br>
&gt; -- <br>
&gt; Mathieu LACROIX<br>
&gt; lacroix@lamsade.dauphine.fr<br>
&gt; Laboratoire LAMSADE<br>
&gt; Université Paris-Dauphine<br>
&gt; Place du Maréchal de Lattre de Tassigny<br>
&gt; 75775 Paris cedex 16 - France<br>
&gt; Tel: +33 (0)1 44 05 48 53<br>
&gt; URL: </tt><tt><a href="http://epoc.isima.fr/~lacroix/">http://epoc.isima.fr/~lacroix/</a></tt><tt>&nbsp;&lt;</tt><tt><a href="http://epoc.isima.fr/%7Elacroix/">http://epoc.isima.fr/%7Elacroix/</a></tt><tt>&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Cbc mailing list<br>
&gt; Cbc@list.coin-or.org<br>
&gt; </tt><tt><a href="http://list.coin-or.org/mailman/listinfo/cbc">http://list.coin-or.org/mailman/listinfo/cbc</a></tt><tt><br>
&gt;<br>
&gt;<br>
&gt; ------------------------------------------------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Cbc mailing list<br>
&gt; Cbc@list.coin-or.org<br>
&gt; </tt><tt><a href="http://list.coin-or.org/mailman/listinfo/cbc">http://list.coin-or.org/mailman/listinfo/cbc</a></tt><tt><br>
&gt; &nbsp; <br>
<br>
<br>
-- <br>
Mathieu LACROIX<br>
lacroix@lamsade.dauphine.fr<br>
Laboratoire LAMSADE<br>
Université Paris-Dauphine<br>
Place du Maréchal de Lattre de Tassigny<br>
75775 Paris cedex 16 - France<br>
Tel: +33 (0)1 44 05 48 53<br>
URL: </tt><tt><a href="http://epoc.isima.fr/~lacroix/">http://epoc.isima.fr/~lacroix/</a></tt><tt><br>
<br>
<br>
</tt><br>
<br>
</body></html>