Changeset 2161


Ignore:
Timestamp:
Mar 13, 2015 2:34:32 PM (4 years ago)
Author:
forrest
Message:

big bug in rounding

File:
1 edited

Legend:

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

    r2146 r2161  
    24202420                    way = -1.0;
    24212421                    improvement = downImprovement;
     2422                    if (isInteger&&currentValue<lowerValue+0.99)
     2423                      continue; // no good
    24222424                } else if (upImprovement > 0.0 && currentValue < upperValue) {
    24232425                    way = 1.0;
    24242426                    improvement = upImprovement;
     2427                    if (isInteger&&currentValue>upperValue-0.99)
     2428                      continue; // no good
    24252429                }
    24262430                if (way) {
Note: See TracChangeset for help on using the changeset viewer.