|
Get user cuts from AIMMS.
virtual _LONG_T GetNextCuts( int max_no, int max_elem_cut, double lb[], double ub[], int nnonz[], int col_no[], double val[], int is_local[], int is_purgeable[] ) = 0;
Parameters |
Description |
int max_no |
Number of cuts to be retrieved. Value can be -1 which has a special meaning; see below. |
int max_elem_cut |
Deprecated; not used. |
double lb[] |
Double-valued array with the lower bounds of the cuts. Length must be at least max_no. This argument may be NULL. |
double ub[] |
Double-valued array with the upper bounds of the cuts. Length must be at least max_no. This argument may be NULL. |
int nnonz[] |
Integer array with the number of nonzero elements in each cut. Length must be at least max_no. This argument may be NULL. |
int col_no[] |
Integer array with the column numbers of the cut elements.Length must be equal to max_no times the return value of the GetMaximumCutElements method. This argument may be NULL. |
double val[] |
Double-valued array with the cut coefficients.Length must be equal to max_no times the return value of the GetMaximumCutElements method. This argument may be NULL. |
int is_local[] |
Integer array of length max_no, indicating for each cut whether it is a local (value 1) or global (value 0) cut. This argument may be NULL. |
int is_purgeable[] |
Integer array of length max_no, indicating for each cut whether it is purgeable (value 1) or not (value 0) cut. This argument may be NULL. |
The number of user cuts added during the last call to the RunCallback method.
The GetNextCuts method returns information about user cuts added during a cuts callback. It should only be called just after the RunCallback method returns from a cuts callback.