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

58 lines
1.1 KiB
MiniZinc

/***
!Test
solvers: [gecode, chuffed] # Too slow on cbc
expected:
- !Result
solution: !Solution
a:
- [20, 7, 3, 24, 11]
- [4, 19, 14, 10, 18]
- [6, 9, 17, 21, 12]
- [13, 5, 16, 8, 23]
- [22, 25, 15, 2, 1]
- !Result
solution: !Solution
a:
- [16, 5, 4, 17, 23]
- [9, 18, 8, 6, 24]
- [12, 7, 11, 21, 14]
- [13, 10, 20, 19, 3]
- [15, 25, 22, 2, 1]
- !Result
solution: !Solution
a:
- [7, 5, 9, 21, 23]
- [19, 14, 22, 6, 4]
- [25, 24, 11, 3, 2]
- [1, 12, 15, 17, 20]
- [13, 10, 8, 18, 16]
- !Result
solution: !Solution
a:
- [23, 5, 13, 17, 7]
- [3, 21, 9, 14, 18]
- [6, 4, 12, 24, 19]
- [11, 10, 16, 8, 20]
- [22, 25, 15, 2, 1]
- !Result
solution: !Solution
a:
- [25, 5, 9, 3, 23]
- [4, 24, 15, 14, 8]
- [20, 7, 1, 16, 21]
- [6, 17, 18, 13, 11]
- [10, 12, 22, 19, 2]
- !Result
solution: !Solution
a:
- [11, 21, 17, 10, 6]
- [22, 8, 12, 19, 4]
- [16, 15, 18, 9, 7]
- [14, 20, 5, 3, 23]
- [2, 1, 13, 24, 25]
***/
include "magicsq.mzn.model";
n = 5;