Changeset 145 for trunk/CbcHeuristic.cpp


Ignore:
Timestamp:
Jun 7, 2005 3:43:20 AM (15 years ago)
Author:
forrest
Message:

fix bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CbcHeuristic.cpp

    r144 r145  
    406406      if (way) {
    407407        // can improve
    408         double distance=COIN_DBL_MAX;
     408        double distance;
     409        if (way>0.0)
     410          distance = upperValue-currentValue;
     411        else
     412          distance = currentValue-lowerValue;
    409413        for (j=columnStart[iColumn];
    410414             j<columnStart[iColumn]+columnLength[iColumn];j++) {
Note: See TracChangeset for help on using the changeset viewer.