Ampl Constraint Class. More...
#include <ClpConstraintAmpl.hpp>
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 nonampl columns to 1. | |
| virtual int | markNonzero (char *which) const |
| Given a zeroed array sets possible nonzero coefficients to 1. | |
| virtual void | newXValues () |
| Say we have new primal solution - so may need to recompute. | |
| 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 nonampl columns to 1. | |
| virtual int | markNonzero (char *which) const |
| Given a zeroed array sets possible nonzero coefficients to 1. | |
| virtual void | newXValues () |
| Say we have new primal solution - so may need to recompute. | |
Constructors and destructors | |
| ClpConstraintAmpl () | |
| Default Constructor. | |
| ClpConstraintAmpl (int row, void *amplInfo) | |
| Constructor from ampl. | |
| ClpConstraintAmpl (const ClpConstraintAmpl &rhs) | |
| Copy constructor . | |
| ClpConstraintAmpl & | operator= (const ClpConstraintAmpl &rhs) |
| Assignment operator. | |
| virtual | ~ClpConstraintAmpl () |
| Destructor. | |
| virtual ClpConstraint * | clone () const |
| Clone. | |
| ClpConstraintAmpl () | |
| Default Constructor. | |
| ClpConstraintAmpl (int row, void *amplInfo) | |
| Constructor from ampl. | |
| ClpConstraintAmpl (const ClpConstraintAmpl &rhs) | |
| Copy constructor . | |
| ClpConstraintAmpl & | operator= (const ClpConstraintAmpl &rhs) |
| Assignment operator. | |
| virtual | ~ClpConstraintAmpl () |
| Destructor. | |
| virtual ClpConstraint * | clone () const |
| Clone. | |
Gets and sets | |
| virtual int | numberCoefficients () const |
| Number of coefficients. | |
| const int * | column () const |
| Columns. | |
| const double * | coefficient () const |
| Coefficients. | |
| virtual int | numberCoefficients () const |
| Number of coefficients. | |
| const int * | column () const |
| Columns. | |
| const double * | coefficient () const |
| Coefficients. | |
Private Attributes | |
Private member data | |
Ampl info | |
| void * | amplInfo_ |
| Column. | |
| int * | column_ |
| Column. | |
| double * | coefficient_ |
| Coefficients. | |
| int | numberCoefficients_ |
| Number of coefficients in gradient. | |
Ampl Constraint Class.
Definition at line 15 of file ClpConstraintAmpl.hpp.
| ClpConstraintAmpl::ClpConstraintAmpl | ( | ) |
Default Constructor.
| ClpConstraintAmpl::ClpConstraintAmpl | ( | int | row, |
| void * | amplInfo | ||
| ) |
Constructor from ampl.
| ClpConstraintAmpl::ClpConstraintAmpl | ( | const ClpConstraintAmpl & | rhs | ) |
Copy constructor .
|
virtual |
Destructor.
| ClpConstraintAmpl::ClpConstraintAmpl | ( | ) |
Default Constructor.
| ClpConstraintAmpl::ClpConstraintAmpl | ( | int | row, |
| void * | amplInfo | ||
| ) |
Constructor from ampl.
| ClpConstraintAmpl::ClpConstraintAmpl | ( | const ClpConstraintAmpl & | rhs | ) |
Copy constructor .
|
virtual |
Destructor.
|
virtual |
Fills gradient.
If Ampl 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
|
virtual |
Resize constraint.
|
virtual |
Delete columns in constraint.
|
virtual |
Scale constraint.
|
virtual |
Given a zeroed array sets nonampl columns to 1.
Returns number of nonampl columns
|
virtual |
Given a zeroed array sets possible nonzero coefficients to 1.
Returns number of nonzeros
|
virtual |
Say we have new primal solution - so may need to recompute.
| ClpConstraintAmpl& ClpConstraintAmpl::operator= | ( | const ClpConstraintAmpl & | rhs | ) |
Assignment operator.
|
virtual |
Clone.
|
virtual |
Number of coefficients.
|
inline |
Columns.
Definition at line 81 of file ClpConstraintAmpl.hpp.
|
inline |
Coefficients.
Definition at line 85 of file ClpConstraintAmpl.hpp.
|
virtual |
Fills gradient.
If Ampl 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
|
virtual |
Resize constraint.
|
virtual |
Delete columns in constraint.
|
virtual |
Scale constraint.
|
virtual |
Given a zeroed array sets nonampl columns to 1.
Returns number of nonampl columns
|
virtual |
Given a zeroed array sets possible nonzero coefficients to 1.
Returns number of nonzeros
|
virtual |
Say we have new primal solution - so may need to recompute.
| ClpConstraintAmpl& ClpConstraintAmpl::operator= | ( | const ClpConstraintAmpl & | rhs | ) |
Assignment operator.
|
virtual |
Clone.
|
virtual |
Number of coefficients.
|
inline |
Columns.
Definition at line 81 of file ClpConstraintAmpl.hpp.
|
inline |
Coefficients.
Definition at line 85 of file ClpConstraintAmpl.hpp.
|
private |
Column.
Definition at line 95 of file ClpConstraintAmpl.hpp.
|
private |
Column.
Definition at line 97 of file ClpConstraintAmpl.hpp.
|
private |
Coefficients.
Definition at line 99 of file ClpConstraintAmpl.hpp.
|
private |
Number of coefficients in gradient.
Definition at line 101 of file ClpConstraintAmpl.hpp.
1.8.1.1