QAP of size 4

Assign each facility (1, 2, 3, 4) to one location (A, B, C, D). 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
  
Solution Value

Distance Matrix
A B C D
A 0 22 53 53
B 22 0 40 62
C 53 40 0 55
D 53 62 55 0
Flows
1 2 3 4
1 0 3 0 2
2 3 0 0 1
3 0 0 0 4
4 2 1 4 0