Hossein Sadeghi

Results 5 issues of Hossein Sadeghi

**Application** When adding a set of binary variables as a discrete variable, an error is raised that indicates the variable is not hashable. This is not a bug because the...

enhancement

Given a variable, fix the value of the variable to one of its cases and remove the variable. ``` dqm = dimod.DiscreteQuadraticModel() dqm.add_variable(5, 'a') dqm.add_variable(5, 'b') dqm.set_quadratic('a', 'b', {(1, 4):...

enhancement

**Application** Often, we need to store the fingerprint of a CQM object. This may be useful when one needs to store a CQM object in memory or on disk or...

enhancement

currently, the way the inequality constraint is built is very involved. The code can be simplified significantly by using `.add_linear_inequality_constraint`. If the goal is to teach users how to work...