- Timestamp:
- 07/07/19 23:40:10 (5 years ago)
- Location:
- stable
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
-
stable/HeuristicLab.Selection/3.3/EvolutionStrategyOffspringSelector.cs
r15584 r17097 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 8Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.Runtime.InteropServices;25 24 using HeuristicLab.Common; 26 25 using HeuristicLab.Core; … … 28 27 using HeuristicLab.Operators; 29 28 using HeuristicLab.Parameters; 30 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;29 using HEAL.Attic; 31 30 32 31 namespace HeuristicLab.Selection { 33 32 [Item("EvolutionStrategyOffspringSelector", "Selects among the offspring population those that are designated successful and discards the unsuccessful offspring, except for some lucky losers. It expects the parent scopes to be below the first sub-scope, and offspring scopes to be below the second sub-scope separated again in two sub-scopes, the first with the failed offspring and the second with successful offspring.")] 34 [Storable Class]33 [StorableType("CE585C3C-5139-44F0-9CB2-CC901A290831")] 35 34 public class EvolutionStrategyOffspringSelector : SingleSuccessorOperator { 36 35 [StorableType("F1CA99A7-E9C2-49F3-8030-5CEE407357AA")] 37 36 private class FitnessComparer : IComparer<IScope> { 38 37 39 38 #region IComparer<IScope> Member 40 41 private String qualityParameterName; 39 [Storable] 40 private string qualityParameterName; 41 [Storable] 42 42 private bool maximization; 43 43 44 public FitnessComparer(String qualityParamName, bool maximization) { 44 [StorableConstructor] 45 protected FitnessComparer(StorableConstructorFlag _) { } 46 47 public FitnessComparer(string qualityParamName, bool maximization) { 45 48 this.qualityParameterName = qualityParamName; 46 49 this.maximization = maximization; … … 113 116 114 117 [StorableConstructor] 115 protected EvolutionStrategyOffspringSelector( bool deserializing) : base(deserializing) { }118 protected EvolutionStrategyOffspringSelector(StorableConstructorFlag _) : base(_) { } 116 119 protected EvolutionStrategyOffspringSelector(EvolutionStrategyOffspringSelector original, Cloner cloner) : base(original, cloner) { } 117 120 public override IDeepCloneable Clone(Cloner cloner) {
Note: See TracChangeset
for help on using the changeset viewer.