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/Analyzer/BestAverageWorstTours/Capacitated
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Analyzer/BestAverageWorstTours/Capacitated/BestAverageWorstCapacitatedVRPToursAnalyzer.cs

    r4376 r4752  
    137137
    138138    public override IDeepCloneable Clone(Cloner cloner) {
    139       BestAverageWorstCapaciatatedVRPToursAnalyzer clone = (BestAverageWorstCapaciatatedVRPToursAnalyzer)base.Clone(cloner);
    140       clone.Initialize();
    141       return clone;
     139      return new BestAverageWorstCapaciatatedVRPToursAnalyzer(this, cloner);
     140    }
     141
     142    private BestAverageWorstCapaciatatedVRPToursAnalyzer(BestAverageWorstCapaciatatedVRPToursAnalyzer original, Cloner cloner)
     143      : base(original, cloner) {
     144        this.Initialize();
    142145    }
    143146
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Analyzer/BestAverageWorstTours/Capacitated/BestAverageWorstCapacitatedVRPToursCalculator.cs

    r4374 r4752  
    2525using HeuristicLab.Parameters;
    2626using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     27using HeuristicLab.Common;
    2728
    2829namespace HeuristicLab.Problems.VehicleRouting {
     
    5051      Parameters.Add(new ValueLookupParameter<DoubleValue>("WorstOverload", "The worst overload value of all solutions."));
    5152    }
     53
     54    public override IDeepCloneable Clone(Cloner cloner) {
     55      return new BestAverageWorstCapacitatedVRPToursCalculator(this, cloner);
     56    }
     57
     58    private BestAverageWorstCapacitatedVRPToursCalculator(BestAverageWorstCapacitatedVRPToursCalculator original, Cloner cloner)
     59      : base(original, cloner) {
     60    }
     61
     62    [StorableConstructor]
     63    private BestAverageWorstCapacitatedVRPToursCalculator(bool deserializing) : base(deserializing) { }
    5264
    5365    private void UpdateOverloads() {
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Analyzer/BestAverageWorstTours/Capacitated/BestCapacitatedVRPToursMemorizer.cs

    r4374 r4752  
    2626using HeuristicLab.Parameters;
    2727using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     28using HeuristicLab.Common;
    2829
    2930namespace HeuristicLab.Problems.VehicleRouting {
     
    4647    }
    4748
     49    public override IDeepCloneable Clone(Cloner cloner) {
     50      return new BestCapacitatedVRPToursMemorizer(this, cloner);
     51    }
     52
     53    protected BestCapacitatedVRPToursMemorizer(BestCapacitatedVRPToursMemorizer original, Cloner cloner)
     54      : base(original, cloner) {
     55    }
     56
     57    [StorableConstructor]
     58    protected BestCapacitatedVRPToursMemorizer(bool deserializing) : base(deserializing) { }
     59
    4860    public override IOperation Apply() {
    4961      int i = OverloadParameter.ActualValue.Select((x, index) => new { index, x.Value }).OrderBy(x => x.Value).First().index;
Note: See TracChangeset for help on using the changeset viewer.