Click or drag to resize

XPRBprobnewCut(XPRBrelation) Method

Create a new cut. This method has to be called before XPRBcut.addTerm(XPRBvar, double) or XPRBcut.setTerm(XPRBvar, double) are used to add terms to the cut. Cuts are inequalities or equations. If no type is specified the type BCLconstant.XPRB.E is assumed, it can be changed with method XPRBcut.setType(int).

Namespace: BCL
Assembly: xprbdn (in xprbdn.dll) Version: 47.01.01+0ba4e76731516b80760698bbaa939494dae84e49
Syntax
public XPRBcut newCut(
	XPRBrelation ac
)

Parameters

ac  XPRBrelation
The XPRBrelation relation.

Return Value

XPRBcut
The new XPRBcut object.
Example
C#
XPRBprob prob = new XPRBprob("NewProb");
XPRBvar var = new XPRBvar("Variable1");
XPRBvar var2 = new XPRBvar("Variable2");
XPRBcut cut;
...
cut = prob.newCut(var + 2.3*var2 >= 3.4);
See Also