Changeset 1443 for stable/2.4


Ignore:
Timestamp:
Apr 17, 2010 2:58:17 PM (9 years ago)
Author:
tkr
Message:

Changing assert to warning message for unit test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stable/2.4/Cbc/src/CbcBranchDynamic.cpp

    r1271 r1443  
    17871787    int bestNumber = CoinMin(bestNumberUp_,bestNumberDown_);
    17881788    double distance = cutoff-objectiveValue;
    1789     assert (distance>=0.0);
     1789    if (distance < 0.0){
     1790       std::cout << "Warning: cutoff is bigger than objectiveValue";
     1791       std::cout << std::endl;
     1792    }
     1793    //assert (distance>=0.0);
    17901794    if (useValue+0.1*distance>useBest&&useValue*1.1>useBest&&
    17911795        useBest+0.1*distance>useValue&&useBest*1.1>useValue) {
Note: See TracChangeset for help on using the changeset viewer.