[Cbc] Redirect output to stderr

Gleb Belov gleb.belov at monash.edu
Wed Jan 27 20:26:23 EST 2016


Have tried CbcModel::passInMessageHandler(msgNew) with msgNEw defined 
either as

     CoinMessageHandler msgNew1(stderr);

or

     class StderrCoinMessageHandler : public CoinMessageHandler {
       int print() {
         cerr << messageBuffer_ << endl;
       }
       void checkSeverity() {
       }
     } msgNew2;

Without preprocessing, the linked code says

    Welcome to the CBC MILP Solver
    Version: 2.9
    Build Date: Jan 28 2016
    Revision Number: 2244

    command line - cbc -preprocess off -solve -quit -quit (default
    strategy 1)
    Option for preprocess changed from sos to off


and nothing more. With preprocessing,

    Welcome to the CBC MILP Solver
    Version: 2.9
    Build Date: Jan 28 2016
    Revision Number: 2244

    command line - cbc -solve -quit -quit (default strategy 1)
    4 fixed, 144 tightened bounds, 987 strengthened rows, 0 substitutions
    0 fixed, 44 tightened bounds, 0 strengthened rows, 0 substitutions
    0 fixed, 0 tightened bounds, 1095 strengthened rows, 0 substitutions
    0 fixed, 0 tightened bounds, 846 strengthened rows, 0 substitutions
    0 fixed, 0 tightened bounds, 790 strengthened rows, 0 substitutions
    0 fixed, 0 tightened bounds, 610 strengthened rows, 0 substitutions
    0 fixed, 0 tightened bounds, 448 strengthened rows, 0 substitutions
    0 fixed, 0 tightened bounds, 366 strengthened rows, 0 substitutions
    0 fixed, 0 tightened bounds, 384 strengthened rows, 0 substitutions
    0 fixed, 0 tightened bounds, 354 strengthened rows, 0 substitutions
    processed model has 1437 rows, 765 columns (765 integer (535 of
    which binary)) and 9676 elements
    Cutoff increment increased from 1e-05 to 0.9999


and again nothing more... Unmodified output used to have normal progress 
log.

Gleb

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cbc/attachments/20160128/58c56373/attachment.html>


More information about the Cbc mailing list