Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/09/10 09:55:31 (14 years ago)
Author:
svonolfe
Message:

Merged relevant changes from the trunk into the branch (cloning,...) (#1177)

Location:
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/GVR/Manipulators
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/GVR/Manipulators/GVRDisplacementManipulator.cs

    r4379 r4752  
    2626using HeuristicLab.Data;
    2727using System.Collections.Generic;
     28using HeuristicLab.Common;
    2829
    2930namespace HeuristicLab.Problems.VehicleRouting.Encodings.GVR {
     
    3637    public GVRDisplacementManipulator()
    3738      : base() {
     39    }
     40
     41    public override IDeepCloneable Clone(Cloner cloner) {
     42      return new GVRDisplacementManipulator(this, cloner);
     43    }
     44
     45    private GVRDisplacementManipulator(GVRDisplacementManipulator original, Cloner cloner)
     46      : base(original, cloner) {
    3847    }
    3948
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/GVR/Manipulators/GVRInsertionManipulator.cs

    r4379 r4752  
    2525using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2626using HeuristicLab.Data;
     27using HeuristicLab.Common;
    2728
    2829namespace HeuristicLab.Problems.VehicleRouting.Encodings.GVR {
     
    3536    public GVRInsertionManipulator()
    3637      : base() {
     38    }
     39
     40    public override IDeepCloneable Clone(Cloner cloner) {
     41      return new GVRInsertionManipulator(this, cloner);
     42    }
     43
     44    private GVRInsertionManipulator(GVRInsertionManipulator original, Cloner cloner)
     45      : base(original, cloner) {
    3746    }
    3847
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/GVR/Manipulators/GVRInversionManipulator.cs

    r4379 r4752  
    2525using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2626using HeuristicLab.Data;
     27using HeuristicLab.Common;
    2728
    2829namespace HeuristicLab.Problems.VehicleRouting.Encodings.GVR {
     
    3738    }
    3839
     40    public override IDeepCloneable Clone(Cloner cloner) {
     41      return new GVRInversionManipulator(this, cloner);
     42    }
     43
     44    private GVRInversionManipulator(GVRInversionManipulator original, Cloner cloner)
     45      : base(original, cloner) {
     46    }
     47
    3948    protected override void Manipulate(IRandom random, GVREncoding individual) {
    4049      Tour tour = individual.Tours[random.Next(individual.Tours.Count)];
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/GVR/Manipulators/GVRManipulator.cs

    r4379 r4752  
    2828using HeuristicLab.Problems.VehicleRouting.Encodings.General;
    2929using HeuristicLab.Problems.VehicleRouting.Interfaces;
     30using HeuristicLab.Common;
    3031
    3132namespace HeuristicLab.Problems.VehicleRouting.Encodings.GVR {
     
    4445    }
    4546
     47    protected GVRManipulator(GVRManipulator original, Cloner cloner)
     48      : base(original, cloner) {
     49    }
     50
    4651    protected abstract void Manipulate(IRandom random, GVREncoding individual);
    4752   
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/GVR/Manipulators/GVRSwapManipulator.cs

    r4379 r4752  
    2525using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2626using HeuristicLab.Data;
     27using HeuristicLab.Common;
    2728
    2829namespace HeuristicLab.Problems.VehicleRouting.Encodings.GVR {
     
    3536    public GVRSwapManipulator()
    3637      : base() {
     38    }
     39
     40    public override IDeepCloneable Clone(Cloner cloner) {
     41      return new GVRSwapManipulator(this, cloner);
     42    }
     43
     44    private GVRSwapManipulator(GVRSwapManipulator original, Cloner cloner)
     45      : base(original, cloner) {
    3746    }
    3847
Note: See TracChangeset for help on using the changeset viewer.