XPRBcutaddTerm(XPRBvar, Double) Method |
Add a new term to the current XPRBcut.
Namespace: BCLAssembly: xprbdn (in xprbdn.dll) Version: 47.01.01+0ba4e76731516b80760698bbaa939494dae84e49
Syntaxpublic int addTerm(
XPRBvar var,
double val
)
Public Function addTerm (
var As XPRBvar,
val As Double
) As Integer
Parameters
- var XPRBvar
- The XPRBvar to use in the new term.
- val Double
- The double value to use as the coefficient of the new term.
Return Value
Int320 on success, 1 on failure.
ExampleXPRBprob prob = new XPRBprob("NewProb");
XPRBcut cut = new XPRBcut();
XPRBvar var = new XPRBvar("Variable");
XPRBvar var2 = new XPRBvar("Variable2");
cut.assign(2.6*var <= 2.5);
...
cut.addTerm(var2, 0.1);
See Also