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/NSGA2MainLoop.cs

    r4068 r4902  
    2727using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2828using HeuristicLab.Selection;
     29using HeuristicLab.Common;
    2930
    3031namespace HeuristicLab.Algorithms.NSGA2 {
     
    7879
    7980    [StorableConstructor]
    80     private NSGA2MainLoop(bool deserializing) : base() { }
     81    protected NSGA2MainLoop(bool deserializing) : base(deserializing) { }
     82    protected NSGA2MainLoop(NSGA2MainLoop original, Cloner cloner) : base(original, cloner) { }
    8183    public NSGA2MainLoop()
    8284      : base() {
     
    218220      #endregion
    219221    }
     222
     223    public override IDeepCloneable Clone(Cloner cloner) {
     224      return new NSGA2MainLoop(this, cloner);
     225    }
    220226  }
    221227}
Note: See TracChangeset for help on using the changeset viewer.