AdjDictBQM.scale(scalar, ignored_variables=None, ignored_interactions=None, ignore_offset=False)

Multiply all the biases by the specified scalar.

  • scalar (number) – Value by which to scale the energy range of the binary quadratic model.
  • ignored_variables (iterable, optional) – Biases associated with these variables are not scaled.
  • ignored_interactions (iterable[tuple], optional) – As an iterable of 2-tuples. Biases associated with these interactions are not scaled.
  • ignore_offset (bool, default=False) – If True, the offset is not scaled.