NO FRAMES

CPXdelsetsos

int CPXPUBLIC CPXdelsetsos(CPXCENVptr env, CPXLPptr lp, int * delset)
Definition file: cplex.h
Include files: cplex.h

The routine CPXdelsetsos is used to delete a group of special ordered sets (SOSs) from a CPLEX problem object.

Note
The delstat array must have at least CPXgetnumsos(env,lp) elements.

Example

 status = CPXdelsetsos (env, lp, delstat);
 

Parameters:

env

A pointer to the CPLEX environment as returned by CPXopenCPLEX.

lp

A pointer to a CPLEX problem object as returned by CPXcreateprob.

delset

An array indicating the SOSs to be deleted. The routine CPXdelsetsos deletes each SOS j for which delstat[j] = 1. The deletion of SOSs results in a renumbering of the remaining SOSs. After termination, delstat[j] is either -1 for SOSs that have been deleted or the new index number that has been assigned to the remaining SOSs.

Note
The delstat array must have at least CPXgetnumsos(env,lp) elements.

Example

 status = CPXdelsetsos (env, lp, delstat);
 

Returns:

The routine returns zero on success and nonzero if an error occurs.