Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/22/12 09:53:07 (12 years ago)
Author:
svonolfe
Message:

Fixed naming of moves (#1177)

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  
    3131
    3232namespace HeuristicLab.Problems.VehicleRouting.Encodings.Potvin {
    33   [Item("PotvinOnePointCrossoverMove", "Item that describes a relocation move on a VRP representation.")]
     33  [Item("PotvinTwoOptStarMove", "Item that describes a two opt star move on a VRP representation.")]
    3434  [StorableClass]
    35   public class PotvinOnePointCrossoverMove: Item, IVRPMove {
     35  public class PotvinTwoOptStarMove: Item, IVRPMove {
    3636    [Storable]
    3737    public IVRPEncoding Individual { get; protected set; }
     
    4949    public int X2 { get; protected set; }
    5050   
    51     public PotvinOnePointCrossoverMove(): base() {
     51    public PotvinTwoOptStarMove(): base() {
    5252      X1 = -1;
    5353      Tour1 = -1;
     
    5858    }
    5959
    60     public PotvinOnePointCrossoverMove(int tour1, int x1, int tour2, int x2, PotvinEncoding individual) {
     60    public PotvinTwoOptStarMove(int tour1, int x1, int tour2, int x2, PotvinEncoding individual) {
    6161      Tour1 = tour1;
    6262      X1 = x1;
     
    6868
    6969    public override IDeepCloneable Clone(Cloner cloner) {
    70       return new PotvinOnePointCrossoverMove(this, cloner);
     70      return new PotvinTwoOptStarMove(this, cloner);
    7171    }
    7272
    73     protected PotvinOnePointCrossoverMove(PotvinOnePointCrossoverMove original, Cloner cloner)
     73    protected PotvinTwoOptStarMove(PotvinTwoOptStarMove original, Cloner cloner)
    7474      : base(original, cloner) {
    7575      this.Tour1 = original.Tour1;
     
    8484
    8585    public VRPMoveEvaluator GetMoveEvaluator() {
    86       return new PotvinOnePointCrossoverMoveEvaluator();
     86      return new PotvinTwoOptStarMoveEvaluator();
    8787    }
    8888
    8989    public VRPMoveMaker GetMoveMaker() {
    90       return new PotvinOnePointCrossoverMoveMaker();
     90      return new PotvinTwoOptStarMoveMaker();
    9191    }
    9292
    9393    public ITabuMaker GetTabuMaker() {
    94       return new PotvinOnePointCrossoverMoveTabuMaker();
     94      return new PotvinTwoOptStarMoveTabuMaker();
    9595    }
    9696
    9797    public ITabuChecker GetTabuChecker() {
    98       return new PotvinOnePointCrossoverMoveTabuCriterion();
     98      return new PotvinTwoOptStarMoveTabuCriterion();
    9999    }
    100100
    101101    public ITabuChecker GetSoftTabuChecker() {
    102       PotvinOnePointCrossoverMoveTabuCriterion tabuChecker = new PotvinOnePointCrossoverMoveTabuCriterion();
     102      PotvinTwoOptStarMoveTabuCriterion tabuChecker = new PotvinTwoOptStarMoveTabuCriterion();
    103103      tabuChecker.UseAspirationCriterion.Value = true;
    104104
Note: See TracChangeset for help on using the changeset viewer.