setTerm Method (XPRBvar)
Set a cut term. This method sets the coefficient of a given variable to 1.0.
Namespace: BCL
Assembly: xprbdn (in xprbdn.dll) Version: 4.8.14.0

Parameters
- var
-
Type:
BCLXPRBvar
The XPRBvar to alter the coefficient of.
Return Value
Type: Int320 on success, 1 on failure.

XPRBprob prob = new XPRBprob("NewProb"); XPRBcut cut = new XPRBcut(); XPRBvar var = new XPRBvar("Variable"); cut.assign(2.6*var <= 2.5); ... cut.setTerm(var);
