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/Potvin/Manipulators
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Manipulators/PotvinLocalSearchManipulator.cs

    r4376 r4752  
    2626using HeuristicLab.Data;
    2727using System.Collections.Generic;
     28using HeuristicLab.Common;
    2829
    2930namespace HeuristicLab.Problems.VehicleRouting.Encodings.Potvin {
     
    4041    public PotvinLocalSearchManipulator() : base() {
    4142      Parameters.Add(new ValueParameter<IntValue>("Iterations", "The number of max iterations.", new IntValue(100)));
     43    }
     44
     45    public override IDeepCloneable Clone(Cloner cloner) {
     46      return new PotvinLocalSearchManipulator(this, cloner);
     47    }
     48
     49    private PotvinLocalSearchManipulator(PotvinLocalSearchManipulator original, Cloner cloner)
     50      : base(original, cloner) {
    4251    }
    4352
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Manipulators/PotvinManipulator.cs

    r4376 r4752  
    2828using HeuristicLab.Problems.VehicleRouting.Encodings.General;
    2929using HeuristicLab.Problems.VehicleRouting.Interfaces;
     30using HeuristicLab.Common;
    3031
    3132namespace HeuristicLab.Problems.VehicleRouting.Encodings.Potvin {
     
    4243    public PotvinManipulator() {
    4344      Parameters.Add(new LookupParameter<IRandom>("Random", "The pseudo random number generator which should be used for stochastic manipulation operators."));
     45    }
     46
     47    protected PotvinManipulator(PotvinManipulator original, Cloner cloner)
     48      : base(original, cloner) {
    4449    }
    4550
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Manipulators/PotvinOneLevelExchangeManipulator.cs

    r4376 r4752  
    2626using HeuristicLab.Data;
    2727using System.Collections.Generic;
     28using HeuristicLab.Common;
    2829
    2930namespace HeuristicLab.Problems.VehicleRouting.Encodings.Potvin {
     
    3536
    3637    public PotvinOneLevelExchangeMainpulator() : base() { }
     38
     39    public override IDeepCloneable Clone(Cloner cloner) {
     40      return new PotvinOneLevelExchangeMainpulator(this, cloner);
     41    }
     42
     43    private PotvinOneLevelExchangeMainpulator(PotvinOneLevelExchangeMainpulator original, Cloner cloner)
     44      : base(original, cloner) {
     45    }
    3746   
    3847    protected override void Manipulate(IRandom random, PotvinEncoding individual) {
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Manipulators/PotvinTwoLevelExchangeManipulator.cs

    r4376 r4752  
    2626using HeuristicLab.Data;
    2727using System.Collections.Generic;
     28using HeuristicLab.Common;
    2829
    2930namespace HeuristicLab.Problems.VehicleRouting.Encodings.Potvin {
     
    3536
    3637    public PotvinTwoLevelExchangeManipulator() : base() { }
     38
     39    public override IDeepCloneable Clone(Cloner cloner) {
     40      return new PotvinTwoLevelExchangeManipulator(this, cloner);
     41    }
     42
     43    private PotvinTwoLevelExchangeManipulator(PotvinTwoLevelExchangeManipulator original, Cloner cloner)
     44      : base(original, cloner) {
     45    }
    3746   
    3847    protected override void Manipulate(IRandom random, PotvinEncoding individual) {
Note: See TracChangeset for help on using the changeset viewer.