Go to the documentation of this file.
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);
41 virtual void reallyScale(
const double *columnScale);
59 const int *
column,
const double *element);
This solves LPs using the simplex method.
int numberCoefficients_
Number of coefficients.
ClpConstraintLinear & operator=(const ClpConstraintLinear &rhs)
Assignment operator.
double functionValue() const
Stored constraint function value.
virtual void reallyScale(const double *columnScale)
Scale constraint.
virtual int markNonzero(char *which) const
Given a zeroed array sets possible nonzero coefficients to 1.
int numberColumns_
Useful to have number of columns about.
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 ~ClpConstraintLinear()
Destructor.
Constraint Abstract Base Class.
virtual void resize(int newNumberColumns)
Resize constraint.
double offset() const
Constraint offset.
double * coefficient_
Coefficients.
const double * coefficient() const
Coefficients.
int numberColumns() const
Number of columns in linear constraint.
virtual ClpConstraint * clone() const
Clone.
const int * column() const
Columns.
ClpConstraintLinear()
Default Constructor.
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.
virtual int numberCoefficients() const
Number of coefficients.