Closed vuphan314 closed 2 years ago
Thanks for the bug report---as I had said the use of floating point weights had not been well tested in maxhs (although any bugs should be minor like this one).
This one arose from comparing two floats calculated differently with equality---however the two numbers were not exactly the same due to floating point errors (differed by 10^-10).
I have fixed this by comparing that the two numbers are close (within absGap which is a parameter set to 10^-6). The fix is on top of the 2021 eval version...so just pull the latest and recompile.
Thank you for the explanation and the fix https://github.com/fbacchus/MaxHS/commit/c8df41ac63e27c2cb32905302e6ede3118b7a07b!
I am closing this issue.
@fbacchus Dr. Bacchus, MaxHS sometimes prints
ERROR incorrect model reported
. I have some questions:o
line) still correct?Thank you in advance.
An example wcnf file is attached:
or-50-5-6.txt
.Output: