Changeset 7865 for branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Moves/TwoOptStar/PotvinTwoOptStarMove.cs
- Timestamp:
- 05/22/12 09:53:07 (12 years ago)
- Location:
- branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Moves/TwoOptStar
- Files:
-
- 1 added
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Moves/TwoOptStar/PotvinTwoOptStarMove.cs
r7774 r7865 31 31 32 32 namespace HeuristicLab.Problems.VehicleRouting.Encodings.Potvin { 33 [Item("Potvin OnePointCrossoverMove", "Item that describes a relocationmove on a VRP representation.")]33 [Item("PotvinTwoOptStarMove", "Item that describes a two opt star move on a VRP representation.")] 34 34 [StorableClass] 35 public class Potvin OnePointCrossoverMove: Item, IVRPMove {35 public class PotvinTwoOptStarMove: Item, IVRPMove { 36 36 [Storable] 37 37 public IVRPEncoding Individual { get; protected set; } … … 49 49 public int X2 { get; protected set; } 50 50 51 public Potvin OnePointCrossoverMove(): base() {51 public PotvinTwoOptStarMove(): base() { 52 52 X1 = -1; 53 53 Tour1 = -1; … … 58 58 } 59 59 60 public Potvin OnePointCrossoverMove(int tour1, int x1, int tour2, int x2, PotvinEncoding individual) {60 public PotvinTwoOptStarMove(int tour1, int x1, int tour2, int x2, PotvinEncoding individual) { 61 61 Tour1 = tour1; 62 62 X1 = x1; … … 68 68 69 69 public override IDeepCloneable Clone(Cloner cloner) { 70 return new Potvin OnePointCrossoverMove(this, cloner);70 return new PotvinTwoOptStarMove(this, cloner); 71 71 } 72 72 73 protected Potvin OnePointCrossoverMove(PotvinOnePointCrossoverMove original, Cloner cloner)73 protected PotvinTwoOptStarMove(PotvinTwoOptStarMove original, Cloner cloner) 74 74 : base(original, cloner) { 75 75 this.Tour1 = original.Tour1; … … 84 84 85 85 public VRPMoveEvaluator GetMoveEvaluator() { 86 return new Potvin OnePointCrossoverMoveEvaluator();86 return new PotvinTwoOptStarMoveEvaluator(); 87 87 } 88 88 89 89 public VRPMoveMaker GetMoveMaker() { 90 return new Potvin OnePointCrossoverMoveMaker();90 return new PotvinTwoOptStarMoveMaker(); 91 91 } 92 92 93 93 public ITabuMaker GetTabuMaker() { 94 return new Potvin OnePointCrossoverMoveTabuMaker();94 return new PotvinTwoOptStarMoveTabuMaker(); 95 95 } 96 96 97 97 public ITabuChecker GetTabuChecker() { 98 return new Potvin OnePointCrossoverMoveTabuCriterion();98 return new PotvinTwoOptStarMoveTabuCriterion(); 99 99 } 100 100 101 101 public ITabuChecker GetSoftTabuChecker() { 102 Potvin OnePointCrossoverMoveTabuCriterion tabuChecker = new PotvinOnePointCrossoverMoveTabuCriterion();102 PotvinTwoOptStarMoveTabuCriterion tabuChecker = new PotvinTwoOptStarMoveTabuCriterion(); 103 103 tabuChecker.UseAspirationCriterion.Value = true; 104 104
Note: See TracChangeset
for help on using the changeset viewer.