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
I'm using the Python interface to generate some proof logs, but when trying to solve the model below, I get an assertion error thrown by a the leq propagator.
thread '<unnamed>' panicked at /home/ignace/git/Pumpkin/pumpkin-solver/src/propagators/arithmetic/linear_less_or_equal.rs:114:9:
propagator should only be triggered when lower bounds are tightened, old_bound=1, new_bound=1
frompumpkin_pyimportModel, constraintsmodel=Model()
iv=model.new_integer_variable(0,1)
a=model.new_boolean_variable(name="a")
b=model.new_boolean_variable(name="b")
c=model.new_boolean_variable(name="c")
model.add_constraint(constraints.Clause([a, b])) # a \/ bmodel.add_constraint(constraints.Clause([b.negate(),c])) # b -> cmodel.add_constraint(constraints.Clause([model.predicate_as_boolean(iv, Comparator.Equal, 1)])) # iv == 1model.add_implication(constraints.Equals([iv], 0), c) # c -> iv == 0model.satisfy(proof="test")
Activity
maartenflippo commentedon Dec 6, 2024
I will look at this on Monday!
fix: root level assignments are properly explained in the proof when …
maartenflippo commentedon Apr 10, 2025
Closed by #158
fix: root level assignments are properly explained in the proof when …
fix: root level assignments are properly explained in the proof when …
chore: release pumpkin-solver 0.2.0 (#168)