- Timestamp:
- 11/06/10 01:56:04 (14 years ago)
- Location:
- trunk/sources
- Files:
-
- 11 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/Encodings/Prins/Crossovers/PrinsCrossover.cs
r4352 r4722 20 20 #endregion 21 21 22 using HeuristicLab.Common; 22 23 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.PermutationEncoding; 24 using HeuristicLab.Data; 25 using HeuristicLab.Optimization; 24 26 using HeuristicLab.Parameters; 25 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 using HeuristicLab.Data;27 using HeuristicLab.Optimization;28 28 29 29 namespace HeuristicLab.Problems.VehicleRouting.Encodings.Prins { … … 53 53 [StorableConstructor] 54 54 protected PrinsCrossover(bool deserializing) : base(deserializing) { } 55 55 protected PrinsCrossover(PrinsCrossover original, Cloner cloner) : base(original, cloner) { } 56 56 public PrinsCrossover() 57 57 : base() { -
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Prins/Crossovers/PrinsPermutationCrossover.cs
r4352 r4722 20 20 #endregion 21 21 22 using HeuristicLab.Common; 22 23 using HeuristicLab.Core; 23 24 using HeuristicLab.Encodings.PermutationEncoding; 24 25 using HeuristicLab.Parameters; 25 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 using HeuristicLab.Data;27 27 28 28 namespace HeuristicLab.Problems.VehicleRouting.Encodings.Prins { … … 36 36 [StorableConstructor] 37 37 private PrinsPermutationCrossover(bool deserializing) : base(deserializing) { } 38 38 private PrinsPermutationCrossover(PrinsPermutationCrossover original, Cloner cloner) : base(original, cloner) { } 39 public override IDeepCloneable Clone(Cloner cloner) { 40 return new PrinsPermutationCrossover(this, cloner); 41 } 39 42 public PrinsPermutationCrossover() 40 43 : base() { -
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Prins/Interfaces/IPrinsOperator.cs
r4352 r4722 20 20 #endregion 21 21 22 using System;23 using System.Collections.Generic;24 using System.Linq;25 using System.Text;26 22 using HeuristicLab.Core; 27 23 using HeuristicLab.Data; -
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Prins/Manipulators/PrinsExhaustiveLSManipulator.cs
r4352 r4722 20 20 #endregion 21 21 22 using System.Collections.Generic; 23 using HeuristicLab.Common; 22 24 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.PermutationEncoding;24 using HeuristicLab.Parameters;25 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 using HeuristicLab.Data;27 using System.Collections.Generic;28 26 29 27 namespace HeuristicLab.Problems.VehicleRouting.Encodings.Prins { … … 33 31 [StorableConstructor] 34 32 private PrinsExhaustiveLSManipulator(bool deserializing) : base(deserializing) { } 35 33 private PrinsExhaustiveLSManipulator(PrinsExhaustiveLSManipulator original, Cloner cloner) : base(original, cloner) { } 34 public override IDeepCloneable Clone(Cloner cloner) { 35 return new PrinsExhaustiveLSManipulator(this, cloner); 36 } 36 37 public PrinsExhaustiveLSManipulator() 37 38 : base() { -
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Prins/Manipulators/PrinsLSManipulator.cs
r4352 r4722 20 20 #endregion 21 21 22 using System.Collections.Generic; 23 using HeuristicLab.Common; 22 24 using HeuristicLab.Core; 23 using HeuristicLab. Encodings.PermutationEncoding;25 using HeuristicLab.Data; 24 26 using HeuristicLab.Parameters; 25 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 using HeuristicLab.Data;27 using System.Collections.Generic;28 28 29 29 namespace HeuristicLab.Problems.VehicleRouting.Encodings.Prins { … … 37 37 [StorableConstructor] 38 38 protected PrinsLSManipulator(bool deserializing) : base(deserializing) { } 39 39 protected PrinsLSManipulator(PrinsLSManipulator original, Cloner cloner) : base(original, cloner) { } 40 40 public PrinsLSManipulator() 41 41 : base() { -
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Prins/Manipulators/PrinsManipulator.cs
r4352 r4722 20 20 #endregion 21 21 22 using HeuristicLab.Common; 22 23 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.PermutationEncoding; 24 using HeuristicLab.Data; 25 using HeuristicLab.Optimization; 24 26 using HeuristicLab.Parameters; 25 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 using HeuristicLab.Data;27 using HeuristicLab.Optimization;28 28 29 29 namespace HeuristicLab.Problems.VehicleRouting.Encodings.Prins { … … 53 53 [StorableConstructor] 54 54 protected PrinsManipulator(bool deserializing) : base(deserializing) { } 55 55 protected PrinsManipulator(PrinsManipulator original, Cloner cloner) : base(original, cloner) { } 56 56 public PrinsManipulator() 57 57 : base() { … … 61 61 Parameters.Add(new LookupParameter<DoubleValue>("EvalOverloadPenalty", "The overload penalty considered in the evaluation.")); 62 62 Parameters.Add(new LookupParameter<DoubleValue>("EvalTardinessPenalty", "The tardiness penalty considered in the evaluation.")); 63 64 63 Parameters.Add(new LookupParameter<IRandom>("Random", "The pseudo random number generator which should be used for stochastic manipulation operators.")); 65 64 } -
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Prins/Manipulators/PrinsPermutationManipulator.cs
r4352 r4722 20 20 #endregion 21 21 22 using HeuristicLab.Common; 22 23 using HeuristicLab.Core; 23 24 using HeuristicLab.Encodings.PermutationEncoding; 24 25 using HeuristicLab.Parameters; 25 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 using HeuristicLab.Data;27 27 28 28 namespace HeuristicLab.Problems.VehicleRouting.Encodings.Prins { … … 36 36 [StorableConstructor] 37 37 private PrinsPermutationManipulator(bool deserializing) : base(deserializing) { } 38 38 private PrinsPermutationManipulator(PrinsPermutationManipulator original, Cloner cloner) : base(original, cloner) { } 39 public override IDeepCloneable Clone(Cloner cloner) { 40 return new PrinsPermutationManipulator(this, cloner); 41 } 39 42 public PrinsPermutationManipulator() 40 43 : base() { -
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Prins/Manipulators/PrinsStochasticLSManipulator.cs
r4352 r4722 20 20 #endregion 21 21 22 using System.Collections.Generic; 23 using HeuristicLab.Common; 22 24 using HeuristicLab.Core; 23 using HeuristicLab. Encodings.PermutationEncoding;25 using HeuristicLab.Data; 24 26 using HeuristicLab.Parameters; 25 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 using HeuristicLab.Data;27 using System.Collections.Generic;28 28 29 29 namespace HeuristicLab.Problems.VehicleRouting.Encodings.Prins { … … 37 37 [StorableConstructor] 38 38 private PrinsStochasticLSManipulator(bool deserializing) : base(deserializing) { } 39 39 private PrinsStochasticLSManipulator(PrinsStochasticLSManipulator original, Cloner cloner) : base(original, cloner) { } 40 public override IDeepCloneable Clone(Cloner cloner) { 41 return new PrinsStochasticLSManipulator(this, cloner); 42 } 40 43 public PrinsStochasticLSManipulator() 41 44 : base() { -
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Prins/PrinsEncoding.cs
r4352 r4722 20 20 #endregion 21 21 22 using System; 23 using System.Collections.Generic; 22 24 using HeuristicLab.Common; 23 25 using HeuristicLab.Core; … … 25 27 using HeuristicLab.Encodings.PermutationEncoding; 26 28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 using System.Collections.Generic;28 29 using HeuristicLab.Problems.VehicleRouting.Encodings.General; 29 using System;30 30 31 31 namespace HeuristicLab.Problems.VehicleRouting.Encodings.Prins { … … 178 178 } 179 179 #endregion 180 181 public override IDeepCloneable Clone(HeuristicLab.Common.Cloner cloner) { 182 PrinsEncoding clone = new PrinsEncoding( 183 new Permutation(this.PermutationType, this.array), cities, 184 dueTimeArray, serviceTimeArray, readyTimeArray, demandArray, capacity, 185 fleetUsageFactor, timeFactor, distanceFactor, overloadPenalty, tardinessPenalty, 186 coordinates, useDistanceMatrix); 187 188 cloner.RegisterClonedObject(this, clone); 189 clone.readOnly = readOnly; 190 return clone; 191 } 192 180 181 [StorableConstructor] 182 protected PrinsEncoding(bool deserializing) : base(deserializing) { } 183 protected PrinsEncoding(PrinsEncoding original, Cloner cloner) 184 : base(original, cloner) { 185 this.cities = original.cities; 186 this.dueTimeArray = original.dueTimeArray; 187 this.serviceTimeArray = original.serviceTimeArray; 188 this.readyTimeArray = original.readyTimeArray; 189 this.demandArray = original.demandArray; 190 this.capacity = original.capacity; 191 this.fleetUsageFactor = original.fleetUsageFactor; 192 this.timeFactor = original.timeFactor; 193 this.distanceFactor = original.distanceFactor; 194 this.overloadPenalty = original.overloadPenalty; 195 this.tardinessPenalty = original.tardinessPenalty; 196 this.coordinates = original.coordinates; 197 this.useDistanceMatrix = original.useDistanceMatrix; 198 } 199 public override IDeepCloneable Clone(Cloner cloner) { 200 return new PrinsEncoding(this, cloner); 201 } 193 202 public PrinsEncoding(Permutation permutation, int cities, 194 203 DoubleArray dueTimeArray, DoubleArray serviceTimeArray, DoubleArray readyTimeArray, DoubleArray demandArray, DoubleValue capacity, … … 211 220 } 212 221 213 [StorableConstructor]214 private PrinsEncoding(bool serializing)215 : base(serializing) {216 }217 218 222 public static PrinsEncoding ConvertFrom(IVRPEncoding encoding, int cities, 219 223 DoubleArray dueTimeArray, DoubleArray serviceTimeArray, DoubleArray readyTimeArray, DoubleArray demandArray, DoubleValue capacity,
Note: See TracChangeset
for help on using the changeset viewer.