Skip to content

LessThanOrEqual propagator exception #118

Closed

Description

@IgnaceBleukx

Hi,

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
from pumpkin_py import Model, constraints

model = 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 \/ b
model.add_constraint(constraints.Clause([b.negate(),c]))  # b -> c
model.add_constraint(constraints.Clause([model.predicate_as_boolean(iv, Comparator.Equal, 1)])) # iv == 1
model.add_implication(constraints.Equals([iv], 0), c)  # c -> iv == 0

model.satisfy(proof="test")

Activity

  1. maartenflippo commented on Dec 6, 2024

    @maartenflippo
    Contributor

    I will look at this on Monday!

  2. added a commit that references this issue on Mar 11, 2025
    8745248
  3. maartenflippo commented on Apr 10, 2025

    @maartenflippo
    Contributor

    Closed by #158

  4. added 2 commits that reference this issue on Apr 11, 2025
    5e31544
    857f84c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions