Changeset 1258


Ignore:
Timestamp:
Aug 10, 2008 11:59:31 AM (12 years ago)
Author:
stefan
Message:

be more careful in fix from last commit - use old and new checks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stable/BSP/Clp/src/ClpDualRowSteepest.cpp

    r1257 r1258  
    229229  tolerance = CoinMin(1000.0,tolerance);
    230230  tolerance *= tolerance; // as we are using squares
     231  double saveTolerance = tolerance;
    231232  double * solution = model_->solutionRegion();
    232233  double * lower = model_->lowerRegion();
     
    385386  }
    386387  //printf("smallest %g largest %g\n",smallestWeight,largestWeight);
    387   if (chosenRow<0&& bToleranceIncreased) {
     388  if (chosenRow<0&& tolerance>saveTolerance && bToleranceIncreased) {
    388389    // won't line up with checkPrimalSolution - do again
    389390    double saveError = model_->largestDualError();
Note: See TracChangeset for help on using the changeset viewer.