Ampl Constraint Class.
More...
#include <ClpConstraintAmpl.hpp>
Ampl Constraint Class.
Definition at line 17 of file ClpConstraintAmpl.hpp.
ClpConstraintAmpl::ClpConstraintAmpl |
( |
| ) |
|
ClpConstraintAmpl::ClpConstraintAmpl |
( |
int |
row, |
|
|
void * |
amplInfo |
|
) |
| |
virtual ClpConstraintAmpl::~ClpConstraintAmpl |
( |
| ) |
|
|
virtual |
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
virtual void ClpConstraintAmpl::resize |
( |
int |
newNumberColumns | ) |
|
|
virtual |
virtual void ClpConstraintAmpl::deleteSome |
( |
int |
numberToDelete, |
|
|
const int * |
which |
|
) |
| |
|
virtual |
Delete columns in constraint.
virtual void ClpConstraintAmpl::reallyScale |
( |
const double * |
columnScale | ) |
|
|
virtual |
virtual int ClpConstraintAmpl::markNonlinear |
( |
char * |
which | ) |
const |
|
virtual |
Given a zeroed array sets nonampl columns to 1.
Returns number of nonampl columns
virtual int ClpConstraintAmpl::markNonzero |
( |
char * |
which | ) |
const |
|
virtual |
Given a zeroed array sets possible nonzero coefficients to 1.
Returns number of nonzeros
virtual void ClpConstraintAmpl::newXValues |
( |
| ) |
|
|
virtual |
Say we have new primal solution - so may need to recompute.
virtual ClpConstraint* ClpConstraintAmpl::clone |
( |
| ) |
const |
|
virtual |
virtual int ClpConstraintAmpl::numberCoefficients |
( |
| ) |
const |
|
virtual |
const int* ClpConstraintAmpl::column |
( |
| ) |
const |
|
inline |
const double* ClpConstraintAmpl::coefficient |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: