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, table, wrong solution #167

Open
matsc-at-sics-se opened this issue Jun 24, 2023 · 0 comments
Open

fzn-gecode, table, wrong solution #167

matsc-at-sics-se opened this issue Jun 24, 2023 · 0 comments

Comments

@matsc-at-sics-se
Copy link

On Ubuntu 22.04.2 LTS.

Here is a model that produces two solutions, one right, one wrong.

include "globals.mzn";
var 1..1 union 3..3: B;
var 2..3: C;
array[int,int] of int: extension =
[| 3,3,2,1,
 | 3,2,2,3,
 | 4,4,3,1,
 |];

constraint table([3,C,C,B],extension);
output ["\([B,C])\n"];

% SOLUTIONS
% [1,2] - wrong
% [3,2] - right
guidotack added a commit that referenced this issue Aug 31, 2023
… in the FlatZinc interface for table constraints. Fixes #167.
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