Changeset 5127 for branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/TourEncoding.cs
- Timestamp:
- 12/17/10 13:42:53 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/TourEncoding.cs
r4899 r5127 39 39 #region IVRPEncoding Members 40 40 public virtual List<Tour> GetTours() { 41 List<Tour> result = new List<Tour>(Tours); 41 List<Tour> result = new List<Tour>(); 42 43 foreach(Tour tour in Tours) { 44 if (tour.Stops.Count > 0) 45 result.Add(tour); 46 } 42 47 43 48 while (result.Count > ProblemInstance.Vehicles.Value) {
Note: See TracChangeset
for help on using the changeset viewer.