XPRBdelcutterm
PurposeSynopsisint XPRBdelcutterm(XPRBcut cut, XPRBvar var);
Arguments
cut Reference to a cut as resulting from XPRBnewcut. var Reference to a variable in the cut.Return value0 if function executed successfully, 1 otherwise.ExampleAdd 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 informationThis function removes a variable term from a cut. The constant term (right hand side value) is changed/reset with function XPRBsetcutterm.Related topics
If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.