Changeset 4752 for branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/PotvinEncoding.cs
- Timestamp:
- 11/09/10 09:55:31 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/PotvinEncoding.cs
r4378 r4752 39 39 public List<int> Unrouted { get; set; } 40 40 41 public override IDeepCloneable Clone(HeuristicLab.Common.Cloner cloner) {42 PotvinEncoding clone = new PotvinEncoding(ProblemInstance);43 cloner.RegisterClonedObject(this, clone);44 clone.Tours = (ItemList<Tour>)cloner.Clone(this.Tours);45 clone.Unrouted = new List<int>(Unrouted);46 return clone;47 }48 49 41 public PotvinEncoding(IVRPProblemInstance instance) 50 42 : base(instance) { … … 55 47 private PotvinEncoding(bool serializing) 56 48 : base(serializing) { 49 } 50 51 public override IDeepCloneable Clone(Cloner cloner) { 52 return new PotvinEncoding(this, cloner); 53 } 54 55 protected PotvinEncoding(PotvinEncoding original, Cloner cloner) 56 : base(original, cloner) { 57 this.Unrouted = new List<int>(original.Unrouted); 57 58 } 58 59
Note: See TracChangeset
for help on using the changeset viewer.