Changeset 14650 for branches/PersistentDataStructures/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Prins
- Timestamp:
- 02/07/17 14:05:09 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistentDataStructures/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Prins/PrinsEncoding.cs
r14186 r14650 102 102 103 103 //find predecessor / successor in permutation 104 int predecessorIndex = Array.IndexOf(this.array,tour.Stops[0] - 1) - 1;104 int predecessorIndex = historyArray.IndexOf(tour.Stops[0] - 1) - 1; 105 105 if (predecessorIndex >= 0) { 106 106 int predecessor = this[predecessorIndex] + 1; … … 114 114 } 115 115 } else { 116 int successorIndex = Array.IndexOf(this.array,116 int successorIndex = historyArray.IndexOf( 117 117 tour.Stops[tour.Stops.Count - 1] - 1) + 1; 118 118 int successor = this[successorIndex] + 1;
Note: See TracChangeset
for help on using the changeset viewer.