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: variables whose constraints have been eliminated should not actively be solved #95

Open
pvdz opened this issue Jun 29, 2016 · 0 comments

Comments

@pvdz
Copy link
Contributor

pvdz commented Jun 29, 2016

This is confusing but it means that if you add lt(A, B) and the constraint is eliminated because all elements in A are already lower than those in B, A and B should not be solved explicitly in the search. They should still be solved, but only when a solution is constructed should these vars be solved to any value that is still left in the domain. Probably would need to apply the value distributor for every such var.

The main point is that the search should not create new spaces just so it can solve those variables whose constraints have been eliminated at compile time. External code may depend on an actual solution, but that doesn't mean that the search should be burdened with them because it doesn't need to. When variables have no constraints, any value in their domain is considered a valid outcome.

  • This should be fairly trivial change to make
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