Changeset 236 for trunk


Ignore:
Timestamp:
Jan 30, 2006 5:11:07 PM (14 years ago)
Author:
forrest
Message:

out messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CbcHeuristicFPump.cpp

    r232 r236  
    178178      solver->setDblParam(OsiObjOffset,saveOffset);
    179179      double newSolutionValue = direction*solver->OsiSolverInterface::getObjValue();
    180       if (solver->messageHandler()->logLevel())
     180      if (model_->logLevel())
    181181        printf(" - solution found\n");
    182182      newLineNeeded=false;
     
    228228      if (matched || numberPasses%100 == 0) {
    229229         // perturbation
    230         if (solver->messageHandler()->logLevel())
     230        if (model_->logLevel())
    231231          printf("Perturbation applied");
    232232         newLineNeeded=true;
     
    276276      solver->setDblParam(OsiObjOffset,-offset);
    277277      solver->resolve();
    278       if (solver->messageHandler()->logLevel())
     278      if (model_->logLevel())
    279279        printf("\npass %3d: obj. %10.5lf --> ", numberPasses,solver->getObjValue());
    280280      newLineNeeded=true;
     
    282282    }
    283283  } // END WHILE
    284   if (newLineNeeded&&solver->messageHandler()->logLevel())
     284  if (newLineNeeded&&model_->logLevel())
    285285    printf(" - no solution found\n");
    286286  delete solver;
     
    366366
    367367  if (nnv > nn) nnv = nn;
    368   if (iter != 0&&solver->messageHandler()->logLevel())
     368  if (iter != 0&&model_->logLevel())
    369369    printf("up = %5d , down = %5d", flip_up, flip_down); fflush(stdout);
    370370  *flip = flip_up + flip_down;
     
    372372
    373373  if (*flip == 0 && iter != 0) {
    374     if(solver->messageHandler()->logLevel())
     374    if(model_->logLevel())
    375375      printf(" -- rand = %4d (%4d) ", nnv, nn);
    376376     for (i = 0; i < nnv; i++) solution[list[i]] = 1. - solution[list[i]];
    377377     *flip = nnv;
    378   } else if (solver->messageHandler()->logLevel()) {
     378  } else if (model_->logLevel()) {
    379379    printf(" ");
    380380  }
Note: See TracChangeset for help on using the changeset viewer.