Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optional name argument to add_constraint() method in ConstraintSatisfactionProblem() class #21

Open
JoelPasvolsky opened this issue May 4, 2018 · 0 comments

Comments

@JoelPasvolsky
Copy link
Contributor

I can do:

csp1.add_constraint(operator.eq, ['a', 'b'])

I want to be able to do:

csp1.add_constraint(operator.eq, ['a', 'b'], name='aNOT_EQUALb')

so I can see:

csp1.constraints
[Constraint.from_configurations(frozenset([(0, 0), (1, 1)]), ('a', 'b'), Vartype.BINARY, name='aNOT_EQUALb'),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant