- Timestamp:
- 11/09/10 09:55:31 (14 years ago)
- Location:
- branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/GVR/Manipulators
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/GVR/Manipulators/GVRDisplacementManipulator.cs
r4379 r4752 26 26 using HeuristicLab.Data; 27 27 using System.Collections.Generic; 28 using HeuristicLab.Common; 28 29 29 30 namespace HeuristicLab.Problems.VehicleRouting.Encodings.GVR { … … 36 37 public GVRDisplacementManipulator() 37 38 : base() { 39 } 40 41 public override IDeepCloneable Clone(Cloner cloner) { 42 return new GVRDisplacementManipulator(this, cloner); 43 } 44 45 private GVRDisplacementManipulator(GVRDisplacementManipulator original, Cloner cloner) 46 : base(original, cloner) { 38 47 } 39 48 -
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/GVR/Manipulators/GVRInsertionManipulator.cs
r4379 r4752 25 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 26 using HeuristicLab.Data; 27 using HeuristicLab.Common; 27 28 28 29 namespace HeuristicLab.Problems.VehicleRouting.Encodings.GVR { … … 35 36 public GVRInsertionManipulator() 36 37 : base() { 38 } 39 40 public override IDeepCloneable Clone(Cloner cloner) { 41 return new GVRInsertionManipulator(this, cloner); 42 } 43 44 private GVRInsertionManipulator(GVRInsertionManipulator original, Cloner cloner) 45 : base(original, cloner) { 37 46 } 38 47 -
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/GVR/Manipulators/GVRInversionManipulator.cs
r4379 r4752 25 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 26 using HeuristicLab.Data; 27 using HeuristicLab.Common; 27 28 28 29 namespace HeuristicLab.Problems.VehicleRouting.Encodings.GVR { … … 37 38 } 38 39 40 public override IDeepCloneable Clone(Cloner cloner) { 41 return new GVRInversionManipulator(this, cloner); 42 } 43 44 private GVRInversionManipulator(GVRInversionManipulator original, Cloner cloner) 45 : base(original, cloner) { 46 } 47 39 48 protected override void Manipulate(IRandom random, GVREncoding individual) { 40 49 Tour tour = individual.Tours[random.Next(individual.Tours.Count)]; -
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/GVR/Manipulators/GVRManipulator.cs
r4379 r4752 28 28 using HeuristicLab.Problems.VehicleRouting.Encodings.General; 29 29 using HeuristicLab.Problems.VehicleRouting.Interfaces; 30 using HeuristicLab.Common; 30 31 31 32 namespace HeuristicLab.Problems.VehicleRouting.Encodings.GVR { … … 44 45 } 45 46 47 protected GVRManipulator(GVRManipulator original, Cloner cloner) 48 : base(original, cloner) { 49 } 50 46 51 protected abstract void Manipulate(IRandom random, GVREncoding individual); 47 52 -
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/GVR/Manipulators/GVRSwapManipulator.cs
r4379 r4752 25 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 26 using HeuristicLab.Data; 27 using HeuristicLab.Common; 27 28 28 29 namespace HeuristicLab.Problems.VehicleRouting.Encodings.GVR { … … 35 36 public GVRSwapManipulator() 36 37 : base() { 38 } 39 40 public override IDeepCloneable Clone(Cloner cloner) { 41 return new GVRSwapManipulator(this, cloner); 42 } 43 44 private GVRSwapManipulator(GVRSwapManipulator original, Cloner cloner) 45 : base(original, cloner) { 37 46 } 38 47
Note: See TracChangeset
for help on using the changeset viewer.