<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Haroldo,<br>
<br>
The addCuts event is just for cuts which are generated when
standard code thinks it has a solution, so probably not what you
want.<br>
<br>
I think a derived CglCutGenerator is the correct approach. It is
possible with CbcMain0/1 - see driver4.cpp and case 3 of callBack
which is called just before going into branch and bound.<br>
<br>
John<br>
<br>
On 15/01/16 18:57, Haroldo Gambini Santos wrote:<br>
</div>
<blockquote cite="mid:5699412D.3060209@gmail.com" type="cite">
<meta http-equiv="Context-Type" content="text/html; charset=utf-8">
Hi All,<br>
<br>
I would like to write a specialization of <b>CbcEventHandler</b>
to add cuts. Since I call cbc using CbcMain0 and CbcMain1 I think
this approach would be better than write a CglCutGenerator
specialization.<br>
<br>
I see that in <b>CbcEventHandler</b> there is an action <b>addCuts</b>,
which I suppose that I should set after adding these cuts. <br>
<br>
My question is how should I add these cuts ??? Just add as rows
in <a moz-do-not-send="true" class="el"
href="http://www.coin-or.org/Doxygen/CoinAll/class_cbc_model.html">CbcModel</a>
* <a moz-do-not-send="true" class="el"
href="http://www.coin-or.org/Doxygen/CoinAll/class_cbc_event_handler.html#5d73a3d17289f80bddf77f1f9e3543ee">model</a>
or there is a special way to indicate that I'm adding cuts ???<br>
<br>
<br>
Haroldo <br>
<pre class="moz-signature" cols="72">--
==================================================
Haroldo Gambini Santos
D.Sc, Computer Science
Universidade Federal de Ouro Preto
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.decom.ufop.br/haroldo/">http://www.decom.ufop.br/haroldo/</a></pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Cbc mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Cbc@list.coin-or.org">Cbc@list.coin-or.org</a>
<a class="moz-txt-link-freetext" href="http://list.coin-or.org/mailman/listinfo/cbc">http://list.coin-or.org/mailman/listinfo/cbc</a>
</pre>
</blockquote>
<br>
</body>
</html>