Initializing help system before first use

XPRSdelpwlcons

XPRSdelpwlcons


Purpose
Delete piecewise linear constraints from a problem.
Synopsis
int XPRS_CC XPRSdelpwlcons(XPRSprob prob, int npwls, const int mindex[]);
Arguments
prob 
The current problem.
npwls 
Number of piecewise linear constraints to delete.
mindex 
An integer array of length npwls containing the piecewise linear constraints to delete.
Example
In this example, piecewise linear constraints 0 and 2 are deleted from the problem:
mindex[0] = 0; mindex[1] = 2;
XPRSdelpwlcons(prob,2,mindex);
Further information
After piecewise linear constraints have been deleted from a problem, the indices of the remaining constraints are reduced so that the piecewise linear constraints are always numbered from 0 to PWLCONS-1 where PWLCONS is the problem attribute containing the number of non-deleted piecewise linear constraints in the problem.
Related topics