dimod.binary.BinaryQuadraticModel.fix_variables

BinaryQuadraticModel.fix_variables(fixed: Union[Mapping, Iterable])[source]

Fix the value of the variables and remove them.

Parameters

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