Changeset 1168 for trunk


Ignore:
Timestamp:
May 25, 2009 4:56:21 AM (11 years ago)
Author:
forrest
Message:

recompute objective after postprocessing

File:
1 edited

Legend:

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

    r1167 r1168  
    37443744    delete solver_;
    37453745    solver_=originalSolver;
    3746     if (bestSolution_)
     3746    if (bestSolution_) {
     3747      bestObjective_ = solver_->getObjValue()*solver_->getObjSense();
    37473748      memcpy(bestSolution_,solver_->getColSolution(),n*sizeof(double));
     3749    }
    37483750    // put back original objects if there were any
    37493751    if (originalObject) {
Note: See TracChangeset for help on using the changeset viewer.