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/PotvinTwoOptStarMoveTabuCriterion.cs

    r7774 r7865  
    3232
    3333namespace HeuristicLab.Problems.VehicleRouting.Encodings.Potvin {
    34   [Item("PotvinOnePointCrossoverTabuCriterion", @"Checks if a certain customer relocation move is tabu.")]
     34  [Item("PotvinTwoOptStarTabuCriterion", @"Checks if a certain two opt star move is tabu.")]
    3535  [StorableClass]
    36   public class PotvinOnePointCrossoverMoveTabuCriterion : SingleSuccessorOperator, IPotvinOnePointCrossoverMoveOperator, ITabuChecker, IPotvinOperator, IVRPMoveOperator {
     36  public class PotvinTwoOptStarMoveTabuCriterion : SingleSuccessorOperator, IPotvinTwoOptStarMoveOperator, ITabuChecker, IPotvinOperator, IVRPMoveOperator {
    3737    public override bool CanChangeName {
    3838      get { return false; }
    3939    }
    4040
    41     public ILookupParameter<PotvinOnePointCrossoverMove> OnePointCrossoverMoveParameter {
    42       get { return (ILookupParameter<PotvinOnePointCrossoverMove>)Parameters["PotvinOnePointCrossoverMove"]; }
     41    public ILookupParameter<PotvinTwoOptStarMove> TwoOptStarMoveParameter {
     42      get { return (ILookupParameter<PotvinTwoOptStarMove>)Parameters["PotvinTwoOptStarMove"]; }
    4343    }
    4444    public ILookupParameter VRPMoveParameter {
    45       get { return OnePointCrossoverMoveParameter; }
     45      get { return TwoOptStarMoveParameter; }
    4646    }
    4747    public ILookupParameter<IVRPEncoding> VRPToursParameter {
     
    8484
    8585    [StorableConstructor]
    86     protected PotvinOnePointCrossoverMoveTabuCriterion(bool deserializing) : base(deserializing) { }
    87     protected PotvinOnePointCrossoverMoveTabuCriterion(PotvinOnePointCrossoverMoveTabuCriterion original, Cloner cloner) : base(original, cloner) { }
    88     public PotvinOnePointCrossoverMoveTabuCriterion()
     86    protected PotvinTwoOptStarMoveTabuCriterion(bool deserializing) : base(deserializing) { }
     87    protected PotvinTwoOptStarMoveTabuCriterion(PotvinTwoOptStarMoveTabuCriterion original, Cloner cloner) : base(original, cloner) { }
     88    public PotvinTwoOptStarMoveTabuCriterion()
    8989      : base() {
    90       Parameters.Add(new LookupParameter<PotvinOnePointCrossoverMove>("PotvinOnePointCrossoverMove", "The moves that should be made."));
     90      Parameters.Add(new LookupParameter<PotvinTwoOptStarMove>("PotvinTwoOptStarMove", "The moves that should be made."));
    9191      Parameters.Add(new LookupParameter<IVRPEncoding>("VRPTours", "The VRP tours considered in the move."));
    9292      Parameters.Add(new LookupParameter<IVRPProblemInstance>("ProblemInstance", "The VRP problem instance"));
     
    104104
    105105    public override IDeepCloneable Clone(Cloner cloner) {
    106       return new PotvinOnePointCrossoverMoveTabuCriterion(this, cloner);
     106      return new PotvinTwoOptStarMoveTabuCriterion(this, cloner);
    107107    }
    108108
     
    112112      bool useAspiration = UseAspirationCriterion.Value;
    113113      bool isTabu = false;
    114       PotvinOnePointCrossoverMove move = OnePointCrossoverMoveParameter.ActualValue;
     114      PotvinTwoOptStarMove move = TwoOptStarMoveParameter.ActualValue;
    115115
    116116      List<int> segmentX1;
    117117      List<int> segmentX2;
    118       PotvinOnePointCrossoverMoveMaker.GetSegments(move, out segmentX1, out segmentX2);
     118      PotvinTwoOptStarMoveMaker.GetSegments(move, out segmentX1, out segmentX2);
    119119
    120120      foreach (IItem tabuMove in tabuList) {
    121         PotvinOnePointCrossoverMoveAttribute attribute = tabuMove as PotvinOnePointCrossoverMoveAttribute;
     121        PotvinTwoOptStarMoveAttribute attribute = tabuMove as PotvinTwoOptStarMoveAttribute;
    122122
    123123        if (attribute != null) {
Note: See TracChangeset for help on using the changeset viewer.