Changeset 401 for trunk


Ignore:
Timestamp:
Jul 7, 2006 12:20:25 PM (13 years ago)
Author:
forrest
Message:

use models message handler in preprocess

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cbc/src/CbcStrategy.cpp

    r356 r401  
    299299    // solver_ should have been cloned outside
    300300    CglPreProcess * process = new CglPreProcess();
     301    // Pass in models message handler
     302    process->passInMessageHandler(model.messageHandler());
    301303    OsiSolverInterface * solver = model.solver();
    302304    int logLevel = model.messageHandler()->logLevel();
     
    325327    generator1.setRowCuts(3);
    326328    //generator1.messageHandler()->setLogLevel(logLevel);
    327     process->messageHandler()->setLogLevel(logLevel);
     329    // Not needed with pass in process->messageHandler()->setLogLevel(logLevel);
    328330    // Add in generators
    329331    process->addCutGenerator(&generator1);
Note: See TracChangeset for help on using the changeset viewer.