Go to the documentation of this file.
6 #ifndef ClpConstraintQuadratic_H
7 #define ClpConstraintQuadratic_H
30 const double *solution,
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);
59 const CoinBigIndex *
start,
60 const int *
column,
const double *element);
85 inline CoinBigIndex *
start()
const
This solves LPs using the simplex method.
virtual void deleteSome(int numberToDelete, const int *which)
Delete columns in constraint.
virtual ~ClpConstraintQuadratic()
Destructor.
double functionValue() const
Stored constraint function value.
const double * coefficient() const
Coefficients.
Constraint Abstract Base Class.
double offset() const
Constraint offset.
int * column_
Column (if -1 then linear coefficient)
double * coefficient_
Coefficients.
virtual int gradient(const ClpSimplex *model, const double *solution, double *gradient, double &functionValue, double &offset, bool useScaling=false, bool refresh=true) const
Fills gradient.
int numberColumns_
Useful to have number of columns about.
virtual int markNonlinear(char *which) const
Given a zeroed array sets nonquadratic columns to 1.
virtual void resize(int newNumberColumns)
Resize constraint.
Quadratic Constraint Class.
int numberQuadraticColumns_
Number of quadratic columns.
ClpConstraintQuadratic()
Default Constructor.
virtual int markNonzero(char *which) const
Given a zeroed array sets possible nonzero coefficients to 1.
int numberCoefficients_
Number of coefficients in gradient.
int numberColumns() const
Number of columns in constraint.
virtual int numberCoefficients() const
Number of coefficients.
virtual ClpConstraint * clone() const
Clone.
virtual void reallyScale(const double *columnScale)
Scale constraint.
ClpConstraintQuadratic & operator=(const ClpConstraintQuadratic &rhs)
Assignment operator.
const int * column() const
Columns.
CoinBigIndex * start() const
Column starts.