Go to the documentation of this file.
6 #ifndef ClpLinearObjective_H
7 #define ClpLinearObjective_H
29 const double * solution,
double & offset,
bool refresh,
30 int includeLinear = 2);
34 bool useFeasibleCosts);
42 const double * solution,
43 const double * change,
46 double & predictedObj,
51 virtual void resize(
int newNumberColumns) ;
53 virtual void deleteSome(
int numberToDelete,
const int * which) ;
74 const int * whichColumns) ;
88 const int * whichColumns)
const;
This solves LPs using the simplex method.
ClpLinearObjective(const ClpLinearObjective &)
Copy constructor.
ClpLinearObjective(const double *objective, int numberColumns)
Constructor from objective.
Objective Abstract Base Class.
ClpLinearObjective()
Default Constructor.
ClpLinearObjective & operator=(const ClpLinearObjective &rhs)
Assignment operator.
virtual double reducedGradient(ClpSimplex *model, double *region, bool useFeasibleCosts)
Returns reduced gradient.Returns an offset (to be added to current one).
ClpLinearObjective(const ClpLinearObjective &rhs, int numberColumns, const int *whichColumns)
Subset constructor.
virtual ~ClpLinearObjective()
Destructor.
virtual void deleteSome(int numberToDelete, const int *which)
Delete columns in objective.
virtual double stepLength(ClpSimplex *model, const double *solution, const double *change, double maximumTheta, double ¤tObj, double &predictedObj, double &thetaObj)
Returns step length which gives minimum of objective for solution + theta * change vector up to maxim...
virtual ClpObjective * clone() const
Clone.
virtual double objectiveValue(const ClpSimplex *model, const double *solution) const
Return objective value (without any ClpModel offset) (model may be NULL)
virtual double * gradient(const ClpSimplex *model, const double *solution, double &offset, bool refresh, int includeLinear=2)
Returns objective coefficients.
virtual void reallyScale(const double *columnScale)
Scale objective.
virtual ClpObjective * subsetClone(int numberColumns, const int *whichColumns) const
Subset clone.
virtual void resize(int newNumberColumns)
Resize objective.