Changeset 4722 for trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/General/TourEncoding.cs
- Timestamp:
- 11/06/10 01:56:04 (14 years ago)
- Location:
- trunk/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources
- Property svn:mergeinfo changed
/branches/CloningRefactoring (added) merged: 4656-4693,4696-4697,4711-4714,4718-4719
- Property svn:mergeinfo changed
-
trunk/sources/HeuristicLab.Problems.VehicleRouting
- Property svn:mergeinfo changed
/branches/CloningRefactoring/HeuristicLab.Problems.VehicleRouting (added) merged: 4686-4687,4689-4693,4696-4697
- Property svn:mergeinfo changed
-
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/General/TourEncoding.cs
r4352 r4722 20 20 #endregion 21 21 22 using System.Collections.Generic; 23 using System.Drawing; 22 24 using HeuristicLab.Common; 23 25 using HeuristicLab.Core; 24 26 using HeuristicLab.Data; 25 using HeuristicLab.Encodings.PermutationEncoding;26 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 using System.Drawing;28 using System.Collections.Generic;29 28 30 29 namespace HeuristicLab.Problems.VehicleRouting.Encodings.General { … … 35 34 get { return HeuristicLab.Common.Resources.VS2008ImageLibrary.Class; } 36 35 } 37 36 38 37 #region IVRPEncoding Members 39 38 public virtual List<Tour> GetTours(ILookupParameter<DoubleMatrix> distanceMatrix = null, int maxVehicles = int.MaxValue) { … … 51 50 52 51 public int Cities { 53 get 54 { 52 get { 55 53 int cities = 0; 56 54 … … 75 73 : base() { 76 74 } 75 protected TourEncoding(TourEncoding original, Cloner cloner) 76 : base(original, cloner) { 77 } 77 78 78 79 public static void ConvertFrom(IVRPEncoding encoding, TourEncoding solution, ILookupParameter<DoubleMatrix> distanceMatrix) { … … 82 83 public static void ConvertFrom(List<int> route, TourEncoding solution) { 83 84 solution.Tours = new ItemList<Tour>(); 84 85 85 86 Tour tour = new Tour(); 86 87 for (int i = 0; i < route.Count; i++) {
Note: See TracChangeset
for help on using the changeset viewer.