- Timestamp:
- 11/06/10 01:56:04 (14 years ago)
- Location:
- trunk/sources
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources
- Property svn:mergeinfo changed
/branches/CloningRefactoring (added) merged: 4656-4693,4696-4697,4711-4714,4718-4719
- Property svn:mergeinfo changed
-
trunk/sources/HeuristicLab.Problems.VehicleRouting
- Property svn:mergeinfo changed
/branches/CloningRefactoring/HeuristicLab.Problems.VehicleRouting (added) merged: 4686-4687,4689-4693,4696-4697
- Property svn:mergeinfo changed
-
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Analyzers/BestAverageWorstVRPToursAnalyzer.cs
r4416 r4722 21 21 22 22 using System; 23 using HeuristicLab.Analysis; 23 24 using HeuristicLab.Common; 24 25 using HeuristicLab.Core; … … 29 30 using HeuristicLab.Parameters; 30 31 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 31 using HeuristicLab.Analysis;32 32 33 33 namespace HeuristicLab.Problems.VehicleRouting { … … 150 150 public BestAverageWorstVRPToursAnalyzer() 151 151 : base() { 152 #region Create parameters 152 #region Create parameters 153 153 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Overload", "The overloads of the VRP solutions which should be analyzed.")); 154 154 Parameters.Add(new ValueLookupParameter<DoubleValue>("BestOverload", "The best overload value.")); … … 157 157 Parameters.Add(new ValueLookupParameter<DoubleValue>("CurrentWorstOverload", "The current worst overload value of all solutions.")); 158 158 Parameters.Add(new ValueLookupParameter<DataTable>("Overloads", "The data table to store the current best, current average, current worst, best and best known overload value.")); 159 159 160 160 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Tardiness", "The tardiness of the VRP solutions which should be analyzed.")); 161 161 Parameters.Add(new ValueLookupParameter<DoubleValue>("BestTardiness", "The best tardiness value.")); … … 311 311 [StorableConstructor] 312 312 private BestAverageWorstVRPToursAnalyzer(bool deserializing) : base() { } 313 private BestAverageWorstVRPToursAnalyzer(BestAverageWorstVRPToursAnalyzer original, Cloner cloner) 314 : base(original, cloner) { 315 Initialize(); 316 } 317 public override IDeepCloneable Clone(Cloner cloner) { 318 return new BestAverageWorstVRPToursAnalyzer(this, cloner); 319 } 313 320 314 321 [StorableHook(HookType.AfterDeserialization)] 322 private void AfterDeserialization() { 323 Initialize(); 324 } 315 325 private void Initialize() { 316 326 OverloadParameter.DepthChanged += new EventHandler(OverloadParameter_DepthChanged); … … 321 331 } 322 332 323 public override IDeepCloneable Clone(Cloner cloner) {324 BestAverageWorstVRPToursAnalyzer clone = (BestAverageWorstVRPToursAnalyzer)base.Clone(cloner);325 clone.Initialize();326 return clone;327 }328 333 329 334 void OverloadParameter_DepthChanged(object sender, EventArgs e) { -
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Analyzers/BestAverageWorstVRPToursCalculator.cs
r4352 r4722 20 20 #endregion 21 21 22 using HeuristicLab.Common; 22 23 using HeuristicLab.Core; 23 24 using HeuristicLab.Data; … … 95 96 } 96 97 98 [StorableConstructor] 99 private BestAverageWorstVRPToursCalculator(bool deserializing) : base(deserializing) { } 100 private BestAverageWorstVRPToursCalculator(BestAverageWorstVRPToursCalculator original, Cloner cloner) 101 : base(original, cloner) { 102 } 97 103 public BestAverageWorstVRPToursCalculator() 98 104 : base() { … … 123 129 } 124 130 131 public override IDeepCloneable Clone(Cloner cloner) { 132 return new BestAverageWorstVRPToursCalculator(this, cloner); 133 } 134 125 135 private void UpdateOverloads() { 126 136 ItemArray<DoubleValue> overloads = OverloadParameter.ActualValue; -
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Analyzers/BestVRPSolutionAnalyzer.cs
r4513 r4722 21 21 22 22 using System.Linq; 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Data; … … 83 84 [StorableConstructor] 84 85 private BestVRPSolutionAnalyzer(bool deserializing) : base(deserializing) { } 85 86 private BestVRPSolutionAnalyzer(BestVRPSolutionAnalyzer original, Cloner cloner) 87 : base(original, cloner) { 88 } 86 89 public BestVRPSolutionAnalyzer() 87 90 : base() { … … 102 105 Parameters.Add(new LookupParameter<VRPSolution>("BestSolution", "The best VRP solution.")); 103 106 Parameters.Add(new ValueLookupParameter<ResultCollection>("Results", "The result collection where the best VRP solution should be stored.")); 107 } 108 109 public override IDeepCloneable Clone(Cloner cloner) { 110 return new BestVRPSolutionAnalyzer(this, cloner); 104 111 } 105 112 -
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Analyzers/BestVRPToursMemorizer.cs
r4352 r4722 21 21 22 22 using System.Linq; 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Data; … … 63 64 } 64 65 66 [StorableConstructor] 67 protected BestVRPToursMemorizer(bool deserializing) : base(deserializing) { } 68 protected BestVRPToursMemorizer(BestVRPToursMemorizer original, Cloner cloner) 69 : base(original, cloner) { 70 } 65 71 public BestVRPToursMemorizer() 66 72 : base() { … … 77 83 Parameters.Add(new ValueLookupParameter<DoubleValue>("BestVehiclesUtilized", "The best vehicles utilized found so far.")); 78 84 85 } 86 87 public override IDeepCloneable Clone(Cloner cloner) { 88 return new BestVRPToursMemorizer(this, cloner); 79 89 } 80 90
Note: See TracChangeset
for help on using the changeset viewer.