CPXXdelindconstrs and CPXdelindconstrs

The routine CPXXdelindconstrs/CPXdelindconstrs deletes a range of indicator constraints.

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

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

Description

The routine CPXXdelindconstrs/CPXdelindconstrs deletes a range of indicator constraints. The range is specified by a lower index that represent the first indicator constraint to be deleted and an upper index that represents the last indicator constraint to be deleted. The indices of the constraints following those deleted constraints are automatically decreased by the number of deleted constraints.

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

Return

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

Example


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