dimod.binary.BinaryQuadraticModel.set_linear

BinaryQuadraticModel.set_linear(v: Hashable, bias: Union[int, float, numpy.number])[source]

Set the linear bias of of a variable.

Raises

TypeError – If v is not hashable.