Changeset 94


Ignore:
Timestamp:
Jan 14, 2003 4:45:16 PM (17 years ago)
Author:
forrest
Message:

Correct infeasibility test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PresolveEmpty.cpp

    r56 r94  
    295295#endif
    296296        if (rlo[i] > 0.0 || rup[i] < 0.0) {
    297           if (fabs(rlo[i])<=prob->feasibilityTolerance_ &&
    298               fabs(rup[i])<=prob->feasibilityTolerance_) {
    299             rlo[i]=0.0;
    300             rup[i]=0.0;
     297          if (rlo[i]<=prob->feasibilityTolerance_ &&
     298              rup[i]>=-prob->feasibilityTolerance_) {
     299            rlo[i]=min(0.0,rlo[i]);
     300            rup[i]=max(0.0,rup[i]);
    301301          } else {
    302302            prob->status_|= 1;
Note: See TracChangeset for help on using the changeset viewer.