Changeset 1168


Ignore:
Timestamp:
Feb 19, 2008 2:07:32 PM (12 years ago)
Author:
forrest
Message:

modify perturbation criterion

File:
1 edited

Legend:

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

    r1147 r1168  
    21402140    double * sort = new double[numberRows_];
    21412141    for (i=0;i<numberRows_;i++) {
    2142       double lo = fabs(lower_[i]);
    2143       double up = fabs(upper_[i]);
     2142      double lo = fabs(rowLower_[i]);
     2143      double up = fabs(rowUpper_[i]);
    21442144      double value=0.0;
    21452145      if (lo&&lo<1.0e20) {
     
    21652165    //printf("ratio number diff rhs %g, element ratio %g\n",((double)number)/((double) numberRows_),
    21662166    //                                                                elementRatio);
    2167     if (number*4>numberRows_||elementRatio>1.0e12) {
     2167    if (number*3>numberRows_||elementRatio>1.0e12) {
    21682168      perturbation_=100;
    21692169      return; // good enough
Note: See TracChangeset for help on using the changeset viewer.