Changeset 140 for trunk


Ignore:
Timestamp:
Mar 18, 2003 3:08:04 PM (17 years ago)
Author:
forrest
Message:

Try and add accuracy

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ClpSimplex.cpp

    r137 r140  
    10851085        factorization_->pivots()==forceFactorization_) {
    10861086      // relax
    1087       forceFactorization_ *= 2;
     1087      forceFactorization_ = (1+3*forceFactorization_)/2;
    10881088      if (forceFactorization_>factorization_->maximumPivots())
    10891089        forceFactorization_ = -1; //off
  • trunk/ClpSimplexPrimal.cpp

    r137 r140  
    13931393      } else if (updateStatus==2) {
    13941394        // major error
     1395        // better to have small tolerance even if slower
     1396        factorization_->zeroTolerance(1.0e-15);
     1397        int maxFactor = factorization_->maximumPivots();
     1398        if (maxFactor>10) {
     1399          if (forceFactorization_<0)
     1400            forceFactorization_= maxFactor;
     1401          forceFactorization_ = max (1,(forceFactorization_>>1));
     1402        }
    13951403        // later we may need to unwind more e.g. fake bounds
    13961404        if(lastGoodIteration_ != numberIterations_) {
Note: See TracChangeset for help on using the changeset viewer.