Changeset 920


Ignore:
Timestamp:
Apr 18, 2008 5:14:14 PM (11 years ago)
Author:
jpgoncal
Message:

Corrected termination criterion.

File:
1 edited

Legend:

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

    r918 r920  
    251251
    252252    bool canRoundSolution = true;
     253    // if it selected a variable to branch it is because that variable
     254    // cannot be trivially rounded (i.e., it has down and up locks)
    253255    if(bestColumn != -1)
    254256      canRoundSolution = false;
     
    462464    }
    463465
    464     if(!solver->isProvenOptimal())
     466    if(!solver->isProvenOptimal() ||
     467       direction*solver->getObjValue() >= solutionValue)
    465468      break;
    466469
Note: See TracChangeset for help on using the changeset viewer.