NO FRAMES

CPXdelsetcols

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

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.

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

Example

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

Returns:

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