CPXdelsetcols


Description

The routine CPXdelsetcols() is used to delete a set of columns from a CPLEX problem object. Unlike the routine CPXdelcols(), CPXdelsetcols() does not require the columns to be in a contiguous range. After the deletion occurs, the remaining columns 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 CPXdelsetcols (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 columns to be deleted. The routine CPXdelsetcols() deletes each column j for which delstat[j] = 1. The deletion of columns results in a renumbering of the remaining columns. After termination, delstat[j] is either -1 for columns that have been deleted or the new index number that has been assigned to the remaining columns.

Example

  status = CPXdelsetcols (env, lp, delstat);


Previous Page: CPXdelrows Return to Top Next Page: CPXdelsetrows