I'm new to Mathematica but I've read some documentation and guides and, unfortunately, haven't found a solution.
There's the following matrix in the task:
And I have to solve this TSP problem specifically with the help of FindShortestTour
function. Not FindShortestPath
or sth else.
I have tried several variants, but if I do something like this:FindShortestTour[{{\[Infinity], 10, 20, 15}, {30, \[Infinity], 25,
20}, {18, 22, \[Infinity], 24}, {10, 15, 20, \[Infinity]}}]
I get a mistake: The distance function EuclideanDistance does not give a numerical result when applied to two points.
I guess that's because of Infinity symbols inside a matrix.