-
Notifications
You must be signed in to change notification settings - Fork 82
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
Wrong number of answer sets #425
Comments
Thanks for the report. This is a bug in clasp. I'll have a look later. The next step will be to reduce your program to something much smaller that still triggers the bug. |
Thank you for your quick response. I could not find a way to reduce my program to something much smaller that still triggers the bug. However, I added some new rules to reduce the number of answer sets. The new no-choice-rule program (see the attached file) has two answer sets as follows. Answer: 1 I am sure that Answer 1 is not correct. In my program, an atom always has a complementary atom (e.g.,
In Answer 1, we have Moreover, by adding Answer: 1 The above answer set is identical to Answer 2 of the previous program. Hope that the above observation can help you in debugging. |
You can try to use option |
I tried to use option In addition, could you please give me the information about this option? Just to be curious because I am learning more about ASP. |
A real fix and a closer investigation is still in the making. I do not know the implementation but the name gamma probably comes from the nogoods in Definition 3 of the paper below. It's a bit technical to read. @BenKaufmann or @mgebser might be able to tell you more. https://www.cs.uni-potsdam.de/wv/publications/DBLP_conf/ijcai/GebserKS13.pdf |
I see.
Oh. I will look at Definition 3 of this paper. Thank you. |
You can try the latest wip branch. The issue should be fixed. |
Thank you. I will try this branch. |
I tried to compute all answer sets of the two below programs using Clingo 5.6.2. They have the same set of atoms and the same set of rules. However, in
choice-rule.txt
, I added a choice rule for every atom (e.g.,{aux_1}.
for atomaux_1
). Clingo returned 9 (resp. 10) answer sets forchoice-rule.txt
(resp.no-choice-rule.txt
). It seems strange because I understand that the number of answer sets ofchoice-rule.txt
should be theoretically greater than or equal to that ofno-choice-rule.txt
. Could you please check it? In addition, I expect that both programs return 9 answer sets.choice-rule.txt
no-choice-rule.txt
The text was updated successfully, but these errors were encountered: