Changeset 14650 for branches/PersistentDataStructures/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Alba/AlbaEncoding.cs
- Timestamp:
- 02/07/17 14:05:09 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistentDataStructures/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Alba/AlbaEncoding.cs
r14186 r14650 40 40 41 41 Tour tour = new Tour(); 42 for (int i = 0; i < this. array.Length; i++) {43 if (this. array[i] >= cities) {42 for (int i = 0; i < this.historyArray.Length; i++) { 43 if (this.historyArray[i] >= cities) { 44 44 if (tour.Stops.Count > 0) { 45 45 result.Add(tour); … … 48 48 } 49 49 } else { 50 tour.Stops.Add(this. array[i] + 1);50 tour.Stops.Add(this.historyArray[i] + 1); 51 51 } 52 52 } … … 72 72 73 73 while (vehicleAssignment == -1) { 74 if (this. array[i] >= ProblemInstance.Cities.Value) {75 vehicleAssignment = this. array[i] - ProblemInstance.Cities.Value;74 if (this.historyArray[i] >= ProblemInstance.Cities.Value) { 75 vehicleAssignment = this.historyArray[i] - ProblemInstance.Cities.Value; 76 76 } 77 77
Note: See TracChangeset
for help on using the changeset viewer.