Go to the documentation of this file.
6 #ifndef ClpConstraintAmpl_H
7 #define ClpConstraintAmpl_H
9 #include "ClpConstraint.hpp"
32 const double * solution,
34 double & functionValue ,
36 bool useScaling =
false,
37 bool refresh =
true)
const ;
39 virtual void resize(
int newNumberColumns) ;
41 virtual void deleteSome(
int numberToDelete,
const int * which) ;
76 virtual ClpConstraint *
clone()
const;
101 double * coefficient_;
103 int numberCoefficients_;
ClpConstraintAmpl(int row, void *amplInfo)
Constructor from ampl.
const double * coefficient() const
Coefficients.
ClpConstraintAmpl & operator=(const ClpConstraintAmpl &rhs)
Assignment operator.
virtual int markNonzero(char *which) const
Given a zeroed array sets possible nonzero coefficients to 1.
ClpConstraintAmpl(const ClpConstraintAmpl &rhs)
Copy constructor .
virtual void newXValues()
Say we have new primal solution - so may need to recompute.
virtual ClpConstraint * clone() const
Clone.
const int * column() const
Columns.
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.