Ignore:
Timestamp:
Apr 17, 2011 11:08:40 AM (9 years ago)
Author:
forrest
Message:

out some printf statements

File:
1 edited

Legend:

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

    r1613 r1641  
    886886            } else {
    887887                // bad solution - should not happen so debug if see message
    888                 printf("Local search got bad solution with %d infeasibilities summing to %g\n",
    889                        numberBad, sumBad);
     888                COIN_DETAIL_PRINT(printf("Local search got bad solution with %d infeasibilities summing to %g\n",
     889                                         numberBad, sumBad));
    890890            }
    891891        }
     
    10581058            memcpy(betterSolution, newSolver->getColSolution(),
    10591059                   numberColumns*sizeof(double));
    1060             printf("Naive fixing close to zero gave solution of %g\n", solutionValue);
     1060            COIN_DETAIL_PRINT(printf("Naive fixing close to zero gave solution of %g\n", solutionValue));
    10611061            cutoff = solValue - model_->getCutoffIncrement();
    10621062        }
     
    10951095                // try branch and bound
    10961096                double * newSolution = new double [numberColumns];
    1097                 printf("%d fixed after fixing costs\n", nFix);
     1097                COIN_DETAIL_PRINT(printf("%d fixed after fixing costs\n", nFix));
    10981098                int returnCode = smallBranchAndBound(newSolver,
    10991099                                                     numberNodes_, newSolution,
     
    11111111                    memcpy(betterSolution, newSolution,
    11121112                           numberColumns*sizeof(double));
    1113                     printf("Naive fixing zeros gave solution of %g\n", solutionValue);
     1113                    COIN_DETAIL_PRINT(printf("Naive fixing zeros gave solution of %g\n", solutionValue));
    11141114                    cutoff = solutionValue - model_->getCutoffIncrement();
    11151115                }
     
    11681168            // try branch and bound
    11691169            double * newSolution = new double [numberColumns];
    1170             printf("%d fixed after maximizing\n", nFix);
     1170            COIN_DETAIL_PRINT(printf("%d fixed after maximizing\n", nFix));
    11711171            int returnCode = smallBranchAndBound(newSolver,
    11721172                                                 numberNodes_, newSolution,
     
    11841184                memcpy(betterSolution, newSolution,
    11851185                       numberColumns*sizeof(double));
    1186                 printf("Naive maximizing gave solution of %g\n", solutionValue);
     1186                COIN_DETAIL_PRINT(printf("Naive maximizing gave solution of %g\n", solutionValue));
    11871187                cutoff = solutionValue - model_->getCutoffIncrement();
    11881188            }
Note: See TracChangeset for help on using the changeset viewer.