Changeset 1869 for trunk


Ignore:
Timestamp:
Jul 19, 2012 10:53:33 AM (7 years ago)
Author:
forrest
Message:

fix stupid new length error in mini presolve (thanks Valentin)

File:
1 edited

Legend:

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

    r1863 r1869  
    98549854        int length=columnLengthX[iColumn];
    98559855        CoinBigIndex start=columnStartX[iColumn];
     9856        int newLength=length+((jRowLower<0||jRowUpper<0) ? 1 : 2);
    98569857        int nextColumn=forward[iColumn];
    98579858        CoinBigIndex startNext=columnStartX[nextColumn];
    9858         if (start+length==startNext) {
     9859        if (start+newLength>startNext) {
    98599860          // need more
    98609861          moveAround(numberColumns_,numberElementsOriginal,
    9861                      iColumn,length+(jRowLower<0||jRowUpper<0) ? 1 : 2,
     9862                     iColumn,newLength,
    98629863                     forward,backward,columnStartX,columnLengthX,
    98639864                     rowX,elementX);
Note: See TracChangeset for help on using the changeset viewer.