Changeset 16723 for branches/2521_ProblemRefactoring/HeuristicLab.Algorithms.ParameterlessPopulationPyramid/3.3/ParameterlessPopulationPyramid.cs
- Timestamp:
- 03/28/19 16:54:20 (6 years ago)
- Location:
- branches/2521_ProblemRefactoring
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring
- Property svn:mergeinfo changed
-
branches/2521_ProblemRefactoring/HeuristicLab.Algorithms.ParameterlessPopulationPyramid/3.3/ParameterlessPopulationPyramid.cs
r16692 r16723 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 * and the BEACON Center for the Study of Evolution in Action. 5 5 * … … 32 32 using HeuristicLab.Optimization; 33 33 using HeuristicLab.Parameters; 34 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;34 using HEAL.Attic; 35 35 using HeuristicLab.Random; 36 36 … … 40 40 // and the original source code in C++11 available from: https://github.com/brianwgoldman/Parameter-less_Population_Pyramid 41 41 [Item("Parameter-less Population Pyramid (P3)", "Binary value optimization algorithm which requires no configuration. B. W. Goldman and W. F. Punch, Parameter-less Population Pyramid, GECCO, pp. 785–792, 2014")] 42 [Storable Class]42 [StorableType("CAD84CAB-1ECC-4D76-BDC5-701AAF690E17")] 43 43 [Creatable(CreatableAttribute.Categories.PopulationBasedAlgorithms, Priority = 400)] 44 44 public class ParameterlessPopulationPyramid : BasicAlgorithm { … … 165 165 166 166 [StorableConstructor] 167 protected ParameterlessPopulationPyramid( bool deserializing) : base(deserializing) { }167 protected ParameterlessPopulationPyramid(StorableConstructorFlag _) : base(_) { } 168 168 169 169 protected ParameterlessPopulationPyramid(ParameterlessPopulationPyramid original, Cloner cloner) … … 230 230 protected override void Initialize(CancellationToken cancellationToken) { 231 231 // Set up the algorithm 232 if (SetSeedRandomly) Seed = new System.Random().Next();232 if (SetSeedRandomly) Seed = RandomSeedGenerator.GetSeed(); 233 233 pyramid = new List<Population>(); 234 234 seen.Clear();
Note: See TracChangeset
for help on using the changeset viewer.