6 #ifndef ClpAmplObjective_H
7 #define ClpAmplObjective_H
31 const double *solution,
double &offset,
bool refresh,
32 int includeLinear = 2);
37 bool useFeasibleCosts);
45 const double *solution,
53 virtual void resize(
int newNumberColumns);
55 virtual void deleteSome(
int numberToDelete,
const int *which);
57 virtual void reallyScale(
const double *columnScale);
virtual ClpObjective * clone() const
Clone.
double * gradient_
Gradient.
virtual int markNonlinear(char *which)
Given a zeroed array sets nonlinear columns to 1.
Objective Abstract Base Class.
ClpAmplObjective()
Default Constructor.
virtual void resize(int newNumberColumns)
Returns gradient.
virtual double * gradient(const ClpSimplex *model, const double *solution, double &offset, bool refresh, int includeLinear=2)
Returns gradient.
void * amplObjective_
Ampl info.
double * linearObjective() const
Linear objective.
ClpAmplObjective & operator=(const ClpAmplObjective &rhs)
Assignment operator.
This solves LPs using the simplex method.
double * objective_
Objective.
virtual void deleteSome(int numberToDelete, const int *which)
Delete columns in objective.
virtual void newXValues()
Say we have new primal solution - so may need to recompute.
virtual double objectiveValue(const ClpSimplex *model, const double *solution) const
Return objective value (without any ClpModel offset) (model may be NULL)
virtual double reducedGradient(ClpSimplex *model, double *region, bool useFeasibleCosts)
Resize 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 void reallyScale(const double *columnScale)
Scale objective.
virtual ~ClpAmplObjective()
Destructor.