Go to the documentation of this file.
6 #ifndef ClpConstraintAmpl_H
7 #define ClpConstraintAmpl_H
9 #include "ClpConstraint.hpp"
29 virtual int gradient(
const ClpSimplex *model,
30 const double *solution,
32 double &functionValue,
34 bool useScaling =
false,
35 bool refresh =
true)
const;
37 virtual void resize(
int newNumberColumns);
39 virtual void deleteSome(
int numberToDelete,
const int *which);
41 virtual void reallyScale(
const double *columnScale);
73 virtual ClpConstraint *
clone()
const;
const double * coefficient() const
Coefficients.
double * coefficient_
Coefficients.
ClpConstraintAmpl & operator=(const ClpConstraintAmpl &rhs)
Assignment operator.
virtual int markNonzero(char *which) const
Given a zeroed array sets possible nonzero coefficients to 1.
virtual void newXValues()
Say we have new primal solution - so may need to recompute.
virtual ClpConstraint * clone() const
Clone.
const int * column() const
Columns.
int numberCoefficients_
Number of coefficients in gradient.
virtual int numberCoefficients() const
Number of coefficients.
ClpConstraintAmpl()
Default Constructor.
virtual void resize(int newNumberColumns)
Resize constraint.
virtual void reallyScale(const double *columnScale)
Scale constraint.
virtual void deleteSome(int numberToDelete, const int *which)
Delete columns in constraint.
virtual int gradient(const ClpSimplex *model, const double *solution, double *gradient, double &functionValue, double &offset, bool useScaling=false, bool refresh=true) const
Fills gradient.
virtual ~ClpConstraintAmpl()
Destructor.
virtual int markNonlinear(char *which) const
Given a zeroed array sets nonampl columns to 1.