-
Notifications
You must be signed in to change notification settings - Fork 5
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
Support for tagging constraints? #12
Comments
Hi @greg-gelfond, indeed, from version If called from the command line, Of course, this means it will only work for tagged constraints. If no constraint is tagged, xclingo won't try to explain a UNSAT problem. A (very simple) example:
The output after calling
This can also be done directly (without the first UNSAT call) if done through the Python package API. I can also inform you on how to do that if you are interested. Thank you for your interest 😁. |
Does the constraint tagging only support a subset of the allowed syntax for constraints? For example, I can't obtain explanations for this program:
|
Oh - I see, I'm running |
Actually @bramucas running
No explanations are given. |
Hi @greg-gelfond, if you are playing with that feature, I recommend installing the latest beta. Just typing Regarding the syntax for the oldest versions: yes, it has changed. If you navigate to the In short words, now all the annotations have a similar syntax to theory atoms. Therefore, you have to keep in mind that they behave the same as any other ASP thing: 1.They must end with a dot If you just add a dot at the end of the
then run
Please let me know if you need more help 😀😀. |
Hello again @bramucas. It seems that I found a bug in the current beta (version
Here is the output exception I get when running the command
In addition, here is the current list of pip packages I have (if it helps):
|
Hi @greg-gelfond, The compatibility with clingo 5.6 is not finished yet. Try downgrading I would bet it's that. If the error persists, then yes 🎉🎉 we have found something new haha. |
Thanks! That seems to have resolved the issue.
…--
Gregory Gelfond
***@***.***
On Tue, Oct 10, 2023, at 5:52 AM, Brais Muñiz Castro wrote:
Hi @greg-gelfond <https://github.com/greg-gelfond>,
The compatibility with clingo 5.6 is not finished yet. Try downgrading `clingo` to 5.5 and see if it fixes it.
`python -m pip install 'clingo<5.6'` should do the trick.
I would bet it's that. If the error persists, then yes 🎉🎉 we have found something new haha.
—
Reply to this email directly, view it on GitHub <#12 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AUSEZPZFODRZXE6AU65TQCLX6USFTAVCNFSM6AAAAAA5TAFNVCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJVGAZDOMBUGM>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@bramucas - out of curiosity, is it possible to only output explanations pertaining to violated constraints if the program has no answer sets? The current example I'm working with prints out all of the explanations, and not just the ones pertaining to constraint violations. |
That is planned to be included in further versions ✌️. The plan is to suppress non-constraint-related explanations when explaining a UNSAT result but also to include a flag that the user could use to check the rest of the explanations. I'll prioritize that given that you are interested. I'll let you know when it's available. |
Are there any plans to allow for tagging of constraints to allow us to see which constraints were violated and therefore see why a program might be unsatisfiable?
The text was updated successfully, but these errors were encountered: