Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/29/10 18:28:48 (14 years ago)
Author:
abeham
Message:

#922

  • Refactored HeuristicLab.Encodings.RealVectorEncoding
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/CloningRefactoring/HeuristicLab.Encodings.RealVectorEncoding/3.3/Crossovers/SimulatedBinaryCrossover.cs

    r4068 r4672  
    2525using HeuristicLab.Parameters;
    2626using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     27using HeuristicLab.Common;
    2728
    2829namespace HeuristicLab.Encodings.RealVectorEncoding {
     
    4445    }
    4546
     47    [StorableConstructor]
     48    protected SimulatedBinaryCrossover(bool deserializing) : base(deserializing) { }
     49    protected SimulatedBinaryCrossover(SimulatedBinaryCrossover original, Cloner cloner) : base(original, cloner) { }
    4650    /// <summary>
    4751    /// Initializes a new instance of <see cref="SimulatedBinaryCrossover"/> with one
     
    5155      : base() {
    5256      Parameters.Add(new ValueLookupParameter<DoubleValue>("Contiguity", "Specifies whether the crossover should produce very different (small value) or very similar (large value) children. Valid values must be greater or equal to 0.", new DoubleValue(2)));
     57    }
     58
     59    public override IDeepCloneable Clone(Cloner cloner) {
     60      return new SimulatedBinaryCrossover(this, cloner);
    5361    }
    5462
Note: See TracChangeset for help on using the changeset viewer.