Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/22/10 13:24:18 (13 years ago)
Author:
vdorfer
Message:

#1040:

  • adapted NSGAII to new cloning implementation
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/NSGA2/HeuristicLab.Algorithms.NSGA2/3.3/CrowdedComparisonSorter.cs

    r4067 r4902  
    2828using HeuristicLab.Parameters;
    2929using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     30using HeuristicLab.Common;
    3031
    3132namespace HeuristicLab.Algorithms.NSGA2 {
     
    4748    }
    4849
     50    [StorableConstructor]
     51    protected CrowdedComparisonSorter(bool deserializing) : base(deserializing) { }
     52    protected CrowdedComparisonSorter(CrowdedComparisonSorter original, Cloner cloner) : base(original, cloner) { }
    4953    public CrowdedComparisonSorter() {
    5054      Parameters.Add(new ScopeTreeLookupParameter<IntValue>("Rank", "The rank of the solution."));
     
    8892      #endregion
    8993    }
     94
     95    public override IDeepCloneable Clone(Cloner cloner) {
     96      return new CrowdedComparisonSorter(this, cloner);
     97    }
    9098  }
    9199}
Note: See TracChangeset for help on using the changeset viewer.