NO FRAMES

CPXdelsetrows

public int CPXPUBLIC CPXdelsetrows(CPXCENVptr env, CPXLPptr lp, int * delstat)
Definition file: cplex.h

The routine CPXdelsetrows deletes a set of rows. Unlike the routine CPXdelrows, CPXdelsetrows does not require the rows to be in a contiguous range. After the deletion occurs, the remaining rows are indexed consecutively, starting at 0 (zero), and in the same order as before the deletion.

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

Example

 status = CPXdelsetrows (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.

delstat

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

Returns:

The routine returns zero if successful and nonzero if an error occurs.