XPRBcutsetTerm(XPRBvar, Double) Method |
Set a cut term. This method sets the coefficient of a given variable to the value val.
Namespace: BCLAssembly: xprbdn (in xprbdn.dll) Version: 47.01.01+0ba4e76731516b80760698bbaa939494dae84e49
Syntaxpublic int setTerm(
XPRBvar var,
double val
)
Public Function setTerm (
var As XPRBvar,
val As Double
) As Integer
Parameters
- var XPRBvar
- The XPRBvar to alter the coefficient of.
- val Double
- The new double coefficient of the 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.setTerm(var, 3.5);
See Also