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

© 2001-2019 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.