[Bonmin-tickets] [Bonmin] #35: Add a function to change the message handler of the embedded Cbc solver
Bonmin
coin-trac at coin-or.org
Thu Apr 30 04:25:35 EDT 2009
#35: Add a function to change the message handler of the embedded Cbc solver
------------------------+---------------------------------------------------
Reporter: ycollet | Owner: pbonami
Type: enhancement | Status: new
Priority: major | Component: Bonmin
Version: stable/1.0 | Keywords:
------------------------+---------------------------------------------------
When using Bonmin, some interesting Cbc messages are printed.
It's not yet possible to redirect these messages (to the scilab console
for example).
A new function which allows to pass a CoinMessageHandler should be added
to BonminSetup. For example:
bonmin->linearMIPSolver()->passInMessageHandler(printer); // will change
the message handler of Cbc
The following steps doesn't work:
//Now initialize from myminlp
bonmin->initialize(GetRawPtr(myminlp));
bonmin->options()->GetIntegerValue("bb_log_level",tmp_int,"bonmin");
printer = new DerivedHandler();
printer->setLogLevel(tmp_int);
bonmin->nonlinearSolver()->passInMessageHandler(printer);
bonmin->continuousSolver()->passInMessageHandler(printer);
YC
--
Ticket URL: <https://projects.coin-or.org/Bonmin/ticket/35>
Bonmin <http://projects.coin-or.org/Bonmin>
Basic Open-source Nonlinear Mixed INteger programming
More information about the Bonmin-tickets
mailing list