Changeset 4752 for branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Analyzer/BestAverageWorstTours/Capacitated
- Timestamp:
- 11/09/10 09:55:31 (14 years ago)
- 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 137 137 138 138 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(); 142 145 } 143 146 -
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Analyzer/BestAverageWorstTours/Capacitated/BestAverageWorstCapacitatedVRPToursCalculator.cs
r4374 r4752 25 25 using HeuristicLab.Parameters; 26 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 using HeuristicLab.Common; 27 28 28 29 namespace HeuristicLab.Problems.VehicleRouting { … … 50 51 Parameters.Add(new ValueLookupParameter<DoubleValue>("WorstOverload", "The worst overload value of all solutions.")); 51 52 } 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) { } 52 64 53 65 private void UpdateOverloads() { -
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Analyzer/BestAverageWorstTours/Capacitated/BestCapacitatedVRPToursMemorizer.cs
r4374 r4752 26 26 using HeuristicLab.Parameters; 27 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 28 using HeuristicLab.Common; 28 29 29 30 namespace HeuristicLab.Problems.VehicleRouting { … … 46 47 } 47 48 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 48 60 public override IOperation Apply() { 49 61 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.