6#ifndef ClpConstraintAmpl_H
7#define ClpConstraintAmpl_H
9#include "ClpConstraint.hpp"
30 const double *solution,
32 double &functionValue,
34 bool useScaling =
false,
35 bool refresh =
true)
const;
37 virtual void resize(
int newNumberColumns);
39 virtual void deleteSome(
int numberToDelete,
const int *which);
73 virtual ClpConstraint *
clone()
const;
int numberCoefficients_
Number of coefficients in gradient.
virtual void deleteSome(int numberToDelete, const int *which)
Delete columns in constraint.
virtual int markNonzero(char *which) const
Given a zeroed array sets possible nonzero coefficients to 1.
virtual void reallyScale(const double *columnScale)
Scale 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.
ClpConstraintAmpl(int row, void *amplInfo)
Constructor from ampl.
double * coefficient_
Coefficients.
virtual int numberCoefficients() const
Number of coefficients.
ClpConstraintAmpl()
Default Constructor.
const double * coefficient() const
Coefficients.
ClpConstraintAmpl(const ClpConstraintAmpl &rhs)
Copy constructor .
virtual ~ClpConstraintAmpl()
Destructor.
virtual ClpConstraint * clone() const
Clone.
virtual void resize(int newNumberColumns)
Resize constraint.
virtual int markNonlinear(char *which) const
Given a zeroed array sets nonampl columns to 1.
virtual void newXValues()
Say we have new primal solution - so may need to recompute.
const int * column() const
Columns.
ClpConstraintAmpl & operator=(const ClpConstraintAmpl &rhs)
Assignment operator.