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

Allow policies to supply arbitrary literals #172

Open
noraderam opened this issue Mar 25, 2016 · 0 comments
Open

Allow policies to supply arbitrary literals #172

noraderam opened this issue Mar 25, 2016 · 0 comments

Comments

@noraderam
Copy link
Contributor

The method name get_next_package_id suggests that only positive literals will be supplied when the solver asks the policy for a suggestion (

p = self._policy.get_next_package_id(
). It also implies that the literals represent packages, which need not be the case for arbitrary use of the solver.

There's no reason for that to be the case. In fact, it may be useful for a policy to check whether all clauses have been satisfied, and if so, only suggest negative literals so that no additional package ids will be marked True.

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