Repository navigation
feat: improve element propagator - #130
Closed
RobbinBaauw wants to merge 3 commits into
Closed
RobbinBaauw wants to merge 3 commits into
RobbinBaauw wants to merge 3 commits into
Conversation
Contributor
|
This is indeed a nice find! It would be great if you could write some tests which show why this behaviour would be wanted. As for your comment concerning retrieving |
Contributor
Author
|
Done! |
maartenflippo
pushed a commit
that referenced
this pull request
Feb 3, 2025
Re-opening #130 due to a change in my repository. The `element` propagator improves the bounds of the RHS based on the items in the array. For this, it takes the full array into account. However, it could be that some of these items are not possible anymore due to a (partial) assignment of the `index`. The propagator doesn't currently take this into account, and I believe this can be improved.
maartenflippo
pushed a commit
that referenced
this pull request
Apr 11, 2025
Re-opening #130 due to a change in my repository. The `element` propagator improves the bounds of the RHS based on the items in the array. For this, it takes the full array into account. However, it could be that some of these items are not possible anymore due to a (partial) assignment of the `index`. The propagator doesn't currently take this into account, and I believe this can be improved.
maartenflippo
pushed a commit
that referenced
this pull request
Apr 11, 2025
Re-opening #130 due to a change in my repository. The `element` propagator improves the bounds of the RHS based on the items in the array. For this, it takes the full array into account. However, it could be that some of these items are not possible anymore due to a (partial) assignment of the `index`. The propagator doesn't currently take this into account, and I believe this can be improved.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The element propagator improves the bounds of the RHS based on the items in the array. For this, it takes the full
arrayinto account. However, it could be that some of these items are not possible anymore due to a (partial) assignment of theindex. The propagator doesn't currently take this into account, and I believe this can be improved.I implemented the way I think this propagator should behave, and would like to know whether you agree. If you do, I can write some tests. Note,
context.assignments()is deprecated in thelazy_explanation, but I do not see any other way to implement this, so if you want to go ahead with this PR, what would you recommend there?