dimod.QuadraticModel.set_upper_bound

QuadraticModel.set_upper_bound(v: Hashable, ub: int)[source]

Set the upper bound for an integer variable.