Initializing help system before first use

XPRSgetmipentities, XPRSgetmipentities64

Purpose
Retrieves integr and entity information about a problem. It must be called before XPRSmipoptimize if the presolve option is used.
Topic areas
Synopsis
int XPRS_CC XPRSgetmipentities(XPRSprob prob, int *p_nentities, int *p_nsets, char coltype[], int colind[], double limit[], char settype[], int start[], int setcols[], double refval[]);

int XPRS_CC XPRSgetmipentities64(XPRSprob prob, int *p_nentities, int *p_nsets, char coltype[], int colind[], double limit[], char settype[], XPRSint64 start[], int setcols[], double refval[]);
Arguments
prob 
The current problem.
p_nentities 
Pointer to the integer where the number of binary, integer, semi-continuous, semi-continuous integer and partial integer entities will be returned. This is equal to the problem attribute MIPENTS. May be NULL.
p_nsets 
Pointer to the integer where the number of SOS1 and SOS2 sets will be returned. It can be retrieved from the problem attribute SETS. May be NULL.
coltype 
Character array of length p_nentities where the entity types will be returned. The types will be one of:
binary variables;
integer variables;
partial integer variables;
semi-continuous variables;
semi-continuous integer variables.
colind 
Integer array of length p_nentities where the column indices of the MIP entities will be returned.
limit 
Double array of length p_nentities where the limits for the partial integer variables and lower bounds for the semi-continuous and semi-continuous integer variables will be returned (any entries in the positions corresponding to binary and integer variables will be meaningless).
settype 
Character array of length p_nsets where the set types will be returned. The set types will be one of:
SOS1 type sets;
SOS2 type sets.
start 
Integer array where the offsets into the setcols and refval arrays indicating the start of the sets will be returned. This array must be of length p_nsets+1, the final element will contain the offset where set p_nsets+1 would start and equals the length of the setcols and refval arrays, SETMEMBERS.
setcols 
Integer array of length SETMEMBERS where the columns in each set will be returned.
refval 
Double array of length SETMEMBERS where the reference row entries for each member of the sets will be returned. These define the order for SOS2 constraints and may be used in branching for both types.
Example
The following obtains the MIP entities and their types in the arrays colind and qrtype:
int nentities, nsets, *colind;
char *coltype;
...
XPRSgetmipentities(prob,&nentities,&nsets,NULL,NULL,NULL,NULL,
              NULL,NULL,NULL);
colind = malloc(nentities*sizeof(int));
coltype = malloc(nentities*sizeof(char));
XPRSgetmipentities(prob,&nentities,&nsets,coltype,ngcols,NULL,
              NULL,NULL,NULL,NULL);
Further information
Any of the arguments except prob, p_nentities and p_nsets may be NULL if not required.
Related topics

© 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.