Changeset 2462


Ignore:
Timestamp:
Apr 29, 2019 5:30:20 AM (3 weeks ago)
Author:
stefan
Message:

make doubleParameter(OsiSolverInterface?) also work if non-debug build

  • turn asserts into actual code
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Clp/src/CbcOrClpParam.cpp

    r2458 r2462  
    764764#ifdef COIN_HAS_CBC
    765765double
    766 CbcOrClpParam::doubleParameter(OsiSolverInterface *
    767 #ifndef NDEBUG
    768     model
    769 #endif
    770   ) const
     766CbcOrClpParam::doubleParameter(OsiSolverInterface *model) const
    771767{
    772768  double value = 0.0;
    773769  switch (type_) {
    774770  case CLP_PARAM_DBL_DUALTOLERANCE:
    775     assert(model->getDblParam(OsiDualTolerance, value));
     771    model->getDblParam(OsiDualTolerance, value);
    776772    break;
    777773  case CLP_PARAM_DBL_PRIMALTOLERANCE:
    778     assert(model->getDblParam(OsiPrimalTolerance, value));
     774    model->getDblParam(OsiPrimalTolerance, value);
    779775    break;
    780776  default:
Note: See TracChangeset for help on using the changeset viewer.