Purpose
Synopsis
int XPRBsetmodcut(XPRBctr ctr, int mcstat);
Arguments
ctr
|
Reference to a previously created constraint.
|
mcstat
|
The constraint type, which must be one of:
0
|
constraint;
|
1
|
model cut.
|
|
Return value
0 if function executed successfully, 1 otherwise.
Example
The following turns the constraint ctr1 into a model cut.
XPRBprob prob;
XPRBctr ctr1;
...
ctr1 = XPRBnewctr(prob, "r1", XPRB_E);
XPRBsetmodcut(ctr1, 1);
Further information
This function changes the type of a previously defined constraint from ordinary constraint to model cut and vice versa.
Related topics
If you have any comments or suggestions about these pages,
please send mail to docs@dashoptimization.com.