8000 crash in NoOverlap constraint for ortools, inconsistency in minizinc. · Issue #685 · CPMpy/cpmpy · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

crash in NoOverlap constraint for ortools, inconsistency in minizinc. #685

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

Open
peerjosse opened this issue May 21, 2025 · 0 comments
Open

Comments

@peerjosse
Copy link

erroneous solvers: ortools, minizinc
working solvers: z3, choco, gurobi

In the following program:

  • ortools gave an error
  • minizinc returned 1 solution
  • z3, choco and gurobi all returned 7 solutions
import cpmpy as cp

m = cp.Model()
p = cp.boolvar()
x = cp.intvar(-3, 5)
y = cp.intvar(-3, 5)
z = cp.intvar(-3, 5)
l = cp.intvar(0, 10)
m += cp.NoOverlap([x, p, z], [l, y, p], [p, z, x])

# print(m.solveAll(solver='ortools'))                   # returns an error
print(m.solveAll(solver='minizinc'))                    # returns 1
print(m.solveAll(solver='z3'))                          # returns 7
print(m.solveAll(solver='choco'))                       # returns 7
print(m.solveAll(solver='gurobi', solution_limit=100))  # returns 7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants
0