XPRBnewcut


Purpose
Create a new cut.
Synopsis
XPRBcut XPRBnewcut(XPRBprob prob, char qrtype, int mtype);
Arguments
prob 
Reference to a problem.
qrtype 
Type of the cut:
XPRB_L 
Maths/leq.png (inequality)
XPRB_G 
Maths/geq.png (inequality)
XPRB_E 
= (equation)
mtype 
Cut classification or identification number.
Return value
Reference to the new cut of type xbcut if function executed successfully, NULL otherwise.
Example
The example shows how to create a new equality cut.
XPRBcut cut1;
XPRBprob expl1;
expl1 = XPRBnewprob("cutexample");
cut1 = XPRBnewcut(expl1, XPRB_E, 1);
Further information
This function creates a new cut and returns the reference to this cut, i.e. the cut's model name. It has to be called before XPRBaddcutterm is used to add terms to the cut.
Related topics
XPRBaddcutterm, XPRBdelcut, XPRBaddcuts.


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