Changeset 2347


Ignore:
Timestamp:
Nov 9, 2017 12:41:54 PM (11 months ago)
Author:
forrest
Message:

get rid of divide by zero (and too much printing)

Location:
trunk/Cbc/src
Files:
2 edited

Legend:

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

    r2344 r2347  
    93409340        int iProbing = -1;
    93419341        double smallProblem = (0.2 * totalCuts) /
    9342                               static_cast<double> (numberActiveGenerators) ;
     9342                              static_cast<double> (numberActiveGenerators+1.0e-100) ;
    93439343        for (i = 0; i < numberCutGenerators_; i++) {
    93449344            int howOften = generator_[i]->howOften() ;
     
    93639363                    // If large number of probing - can be biased
    93649364                    smallProblem = (0.2 * (totalCuts - generator_[i]->numberCutsInTotal())) /
    9365                                    static_cast<double> (numberActiveGenerators - 1) ;
     9365                                   static_cast<double> (numberActiveGenerators - 1+1.0e-100) ;
    93669366                }
    93679367                iProbing = i;
  • trunk/Cbc/src/CbcTreeLocal.cpp

    r1839 r2347  
    648648            for (int i = 0; i < n; i++) {
    649649                rowCut = global->rowCutPtr(i);
    650                 if (model_->messageHandler()->logLevel() > 0)
     650                if (model_->messageHandler()->logLevel() > 1)
    651651                    printf("%d - rhs %g %g\n",
    652652                           i, rowCut->lb(), rowCut->ub());
Note: See TracChangeset for help on using the changeset viewer.