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

Cannot run #3

Closed
theowgp opened this issue Mar 9, 2018 · 10 comments
Closed

Cannot run #3

theowgp opened this issue Mar 9, 2018 · 10 comments

Comments

@theowgp
Copy link

theowgp commented Mar 9, 2018

I am running the command:

./helga.out ../../graphs/hc-4.col "../../solvers/lingeling/plingeling in.txt"
And then I get some output:

parsing graph from file into adjacency matrix
constraint (3) FINISHED (from 1 to -2)
constraint (1) finished
constraint (2) finished
constraint (4) finished
constraint (5) finished
constraint (6) finished
INFO - writing results to file
INFO - starting solver with provided command
SUCCESS - solver finished and returned result
s SATISFIABLE

but no path itself.
Am I doing something wrong?

@codemunin
Copy link
Collaborator

Which version of helga?

First thought: your missing some constrains.
How is your in.txt looking?

@theowgp
Copy link
Author

theowgp commented Mar 9, 2018

I am using helga_sequentialPB.
The file in.txt looks like this:
p cnf 0 0

Looks like a problem with the encoder:(

@codemunin
Copy link
Collaborator

Please run it from the root directory and make sure the path to the graph is right.

@theowgp
Copy link
Author

theowgp commented Mar 9, 2018

Did it from from the root folder, the same result
computer@user:~/Apps/HCPtoSAT (master) $ ./encoders/helga_sequentialPB/helga.out ./graphs/hc-4.col "./solvers/lingeling/plingeling in.txt"

@theowgp
Copy link
Author

theowgp commented Mar 9, 2018

no matter where I run it from the same problem:(

@codemunin
Copy link
Collaborator

Okay and are you able to run a non PB Version?

I tried the code myself. The in.txt shloudn't be empty.

@theowgp
Copy link
Author

theowgp commented Mar 9, 2018

helga_sequentialPB was the only solver that did not throw an error message after calling make when I was installing the thing

@codemunin
Copy link
Collaborator

codemunin commented Mar 9, 2018

I fixed the most used Version ("helga-multi") without pb-lib for you. Pls try this out. I will try to fix the other versions as soon as possible.

Run with:
./encoders/helga_multi/helga.out graphs/hc_4.col "solvers/lingeling/plingeling in.txt"

@theowgp
Copy link
Author

theowgp commented Mar 9, 2018

Hey, looks like it works!

Danke!

@codemunin
Copy link
Collaborator

I will try to update the other non PB version, too.
No Problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants