-
Notifications
You must be signed in to change notification settings - Fork 4
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
clingcon is twice as fast with --single-shot
#57
Comments
test2.zip Testing this instance with additionally Also the Lemma count does not seem to add up:
Maybe its just hard to read: Given this interpretation, and a similar statistics with
I would conclude that with the single shot option some of the lemmas are simplified ? (Either the two conflict lemmas or the actual lemmas from the clingcon propagator). Edit: The
vs
Edit: This backjump is bounded by the step variable. Therefore, in the 'single-shot' case simplifySAT is called, as it backjumps to level 0, while in multi-shot it is bounded to level 1. |
Is there a possibility from the API to check if the scripts have a callable "main" like Clingo does in
so that |
We cannot inject an option but would have to extend the API to delay calling PS: I think it makes sense that adding the enumeration assumptions to clauses can lead to runtime differences. I suspect that we can end up with slightly longer clauses and maybe weaker clause strengthening. |
Taking the newest clingcon dev version from conda:
The call
clingcon test.lp --stats=2 0 --single-shot
is twice as fast as
clingcon test.lp --stats=2 0
test.zip
(The number of choices and conflicts is reduced to half,
why is this the case).
@BenKaufmann @rkaminsk Just in case you are interested in an example.
Could this option be made default for clingcon binary calls? Or is it possible to do multi-shot solving within python inside the encoding.
The text was updated successfully, but these errors were encountered: