CPXdelsetrows


Description

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, 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 (CPXCENVptr env,
                     CPXLPptr lp,
                     int *delstat);

Arguments

CPXCENVptr env

The pointer to the CPLEX environment as returned by CPXopenCPLEX().

CPXLPptr lp

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

int *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.

Example

  status = CPXdelsetrows (env, lp, delstat);


Previous Page: CPXdelsetcols Return to Top Next Page: CPXdelsetsos