QAP of size 8

Assign each facility (1, 2, 3, 4, 5, 6, 7, 8) to one location (A, B, C, D, E, F, G, H). The distance matrix and the required flows are shown below.

  • Click “Compute” to see the solution value.
  • Click “Reset” for the default configuration.
  • Click “Optimal” to see the optimal solution.

A   B   C   D   E   F   G   H
  

Solution Value

Distance Matrix
A B C D E F G H
A 0 32 68 97 75 70 75 40
B 32 0 42 80 53 65 82 47
C 68 42 0 45 15 49 79 55
D 97 80 45 0 30 36 65 65
E 75 53 15 30 0 38 69 53
F 70 65 49 36 38 0 31 32
G 75 82 79 65 69 31 0 36
H 40 47 55 65 53 32 36 0
Flows
1 2 3 4 5 6 7 8
1 0 2 4 0 0 0 2 0
2 2 0 3 1 0 1 0 0
3 4 3 0 0 0 1 0 0
4 0 1 0 0 3 0 1 5
5 0 0 0 3 0 0 0 0
6 0 1 1 0 0 0 0 0
7 2 0 0 1 0 0 0 4
8 0 0 0 5 0 0 4 0