15 lines
276 B
MiniZinc
15 lines
276 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
|
|
%% no solutions in strict
|
|
|
|
var 0..1: y;
|
|
|
|
constraint y == 1 \/ 2 div y + 2 div (y - 1) == 0 ;
|
|
|
|
solve satisfy;
|
|
|
|
output ["y = ", show(y), ";\n"];
|