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

converting back from cnf to original variables #1

Open
HurleyResearch opened this issue Sep 5, 2023 · 0 comments
Open

converting back from cnf to original variables #1

HurleyResearch opened this issue Sep 5, 2023 · 0 comments

Comments

@HurleyResearch
Copy link

Hi, I used limboole.exe -d to convert a file like:

( v3 & !v0 )
& ( v2 & !v0 )
& ( v1 & !v0 )
& ( v6 & v17 & !v0 )
...

to cnf which looked like:

c 1 v3
c 2 v0
c 5 v2
c 8 v1
c 11 v6
c 12 v17
c 16 v5
c 20 v7
c 21 v13
c 28 v9
c 35 v15
c 36 v19
c 40 v11
c 41 v18
c 48 v10
c 49 v14
c 380 v4
c 388 v16
c 395 v12
c 402 v8
p cnf 1559 4598
3 2 0
-3 -2 0
-4 1 0
-4 3 0
4 -1 -3 0
...
...

I then used sat4j-maxsat.jar to find an optimal solution, which worked, so I now have values for the 1559 variables.

How do I go about finding values for the original v0, v1... vN variables from my original expression?

thanks!

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