Changeset 2431


Ignore:
Timestamp:
Nov 21, 2018 8:09:10 AM (8 months ago)
Author:
unxusr
Message:

getObjValue

File:
1 edited

Legend:

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

    r2430 r2431  
    719719}
    720720
     721COINLIBAPI double COINLINKAGE
     722Cbc_getObjValue(Cbc_Model * model)
     723{
     724    if ( Cbc_getNumIntegers(model)==0 || model->relax_==1 )
     725        return (model->solver_->getObjValue());
     726
     727    return model->model_->getObjValue();
     728}
     729
     730
    721731CbcGetProperty(int, isContinuousUnbounded)
    722732CbcGetProperty(int, isNodeLimitReached)
     
    749759CbcSetSolverProperty(double, setColUpper)
    750760
    751 CbcGetProperty(double, getObjValue)
    752761CbcGetProperty(double, getBestPossibleObjValue)
    753762
Note: See TracChangeset for help on using the changeset viewer.