Changeset 2385 for trunk/Clp/src/ClpLinearObjective.hpp
 Timestamp:
 Jan 6, 2019 2:43:06 PM (4 months ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/Clp/src/ClpLinearObjective.hpp
r1665 r2385 18 18 19 19 public: 20 ///@name Stuff 21 //@{ 20 22 21 ///@name Stuff 22 //@{ 23 24 /** Returns objective coefficients. 23 /** Returns objective coefficients. 25 24 26 25 Offset is always set to 0.0. All other parameters unused. 27 26 */ 28 virtual double * gradient(const ClpSimplex *model,29 const double * solution, double &offset, bool refresh,30 31 27 virtual double *gradient(const ClpSimplex *model, 28 const double *solution, double &offset, bool refresh, 29 int includeLinear = 2); 30 /** Returns reduced gradient.Returns an offset (to be added to current one). 32 31 */ 33 virtual double reducedGradient(ClpSimplex * model, double *region,34 35 32 virtual double reducedGradient(ClpSimplex *model, double *region, 33 bool useFeasibleCosts); 34 /** Returns step length which gives minimum of objective for 36 35 solution + theta * change vector up to maximum theta. 37 36 … … 39 38 Also sets current objective, predicted and at maximumTheta 40 39 */ 41 virtual double stepLength(ClpSimplex *model,42 const double *solution,43 const double *change,44 45 double ¤tObj,46 double &predictedObj,47 double &thetaObj);48 49 virtual double objectiveValue(const ClpSimplex * model, const double * solution) const;50 51 virtual void resize(int newNumberColumns);52 53 virtual void deleteSome(int numberToDelete, const int * which);54 55 virtual void reallyScale(const double * columnScale);40 virtual double stepLength(ClpSimplex *model, 41 const double *solution, 42 const double *change, 43 double maximumTheta, 44 double ¤tObj, 45 double &predictedObj, 46 double &thetaObj); 47 /// Return objective value (without any ClpModel offset) (model may be NULL) 48 virtual double objectiveValue(const ClpSimplex *model, const double *solution) const; 49 /// Resize objective 50 virtual void resize(int newNumberColumns); 51 /// Delete columns in objective 52 virtual void deleteSome(int numberToDelete, const int *which); 53 /// Scale objective 54 virtual void reallyScale(const double *columnScale); 56 55 57 56 //@} 58 57 58 ///@name Constructors and destructors 59 //@{ 60 /// Default Constructor 61 ClpLinearObjective(); 59 62 60 ///@name Constructors and destructors 61 //@{ 62 /// Default Constructor 63 ClpLinearObjective(); 63 /// Constructor from objective 64 ClpLinearObjective(const double *objective, int numberColumns); 64 65 65 /// Constructor from objective 66 ClpLinearObjective(const double * objective, int numberColumns); 67 68 /// Copy constructor 69 ClpLinearObjective(const ClpLinearObjective &); 70 /** Subset constructor. Duplicates are allowed 66 /// Copy constructor 67 ClpLinearObjective(const ClpLinearObjective &); 68 /** Subset constructor. Duplicates are allowed 71 69 and order is as given. 72 70 */ 73 ClpLinearObjective(const ClpLinearObjective &rhs, int numberColumns,74 const int * whichColumns);71 ClpLinearObjective(const ClpLinearObjective &rhs, int numberColumns, 72 const int *whichColumns); 75 73 76 77 ClpLinearObjective & operator=(const ClpLinearObjective&rhs);74 /// Assignment operator 75 ClpLinearObjective &operator=(const ClpLinearObjective &rhs); 78 76 79 80 virtual ~ClpLinearObjective();77 /// Destructor 78 virtual ~ClpLinearObjective(); 81 79 82 83 virtual ClpObjective *clone() const;84 80 /// Clone 81 virtual ClpObjective *clone() const; 82 /** Subset clone. Duplicates are allowed 85 83 and order is as given. 86 84 */ 87 virtual ClpObjective * subsetClone(int numberColumns,88 const int *whichColumns) const;85 virtual ClpObjective *subsetClone(int numberColumns, 86 const int *whichColumns) const; 89 87 90 88 //@} 91 89 92 90 // 93 91 94 92 private: 95 96 97 double *objective_;98 99 100 93 ///@name Private member data 94 /// Objective 95 double *objective_; 96 /// number of columns 97 int numberColumns_; 98 //@} 101 99 }; 102 100 103 101 #endif 102 103 /* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2 104 */
Note: See TracChangeset
for help on using the changeset viewer.