git-subtree-dir: software/minizinc git-subtree-split: 4f10c82056ffcb1041d7ffef29d77a7eef92cf76
22 lines
304 B
MiniZinc
22 lines
304 B
MiniZinc
/***
|
|
!Test
|
|
expected:
|
|
- !Result
|
|
solution: !Solution
|
|
a: [1, 1, 1]
|
|
x: 1
|
|
- !Result
|
|
solution: !Solution
|
|
a: [2, 2, 2]
|
|
x: 2
|
|
- !Result
|
|
solution: !Solution
|
|
a: [3, 3, 3]
|
|
x: 3
|
|
***/
|
|
|
|
array [1..3] of var 1..3: a :: add_to_output;
|
|
var int: x :: add_to_output = min(a);
|
|
|
|
solve maximize x;
|