Changeset 817 for trunk


Ignore:
Timestamp:
Jun 16, 2006 12:14:24 PM (14 years ago)
Author:
forrest
Message:

to stop extra optimality checks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Clp/src/ClpSimplexPrimal.cpp

    r813 r817  
    22542254  int number = numberRows_+numberColumns_;
    22552255  int numberFlagged=0;
     2256  // we can't really trust infeasibilities if there is dual error
     2257  // allow tolerance bigger than standard to check on duals
     2258  double relaxedToleranceD=dualTolerance_ + CoinMin(1.0e-2,10.0*largestDualError_);
    22562259  for (i=0;i<number;i++) {
    22572260    if (flagged(i)) {
    22582261      clearFlagged(i);
    2259       numberFlagged++;
     2262      // only say if reasonable dj
     2263      if (fabs(dj_[i])>relaxedToleranceD)
     2264        numberFlagged++;
    22602265    }
    22612266  }
     
    26522657      //       oldCost,cost_[sequenceOut_]);
    26532658      if (solveType_!=2)
    2654         dj_[sequenceOut_]=cost_[sequenceOut_]-oldCost;
     2659        dj_[sequenceOut_]=cost_[sequenceOut_]-oldCost; // normally updated next iteration
    26552660      solution_[sequenceOut_]=valueOut_;
    26562661    }
Note: See TracChangeset for help on using the changeset viewer.