Changeset 2075


Ignore:
Timestamp:
Sep 22, 2014 5:26:34 AM (5 years ago)
Author:
forrest
Message:

change OsiCbc? isProven

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stable/2.8/Cbc/src/OsiCbc/OsiCbcSolverInterface.cpp

    r1902 r2075  
    127127bool OsiCbcSolverInterface::isProvenOptimal() const
    128128{
    129   return modelPtr_->solver()->isProvenOptimal();
     129  if (modelPtr_->status()==0)
     130    return modelPtr_->isProvenOptimal();
     131  else
     132    return modelPtr_->solver()->isProvenOptimal();
    130133}
    131134
    132135bool OsiCbcSolverInterface::isProvenPrimalInfeasible() const
    133136{
    134   return modelPtr_->solver()->isProvenPrimalInfeasible();
     137  if (modelPtr_->status()==0)
     138    return modelPtr_->isProvenInfeasible();
     139  else
     140    return modelPtr_->solver()->isProvenPrimalInfeasible();
    135141}
    136142
Note: See TracChangeset for help on using the changeset viewer.