- Timestamp:
- 11/06/10 01:56:04 (14 years ago)
- Location:
- trunk/sources
- Files:
-
- 9 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/GVR/Crossovers/GVRCrossover.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.Optimization; 24 26 using HeuristicLab.Parameters; 25 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 using HeuristicLab.Data;27 using HeuristicLab.Optimization;28 using System.Collections.Generic;29 28 30 29 namespace HeuristicLab.Problems.VehicleRouting.Encodings.GVR { … … 38 37 [StorableConstructor] 39 38 private GVRCrossover(bool deserializing) : base(deserializing) { } 40 39 private GVRCrossover(GVRCrossover original, Cloner cloner) : base(original, cloner) { } 40 public override IDeepCloneable Clone(Cloner cloner) { 41 return new GVRCrossover(this, cloner); 42 } 41 43 public GVRCrossover() { 42 44 Parameters.Add(new LookupParameter<IRandom>("Random", "The pseudo random number generator which should be used for stochastic manipulation operators.")); 43 44 45 //remove unused parameters 45 46 Parameters.Remove("ReadyTime"); -
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/GVR/GVREncoding.cs
r4352 r4722 20 20 #endregion 21 21 22 using System.Collections.Generic; 22 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Data; 25 using HeuristicLab.Encodings.PermutationEncoding;26 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 using System.Drawing;28 using System.Collections.Generic;29 27 using HeuristicLab.Problems.VehicleRouting.Encodings.General; 30 28 … … 75 73 return tours; 76 74 } 77 78 public override IDeepCloneable Clone(HeuristicLab.Common.Cloner cloner) { 79 GVREncoding clone = new GVREncoding(capacity, demand); 80 cloner.RegisterClonedObject(this, clone); 81 clone.Tours = (ItemList<Tour>)cloner.Clone(this.Tours); 82 83 return clone; 75 76 [StorableConstructor] 77 protected GVREncoding(bool deserializing) : base(deserializing) { } 78 protected GVREncoding(GVREncoding original, Cloner cloner) 79 : base(original, cloner) { 80 this.capacity = original.capacity; 81 this.demand = original.demand; 82 this.Tours = cloner.Clone(original.Tours); 84 83 } 85 84 public override IDeepCloneable Clone(Cloner cloner) { 85 return new GVREncoding(this, cloner); 86 } 86 87 public GVREncoding(DoubleValue capacity, DoubleArray demand) 87 88 : base() { 88 89 this.capacity = capacity; 89 90 this.demand = demand; 90 }91 92 [StorableConstructor]93 private GVREncoding(bool serializing)94 : base() {95 91 } 96 92 -
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/GVR/Manipulators/GVRDisplacementManipulator.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.GVR { … … 33 31 [StorableConstructor] 34 32 private GVRDisplacementManipulator(bool deserializing) : base(deserializing) { } 35 33 private GVRDisplacementManipulator(GVRDisplacementManipulator original, Cloner cloner) : base(original, cloner) { } 34 public override IDeepCloneable Clone(Cloner cloner) { 35 return new GVRDisplacementManipulator(this, cloner); 36 } 36 37 public GVRDisplacementManipulator() 37 38 : base() { -
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/GVR/Manipulators/GVRInsertionManipulator.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.Parameters;25 24 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 using HeuristicLab.Data;27 25 28 26 namespace HeuristicLab.Problems.VehicleRouting.Encodings.GVR { … … 32 30 [StorableConstructor] 33 31 private GVRInsertionManipulator(bool deserializing) : base(deserializing) { } 34 35 public GVRInsertionManipulator()36 : base() {32 private GVRInsertionManipulator(GVRInsertionManipulator original, Cloner cloner) : base(original, cloner) { } 33 public override IDeepCloneable Clone(Cloner cloner) { 34 return new GVRInsertionManipulator(this, cloner); 37 35 } 36 public GVRInsertionManipulator() : base() { } 38 37 39 38 protected override void Manipulate(IRandom random, GVREncoding individual) { -
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/GVR/Manipulators/GVRInversionManipulator.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.Parameters;25 24 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 using HeuristicLab.Data;27 25 28 26 namespace HeuristicLab.Problems.VehicleRouting.Encodings.GVR { … … 32 30 [StorableConstructor] 33 31 private GVRInversionManipulator(bool deserializing) : base(deserializing) { } 34 35 public GVRInversionManipulator()36 : base() {32 private GVRInversionManipulator(GVRInversionManipulator original, Cloner cloner) : base(original, cloner) { } 33 public override IDeepCloneable Clone(Cloner cloner) { 34 return new GVRInversionManipulator(this, cloner); 37 35 } 36 public GVRInversionManipulator() : base() { } 38 37 39 38 protected override void Manipulate(IRandom random, GVREncoding individual) { -
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/GVR/Manipulators/GVRManipulator.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.Optimization; 24 25 using HeuristicLab.Parameters; 25 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 using HeuristicLab.Data;27 using HeuristicLab.Optimization;28 27 29 28 namespace HeuristicLab.Problems.VehicleRouting.Encodings.GVR { … … 37 36 [StorableConstructor] 38 37 protected GVRManipulator(bool deserializing) : base(deserializing) { } 39 38 protected GVRManipulator(GVRManipulator original, Cloner cloner) : base(original, cloner) { } 40 39 public GVRManipulator() { 41 40 Parameters.Add(new LookupParameter<IRandom>("Random", "The pseudo random number generator which should be used for stochastic manipulation operators.")); -
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/GVR/Manipulators/GVRSwapManipulator.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.Parameters;25 24 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 using HeuristicLab.Data;27 25 28 26 namespace HeuristicLab.Problems.VehicleRouting.Encodings.GVR { … … 32 30 [StorableConstructor] 33 31 private GVRSwapManipulator(bool deserializing) : base(deserializing) { } 34 32 private GVRSwapManipulator(GVRSwapManipulator original, Cloner cloner) : base(original, cloner) { } 33 public override IDeepCloneable Clone(Cloner cloner) { 34 return new GVRSwapManipulator(this, cloner); 35 } 35 36 public GVRSwapManipulator() 36 37 : base() {
Note: See TracChangeset
for help on using the changeset viewer.