Changeset 539 for stable/0.2/Couenne


Ignore:
Timestamp:
Mar 17, 2011 4:29:34 PM (9 years ago)
Author:
pbelotti
Message:

restore bounds in problem_ between branch simulations in strong branching (thanks again to Francois Margot)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stable/0.2/Couenne/src/branch/doStrongBranching.cpp

    r201 r539  
    229229
    230230      // Restore pre-left-branch bounds in solver
    231       for (int j=0; j<numberColumns; j++) {
     231      for (int j=0; j < numberColumns; j++) {
    232232
    233233        if (saveLower [j] != lower [j]) solver -> setColLower (j, saveLower [j]);
    234234        if (saveUpper [j] != upper [j]) solver -> setColUpper (j, saveUpper [j]);
     235
     236        problem_ -> Lb (j) = saveLower [j];
     237        problem_ -> Ub (j) = saveUpper [j];
    235238      }
    236239
Note: See TracChangeset for help on using the changeset viewer.