dimod.binary.BinaryQuadraticModel.add_linear#

BinaryQuadraticModel.add_linear(v: Hashable, bias: float | floating | integer)[source]#

Add a linear term.

Parameters:
  • v – Variable label.

  • bias – Linear bias for the variable.