Skip to content
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

fzn-gecode, sort+element, hangs #168

Open
matsc-at-sics-se opened this issue Jun 24, 2023 · 1 comment
Open

fzn-gecode, sort+element, hangs #168

matsc-at-sics-se opened this issue Jun 24, 2023 · 1 comment

Comments

@matsc-at-sics-se
Copy link

On Ubuntu 22.04.2 LTS.

The following model outputs one solution and then hangs if you run it with minizinc -a:

include "globals.mzn";
var 1..1: B;
var 1..1 union 4..4: C;
var 2..4: D;
var 2..2 union 4..4: E;
var 1..1 union 4..4: F;
var 3..4: G;
var 2..2 union 4..4: H;
var 3..4: J;
var 1..1 union 4..4: K;
constraint sort([C,K,G,D],[F,E,H,J]);
constraint [F,E,H,J][B] = C;
solve :: int_search([B,D,F,K,C,E,G,H,J], input_order, indomain) satisfy;
@matsc-at-sics-se
Copy link
Author

Here is the smallest instance of this bug that I could find.

include "globals.mzn";
var 3..4: A;
var {2,4}: D;
var {2,4}: E;
var 3..4: H;
var {2,4}: I;
constraint
  sort([D,3,D,A],[E,I,D,H]);
% solve :: int_search([A,D,E,H,I], input_order, indomain_min) satisfy;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant