I cannot edit the original because I do not have enough rep, but I tried to repeat the problem here.
The OP has an input NxN distance matrix. He wants to create an output array, the size of N, N-dimensional coordinates representing the points where the distance between each point is stored in the input matrix.
Note that this is not solvable in the general case:
Suppose I have such a matrix
ABCA x 1 2
B x 0
C x
A is 1 unit of distance (for example, 1 meter) from B, and A is one meter from C. But B and C are in the same place.
In this particular case, the minimum sum of errors is 1 meter, and there are an infinite number of solutions that achieve this result.
Airsource ltd
source share