CPXXdelqconstrs and CPXdelqconstrs
The routine CPXXdelqconstrs/CPXdelqconstrs deletes a range of quadratic
constraints.
int CPXXdelqconstrs( CPXCENVptr env, CPXLPptr lp, CPXDIM begin, CPXDIM end )
int CPXdelqconstrs( CPXCENVptr env, CPXLPptr lp, int begin, int end )
Description
The routine CPXXdelqconstrs/CPXdelqconstrs
deletes a range of quadratic constraints. A lower and upper index specify the range of
quadratic constraints to delete. The
lower index represents the first constraint to be deleted,
and the upper index represents the last quadratic constraint to be deleted.
CPLEX decreases the indices of the constraints following the
deleted constraints 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 quadratic constraint to be deleted.
- end
- An integer that specifies the numeric index of the last quadratic constraint to be deleted.
Return
The routine returns 0 (zero) on success and nonzero if an error occurs.Example
status = CPXdelqconstrs (env, lp, 10, 20);