Go to the documentation of this file.
6 #ifndef ClpLinearObjective_H
7 #define ClpLinearObjective_H
28 const double *solution,
double &offset,
bool refresh,
29 int includeLinear = 2);
33 bool useFeasibleCosts);
41 const double *solution,
50 virtual void resize(
int newNumberColumns);
52 virtual void deleteSome(
int numberToDelete,
const int *which);
54 virtual void reallyScale(
const double *columnScale);
72 const int *whichColumns);
86 const int *whichColumns)
const;
This solves LPs using the simplex method.
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).
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...
int numberColumns_
number of columns
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.