Purpose
Returns a list of cut indices from the
cut pool.
Synopsis
int XPRS_CC XPRSgetcpcutlist(XPRSprob prob, int itype, int interp, double delta, int *ncuts, int size, XPRScut mcutind[],
double dviol[]);
Arguments
prob
|
The current problem.
|
itype
|
Cut type of the cuts to be returned.
|
interp
|
Way in which the cut type is interpreted:
-1
|
get all cuts;
|
1
|
treat cut types as numbers;
|
2
|
treat cut types as bit maps - get cut if any bit matches any bit set in itype;
|
3
|
treat cut types as bit maps - get cut if all bits match those set in itype.
|
|
delta
|
Only those cuts with an absolute slack value greater than delta will be returned.
|
ncuts
|
Pointer to the integer where the number of cuts of type itype in the cut pool will be returned.
|
size
|
Maximum number of cuts to be returned.
|
mcutind
|
Array of length size where the pointers to the cuts will be returned.
|
dviol
|
Double array of length size where the values of the slack variables for the cuts will be returned.
|
Further information
1. The violated cuts can be obtained by setting the
delta parameter to the
size of the violation required. If unviolated cuts are required as well,
delta may be set
to
XPRS_MINUSINFINITY which is defined in the
library header file.
2. If the number of active cuts is greater than size, only size
cuts will be returned and ncuts will be set to the number of active cuts. If
ncuts is less than size, then only ncuts positions will be filled in
mcutind.
Related topics
If you have any comments or suggestions about these pages,
please send mail to docs@dashoptimization.com.