|
Cbc
2.10.3
|
Ampl Constraint Class. More...
#include <ClpConstraintAmpl.hpp>
Inheritance diagram for ClpConstraintAmpl: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. More... | |
| virtual void | resize (int newNumberColumns) |
| Resize constraint. More... | |
| virtual void | deleteSome (int numberToDelete, const int *which) |
| Delete columns in constraint. More... | |
| virtual void | reallyScale (const double *columnScale) |
| Scale constraint. More... | |
| virtual int | markNonlinear (char *which) const |
| Given a zeroed array sets nonampl columns to 1. More... | |
| virtual int | markNonzero (char *which) const |
| Given a zeroed array sets possible nonzero coefficients to 1. More... | |
| virtual void | newXValues () |
| Say we have new primal solution - so may need to recompute. More... | |
Constructors and destructors | |
| ClpConstraintAmpl () | |
| Default Constructor. More... | |
| ClpConstraintAmpl (int row, void *amplInfo) | |
| Constructor from ampl. More... | |
| ClpConstraintAmpl (const ClpConstraintAmpl &rhs) | |
| Copy constructor . More... | |
| ClpConstraintAmpl & | operator= (const ClpConstraintAmpl &rhs) |
| Assignment operator. More... | |
| virtual | ~ClpConstraintAmpl () |
| Destructor. More... | |
| virtual ClpConstraint * | clone () const |
| Clone. More... | |
Gets and sets | |
| virtual int | numberCoefficients () const |
| Number of coefficients. More... | |
| const int * | column () const |
| Columns. More... | |
| const double * | coefficient () const |
| Coefficients. More... | |
Public Member Functions inherited from ClpConstraint | |
| virtual double | functionValue (const ClpSimplex *model, const double *solution, bool useScaling=false, bool refresh=true) const |
| ClpConstraint () | |
| ClpConstraint (const ClpConstraint &) | |
| ClpConstraint & | operator= (const ClpConstraint &rhs) |
| virtual | ~ClpConstraint () |
| int | type () |
| int | rowNumber () const |
| double | functionValue () const |
| double | offset () const |
| virtual double | functionValue (const ClpSimplex *model, const double *solution, bool useScaling=false, bool refresh=true) const |
| ClpConstraint () | |
| ClpConstraint (const ClpConstraint &) | |
| ClpConstraint & | operator= (const ClpConstraint &rhs) |
| virtual | ~ClpConstraint () |
| int | type () |
| int | rowNumber () const |
| double | functionValue () const |
| double | offset () const |
Additional Inherited Members | |
Protected Attributes inherited from ClpConstraint | |
| double * | lastGradient_ |
| double | functionValue_ |
| double | offset_ |
| int | type_ |
| int | rowNumber_ |
Ampl Constraint Class.
Definition at line 17 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.
|
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
Implements ClpConstraint.
|
virtual |
Resize constraint.
Implements ClpConstraint.
|
virtual |
Delete columns in constraint.
Implements ClpConstraint.
|
virtual |
Scale constraint.
Implements ClpConstraint.
|
virtual |
Given a zeroed array sets nonampl columns to 1.
Returns number of nonampl columns
Implements ClpConstraint.
|
virtual |
Given a zeroed array sets possible nonzero coefficients to 1.
Returns number of nonzeros
Implements ClpConstraint.
|
virtual |
Say we have new primal solution - so may need to recompute.
Reimplemented from ClpConstraint.
| ClpConstraintAmpl& ClpConstraintAmpl::operator= | ( | const ClpConstraintAmpl & | rhs | ) |
Assignment operator.
|
virtual |
Clone.
Implements ClpConstraint.
|
virtual |
Number of coefficients.
Implements ClpConstraint.
|
inline |
Columns.
Definition at line 80 of file ClpConstraintAmpl.hpp.
|
inline |
Coefficients.
Definition at line 85 of file ClpConstraintAmpl.hpp.
1.8.14