- Timestamp:
- 08/06/10 16:08:46 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/AlbaEncoding.cs
r4150 r4174 42 42 for (int i = 0; i < this.array.Length; i++) { 43 43 if (this.array[i] >= cities) { 44 if (tour.C ount > 0) {44 if (tour.Cities.Count > 0) { 45 45 result.Add(tour); 46 46 … … 48 48 } 49 49 } else { 50 tour. Add(new IntValue(this.array[i] + 1));50 tour.Cities.Add(this.array[i] + 1); 51 51 } 52 52 } 53 53 54 if (tour.C ount > 0) {54 if (tour.Cities.Count > 0) { 55 55 result.Add(tour); 56 56 } … … 97 97 int cities = 0; 98 98 foreach (Tour tour in tours) { 99 cities += tour.C ount;99 cities += tour.Cities.Count; 100 100 } 101 101 … … 107 107 108 108 foreach (Tour tour in tours) { 109 foreach ( IntValue city in tour) {110 array[arrayIndex] = city .Value- 1;109 foreach (int city in tour.Cities) { 110 array[arrayIndex] = city - 1; 111 111 arrayIndex++; 112 112 }
Note: See TracChangeset
for help on using the changeset viewer.