Ignore:
Timestamp:
Aug 28, 2010 9:03:22 PM (10 years ago)
Author:
lou
Message:

Remove setObjectiveAndRefresh. Make getReducedGradient const. A few other
minor tweaks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Clp/src/OsiClp/OsiClpSolverInterface.cpp

    r1592 r1595  
    45554555  return difference;
    45564556}
    4557 /* Read an mps file from the given filename (defaults to Osi reader) - returns
    4558    number of errors (see OsiMpsReader class) */
     4557/*
     4558  Read an mps file from the given filename - returns number of errors
     4559  (see CoinMpsIO class)
     4560*/
    45594561int
    45604562OsiClpSolverInterface::readMps(const char *filename,
     
    45754577  numberSOS_=0;
    45764578  CoinSet ** sets=NULL;
     4579  // Temporarily reduce log level to get CoinMpsIO to shut up.
     4580  int saveLogLevel = modelPtr_->messageHandler()->logLevel() ;
     4581  modelPtr_->messageHandler()->setLogLevel(0) ;
    45774582  int numberErrors = m.readMps(filename,extension,numberSOS_,sets);
     4583  modelPtr_->messageHandler()->setLogLevel(saveLogLevel) ;
    45784584  if (numberSOS_) {
    45794585    setInfo_ = new CoinSet[numberSOS_];
     
    56405646                                          double* columnReducedCosts,
    56415647                                          double * duals,
    5642                                           const double * c)
     5648                                          const double * c) const
    56435649{
    56445650  assert (modelPtr_->solveType()==2);
     
    56575663}
    56585664
     5665#if 0
     5666
     5667  Deleted from OsiSimplex API 100828. Leave the code here for a bit just in
     5668  case someone yells.  -- lh, 100828 --
     5669
    56595670/* Set a new objective and apply the old basis so that the
    5660    reduced costs are properly updated  */
     5671   reduced costs are properly updated
     5672*/
    56615673void OsiClpSolverInterface::setObjectiveAndRefresh(const double* c)
    56625674{
     
    56715683  modelPtr_->computeDuals(NULL);
    56725684}
     5685#endif
    56735686
    56745687//Get a row of the tableau (slack part in slack if not NULL)
Note: See TracChangeset for help on using the changeset viewer.