XPRSgetcpcutlist
XPRSgetcpcutlist |
Purpose
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
|
The user defined type of the cuts to be returned.
|
||||||||
interp
|
Way in which the cut type is interpreted:
|
||||||||
delta
|
Only those cuts with a signed violation 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 signed violations of the cuts will be returned.
|
Further information
1. The violated cuts can be obtained by setting the
delta parameter to the size of the (signed) 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.
3. In case of a cut of type '
L', the violation equals the negative of the slack associated with the row of the cut. In case of a cut of type '
G', the violation equals the slack associated with the row of the cut. For cuts of type '
E', the violation equals the absolute value of the slack.
4. Please note that the violations returned are absolute violations, while feasibility is checked by the Optimizer in the scaled problem.
Related topics
XPRSdelcpcuts,
XPRSgetcpcuts,
XPRSgetcutlist,
XPRSloadcuts,
XPRSgetcutmap,
XPRSgetcutslack, Section
Working with the Cut Manager.