1
0
This repository has been archived on 2025-03-06. You can view files and clone it, but cannot push or open issues or pull requests.
Jip J. Dekker fad1b07018 Squashed 'software/minizinc/' content from commit 4f10c8205
git-subtree-dir: software/minizinc
git-subtree-split: 4f10c82056ffcb1041d7ffef29d77a7eef92cf76
2021-06-16 14:06:46 +10:00

132 lines
2.3 KiB
MiniZinc

/***
!Test
solvers: [gecode, chuffed]
expected: !Result
solution: !SolutionSet
- !Solution
c1: [3, 4, 2, 1]
c2: [4, 5, 3, 2]
- !Solution
c1: [2, 3, 4, 1]
c2: [4, 5, 3, 2]
- !Solution
c1: [4, 3, 1, 2]
c2: [4, 5, 3, 2]
- !Solution
c1: [3, 1, 4, 2]
c2: [4, 5, 3, 2]
- !Solution
c1: [2, 4, 1, 3]
c2: [4, 5, 3, 2]
- !Solution
c1: [4, 1, 2, 3]
c2: [4, 5, 3, 2]
- !Solution
c1: [3, 4, 2, 1]
c2: [3, 4, 5, 2]
- !Solution
c1: [2, 3, 4, 1]
c2: [3, 4, 5, 2]
- !Solution
c1: [4, 3, 1, 2]
c2: [3, 4, 5, 2]
- !Solution
c1: [3, 1, 4, 2]
c2: [3, 4, 5, 2]
- !Solution
c1: [2, 4, 1, 3]
c2: [3, 4, 5, 2]
- !Solution
c1: [4, 1, 2, 3]
c2: [3, 4, 5, 2]
- !Solution
c1: [3, 4, 2, 1]
c2: [5, 4, 2, 3]
- !Solution
c1: [2, 3, 4, 1]
c2: [5, 4, 2, 3]
- !Solution
c1: [4, 3, 1, 2]
c2: [5, 4, 2, 3]
- !Solution
c1: [3, 1, 4, 2]
c2: [5, 4, 2, 3]
- !Solution
c1: [2, 4, 1, 3]
c2: [5, 4, 2, 3]
- !Solution
c1: [4, 1, 2, 3]
c2: [5, 4, 2, 3]
- !Solution
c1: [3, 4, 2, 1]
c2: [4, 2, 5, 3]
- !Solution
c1: [2, 3, 4, 1]
c2: [4, 2, 5, 3]
- !Solution
c1: [4, 3, 1, 2]
c2: [4, 2, 5, 3]
- !Solution
c1: [3, 1, 4, 2]
c2: [4, 2, 5, 3]
- !Solution
c1: [2, 4, 1, 3]
c2: [4, 2, 5, 3]
- !Solution
c1: [4, 1, 2, 3]
c2: [4, 2, 5, 3]
- !Solution
c1: [3, 4, 2, 1]
c2: [3, 5, 2, 4]
- !Solution
c1: [2, 3, 4, 1]
c2: [3, 5, 2, 4]
- !Solution
c1: [4, 3, 1, 2]
c2: [3, 5, 2, 4]
- !Solution
c1: [3, 1, 4, 2]
c2: [3, 5, 2, 4]
- !Solution
c1: [2, 4, 1, 3]
c2: [3, 5, 2, 4]
- !Solution
c1: [4, 1, 2, 3]
c2: [3, 5, 2, 4]
- !Solution
c1: [3, 4, 2, 1]
c2: [5, 2, 3, 4]
- !Solution
c1: [2, 3, 4, 1]
c2: [5, 2, 3, 4]
- !Solution
c1: [4, 3, 1, 2]
c2: [5, 2, 3, 4]
- !Solution
c1: [3, 1, 4, 2]
c2: [5, 2, 3, 4]
- !Solution
c1: [2, 4, 1, 3]
c2: [5, 2, 3, 4]
- !Solution
c1: [4, 1, 2, 3]
c2: [5, 2, 3, 4]
options:
all_solutions: true
***/
include "circuit.mzn";
array[1..4] of var 1..4: c1;
array[2..5] of var -100..100: c2;
constraint circuit(c1);
constraint circuit(c2);
solve satisfy;
output [
"c1 = array1d(1..4, ", show(c1), ");\n",
"c2 = array1d(2..5, ", show(c2), ");\n"
];