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

negated_normal decomposes global constraints #285

Closed
Wout4 opened this issue Apr 28, 2023 · 0 comments
Closed

negated_normal decomposes global constraints #285

Wout4 opened this issue Apr 28, 2023 · 0 comments

Comments

@Wout4
Copy link
Collaborator

Wout4 commented Apr 28, 2023

In negated normal global constraints get decomposed, I think this does not make sense, as we have decompose_global() for this now.

ie: print(flatten_constraint((~AllDifferent(iv).implies(AllDifferent(ivv)))))

The second AllDifferent gets decomposed here, but we could also have a flat output like this, which seems cleaner:

bv0 = AllDifferent(iv), ~bv0 -> AllDifferent(ivv)

@Wout4 Wout4 linked a pull request Apr 28, 2023 that will close this issue
@Wout4 Wout4 closed this as completed Jun 30, 2023
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

Successfully merging a pull request may close this issue.

1 participant