dimod.BinaryQuadraticModel.fix_variables

BinaryQuadraticModel.fix_variables(fixed)

Fix the value of the variables and remove them.

Parameters:fixed (dict/iterable) – A dictionary or an iterable of 2-tuples of variable assignments.