Changeset 4752 for branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Manipulators
- Timestamp:
- 11/09/10 09:55:31 (14 years ago)
- Location:
- branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Manipulators
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Manipulators/PotvinLocalSearchManipulator.cs
r4376 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.Potvin { … … 40 41 public PotvinLocalSearchManipulator() : base() { 41 42 Parameters.Add(new ValueParameter<IntValue>("Iterations", "The number of max iterations.", new IntValue(100))); 43 } 44 45 public override IDeepCloneable Clone(Cloner cloner) { 46 return new PotvinLocalSearchManipulator(this, cloner); 47 } 48 49 private PotvinLocalSearchManipulator(PotvinLocalSearchManipulator original, Cloner cloner) 50 : base(original, cloner) { 42 51 } 43 52 -
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Manipulators/PotvinManipulator.cs
r4376 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.Potvin { … … 42 43 public PotvinManipulator() { 43 44 Parameters.Add(new LookupParameter<IRandom>("Random", "The pseudo random number generator which should be used for stochastic manipulation operators.")); 45 } 46 47 protected PotvinManipulator(PotvinManipulator original, Cloner cloner) 48 : base(original, cloner) { 44 49 } 45 50 -
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Manipulators/PotvinOneLevelExchangeManipulator.cs
r4376 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.Potvin { … … 35 36 36 37 public PotvinOneLevelExchangeMainpulator() : base() { } 38 39 public override IDeepCloneable Clone(Cloner cloner) { 40 return new PotvinOneLevelExchangeMainpulator(this, cloner); 41 } 42 43 private PotvinOneLevelExchangeMainpulator(PotvinOneLevelExchangeMainpulator original, Cloner cloner) 44 : base(original, cloner) { 45 } 37 46 38 47 protected override void Manipulate(IRandom random, PotvinEncoding individual) { -
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Manipulators/PotvinTwoLevelExchangeManipulator.cs
r4376 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.Potvin { … … 35 36 36 37 public PotvinTwoLevelExchangeManipulator() : base() { } 38 39 public override IDeepCloneable Clone(Cloner cloner) { 40 return new PotvinTwoLevelExchangeManipulator(this, cloner); 41 } 42 43 private PotvinTwoLevelExchangeManipulator(PotvinTwoLevelExchangeManipulator original, Cloner cloner) 44 : base(original, cloner) { 45 } 37 46 38 47 protected override void Manipulate(IRandom random, PotvinEncoding individual) {
Note: See TracChangeset
for help on using the changeset viewer.