dwavesystems / dwavebinarycsp

Map constraint satisfaction problems with binary variables to binary quadratic models.
https://docs.ocean.dwavesys.com/projects/binarycsp/en/latest
Apache License 2.0
20 stars 27 forks source link

Change the constraint factories to be functions #55

Open arcondello opened 6 years ago

arcondello commented 6 years ago

Application Given the 'usual' ways to generate constraints, the pattern

csp.add_constraint(and_gate(['a', 'b', 'c']))

seems more astonishing than

csp.add_constraint(and_gate, ['a', 'b', 'c'])

One anticipated problem is that this would make the constraint factories behave somewhat differently than csp factories.