Ignore:
Timestamp:
Jun 28, 2014 11:09:11 AM (5 years ago)
Author:
forrest
Message:

fix replace bounds rather than tighten them

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cbc/src/CbcBranchLotsize.cpp

    r1886 r2042  
    505505    } else {
    506506        // ranges
    507         solver->setColLower(columnNumber_, bound_[2*range_]);
    508         solver->setColUpper(columnNumber_, bound_[2*range_+1]);
     507        solver->setColLower(columnNumber_, CoinMax(bound_[2*range_],
     508                                                   lower[columnNumber_]));
     509        solver->setColUpper(columnNumber_, CoinMin(bound_[2*range_+1],
     510                                                   upper[columnNumber_]));
    509511        if (value > bound_[2*range_+1])
    510512            nearest = bound_[2*range_+1];
Note: See TracChangeset for help on using the changeset viewer.