Changeset 4722 for trunk/sources/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Crossovers/NPointCrossover.cs
- Timestamp:
- 11/06/10 01:56:04 (13 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 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.BinaryVectorEncoding/3.3/Crossovers/NPointCrossover.cs
r4068 r4722 22 22 using System; 23 23 using System.Collections.Generic; 24 using HeuristicLab.Common; 24 25 using HeuristicLab.Core; 25 26 using HeuristicLab.Data; … … 36 37 [Item("NPointCrossover", "N point crossover for binary vectors. It is implemented as described in Eiben, A.E. and Smith, J.E. 2003. Introduction to Evolutionary Computation. Natural Computing Series, Springer-Verlag Berlin Heidelberg.")] 37 38 [StorableClass] 38 public class NPointCrossover : BinaryVectorCrossover {39 public sealed class NPointCrossover : BinaryVectorCrossover { 39 40 /// <summary> 40 41 /// Number of crossover points. … … 44 45 } 45 46 47 [StorableConstructor] 48 private NPointCrossover(bool deserializing) : base(deserializing) { } 49 private NPointCrossover(NPointCrossover original, Cloner cloner) : base(original, cloner) { } 46 50 /// <summary> 47 51 /// Initializes a new instance of <see cref="NPointCrossover"/> 48 52 /// </summary> 49 public NPointCrossover() { 53 public NPointCrossover() 54 : base() { 50 55 Parameters.Add(new ValueLookupParameter<IntValue>("N", "Number of crossover points", new IntValue(2))); 56 } 57 58 public override IDeepCloneable Clone(Cloner cloner) { 59 return new NPointCrossover(this, cloner); 51 60 } 52 61
Note: See TracChangeset
for help on using the changeset viewer.