dimod.DiscreteQuadraticModel.set_linear#

DiscreteQuadraticModel.set_linear(v, biases)[source]#

Set the linear biases associated with v.

Parameters:
  • v – A variable in the discrete quadratic model.

  • biases (array-like) – The linear biases in an array.