Initializing help system before first use

XPRBdelcutterm

XPRBdelcutterm


Purpose
Delete a term from a cut.
Synopsis
int XPRBdelcutterm(XPRBcut cut, XPRBvar var);
Arguments
cut 
Reference to a cut as resulting from XPRBnewcut.
var 
Reference to a variable in the cut.
Return value
0 if function executed successfully, 1 otherwise.
Example
Add the term 5.4 · x1 to the cut cut1 and then delete it.
XPRBcut cut1;
XPRBvar x1;
XPRBprob expl1;
expl1 = XPRBnewprob("cutexample");
x1 = XPRBnewvar(expl1, XPRB_UI, "abc3", 0, 100);
cut1 = XPRBnewcut(expl1, XPRB_E, 1);
XPRBaddcutterm(cut1, x1, 5.4);
XPRBdelcutterm(cut1, x1);
Further information
This function removes a variable term from a cut. The constant term (right hand side value) is changed/reset with function XPRBsetcutterm.
Related topics