dimod.binary.BinaryQuadraticModel.fix_variables#

BinaryQuadraticModel.fix_variables(fixed: Mapping[Hashable, float] | Iterable[Tuple[Hashable, float]])[source]#

Fix the value of the variables and remove them.

Parameters:

fixed – A dictionary or an iterable of 2-tuples of variable assignments.