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 f2a1c4e389 Squashed 'software/mza/' content from commit f970a59b17
git-subtree-dir: software/mza
git-subtree-split: f970a59b177c13ca3dd8aaef8cc6681d83b7e813
2021-07-11 16:34:30 +10:00

91 lines
2.7 KiB
MiniZinc

% RUNS ON mzn20_fd
% RUNS ON mzn-fzn_fd
% RUNS ON mzn20_fd_linear
% RUNS ON mzn20_mip
%-----------------------------------------------------------------------------
% Solving 20 linear equations
%
% Guido Tack, tack@gecode.org
% 2007-02-22
%
% Ported from the Gecode example
%
%-----------------------------------------------------------------------------
array[0..6] of var 0..10: x;
constraint
-76706*x[0] + 98205*x[1] + 23445*x[2] + 67921*x[3] + 24111*x[4] +
-48614*x[5] + -41906*x[6]
= 821228 /\
87059*x[0] + -29101*x[1] + -5513*x[2] + -21219*x[3] + 22128*x[4] +
7276*x[5] + 57308*x[6]
= 22167 /\
-60113*x[0] + 29475*x[1] + 34421*x[2] + -76870*x[3] + 62646*x[4] +
29278*x[5] + -15212*x[6]
= 251591 /\
49149*x[0] + 52871*x[1] + -7132*x[2] + 56728*x[3] + -33576*x[4] +
-49530*x[5] + -62089*x[6]
= 146074 /\
-10343*x[0] + 87758*x[1] + -11782*x[2] + 19346*x[3] + 70072*x[4] +
-36991*x[5] + 44529*x[6]
= 740061 /\
85176*x[0] + -95332*x[1] + -1268*x[2] + 57898*x[3] + 15883*x[4] +
50547*x[5] + 83287*x[6]
= 373854 /\
-85698*x[0] + 29958*x[1] + 57308*x[2] + 48789*x[3] + -78219*x[4] +
4657*x[5] + 34539*x[6]
= 249912 /\
-67456*x[0] + 84750*x[1] + -51553*x[2] + 21239*x[3] + 81675*x[4] +
-99395*x[5] + -4254*x[6]
= 277271 /\
94016*x[0] + -82071*x[1] + 35961*x[2] + 66597*x[3] + -30705*x[4] +
-44404*x[5] + -38304*x[6]
= 25334 /\
-60301*x[0] + 31227*x[1] + 93951*x[2] + 73889*x[3] + 81526*x[4] +
-72702*x[5] + 68026*x[6]
= 1410723 /\
-16835*x[0] + 47385*x[1] + 97715*x[2] + -12640*x[3] + 69028*x[4] +
76212*x[5] + -81102*x[6]
= 1244857 /\
-43277*x[0] + 43525*x[1] + 92298*x[2] + 58630*x[3] + 92590*x[4] +
-9372*x[5] + -60227*x[6]
= 1503588 /\
-64919*x[0] + 80460*x[1] + 90840*x[2] + -59624*x[3] + -75542*x[4] +
25145*x[5] + -47935*x[6]
= 18465 /\
-45086*x[0] + 51830*x[1] + -4578*x[2] + 96120*x[3] + 21231*x[4] +
97919*x[5] + 65651*x[6]
= 1198280 /\
85268*x[0] + 54180*x[1] + -18810*x[2] + -48219*x[3] + 6013*x[4] +
78169*x[5] + -79785*x[6]
= 90614 /\
8874*x[0] + -58412*x[1] + 73947*x[2] + 17147*x[3] + 62335*x[4] +
16005*x[5] + 8632*x[6]
= 752447 /\
71202*x[0] + -11119*x[1] + 73017*x[2] + -38875*x[3] + -14413*x[4] +
-29234*x[5] + 72370*x[6]
= 129768 /\
1671*x[0] + -34121*x[1] + 10763*x[2] + 80609*x[3] + 42532*x[4] +
93520*x[5] + -33488*x[6]
= 915683 /\
51637*x[0] + 67761*x[1] + 95951*x[2] + 3834*x[3] + -96722*x[4] +
59190*x[5] + 15280*x[6]
= 533909 /\
-16105*x[0] + 62397*x[1] + -6704*x[2] + 43340*x[3] + 95100*x[4] +
-68610*x[5] + 58301*x[6]
= 876370
;
solve satisfy;
output [
"eq20 ",
show(x[0]), " ",
show(x[1]), " ",
show(x[2]), " ",
show(x[3]), " ",
show(x[4]), " ",
show(x[5]), "\n"
];