CPXXdelrows and CPXdelrows

The routine CPXXdelrows/CPXdelrows deletes a range of rows.

int  CPXXdelrows( CPXCENVptr env, CPXLPptr lp, CPXDIM begin, CPXDIM end )

int  CPXdelrows( CPXCENVptr env, CPXLPptr lp, int begin, int end )

Description

The routine CPXXdelrows/CPXdelrows deletes a range of rows. The range is specified using a lower and upper index that represent the first and last row to be deleted, respectively. The indices of the rows following those deleted are decreased by the number of deleted rows.

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 row to be deleted.
end
An integer that specifies the numeric index of the last row to be deleted.

Return

The routine returns 0 (zero) if successful and nonzero if an error occurs.

Example


status = CPXdelrows (env, lp, 10, 20);