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

    r7774 r7865  
    3232
    3333namespace HeuristicLab.Problems.VehicleRouting.Encodings.Potvin {
    34   [Item("PotvinOnePointCrossoverMultiMoveGenerator", "Generates customer relocation moves from a given VRP encoding.")]
     34  [Item("PotvinTwoOptStarMultiMoveGenerator", "Generates two opt star moves from a given VRP encoding.")]
    3535  [StorableClass]
    36   public sealed class PotvinOnePointCrossoverMultiMoveGenerator : PotvinOnePointCrossoverMoveGenerator, IMultiMoveGenerator, IMultiVRPMoveGenerator {
     36  public sealed class PotvinTwoOptStarMultiMoveGenerator : PotvinTwoOptStarMoveGenerator, IMultiMoveGenerator, IMultiVRPMoveGenerator {
    3737    public ILookupParameter<IRandom> RandomParameter {
    3838      get { return (ILookupParameter<IRandom>)Parameters["Random"]; }
     
    4444
    4545    public override IDeepCloneable Clone(Cloner cloner) {
    46       return new PotvinOnePointCrossoverMultiMoveGenerator(this, cloner);
     46      return new PotvinTwoOptStarMultiMoveGenerator(this, cloner);
    4747    }
    4848
    4949    [StorableConstructor]
    50     private PotvinOnePointCrossoverMultiMoveGenerator(bool deserializing) : base(deserializing) { }
     50    private PotvinTwoOptStarMultiMoveGenerator(bool deserializing) : base(deserializing) { }
    5151
    52     public PotvinOnePointCrossoverMultiMoveGenerator()
     52    public PotvinTwoOptStarMultiMoveGenerator()
    5353      : base() {
    5454      Parameters.Add(new LookupParameter<IRandom>("Random", "The random number generator."));
     
    5656    }
    5757
    58     private PotvinOnePointCrossoverMultiMoveGenerator(PotvinOnePointCrossoverMoveGenerator original, Cloner cloner)
     58    private PotvinTwoOptStarMultiMoveGenerator(PotvinTwoOptStarMoveGenerator original, Cloner cloner)
    5959      : base(original, cloner) {
    6060    }
    6161
    62     protected override PotvinOnePointCrossoverMove[] GenerateMoves(PotvinEncoding individual, IVRPProblemInstance problemInstance) {
    63       List<PotvinOnePointCrossoverMove> result = new List<PotvinOnePointCrossoverMove>();
     62    protected override PotvinTwoOptStarMove[] GenerateMoves(PotvinEncoding individual, IVRPProblemInstance problemInstance) {
     63      List<PotvinTwoOptStarMove> result = new List<PotvinTwoOptStarMove>();
    6464
    6565      for (int i = 0; i < SampleSizeParameter.ActualValue.Value; i++) {
    66         result.Add(PotvinOnePointCrossoverSingleMoveGenerator.Apply(individual, ProblemInstance, RandomParameter.ActualValue));
     66        result.Add(PotvinTwoOptStarSingleMoveGenerator.Apply(individual, ProblemInstance, RandomParameter.ActualValue));
    6767      }
    6868
Note: See TracChangeset for help on using the changeset viewer.