Changeset 2527


Ignore:
Timestamp:
Mar 13, 2019 9:19:37 AM (7 months ago)
Author:
stefan
Message:

print OsiCbc? deprecation warning only if loglevel > 0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cbc/src/OsiCbc/OsiCbcSolverInterface.cpp

    r2469 r2527  
    749749void OsiCbcSolverInterface::branchAndBound()
    750750{
    751   *messageHandler() << "Warning: Use of OsiCbc is deprecated." << CoinMessageEol;
    752   *messageHandler() << "To enjoy the full performance of Cbc, use the CbcSolver interface." << CoinMessageEol;
     751  if( messageHandler()->logLevel() > 0 ) {
     752    *messageHandler() << "Warning: Use of OsiCbc is deprecated." << CoinMessageEol;
     753    *messageHandler() << "To enjoy the full performance of Cbc, use the CbcSolver interface." << CoinMessageEol;
     754  }
    753755  modelPtr_->branchAndBound();
    754756}
Note: See TracChangeset for help on using the changeset viewer.