[Cbc] Using CbcEventHandler to add cuts

Haroldo Gambini Santos haroldo.santos at gmail.com
Fri Jan 15 13:57:49 EST 2016


Hi All,

I would like to write a specialization of *CbcEventHandler* to add cuts. 
Since I call cbc using CbcMain0 and CbcMain1 I think this approach would 
be better than write a CglCutGenerator specialization.

I see that in *CbcEventHandler* there is an action *addCuts*, which I 
suppose that I should set after adding these cuts.

My question is how should I add these cuts ???  Just add as rows in 
CbcModel <http://www.coin-or.org/Doxygen/CoinAll/class_cbc_model.html> * 
model 
<http://www.coin-or.org/Doxygen/CoinAll/class_cbc_event_handler.html#5d73a3d17289f80bddf77f1f9e3543ee> 
or there is a special way to indicate that I'm adding cuts ???


Haroldo

-- 
==================================================
Haroldo Gambini Santos
D.Sc, Computer Science
Universidade Federal de Ouro Preto
http://www.decom.ufop.br/haroldo/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cbc/attachments/20160115/6b38ce0f/attachment.html>


More information about the Cbc mailing list