CPXXdelsetpwl and CPXdelsetpwl
The routine
CPXXdelsetpwl/CPXdelsetpwl
deletes a group of piecewise linear (PWL) constraints from a CPLEX problem object.
int CPXXdelsetpwl( CPXCENVptr env, CPXLPptr lp, CPXDIM * delstat )
int CPXdelsetpwl( CPXCENVptr env, CPXLPptr lp, int * delstat )
Description
The routine
CPXXdelsetpwl/CPXdelsetpwl
deletes a group of piecewise linear (PWL) constraints from a
CPLEX problem object.
Note:
The
delstat array must have at least
CPXgetnumpwl(env,lp) elements.
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. - delstat
-
An array specifying the PWLs to be deleted. The routine
CPXXdelsetpwl/CPXdelsetpwldeletes each PWLjfor whichdelstat[j] = 1. The deletion of PWLs results in a renumbering of the remaining PWLs. After termination,delstat[j]is either -1 for PWLs that have been deleted or the new index number that has been assigned to the remaining PWLs.
Return
The routine returns 0 (zero) if successful and nonzero if an error occurs.Example
status = CPXdelsetpwl (env, lp, delstat);