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

Error: Variable Limit Exceeded in Large CNF #774

Open
HariNarayana123 opened this issue Nov 11, 2024 · 4 comments
Open

Error: Variable Limit Exceeded in Large CNF #774

HariNarayana123 opened this issue Nov 11, 2024 · 4 comments

Comments

@HariNarayana123
Copy link

I am dealing with a large CNF problem. The header indicates 358,404,470 variables and 1,325,531,344 clauses. I've enabled the largemem option, but I'm encountering an error: "ERROR! Variable requested is far too large." This problem includes a significant number of XOR clauses, which is why I am using cryptominisat. Is there any way to solve problems of this size?

@a1880
Copy link

a1880 commented Nov 11, 2024

Cryptominisat has a hard-coded limit of 2^28 = 268,435,456 variables. See source code line 150 in dimacsparser.h.

Perhaps you can try to come up with some preprocessing to partition your problem into manageable pieces.

@HariNarayana123
Copy link
Author

Thanks for the information. If the number of variables is below the hard-coded limit of 2^28 but there is still a large number of clauses, like 1,325,531,344, can this cause any memory issues even after enabling the largemem option?

@a1880
Copy link

a1880 commented Nov 11, 2024

358,404,470 is 2^28.41 and therefore beyond the limit.

The high number of clauses is problematic. I don't have CNF examples with more than 200,000 clauses.
Have a look at this related issue.

Unless you have a system of XOR equations which can be readily solved via Gaussian elimination, chances to find a solution appear to be rather slim. But this is just a gut feeling.

@msoos
Copy link
Owner

msoos commented Nov 12, 2024 via email

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

3 participants