Initializing help system before first use

XPRBnewcut

XPRBnewcut


Purpose
Create a new cut.
Synopsis
XPRBcut XPRBnewcut(XPRBprob prob, int qrtype, int mtype);
Arguments
prob 
Reference to a problem.
qrtype 
Type of the cut:
XPRB_L 
(inequality)
XPRB_G 
(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