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

single file int2bool direct encoding meta solver #319

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

tias
Copy link
Collaborator

@tias tias commented May 26, 2023

Single file so it does not depend on a CPMpy version, and so that it can be copied and used in side-projects without needing to be in master

Based on files Emilio sent me a month ago, refactored into a 'meta solver' that accepts any cpmpy solver as subsolver (meant for pysat and its incremental solving). I mostly refactored the top part, not the actual encodings.

Only tested on sudoku, this can benefit from a lot more testing...

Single file so it does not depend on a CPMpy version, and so that it
can be copied and used in side-projects without needing to be in master

Based on files Emilio sent me a month ago. I mostly refactored the top
part, not the actual encodings.

Only tested on sudoku, this can benefit from a lot more testing...
@tias tias marked this pull request as draft May 26, 2023 07:25
@IgnaceBleukx
Copy link
Collaborator

I made some small changes so you can use solverLookup.get("int2bool:subsolver") as a normal solver.
This also allowed me to use it in the test_constraints test suite, which now spectacularly fails...

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 this pull request may close these issues.

2 participants