Initializing help system before first use

getnextsos

getnextsos


Purpose
Get the next SOS in the matrix.
Synopsis
void *getnextsos(XPRMcontext ctx, void *adr, XPRMlinctr *ctr, int *sos);
Arguments
ctx 
Mosel's execution context
adr 
Value returned by the previous call to this function or NULL for the first call
ctr 
A pointer to return the constraint reference
sos 
A pointer to return the SOS number
Return value
The value to be used as the adr parameter for a subsequent call or NULL when all SOS have been enumerated.
Further information
This function returns the next SOS information (constraint reference and SOS number) in the matrix. The second parameter is used to store the current location in the table: the value returned by the function has to be used as input for the subsequent call until the function returns NULL.
Related topics