Changeset 1251


Ignore:
Timestamp:
Oct 19, 2009 8:17:51 AM (10 years ago)
Author:
forrest
Message:

fix when bestSolution passed in and strategy_

File:
1 edited

Legend:

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

    r1249 r1251  
    12061206        if (debugger)
    12071207          debugger->redoSolution(numberColumns,originalColumns);
     1208        if (bestSolution_) {
     1209          // need to redo - in case no better found in BAB
     1210          // just get integer part right
     1211          for (int i=0;i<numberColumns;i++) {
     1212            int jColumn = originalColumns[i];
     1213            bestSolution_[i]=bestSolution_[jColumn];
     1214          }
     1215        }
    12081216        originalObject = object_;
    12091217        // object number or -1
Note: See TracChangeset for help on using the changeset viewer.