- Timestamp:
- 11/06/10 01:56:04 (14 years ago)
- Location:
- trunk/sources
- Files:
-
- 12 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.Encodings.PermutationEncoding/3.3/Crossovers/CosaCrossover.cs
r4477 r4722 21 21 22 22 using System; 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; … … 37 38 [StorableClass] 38 39 public class CosaCrossover : PermutationCrossover { 40 [StorableConstructor] 41 protected CosaCrossover(bool deserializing) : base(deserializing) { } 42 protected CosaCrossover(CosaCrossover original, Cloner cloner) : base(original, cloner) { } 43 public CosaCrossover() : base() { } 44 45 public override IDeepCloneable Clone(Cloner cloner) { 46 return new CosaCrossover(this, cloner); 47 } 48 39 49 /// <summary> 40 50 /// The operator actually performs a 2-opt mutation on the first parent, but it uses the second parent to determine which new edge should be inserted. -
trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Crossovers/CyclicCrossover.cs
r4477 r4722 21 21 22 22 using System; 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; … … 34 35 [StorableClass] 35 36 public class CyclicCrossover : PermutationCrossover { 37 [StorableConstructor] 38 protected CyclicCrossover(bool deserializing) : base(deserializing) { } 39 protected CyclicCrossover(CyclicCrossover original, Cloner cloner) : base(original, cloner) { } 40 public CyclicCrossover() : base() { } 41 42 public override IDeepCloneable Clone(Cloner cloner) { 43 return new CyclicCrossover(this, cloner); 44 } 45 36 46 /// <summary> 37 47 /// Performs the cyclic crossover on <paramref name="parent1"/> and <paramref name="parent2"/>. -
trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Crossovers/CyclicCrossover2.cs
r4068 r4722 21 21 22 22 using System; 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; … … 35 36 [StorableClass] 36 37 public class CyclicCrossover2 : PermutationCrossover { 38 [StorableConstructor] 39 protected CyclicCrossover2(bool deserializing) : base(deserializing) { } 40 protected CyclicCrossover2(CyclicCrossover2 original, Cloner cloner) : base(original, cloner) { } 41 public CyclicCrossover2() : base() { } 42 43 public override IDeepCloneable Clone(Cloner cloner) { 44 return new CyclicCrossover2(this, cloner); 45 } 46 37 47 /// <summary> 38 48 /// Performs a variant of the cyclic crossover on <paramref name="parent1"/> and <paramref name="parent2"/>. -
trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Crossovers/EdgeRecombinationCrossover.cs
r4477 r4722 21 21 22 22 using System; 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; … … 37 38 [StorableClass] 38 39 public class EdgeRecombinationCrossover : PermutationCrossover { 40 [StorableConstructor] 41 protected EdgeRecombinationCrossover(bool deserializing) : base(deserializing) { } 42 protected EdgeRecombinationCrossover(EdgeRecombinationCrossover original, Cloner cloner) : base(original, cloner) { } 43 public EdgeRecombinationCrossover() : base() { } 44 45 public override IDeepCloneable Clone(Cloner cloner) { 46 return new EdgeRecombinationCrossover(this, cloner); 47 } 48 39 49 /// <summary> 40 50 /// Performs a cross over permutation of <paramref name="parent1"/> and <paramref name="2"/> -
trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Crossovers/MaximalPreservativeCrossover.cs
r4477 r4722 21 21 22 22 using System; 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; … … 37 38 [StorableClass] 38 39 public class MaximalPreservativeCrossover : PermutationCrossover { 40 [StorableConstructor] 41 protected MaximalPreservativeCrossover(bool deserializing) : base(deserializing) { } 42 protected MaximalPreservativeCrossover(MaximalPreservativeCrossover original, Cloner cloner) : base(original, cloner) { } 43 public MaximalPreservativeCrossover() : base() { } 44 45 public override IDeepCloneable Clone(Cloner cloner) { 46 return new MaximalPreservativeCrossover(this, cloner); 47 } 48 39 49 /// <summary> 40 50 /// Performs the maximal preservative crossover on <paramref name="parent1"/> and <paramref name="parent2"/> -
trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Crossovers/MultiPermutationCrossover.cs
r3674 r4722 23 23 using System.Linq; 24 24 using HeuristicLab.Collections; 25 using HeuristicLab.Common; 25 26 using HeuristicLab.Core; 26 27 using HeuristicLab.Operators; … … 50 51 51 52 [StorableConstructor] 52 private MultiPermutationCrossover(bool deserializing) : base(deserializing) { } 53 protected MultiPermutationCrossover(bool deserializing) : base(deserializing) { } 54 protected MultiPermutationCrossover(MultiPermutationCrossover original, Cloner cloner) : base(original, cloner) { } 53 55 public MultiPermutationCrossover() 54 56 : base() { … … 62 64 Operators.Add((IPermutationCrossover)Activator.CreateInstance(type), true); 63 65 } 66 } 67 68 public override IDeepCloneable Clone(Cloner cloner) { 69 return new MultiPermutationCrossover(this, cloner); 64 70 } 65 71 -
trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Crossovers/OrderBasedCrossover.cs
r4477 r4722 21 21 22 22 using System; 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; … … 37 38 [StorableClass] 38 39 public class OrderBasedCrossover : PermutationCrossover { 40 [StorableConstructor] 41 protected OrderBasedCrossover(bool deserializing) : base(deserializing) { } 42 protected OrderBasedCrossover(OrderBasedCrossover original, Cloner cloner) : base(original, cloner) { } 43 public OrderBasedCrossover() : base() { } 44 45 public override IDeepCloneable Clone(Cloner cloner) { 46 return new OrderBasedCrossover(this, cloner); 47 } 48 39 49 /// <summary> 40 50 /// Performs a cross over permutation of <paramref name="parent1"/> and <paramref name="parent2"/> by -
trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Crossovers/OrderCrossover.cs
r4477 r4722 21 21 22 22 using System; 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; … … 37 38 [StorableClass] 38 39 public class OrderCrossover : PermutationCrossover { 40 [StorableConstructor] 41 protected OrderCrossover(bool deserializing) : base(deserializing) { } 42 protected OrderCrossover(OrderCrossover original, Cloner cloner) : base(original, cloner) { } 43 public OrderCrossover() : base() { } 44 45 public override IDeepCloneable Clone(Cloner cloner) { 46 return new OrderCrossover(this, cloner); 47 } 48 39 49 /// <summary> 40 50 /// Performs the order crossover of two permutations. -
trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Crossovers/OrderCrossover2.cs
r4068 r4722 21 21 22 22 using System; 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; … … 36 37 [StorableClass] 37 38 public class OrderCrossover2 : PermutationCrossover { 39 [StorableConstructor] 40 protected OrderCrossover2(bool deserializing) : base(deserializing) { } 41 protected OrderCrossover2(OrderCrossover2 original, Cloner cloner) : base(original, cloner) { } 42 public OrderCrossover2() : base() { } 43 44 public override IDeepCloneable Clone(Cloner cloner) { 45 return new OrderCrossover2(this, cloner); 46 } 47 38 48 /// <summary> 39 49 /// Performs a slight variation of the order crossover of two permutations. -
trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Crossovers/PartiallyMatchedCrossover.cs
r4545 r4722 21 21 22 22 using System; 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; … … 36 37 [StorableClass] 37 38 public class PartiallyMatchedCrossover : PermutationCrossover { 39 [StorableConstructor] 40 protected PartiallyMatchedCrossover(bool deserializing) : base(deserializing) { } 41 protected PartiallyMatchedCrossover(PartiallyMatchedCrossover original, Cloner cloner) : base(original, cloner) { } 42 public PartiallyMatchedCrossover() : base() { } 43 44 public override IDeepCloneable Clone(Cloner cloner) { 45 return new PartiallyMatchedCrossover(this, cloner); 46 } 47 38 48 /// <summary> 39 49 /// Performs the partially matched crossover on <paramref name="parent1"/> and <paramref name="parent2"/>. -
trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Crossovers/PositionBasedCrossover.cs
r4477 r4722 21 21 22 22 using System; 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; … … 34 35 [StorableClass] 35 36 public class PositionBasedCrossover : PermutationCrossover { 37 [StorableConstructor] 38 protected PositionBasedCrossover(bool deserializing) : base(deserializing) { } 39 protected PositionBasedCrossover(PositionBasedCrossover original, Cloner cloner) : base(original, cloner) { } 40 public PositionBasedCrossover() : base() { } 41 42 public override IDeepCloneable Clone(Cloner cloner) { 43 return new PositionBasedCrossover(this, cloner); 44 } 45 36 46 /// <summary> 37 47 /// Performs a cross over permutation of <paramref name="parent1"/> and <paramref name="parent2"/>
Note: See TracChangeset
for help on using the changeset viewer.