Set the upper bound for a variable.
v – Variable in the quadratic model.
ub – Upper bound to set for variable v.
v
ValueError – If v is a SPIN or BINARY variable.
SPIN
BINARY