CPXXdelcols and CPXdelcols
The routine CPXXdelcols/CPXdelcols deletes all the columns
in a specified range.
int CPXXdelcols( CPXCENVptr env, CPXLPptr lp, CPXDIM begin, CPXDIM end )
int CPXdelcols( CPXCENVptr env, CPXLPptr lp, int begin, int end )
Description
The routine CPXXdelcols/CPXdelcols deletes all the columns
in a specified range. The range is specified using a lower and an upper
index that represent the first and last column to be deleted, respectively.
The indices of the columns following those deleted are decreased by the
number of columns deleted.
Arguments
- env
-
A pointer to the CPLEX environment as returned by
CPXXopenCPLEX/CPXopenCPLEX. - lp
-
A pointer to a CPLEX problem object as returned by
CPXXcreateprob/CPXcreateprob. - begin
- An integer that specifies the numeric index of the first column to be deleted.
- end
- An integer that specifies the numeric index of the last column to be deleted.
Return
The routine returns 0 (zero) if successful and nonzero if an error occurs.Example
status = CPXdelcols (env, lp, 10, 20);