Changeset 1215 for trunk/Clp


Ignore:
Timestamp:
Jun 19, 2008 3:20:32 AM (12 years ago)
Author:
forrest
Message:

fix empty problem

File:
1 edited

Legend:

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

    r1208 r1215  
    34443444      if (rowLower_[i]<=rowUpper_[i]) {
    34453445        if (rowLower_[i]>-1.0e30||rowUpper_[i]<1.0e30) {
    3446           if (fabs(rowLower_[i])<fabs(rowUpper_[i]))
    3447             rowActivity_[i]=rowLower_[i];
    3448           else
    3449             rowActivity_[i]=rowUpper_[i];
     3446          if (rowLower_[i]<=0.0&&rowUpper_[i]>=0.0) {
     3447            if (fabs(rowLower_[i])<fabs(rowUpper_[i]))
     3448              rowActivity_[i]=rowLower_[i];
     3449            else
     3450              rowActivity_[i]=rowUpper_[i];
     3451          } else {
     3452            rowActivity_[i]=0.0;
     3453            numberPrimalInfeasibilities++;
     3454            sumPrimalInfeasibilities += CoinMin(rowLower_[i],-rowUpper_[i]);
     3455            returnCode=1;
     3456          }
    34503457        } else {
    34513458          rowActivity_[i]=0.0;
Note: See TracChangeset for help on using the changeset viewer.