6 #ifndef ClpConstraintLinear_H 
    7 #define ClpConstraintLinear_H 
   32                           const double * solution,
 
   36                           bool useScaling = 
false,
 
   37                           bool refresh = 
true) 
const ;
 
   39      virtual void resize(
int newNumberColumns) ;
 
   41      virtual void deleteSome(
int numberToDelete, 
const int * which) ;
 
   43      virtual void reallyScale(
const double * columnScale) ;
 
   62                          const int * 
column, 
const double * element);
 
virtual void resize(int newNumberColumns)
Resize constraint. 
 
ClpConstraintLinear & operator=(const ClpConstraintLinear &rhs)
Assignment operator. 
 
virtual int gradient(const ClpSimplex *model, const double *solution, double *gradient, double &functionValue, double &offset, bool useScaling=false, bool refresh=true) const 
Fills gradient. 
 
Constraint Abstract Base Class. 
 
double * coefficient_
Coefficients. 
 
int * column_
Coefficients. 
 
const double * coefficient() const 
Coefficients. 
 
virtual void reallyScale(const double *columnScale)
Scale constraint. 
 
virtual int numberCoefficients() const 
Number of coefficients. 
 
virtual void deleteSome(int numberToDelete, const int *which)
Delete columns in constraint. 
 
const int * column() const 
Columns. 
 
virtual int markNonzero(char *which) const 
Given a zeroed array sets possible nonzero coefficients to 1. 
 
int numberCoefficients_
Number of coefficients. 
 
This solves LPs using the simplex method. 
 
virtual ClpConstraint * clone() const 
Clone. 
 
virtual int markNonlinear(char *which) const 
Given a zeroed array sets nonlinear columns to 1. 
 
virtual ~ClpConstraintLinear()
Destructor. 
 
double offset() const 
Constraint offset. 
 
double functionValue() const 
Stored constraint function value. 
 
ClpConstraintLinear()
Default Constructor. 
 
int numberColumns_
Useful to have number of columns about. 
 
int numberColumns() const 
Number of columns in linear constraint.