I asked this question here 2 years ago. I didn't know this website at that time. I just realized I could ask it here. Here is the problem statement.
Assume I have 20 trucks, $t_j$, $j=1...20$ and all trucks are at the port at the same time. Each truck needs to stop at each of port's four docks $d_k$, $k=1...4$, to unload its freight. There is a waiting time $w_{j,k}$ for each truck $j$ at each dock $k$. Please see the table. Truck $t_1$ is waiting 36.67 minutes at dock $d_1$, 23.33 minutes at dock $d_2$, 18.33 minutes at dock $d_3$ and 12.33 minutes at dock $d_4$. There cannot be two trucks at the the same dock at the same time and a truck cannot be at two different docks at the same time. There is no specific order. I want to minimize the total unloading time. What should be the order in which the trucks are visiting the docks?
\begin{array}{c|cccc} & d_1 & d_2 & d_3 & d_4 \\\hline t_1 & 36.67 & 23.33 & 18.33 & 12.33 \\ t_2 & 20. & 33.33 & 30.83 & 10.33 \\ t_3 & 16.67 & 60.83 & 22.08 & 16.13 \\ t_4 & 26.67 & 53.33 & 24.33 & 11.93 \\ t_5 & 53.33 & 43.33 & 11.33 & 14.33 \\ t_6 & 60. & 13.33 & 14.58 & 23.13 \\ t_7 & 43.33 & 33.33 & 9.58 & 16.13 \\ t_8 & 36.67 & 23.33 & 27.08 & 16.53 \\ t_9 & 20. & 28.33 & 21.58 & 24.73 \\ t_{10} & 33.33 & 38.33 & 29.08 & 12.33 \\ t_{11} & 28.33 & 68.33 & 6.08 & 11.13 \\ t_{12} & 45. & 78.33 & 30.33 & 10.73 \\ t_{13} & 46.67 & 38.33 & 21.83 & 15.73 \\ t_{14} & 53.33 & 13.33 & 13.33 & 12.33 \\ t_{15} & 73.33 & 23.33 & 12.08 & 18.13 \\ t_{16} & 13.33 & 28.33 & 19.58 & 10.73 \\ t_{17} & 33.33 & 33.33 & 21.83 & 21.93 \\ t_{18} & 26.67 & 28.33 & 27.58 & 7.33 \\ t_{19} & 23.33 & 18.33 & 14.83 & 6.93 \\ t_{20} & 33.33 & 40.83 & 30.08 & 12.33 \\ \end{array}
Here is the data:
data = {{36.67, 23.33, 18.33, 12.33}, {20., 33.33, 30.83,
10.33}, {16.67, 60.83, 22.08, 16.13}, {26.67, 53.33, 24.33,
11.93}, {53.33, 43.33, 11.33, 14.33}, {60., 13.33, 14.58,
23.13}, {43.33, 33.33, 9.58, 16.13}, {36.67, 23.33, 27.08,
16.53}, {20., 28.33, 21.58, 24.73}, {33.33, 38.33, 29.08,
12.33}, {28.33, 68.33, 6.08, 11.13}, {45., 78.33, 30.33,
10.73}, {46.67, 38.33, 21.83, 15.73}, {53.33, 13.33, 13.33,
12.33}, {73.33, 23.33, 12.08, 18.13}, {13.33, 28.33, 19.58,
10.73}, {33.33, 33.33, 21.83, 21.93}, {26.67, 28.33, 27.58,
7.33}, {23.33, 18.33, 14.83, 6.93}, {33.33, 40.83, 30.08, 12.33}};
Addendum
Kirma gives a beautiful solution. In order to test his approach, I have an idea. Let assume I have following data2 which is subset of data. Since, I believe, there is $5!\times4!\times3!=17280$ permutations, we can use Brute-Force method on data2 and compare Kirma's method on the same data. But I could not solve the problem using Brute-Force method. Any idea? Here is the data2.
data2=Take[data, {1, 5}, {1, 3}]
data2={{36.67, 23.33, 18.33}, {20., 33.33, 30.83}, {16.67, 60.83, 22.08}, {26.67, 53.33, 24.33}, {53.33, 43.33, 11.33}};