- Timestamp:
- 07/16/14 12:27:31 (10 years ago)
- Location:
- branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Problems.Orienteering/3.3
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Problems.Orienteering/3.3/DistanceMatrix.cs
r11192 r11193 66 66 } 67 67 68 public double CalculateInsertionCost (IList<int> path, int point, int insertPosition, double fixedPenalty) {69 double detour = this[path[insertPosition - 1], point ] + this[point, path[insertPosition]];68 public double CalculateInsertionCosts(IList<int> path, int pointPosition, int insertPosition, double fixedPenalty) { 69 double detour = this[path[insertPosition - 1], pointPosition] + this[pointPosition, path[insertPosition]]; 70 70 detour += fixedPenalty; 71 71 detour -= this[path[insertPosition - 1], path[insertPosition]]; 72 72 return detour; 73 73 } 74 75 public double CalculateReplacementCosts(List<int> path, int pointPosition, int replacementPosition) { 76 double detour = this[pointPosition - 1, replacementPosition] + this[replacementPosition, pointPosition + 1]; 77 detour -= this[pointPosition - 1, pointPosition] + this[pointPosition, pointPosition + 1]; 78 return detour; 79 } 74 80 } 75 81 } -
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Problems.Orienteering/3.3/HeuristicLab.Problems.Orienteering-3.3.csproj
r11191 r11193 49 49 <Compile Include="Creators\GreedyOrienteeringTourCreator.cs" /> 50 50 <Compile Include="DistanceMatrix.cs" /> 51 <Compile Include="Improvers\OrienteeringLocalImprovementOperator.cs" /> 51 52 <Compile Include="Interfaces\IOrienteeringEvaluator.cs" /> 52 53 <Compile Include="Evaluators\OrienteeringEvaluator.cs" />
Note: See TracChangeset
for help on using the changeset viewer.