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