#include <ClpConstraintLinear.hpp>
Inheritance diagram for ClpConstraintLinear:


Public Member Functions | |
Stuff | |
| 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 void | resize (int newNumberColumns) |
| Resize constraint. | |
| virtual void | deleteSome (int numberToDelete, const int *which) |
| Delete columns in constraint. | |
| virtual void | reallyScale (const double *columnScale) |
| Scale constraint. | |
| virtual int | markNonlinear (char *which) const |
| Given a zeroed array sets nonlinear columns to 1. | |
| virtual int | markNonzero (char *which) const |
| Given a zeroed array sets possible nonzero coefficients to 1. | |
Constructors and destructors | |
| ClpConstraintLinear () | |
| Default Constructor. | |
| ClpConstraintLinear (int row, int numberCoefficients, int numberColumns, const int *column, const double *element) | |
| Constructor from constraint. | |
| ClpConstraintLinear (const ClpConstraintLinear &rhs) | |
| Copy constructor . | |
| ClpConstraintLinear & | operator= (const ClpConstraintLinear &rhs) |
| Assignment operator. | |
| virtual | ~ClpConstraintLinear () |
| Destructor. | |
| virtual ClpConstraint * | clone () const |
| Clone. | |
Gets and sets | |
| virtual int | numberCoefficients () const |
| Number of coefficients. | |
| int | numberColumns () const |
| Number of columns in linear constraint. | |
| const int * | column () const |
| Columns. | |
| const double * | coefficient () const |
| Coefficients. | |
Private Attributes | |
Private member data | |
Column | |
| int * | column_ |
| double * | coefficient_ |
| Coefficients. | |
| int | numberColumns_ |
| Useful to have number of columns about. | |
| int | numberCoefficients_ |
| Number of coefficients. | |
Definition at line 14 of file ClpConstraintLinear.hpp.
| ClpConstraintLinear::ClpConstraintLinear | ( | ) |
Default Constructor.
| ClpConstraintLinear::ClpConstraintLinear | ( | int | row, | |
| int | numberCoefficients, | |||
| int | numberColumns, | |||
| const int * | column, | |||
| const double * | element | |||
| ) |
Constructor from constraint.
| ClpConstraintLinear::ClpConstraintLinear | ( | const ClpConstraintLinear & | rhs | ) |
Copy constructor .
| virtual ClpConstraintLinear::~ClpConstraintLinear | ( | ) | [virtual] |
Destructor.
| virtual int ClpConstraintLinear::gradient | ( | const ClpSimplex * | model, | |
| const double * | solution, | |||
| double * | gradient, | |||
| double & | functionValue, | |||
| double & | offset, | |||
| bool | useScaling = false, |
|||
| bool | refresh = true | |||
| ) | const [virtual] |
Fills gradient.
If Linear then solution may be NULL, also returns true value of function and offset so we can use x not deltaX in constraint If refresh is false then uses last solution Uses model for scaling Returns non-zero if gradient udefined at current solution
Implements ClpConstraint.
| virtual void ClpConstraintLinear::resize | ( | int | newNumberColumns | ) | [virtual] |
| virtual void ClpConstraintLinear::deleteSome | ( | int | numberToDelete, | |
| const int * | which | |||
| ) | [virtual] |
| virtual void ClpConstraintLinear::reallyScale | ( | const double * | columnScale | ) | [virtual] |
| virtual int ClpConstraintLinear::markNonlinear | ( | char * | which | ) | const [virtual] |
Given a zeroed array sets nonlinear columns to 1.
Returns number of nonlinear columns
Implements ClpConstraint.
| virtual int ClpConstraintLinear::markNonzero | ( | char * | which | ) | const [virtual] |
Given a zeroed array sets possible nonzero coefficients to 1.
Returns number of nonzeros
Implements ClpConstraint.
| ClpConstraintLinear& ClpConstraintLinear::operator= | ( | const ClpConstraintLinear & | rhs | ) |
Assignment operator.
| virtual ClpConstraint* ClpConstraintLinear::clone | ( | ) | const [virtual] |
| virtual int ClpConstraintLinear::numberCoefficients | ( | ) | const [virtual] |
| int ClpConstraintLinear::numberColumns | ( | ) | const [inline] |
Number of columns in linear constraint.
Definition at line 79 of file ClpConstraintLinear.hpp.
References numberColumns_.
| const int* ClpConstraintLinear::column | ( | ) | const [inline] |
| const double* ClpConstraintLinear::coefficient | ( | ) | const [inline] |
int* ClpConstraintLinear::column_ [private] |
double* ClpConstraintLinear::coefficient_ [private] |
int ClpConstraintLinear::numberColumns_ [private] |
Useful to have number of columns about.
Definition at line 98 of file ClpConstraintLinear.hpp.
Referenced by numberColumns().
int ClpConstraintLinear::numberCoefficients_ [private] |
1.4.7