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

Idea: Prune values from a domain that are not in a list distributor's list #115

Open
pvdz opened this issue Jul 8, 2016 · 0 comments
Open

Comments

@pvdz
Copy link
Contributor

pvdz commented Jul 8, 2016

I don't think this is done yet but the list distributor, that is a variable that is defined with an ordered list of values to attempt, should remove any value from its domain that is not in the list. In fact, it should be the intersection of its initial domain and the values in the list.

Symmetrically the list could be pruned from values not in the initial domain.

Should first check whether this is actually useful at all. Maybe list vars are already defined "cleanly" in our system.

Note that if the var contains a backup distributor, the above trick can not be applied since non-list values in the domain may still be valid. Just only after the list has been exhausted. The list itself could still be updated to remove values not in the initial domain.

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