<font face="arial,helvetica,sans-serif">In CbcModel you should use:<br><br></font><a class="el" href="http://www.coin-or.org/Doxygen/Cbc/classCbcModel.html#a015e952199f9f510bf71dc2bebecb99d">setCutoff</a> (double value)<br>
<br><a class="el" href="http://www.coin-or.org/Doxygen/Cbc/classCbcModel.html#a57294034329f01449f16c3ae2e3ea7c2">setMaximumSolutions</a> (int value)<br><br><div class="gmail_quote">On Mon, Jul 9, 2012 at 3:03 PM, Haroldo Santos <span dir="ltr">&lt;<a href="mailto:haroldo.santos@gmail.com" target="_blank">haroldo.santos@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><font face="arial,helvetica,sans-serif">Using:<br><br><span style="font-family:courier new,monospace">cbc air04.lp cuto 57270 maxso 1 solve </span><br>
<br>Cbc will exit as soon as a solution better than </font><font face="arial,helvetica,sans-serif"><span style="font-family:courier new,monospace">57270 is found.<br>
<br>Cheers,<br><br>Haroldo<br></span></font><div class="HOEnZb"><div class="h5"><br><br><br><div class="gmail_quote">On Mon, Jul 9, 2012 at 2:36 PM, Stefano Avallone <span dir="ltr">&lt;<a href="mailto:stavallo@unina.it" target="_blank">stavallo@unina.it</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I am using a Cbc model to solve a mixed integer linear problem. The goal is to<br>
minimize a given objective function, but I would like to stop the execution as<br>
soon as a solution better than a provided value is found.<br>
<br>
It looks like that none of the methods of the CbcModel class provides the<br>
functionality I need. Any hint how to do that?<br>
<br>
Many thanks in advance,<br>
Stefano<br>
<br>
_______________________________________________<br>
Cbc mailing list<br>
<a href="mailto:Cbc@list.coin-or.org" target="_blank">Cbc@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/cbc" target="_blank">http://list.coin-or.org/mailman/listinfo/cbc</a><br>
</blockquote></div><br><br clear="all"><br></div></div><span class="HOEnZb"><font color="#888888">-- <br>=============================================================<br>Haroldo Gambini Santos<br>Computing Department - Universidade Federal de Ouro Preto - UFOP<br>
email: haroldo [at ] <a href="http://iceb.ufop.br" target="_blank">iceb.ufop.br</a><br>
home/research page: <a href="http://www.decom.ufop.br/haroldo/" target="_blank">www.decom.ufop.br/haroldo/</a><br> <br>&quot;Computer science is no more about computers than astronomy <br>is about telescopes.&quot; Edsger Dijkstra<br>

 <br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>=============================================================<br>Haroldo Gambini Santos<br>Computing Department - Universidade Federal de Ouro Preto - UFOP<br>
email: haroldo [at ] <a href="http://iceb.ufop.br" target="_blank">iceb.ufop.br</a><br>home/research page: <a href="http://www.decom.ufop.br/haroldo/" target="_blank">www.decom.ufop.br/haroldo/</a><br> <br>&quot;Computer science is no more about computers than astronomy <br>
is about telescopes.&quot; Edsger Dijkstra<br> <br>