Changeset 1250


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

fix when bestSolution passed in and strategy_

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stable/2.3/Cbc/src/CbcModel.cpp

    r1235 r1250  
    11931193        if (debugger)
    11941194          debugger->redoSolution(numberColumns,originalColumns);
     1195        if (bestSolution_) {
     1196          // need to redo - in case no better found in BAB
     1197          // just get integer part right
     1198          for (int i=0;i<numberColumns;i++) {
     1199            int jColumn = originalColumns[i];
     1200            bestSolution_[i]=bestSolution_[jColumn];
     1201          }
     1202        }
    11951203        originalObject = object_;
    11961204        // object number or -1
Note: See TracChangeset for help on using the changeset viewer.