- Timestamp:
- 05/08/20 11:21:57 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Problems.TravelingSalesman/3.3/TSPData.cs
r17525 r17529 161 161 if (closed) distance += GetDistance(prev, start); 162 162 return distance; 163 } 164 165 public double[,] CalculateDistanceMatrix() { 166 var matrix = new double[Cities, Cities]; 167 for (var i = 0; i < Cities; i++) { 168 for (var j = 0; j < Cities; j++) { 169 matrix[i, j] = GetDistance(i, j); 170 } 171 } 172 return matrix; 163 173 } 164 174
Note: See TracChangeset
for help on using the changeset viewer.