Changeset 1342 for trunk/Clp


Ignore:
Timestamp:
Feb 26, 2009 11:20:23 AM (11 years ago)
Author:
forrest
Message:

better to clear rowarrays on singular pivot

File:
1 edited

Legend:

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

    r1341 r1342  
    79797979      }
    79807980    }
    7981     if (fabs(alpha_)<1.0e-8)
     7981    if (fabs(alpha_)<1.0e-8) {
     7982      // be on safe side and clear arrays
     7983      rowArray_[0]->clear();
     7984      rowArray_[1]->clear();
    79827985      return -1; // will be singular
     7986    }
    79837987    // we are going to subtract movement from current basic
    79847988    double movement;
     
    80348038    // update duals
    80358039    if (pivotRow_>=0) {
    8036       if (fabs(alpha_)<1.0e-8)
     8040      if (fabs(alpha_)<1.0e-8) {
     8041        // be on safe side and clear arrays
     8042        rowArray_[0]->clear();
     8043        rowArray_[1]->clear();
    80378044        return -1; // will be singular
     8045      }
    80388046      double multiplier = dualIn_/alpha_;
    80398047      rowArray_[0]->insert(pivotRow_,multiplier);
Note: See TracChangeset for help on using the changeset viewer.