14 lines
250 B
MiniZinc
14 lines
250 B
MiniZinc
% RUNS ON mzn20_fd
|
|
% RUNS ON mzn-fzn_fd
|
|
% RUNS ON mzn20_fd_linear
|
|
% RUNS ON mzn20_mip
|
|
%% has solution y = 1 in relational, Kleene and strict
|
|
|
|
var 0..2: y;
|
|
|
|
constraint 2 div y + 2 div (y - 2) == 0 ;
|
|
|
|
solve satisfy;
|
|
|
|
output ["y = ", show(y), ";\n"];
|