dimod.QuadraticModel.add_linear

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

Add a linear bias to an existing variable.