Changeset 1592 for trunk/Clp


Ignore:
Timestamp:
Aug 24, 2010 11:40:41 AM (9 years ago)
Author:
lou
Message:

Make param of setObjectiveAndRefresh const, in case the method survives.

Location:
trunk/Clp/src/OsiClp
Files:
2 edited

Legend:

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

    r1584 r1592  
    56595659/* Set a new objective and apply the old basis so that the
    56605660   reduced costs are properly updated  */
    5661 void OsiClpSolverInterface::setObjectiveAndRefresh(double* c)
     5661void OsiClpSolverInterface::setObjectiveAndRefresh(const double* c)
    56625662{
    56635663  modelPtr_->whatsChanged_ &= (0xffff&~(64));
  • trunk/Clp/src/OsiClp/OsiClpSolverInterface.hpp

    r1584 r1592  
    186186  /** Set a new objective and apply the old basis so that the
    187187      reduced costs are properly updated  */
    188   virtual void setObjectiveAndRefresh(double* c);
     188  virtual void setObjectiveAndRefresh(const double* c);
    189189 
    190190  ///Get a row of the tableau (slack part in slack if not NULL)
Note: See TracChangeset for help on using the changeset viewer.