Ampl Constraint Class.
More...
#include <ClpConstraintAmpl.hpp>
|
| 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.
|
| | 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.
|
| virtual int | numberCoefficients () const |
| | Number of coefficients.
|
| const int * | column () const |
| | Columns.
|
| const double * | coefficient () const |
| | Coefficients.
|
Ampl Constraint Class.
Definition at line 17 of file ClpConstraintAmpl.hpp.
◆ ClpConstraintAmpl() [1/3]
| ClpConstraintAmpl::ClpConstraintAmpl |
( |
| ) |
|
◆ ClpConstraintAmpl() [2/3]
| ClpConstraintAmpl::ClpConstraintAmpl |
( |
int | row, |
|
|
void * | amplInfo ) |
◆ ClpConstraintAmpl() [3/3]
◆ ~ClpConstraintAmpl()
| virtual ClpConstraintAmpl::~ClpConstraintAmpl |
( |
| ) |
|
|
virtual |
◆ gradient()
| virtual int ClpConstraintAmpl::gradient |
( |
const ClpSimplex * | model, |
|
|
const double * | solution, |
|
|
double * | gradient, |
|
|
double & | functionValue, |
|
|
double & | offset, |
|
|
bool | useScaling = false, |
|
|
bool | refresh = true ) const |
|
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
◆ resize()
| virtual void ClpConstraintAmpl::resize |
( |
int | newNumberColumns | ) |
|
|
virtual |
◆ deleteSome()
| virtual void ClpConstraintAmpl::deleteSome |
( |
int | numberToDelete, |
|
|
const int * | which ) |
|
virtual |
Delete columns in constraint.
◆ reallyScale()
| virtual void ClpConstraintAmpl::reallyScale |
( |
const double * | columnScale | ) |
|
|
virtual |
◆ markNonlinear()
| virtual int ClpConstraintAmpl::markNonlinear |
( |
char * | which | ) |
const |
|
virtual |
Given a zeroed array sets nonampl columns to 1.
Returns number of nonampl columns
◆ markNonzero()
| virtual int ClpConstraintAmpl::markNonzero |
( |
char * | which | ) |
const |
|
virtual |
Given a zeroed array sets possible nonzero coefficients to 1.
Returns number of nonzeros
◆ newXValues()
| virtual void ClpConstraintAmpl::newXValues |
( |
| ) |
|
|
virtual |
Say we have new primal solution - so may need to recompute.
◆ operator=()
◆ clone()
| virtual ClpConstraint * ClpConstraintAmpl::clone |
( |
| ) |
const |
|
virtual |
◆ numberCoefficients()
| virtual int ClpConstraintAmpl::numberCoefficients |
( |
| ) |
const |
|
virtual |
◆ column()
| const int * ClpConstraintAmpl::column |
( |
| ) |
const |
|
inline |
◆ coefficient()
| const double * ClpConstraintAmpl::coefficient |
( |
| ) |
const |
|
inline |
◆ amplInfo_
| void* ClpConstraintAmpl::amplInfo_ |
|
private |
◆ column_
| int* ClpConstraintAmpl::column_ |
|
private |
◆ coefficient_
| double* ClpConstraintAmpl::coefficient_ |
|
private |
◆ numberCoefficients_
| int ClpConstraintAmpl::numberCoefficients_ |
|
private |
The documentation for this class was generated from the following file: