dimod.DiscreteQuadraticModel.set_linear_case#

DiscreteQuadraticModel.set_linear_case(v, case, bias)[source]#

The linear bias associated with case case of variable v.

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

  • case (int) – The case of v.

  • bias (float) – The linear bias.