[Cbc] Using CbcEventHandler to add cuts
John Forrest
john.forrest at fastercoin.com
Mon Jan 18 04:38:20 EST 2016
Haroldo,
The addCuts event is just for cuts which are generated when standard
code thinks it has a solution, so probably not what you want.
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.
John
On 15/01/16 18:57, Haroldo Gambini Santos wrote:
> 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/
>
>
> _______________________________________________
> Cbc mailing list
> Cbc at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/cbc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cbc/attachments/20160118/0c089194/attachment.html>
More information about the Cbc
mailing list