Ignore:
Timestamp:
Apr 25, 2011 4:35:58 AM (9 years ago)
Author:
forrest
Message:

allow for setting small element tolerance in readMps

File:
1 edited

Legend:

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

    r1711 r1724  
    494494               model->setPrimalTolerance(value);
    495495               break;
     496          case CLP_PARAM_DBL_ZEROTOLERANCE:
     497               model->setSmallElementValue(value);
     498               break;
    496499          case CLP_PARAM_DBL_DUALBOUND:
    497500               model->setDualBound(value);
     
    533536          break;
    534537#endif
     538     case CLP_PARAM_DBL_ZEROTOLERANCE:
     539          model->setSmallElementValue(value);
     540          break;
    535541     case CLP_PARAM_DBL_DUALBOUND:
    536542          value = model->dualBound();
     
    33283334#endif
    33293335#endif
     3336     parameters[numberParameters++] =
     3337          CbcOrClpParam("zeroT!olerance", "Kill all coefficients \
     3338whose absolute value is less than this value",
     3339                        1.0e-100, 1.0e-5, CLP_PARAM_DBL_ZEROTOLERANCE);
     3340     parameters[numberParameters-1].setLonghelp
     3341     (
     3342          "This applies to reading mps files (and also lp files \
     3343if KILL_ZERO_READLP defined)"
     3344     );
     3345     parameters[numberParameters-1].setDoubleValue(1.0e-20);
    33303346     assert(numberParameters < CBCMAXPARAMETERS);
    33313347}
Note: See TracChangeset for help on using the changeset viewer.