XPRBcutaddTerm(Double) Method |
Add a new numeric term to the current XPRBcut.
Namespace: BCLAssembly: xprbdn (in xprbdn.dll) Version: 47.01.01+0ba4e76731516b80760698bbaa939494dae84e49
Syntaxpublic int addTerm(
double val
)
Public Function addTerm (
val As Double
) As Integer
Parameters
- val Double
- The double value to use as 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");
cut.assign(2.6*var <= 2.5);
...
cut.addTerm(0.1);
See Also