Changeset 2538 for trunk


Ignore:
Timestamp:
Mar 20, 2019 7:41:26 AM (2 months ago)
Author:
forrest
Message:

fix for maximize and c interface

File:
1 edited

Legend:

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

    r2531 r2538  
    1210812108  if (solver_) {
    1210912109    // Solvers know about direction
     12110    // but Clp tries to be too clever and flips twice!
     12111#ifndef COIN_HAS_CLP
    1211012112    double direction = solver_->getObjSense();
     12113#else
     12114    double direction = 1.0;
     12115    if (!dynamic_cast< OsiClpSolverInterface * >(solver_))
     12116      direction = solver_->getObjSense();
     12117#endif
    1211112118    solver_->setDblParam(OsiDualObjectiveLimit, value * direction);
    1211212119  }
Note: See TracChangeset for help on using the changeset viewer.