Changeset 220 for trunk


Ignore:
Timestamp:
Nov 30, 2005 11:42:04 AM (14 years ago)
Author:
forrest
Message:

log level

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/CbcModel.cpp

    r216 r220  
    64956495}
    64966496#endif
     6497// Set log level
     6498void
     6499CbcModel::setLogLevel(int value)
     6500{
     6501  handler_->setLogLevel(value);
     6502  // Reduce print out in Osi
     6503  if (solver_) {
     6504    int oldLevel = solver_->messageHandler()->logLevel();
     6505    if (value<oldLevel)
     6506      solver_->messageHandler()->setLogLevel(value);
     6507#ifdef COIN_USE_CLP
     6508    OsiClpSolverInterface * clpSolver
     6509      = dynamic_cast<OsiClpSolverInterface *> (solver_);
     6510    if (clpSolver) {
     6511      ClpSimplex * clpSimplex = clpSolver->getModelPtr();
     6512      int oldLevel = clpSimplex->logLevel();
     6513      if (value<oldLevel)
     6514        clpSimplex->setLogLevel(value);
     6515    }
     6516#endif
     6517  }
     6518}
  • trunk/include/CbcModel.hpp

    r216 r220  
    12981298  {return &messages_;};
    12991299  /// Set log level
    1300   inline void setLogLevel(int value)
    1301   { handler_->setLogLevel(value);};
     1300  void setLogLevel(int value);
    13021301  /// Get log level
    13031302  inline int logLevel() const
Note: See TracChangeset for help on using the changeset viewer.