Purpose
Create
a
precedence cut
(v1+dur
v2).
Synopsis
XPRBcut XPRBnewcutprec(XPRBprob prob, XPRBvar v1, double dur, XPRBvar v2,
int mtype);
Arguments
prob
|
Reference to a problem.
|
v1,v2
|
References to two variables.
|
dur
|
Double or integer constant.
|
mtype
|
Cut classification or identification number.
|
Return value
Reference to the newly created cut if function
executed successfully, NULL otherwise.
Example
The following creates the
inequality constraint
ty12 + 5.4
ty14.
XPRBcut cut5;
XPRBarrvar ty1;
ty1 = XPRBnewarrvar(5, XPRB_PL, "arry1", 0, 500);
cut5 = XPRBnewcutprec(ty1[2], 5.4, ty1[4], 5);
Further information
This function creates a so-called precedence
constraint (where the variable plus constant
is not larger than a second variable). This function replaces
XPRBnewcut and
XPRBaddcutterm.
Related topics
If you have any comments or suggestions about these pages,
please send mail to docs@dashoptimization.com.