dimod.CaseLabelDQM.set_linear#

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

Set the linear biases associated with v.

Parameters:
  • v – A variable in the discrete quadratic model, or a unique case label.

  • biases (float or array-like) – If v is a variable, the linear biases is an array. Otherwise, the linear bias is a real number.