6#ifndef ClpConstraintLinear_H
7#define ClpConstraintLinear_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);
59 const int *
column,
const double *element);
virtual void reallyScale(const double *columnScale)
Scale constraint.
virtual void deleteSome(int numberToDelete, const int *which)
Delete columns in constraint.
virtual int markNonlinear(char *which) const
Given a zeroed array sets nonlinear columns to 1.
ClpConstraintLinear(int row, int numberCoefficients, int numberColumns, const int *column, const double *element)
Constructor from constraint.
const int * column() const
Columns.
const double * coefficient() const
Coefficients.
virtual ClpConstraint * clone() const
Clone.
ClpConstraintLinear(const ClpConstraintLinear &rhs)
Copy constructor .
virtual int markNonzero(char *which) const
Given a zeroed array sets possible nonzero coefficients to 1.
virtual ~ClpConstraintLinear()
Destructor.
ClpConstraintLinear & operator=(const ClpConstraintLinear &rhs)
Assignment operator.
ClpConstraintLinear()
Default Constructor.
double * coefficient_
Coefficients.
virtual int numberCoefficients() const
Number of coefficients.
int numberCoefficients_
Number of 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 void resize(int newNumberColumns)
Resize constraint.
int numberColumns() const
Number of columns in linear constraint.
Constraint Abstract Base Class.
double offset() const
Constraint offset.
double functionValue() const
Stored constraint function value.
This solves LPs using the simplex method.