You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
clingo considers (almost) all atoms as false when cleanup if called after grounding but before solving. It then applies too many simplifications.
The fix will probably consist in making cleanup a noop after grounding and providing an automatic cleanup facility so that the user only has to call the cleanup function in special cases.
importclingoimportsysprg=clingo.Control()
prg.add("base", [], """p(X) :- not q(X), X=2..3.q(X) :- not p(X), X=1..2.a :- not p(3).b :- not q(1).""")
prg.ground([("base", [])])
# prg.cleanup()print(" ".join(
f"{x.symbol}"ifx.is_factelsef"[{x.symbol}]"forxinprg.symbolic_atoms))
prg.configuration.solve.solve_limit=1prg.solve()
prg.cleanup()
print(" ".join(
f"{x.symbol}"ifx.is_factelsef"[{x.symbol}]"forxinprg.symbolic_atoms))
The text was updated successfully, but these errors were encountered:
clingo considers (almost) all atoms as false when cleanup if called after grounding but before solving. It then applies too many simplifications.
The fix will probably consist in making cleanup a noop after grounding and providing an automatic cleanup facility so that the user only has to call the cleanup function in special cases.
The text was updated successfully, but these errors were encountered: