Changeset 487 for trunk


Ignore:
Timestamp:
Nov 9, 2006 10:46:17 AM (13 years ago)
Author:
forrest
Message:

verbosity

Location:
trunk/Cbc/src
Files:
2 edited

Legend:

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

    r437 r487  
    217217{
    218218  const char prefix[] = "Cbc_C_Interface::Cbc_newModel(): ";
    219   const int  VERBOSE = 1;
     219  // const int  VERBOSE = 1;
    220220  if (VERBOSE>0) printf("%s begin\n",prefix);
    221221 
     
    236236{
    237237  const char prefix[] = "Cbc_C_Interface::Cbc_deleteModel(): ";
    238   const int  VERBOSE = 1;
     238  // const int  VERBOSE = 1;
    239239  if (VERBOSE>0) printf("%s begin\n",prefix); fflush(stdout);
    240240 
     
    744744
    745745  int result = 0;
    746 // cannot find this in Cbc, Osi, or OsiClp
    747 //tbd  result = model->model_->solver()->maximumIterations();
    748   printf("%s ERROR: NOT IMPLEMENTED\n",prefix);
     746  model->model_->solver()->getIntParam(OsiMaxNumIteration,result);
    749747
    750748  if (VERBOSE>0) printf("%s return %i\n",prefix,result);
     
    758756  if (VERBOSE>0) printf("%s begin\n",prefix);
    759757
    760 // cannot find this in Cbc, Osi, or OsiClp
    761 //tbd  model->model_->setMaximumIterations(value);
    762   printf("%s ERROR: NOT IMPLEMENTED\n",prefix);
     758  model->model_->solver()->setIntParam(OsiMaxNumIteration,value);
    763759
    764760  if (VERBOSE>0) printf("%s return\n",prefix);
     
    22632259{
    22642260  const char prefix[] = "Cbc_C_Interface::Cbc_clone(): ";
    2265   const int  VERBOSE = 1;
     2261  // const int  VERBOSE = 1;
    22662262  if (VERBOSE>0) printf("%s begin\n",prefix);
    22672263 
  • trunk/Cbc/src/Cbc_C_Interface.h

    r437 r487  
    115115  COINLIBAPI int COINLINKAGE Cbc_numberIterations(Cbc_Model * model);
    116116  COINLIBAPI void COINLINKAGE Cbc_setNumberIterations(Cbc_Model * model, int numberIterations);
    117   /** Maximum number of iterations */
     117  /** Maximum number of iterations (only useful in initial solve) */
    118118  COINLIBAPI int Cbc_maximumIterations(Cbc_Model * model);
    119119  COINLIBAPI void COINLINKAGE Cbc_setMaximumIterations(Cbc_Model * model, int value);
Note: See TracChangeset for help on using the changeset viewer.