Changeset 236
 Timestamp:
 Jan 30, 2006 5:11:07 PM (15 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/CbcHeuristicFPump.cpp
r232 r236 178 178 solver>setDblParam(OsiObjOffset,saveOffset); 179 179 double newSolutionValue = direction*solver>OsiSolverInterface::getObjValue(); 180 if ( solver>messageHandler()>logLevel())180 if (model_>logLevel()) 181 181 printf("  solution found\n"); 182 182 newLineNeeded=false; … … 228 228 if (matched  numberPasses%100 == 0) { 229 229 // perturbation 230 if ( solver>messageHandler()>logLevel())230 if (model_>logLevel()) 231 231 printf("Perturbation applied"); 232 232 newLineNeeded=true; … … 276 276 solver>setDblParam(OsiObjOffset,offset); 277 277 solver>resolve(); 278 if ( solver>messageHandler()>logLevel())278 if (model_>logLevel()) 279 279 printf("\npass %3d: obj. %10.5lf > ", numberPasses,solver>getObjValue()); 280 280 newLineNeeded=true; … … 282 282 } 283 283 } // END WHILE 284 if (newLineNeeded&& solver>messageHandler()>logLevel())284 if (newLineNeeded&&model_>logLevel()) 285 285 printf("  no solution found\n"); 286 286 delete solver; … … 366 366 367 367 if (nnv > nn) nnv = nn; 368 if (iter != 0&& solver>messageHandler()>logLevel())368 if (iter != 0&&model_>logLevel()) 369 369 printf("up = %5d , down = %5d", flip_up, flip_down); fflush(stdout); 370 370 *flip = flip_up + flip_down; … … 372 372 373 373 if (*flip == 0 && iter != 0) { 374 if( solver>messageHandler()>logLevel())374 if(model_>logLevel()) 375 375 printf("  rand = %4d (%4d) ", nnv, nn); 376 376 for (i = 0; i < nnv; i++) solution[list[i]] = 1.  solution[list[i]]; 377 377 *flip = nnv; 378 } else if ( solver>messageHandler()>logLevel()) {378 } else if (model_>logLevel()) { 379 379 printf(" "); 380 380 }
Note: See TracChangeset
for help on using the changeset viewer.