XPRBdelqobj


Purpose
Delete the quadratic terms in the objective function.
Synopsis
int XPRBdelqobj(XPRBprob prob);
Argument
prob 
Reference to a problem.
Return value
0 if function executed successfully, 1 otherwise.
Example
The following deletes all quadratic objective terms.
XPRBprob prob;
XPRBvar x2;
   ...
x2 = XPRBnewvar(prob, XPRB_PL, "abc1", 0, XPRB_INFINITY);
XPRBaddqterm(prob, x2, x2, 5.2);
XPRBdelqobj(prob); 
Further information
This function deletes all quadratic terms from the objective function of the given problem. Note that the quadratic terms are not deleted if the objective function constraint is deleted or changed (using functions XPRBdelctr or XPRBsetobj).
Related topics
XPRBaddqterm, XPRBsetqterm.


If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.