Changeset 2982


Ignore:
Timestamp:
Apr 9, 2020 9:09:14 AM (3 months ago)
Author:
forrest
Message:

should fix mipstart maximize problem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/CbcSolver.cpp

    r2932 r2982  
    58905890                    babModel_->setBestSolution(CBC_ROUNDING,
    58915891                      obj, &x[0], 1);
     5892                    /* But this is outside branchAndBound so needs to know
     5893                       about direction */
     5894                    if (babModel_->getObjSense()==-1.0) {
     5895                      double increment = obj-babModel_->getCutoff();
     5896                      babModel_->setCutoff(-obj-increment);
     5897                      babModel_->setMinimizationObjValue(-obj);
     5898                    }
    58925899                    babModel_->clearContinuousSolver();
    58935900                    babModel_->passInSolverCharacteristics(NULL);
Note: See TracChangeset for help on using the changeset viewer.