Description
The routine CPXdelsetrows() deletes a set of rows. Unlike the CPXdelrows() routine, 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, and in the same order as before the deletion.Return Value
The routine returns a zero on success, and a nonzero if an error occurs.Synopsis
int CPXdelsetrows (CPXENVptr env,
CPXLPptr lp,
int *delstat);
CPXENVptr envThe pointer to the CPLEX environment as returned by one of the
CPXopenCPLEX routines.
CPXLPptr lpA pointer to a CPLEX LP problem object as returned by
CPXcreateprob().
int *delstatAn array indicating the rows to be deleted. The
CPXdelsetrows() routine will delete each row i for which delstat[i] = 1. The deletion of rows results in a renumbering of the remaining rows. After termination, delstat[i] will be either -1 for rows that have been deleted or the new index number that has been assigned to the remaining rows.
|
|
The delstat array must have at least CPXgetnumrows(env,lp) elements.
|
status = CPXdelsetrows (env, lp, delstat);