I have array where each point at different times are shown parameters
m = {{2.45, 3.24, 3.87, 3.90},
{4.12, 2.15, 3.11, 3.51},
{3.32, 3.11, 4.21, 3.64},
{2.78, 4.01, 3.69, 1.57},
{2.69, 2.22, 3.59, 1.98},
{2.15, 1.98, 2.54, 1.78},
{1.99, 1.87, 5.11, 2.01}}
After addition of the header
rows = {"1200", "1210", "1220", "1230", "1240", "1250", "1300"};
TableForm[m, TableHeadings -> {rows, {"P1", "P2", "P3", "P4"}}, TableAlignments -> Center]
Summing can be done only by adding one element of the column and row.
Important is the combination of the aggregation of the selected elements: please add up all combinations "below" the main diagonal of the matrix. I found 35 in my table $m$.
Described in table times and points to simulate the passage of the vehicle (by optimization of parameters in a specified place and time), so there is no potentiality in specified time appearance on all points, or back.
Sorted (from min to max) results (sum) should determine the hours to pass through the points. The smallest sum will be at 1200 P2 reach about 1210, P3 1250 and the end of P4 at 1300.
The objective is to seek a minimum sum of the numbers for moving the vehicle to the fixed route. Tables of data will be significantly greater than in this example.
How to force Mathematica to count different combinations of diagonals and then determine the origin of the smallest sum?
The example generated in Excel below may help clarify the problem.