Changeset 939 for trunk


Ignore:
Timestamp:
May 10, 2008 3:31:31 PM (12 years ago)
Author:
forrest
Message:

exit a bit bit faster

File:
1 edited

Legend:

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

    r938 r939  
    11121112        <<CoinMessageEol;
    11131113      double saveValue = newSolutionValue;
    1114       returnCode = smallBranchAndBound(newSolver,numberNodes_,newSolution,newSolutionValue,
    1115                                        cutoff,"CbcHeuristicLocalAfterFPump");
     1114      if (newSolutionValue-model_->getCutoffIncrement()
     1115          >continuousObjectiveValue-1.0e-7) {
     1116        returnCode = smallBranchAndBound(newSolver,numberNodes_,newSolution,newSolutionValue,
     1117                                         cutoff,"CbcHeuristicLocalAfterFPump");
     1118      } else {
     1119        // no need
     1120        exitAll=true;
     1121        returnCode=0;
     1122      }
    11161123      if (returnCode<0) {
    11171124        if (returnCode==-2)
Note: See TracChangeset for help on using the changeset viewer.