Changeset 232
 Timestamp:
 Jan 17, 2006 2:13:22 PM (14 years ago)
 Location:
 trunk
 Files:

 2 edited
Legend:
 Unmodified
 Added
 Removed

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