Changeset 615


Ignore:
Timestamp:
Feb 25, 2008 10:18:19 AM (14 years ago)
Author:
forrest
Message:

tidy up small infeasibilities

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cgl/src/CglKnapsackCover/CglKnapsackCover.cpp

    r607 r615  
    7777    back[k]=-1;
    7878    xstar[k]=colsol[k];
     79    if (xstar[k]>colUpper[k])
     80      xstar[k]=colUpper[k];
     81    else if (xstar[k]<colLower[k])
     82      xstar[k]=colLower[k];
    7983    complement[k]=0;
    8084    vubRow[k]=-1;
     
    130134      double value = elementByRow[j];
    131135      if (colUpper[iColumn]>colLower[iColumn]) {
    132         sum += colsol[iColumn]*value;
     136        sum += xstar[iColumn]*value;
    133137        if (vubRow[iColumn]==-2&&value*multiplier>0.0) {
    134138          // binary
Note: See TracChangeset for help on using the changeset viewer.