Ignore:
Timestamp:
May 14, 2007 8:37:33 PM (12 years ago)
Author:
lou
Message:

Cbc-generic: Add message handler, separate libCbc and cbc-generic main log
level parameters.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/devel/Cbc/src/CbcGenParamUtils.cpp

    r591 r608  
    2626    \brief Implementation functions for CbcGenParam parameters.
    2727*/
     28
     29namespace {
     30
     31  char svnid[] = "$Id$" ;
     32
     33}
    2834
    2935namespace CbcGenSolvers
     
    321327  param->setLongHelp(
    322328        "This switches on a local search algorithm when a solution is found.  This is from Fischetti and Lodi and is not really a heuristic although it can be used as one. When used from this program it has limited functionality.  It is not controlled by heuristicsOnOff."
     329        ) ;
     330  parameters.push_back(param) ;
     331
     332  param = new CbcGenParam(CbcGenParam::LOGLEVEL,
     333        "log!Level","Level of detail in cbc-generic output.",
     334        -1,999999,ctlBlk->logLvl_) ;
     335  param->setObj(ctlBlk) ;
     336  param->setPushFunc(pushCbcGenIntParam) ;
     337  param->setLongHelp(
     338        "If set to 0 then there should be no output in normal circumstances. A value of 1 is probably the best value for most uses, while 2 and 3 give more information."
    323339        ) ;
    324340  parameters.push_back(param) ;
     
    812828  { case CbcGenParam::CUTDEPTH:
    813829    { ctlBlk->setCutDepth(val) ;
     830      break ; }
     831    case CbcGenParam::LOGLEVEL:
     832    { ctlBlk->setLogLevel(val) ;
    814833      break ; }
    815834    case CbcGenParam::PRINTOPTIONS:
Note: See TracChangeset for help on using the changeset viewer.