Changeset 17525 for branches/2521_ProblemRefactoring/HeuristicLab.Problems.Orienteering/3.3/DistanceMatrix.cs
- Timestamp:
- 05/07/20 17:41:18 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Problems.Orienteering/3.3/DistanceMatrix.cs
r17226 r17525 22 22 using System; 23 23 using System.Collections.Generic; 24 using HEAL.Attic; 24 25 using HeuristicLab.Common; 25 26 using HeuristicLab.Core; 26 27 using HeuristicLab.Data; 27 using HEAL.Attic;28 28 29 29 namespace HeuristicLab.Problems.Orienteering { … … 67 67 return detour; 68 68 } 69 public double CalculateReplacementCosts( List<int> path, int replacePosition, int point) {69 public double CalculateReplacementCosts(IList<int> path, int replacePosition, int point) { 70 70 double detour = this[path[replacePosition - 1], point] + this[point, path[replacePosition + 1]]; 71 71 detour -= this[path[replacePosition - 1], path[replacePosition]] + this[path[replacePosition], path[replacePosition + 1]]; 72 72 return detour; 73 73 } 74 public double CalculateRemovementSaving( List<int> path, int removePosition, double pointVisitingCosts) {74 public double CalculateRemovementSaving(IList<int> path, int removePosition, double pointVisitingCosts) { 75 75 double saving = this[path[removePosition - 1], path[removePosition]]; 76 76 saving += this[path[removePosition], path[removePosition + 1]];
Note: See TracChangeset
for help on using the changeset viewer.