XPRSgetcpcuts, XPRSgetcpcuts64
int XPRS_CC XPRSgetcpcuts(XPRSprob prob, const XPRScut rowind[], int ncuts, int maxcoefs, int cuttype[], char rowtype[], int start[], int colind[], double cutcoef[], double rhs[]);
 int XPRS_CC XPRSgetcpcuts64(XPRSprob prob, const XPRScut rowind[], int ncuts, XPRSint64 maxcoefs, int cuttype[], char rowtype[], XPRSint64 start[], int colind[], double cutcoef[], double rhs[]);
 | 
     prob 
     | 
     The current problem.
     | 
| 
     rowind 
     | 
     Array of length
     ncuts containing the pointers to the cuts.
     | 
| 
     ncuts 
     | 
     Number of cuts to be returned.
     | 
| 
     maxcoefs 
     | 
     Maximum number of column indices of the cuts to be returned.
     | 
| 
     cuttype 
     | 
     Integer array of length
     ncuts where the cut types will be returned. May be
     NULL if not required.
     | 
| 
     rowtype 
     | 
     Character array of length
     ncuts where the sense of the cuts (
     L,
     G, or
     E) will be returned. May be
     NULL if not required.
     | 
| 
     start 
     | 
     Integer array of length
     ncuts+1 containing the offsets into the
     colind and
     cutcoef arrays. The last element indicates where an additional cut would start, if it were present. May be
     NULL if not required.
     | 
| 
     colind 
     | 
     Integer array of length
     maxcoefs where the column indices of the cuts will be returned. May be
     NULL if not required.
     | 
| 
     cutcoef 
     | 
     Double array of length
     maxcoefs where the matrix values will be returned. May be
     NULL if not required.
     | 
| 
     rhs 
     | 
     Double array of length
     ncuts where the right hand side elements for the cuts will be returned. May be
     NULL if not required.
     | 
int cuttype[2], start[3];
int *colind;
int rowind[] = { 0, 1 };
double rhs[2];
double *cutcoef;
char * rowtype;
...
XPRSgetcpcuts(prob,rowind,2,0,NULL,NULL,start,NULL,NULL,NULL);
colind = (int*) malloc(start[2]*sizeof(int));
cutcoef = (double*) malloc(start[2]*sizeof(double));
XPRSgetcpcuts(prob,rowind,2,0,cuttype,rowtype,start,colind,cutcoef,rhs);
© 2001-2025 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.
 
