Initializing help system before first use

XPRBdelctr

XPRBdelctr


Purpose
Delete a constraint.
Synopsis
int XPRBdelctr(XPRBctr ctr);
Argument
ctr 
BCL reference to a constraint.
Return value
0 if function executed successfully, 1 otherwise.
Example
XPRBprob prob;
XPRBctr ctr1;
   ...
ctr1 = XPRBnewctr(prob, "r1", XPRB_E);
XPRBdelctr(ctr1);
This deletes the constraint ctr1.
Further information
Delete a constraint from the given problem. If this constraint has previously been selected as the objective function (using function XPRBsetobj), the objective will be set to NULL. If the constraint occurs in a previously saved basis that is to be (re)loaded later on you should change its type to XPRB_N using XPRBsetctrtype instead of entirely deleting the constraint.
Related topics