- Timestamp:
- 12/28/18 16:10:48 (6 years ago)
- Location:
- branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.ALPS/3.3
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.ALPS/3.3/AgingScheme.cs
r16453 r16462 24 24 using System.Linq; 25 25 using HeuristicLab.Data; 26 using HEAL.Fossil; 26 27 27 28 namespace HeuristicLab.Algorithms.ALPS { … … 29 30 /// Defines the growth of age limits for the layers. 30 31 /// </summary> 32 [StorableType("136DA41B-0AC1-49A8-B4D9-DCE73BDB7110")] 31 33 public enum AgingScheme { 32 34 Linear, -
branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.ALPS/3.3/AlpsGeneticAlgorithm.cs
r16453 r16462 32 32 using HeuristicLab.Optimization.Operators; 33 33 using HeuristicLab.Parameters; 34 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;34 using HEAL.Fossil; 35 35 using HeuristicLab.PluginInfrastructure; 36 36 using HeuristicLab.Random; … … 40 40 [Item("ALPS Genetic Algorithm", "A genetic algorithm within an age-layered population structure as described in Gregory S. Hornby. 2006. ALPS: the age-layered population structure for reducing the problem of premature convergence. In Proceedings of the 8th annual conference on Genetic and evolutionary computation (GECCO '06). 815-822.")] 41 41 [Creatable(CreatableAttribute.Categories.PopulationBasedAlgorithms, Priority = 160)] 42 [Storable Class]42 [StorableType("4A240A90-EB87-43D1-BD34-99A605B89C4D")] 43 43 public sealed class AlpsGeneticAlgorithm : HeuristicOptimizationEngineAlgorithm, IStorableContent { 44 44 public string Filename { get; set; } … … 247 247 #region Constructors 248 248 [StorableConstructor] 249 private AlpsGeneticAlgorithm(bool deserializing) 250 : base(deserializing) { } 249 private AlpsGeneticAlgorithm(StorableConstructorFlag _) : base(_) { } 251 250 [StorableHook(HookType.AfterDeserialization)] 252 251 private void AfterDeserialization() { -
branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.ALPS/3.3/AlpsGeneticAlgorithmMainLoop.cs
r16453 r16462 27 27 using HeuristicLab.Optimization.Operators; 28 28 using HeuristicLab.Parameters; 29 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;29 using HEAL.Fossil; 30 30 using HeuristicLab.Selection; 31 31 … … 33 33 34 34 [Item("AlpsGeneticAlgorithmMainLoop", "An ALPS genetic algorithm main loop operator.")] 35 [Storable Class]35 [StorableType("3DDD5DE1-4ACF-4E85-9A4C-30D930C44B56")] 36 36 public sealed class AlpsGeneticAlgorithmMainLoop : AlgorithmOperator { 37 37 #region Parameter Properties … … 121 121 122 122 [StorableConstructor] 123 private AlpsGeneticAlgorithmMainLoop(bool deserializing) 124 : base(deserializing) { } 123 private AlpsGeneticAlgorithmMainLoop(StorableConstructorFlag _) : base(_) { } 125 124 private AlpsGeneticAlgorithmMainLoop(AlpsGeneticAlgorithmMainLoop original, Cloner cloner) 126 125 : base(original, cloner) { } -
branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.ALPS/3.3/AlpsGeneticAlgorithmMainOperator.cs
r16453 r16462 26 26 using HeuristicLab.Optimization.Operators; 27 27 using HeuristicLab.Parameters; 28 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;28 using HEAL.Fossil; 29 29 using HeuristicLab.Selection; 30 30 31 31 namespace HeuristicLab.Algorithms.ALPS { 32 32 [Item("AlpsGeneticAlgorithmMainOperator", "An operator that represents the core of an ALPS genetic algorithm.")] 33 [Storable Class]33 [StorableType("3F16B0C0-9054-4FE8-A6B1-2CCED065AC26")] 34 34 public sealed class AlpsGeneticAlgorithmMainOperator : AlgorithmOperator { 35 35 #region Parameter properties … … 88 88 89 89 [StorableConstructor] 90 private AlpsGeneticAlgorithmMainOperator( bool deserializing) : base(deserializing) { }90 private AlpsGeneticAlgorithmMainOperator(StorableConstructorFlag _) : base(_) { } 91 91 private AlpsGeneticAlgorithmMainOperator(AlpsGeneticAlgorithmMainOperator original, Cloner cloner) 92 92 : base(original, cloner) { -
branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.ALPS/3.3/AlpsOffspringSelectionGeneticAlgorithm.cs
r16453 r16462 32 32 using HeuristicLab.Optimization.Operators; 33 33 using HeuristicLab.Parameters; 34 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;34 using HEAL.Fossil; 35 35 using HeuristicLab.PluginInfrastructure; 36 36 using HeuristicLab.Random; … … 40 40 [Item("ALPS OffspringSelection Genetic Algorithm", "An offspring selection genetic algorithm within an age-layered population structure.")] 41 41 [Creatable(CreatableAttribute.Categories.PopulationBasedAlgorithms, Priority = 162)] 42 [Storable Class]42 [StorableType("4CA6AFE2-8EE9-4724-AA5C-624C734703FD")] 43 43 public sealed class AlpsOffspringSelectionGeneticAlgorithm : HeuristicOptimizationEngineAlgorithm, IStorableContent { 44 44 public string Filename { get; set; } … … 294 294 #region Constructors 295 295 [StorableConstructor] 296 private AlpsOffspringSelectionGeneticAlgorithm(bool deserializing) 297 : base(deserializing) { } 296 private AlpsOffspringSelectionGeneticAlgorithm(StorableConstructorFlag _) : base(_) { } 298 297 [StorableHook(HookType.AfterDeserialization)] 299 298 private void AfterDeserialization() { -
branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.ALPS/3.3/AlpsOffspringSelectionGeneticAlgorithmMainLoop.cs
r16453 r16462 27 27 using HeuristicLab.Optimization.Operators; 28 28 using HeuristicLab.Parameters; 29 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;29 using HEAL.Fossil; 30 30 using HeuristicLab.Selection; 31 31 … … 33 33 34 34 [Item("AlpsOffspringSelectionGeneticAlgorithmMainLoop", "An ALPS offspring selection genetic algorithm main loop operator.")] 35 [Storable Class]35 [StorableType("C8DF9B75-7008-405D-B38A-15C1C22110B0")] 36 36 public sealed class AlpsOffspringSelectionGeneticAlgorithmMainLoop : AlgorithmOperator { 37 37 #region Parameter Properties … … 134 134 135 135 [StorableConstructor] 136 private AlpsOffspringSelectionGeneticAlgorithmMainLoop(bool deserializing) 137 : base(deserializing) { } 136 private AlpsOffspringSelectionGeneticAlgorithmMainLoop(StorableConstructorFlag _) : base(_) { } 138 137 private AlpsOffspringSelectionGeneticAlgorithmMainLoop(AlpsOffspringSelectionGeneticAlgorithmMainLoop original, Cloner cloner) 139 138 : base(original, cloner) { } -
branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.ALPS/3.3/AlpsOffspringSelectionGeneticAlgorithmMainOperator.cs
r16453 r16462 26 26 using HeuristicLab.Optimization.Operators; 27 27 using HeuristicLab.Parameters; 28 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;28 using HEAL.Fossil; 29 29 using HeuristicLab.Selection; 30 30 … … 34 34 /// </summary> 35 35 [Item("AlpsOffspringSelectionGeneticAlgorithmMainOperator", "An operator that represents the core of an alps offspring selection genetic algorithm.")] 36 [Storable Class]36 [StorableType("4DBAA32D-84EB-40C0-838D-ACCF9A9C41FA")] 37 37 public sealed class AlpsOffspringSelectionGeneticAlgorithmMainOperator : AlgorithmOperator { 38 38 #region Parameter properties … … 110 110 111 111 [StorableConstructor] 112 private AlpsOffspringSelectionGeneticAlgorithmMainOperator( bool deserializing) : base(deserializing) { }112 private AlpsOffspringSelectionGeneticAlgorithmMainOperator(StorableConstructorFlag _) : base(_) { } 113 113 private AlpsOffspringSelectionGeneticAlgorithmMainOperator(AlpsOffspringSelectionGeneticAlgorithmMainOperator original, Cloner cloner) 114 114 : base(original, cloner) { -
branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.ALPS/3.3/AlpsOffspringSelector.cs
r16453 r16462 26 26 using HeuristicLab.Operators; 27 27 using HeuristicLab.Parameters; 28 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;28 using HEAL.Fossil; 29 29 30 30 namespace HeuristicLab.Algorithms.ALPS { 31 31 [Item("AlpsOffspringSelector", "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.")] 32 [Storable Class]32 [StorableType("69C49365-AF9B-474A-A994-7115469B03B7")] 33 33 public class AlpsOffspringSelector : SingleSuccessorOperator { 34 34 public IValueLookupParameter<DoubleValue> MaximumSelectionPressureParameter { … … 69 69 70 70 [StorableConstructor] 71 protected AlpsOffspringSelector( bool deserializing) : base(deserializing) { }71 protected AlpsOffspringSelector(StorableConstructorFlag _) : base(_) { } 72 72 protected AlpsOffspringSelector(AlpsOffspringSelector original, Cloner cloner) : base(original, cloner) { } 73 73 public override IDeepCloneable Clone(Cloner cloner) { -
branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.ALPS/3.3/Analyzers/AgeDistributionAnalyzer.cs
r16453 r16462 28 28 using HeuristicLab.Optimization; 29 29 using HeuristicLab.Parameters; 30 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;30 using HEAL.Fossil; 31 31 32 32 namespace HeuristicLab.Algorithms.ALPS { 33 33 // Based on QualityDistributionAnalyzer 34 34 [Item("AgeDistributionAnalyzer", "Analyzes the distribution of the ages in that it adds a Histogram of them into the result collection.")] 35 [Storable Class]35 [StorableType("714CE0E4-A88F-44A1-A2D0-92F4D8252C0C")] 36 36 public sealed class AgeDistributionAnalyzer : SingleSuccessorOperator, IAnalyzer, IIterationBasedOperator { 37 37 … … 69 69 70 70 [StorableConstructor] 71 private AgeDistributionAnalyzer(bool deserializing) 72 : base(deserializing) { } 71 private AgeDistributionAnalyzer(StorableConstructorFlag _) : base(_) { } 73 72 private AgeDistributionAnalyzer(AgeDistributionAnalyzer original, Cloner cloner) 74 73 : base(original, cloner) { } -
branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.ALPS/3.3/Analyzers/OldestAverageYoungestAgeAnalyzer.cs
r16453 r16462 29 29 using HeuristicLab.Optimization.Operators; 30 30 using HeuristicLab.Parameters; 31 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;31 using HEAL.Fossil; 32 32 33 33 namespace HeuristicLab.Algorithms.ALPS { 34 34 [Item("OldestAverageYoungestAgeAnalyzer", "An operator which calculates the current oldest, average and youngest age in the scope tree.")] 35 [Storable Class]35 [StorableType("1AE2C4EF-BFCB-439C-AD5E-00E7740FD3D0")] 36 36 public sealed class OldestAverageYoungestAgeAnalyzer : AlgorithmOperator, IAnalyzer { 37 37 #region Parameter properties … … 67 67 #region Storing & Cloning 68 68 [StorableConstructor] 69 private OldestAverageYoungestAgeAnalyzer( bool deserializing) : base(deserializing) { }69 private OldestAverageYoungestAgeAnalyzer(StorableConstructorFlag _) : base(_) { } 70 70 private OldestAverageYoungestAgeAnalyzer(OldestAverageYoungestAgeAnalyzer original, Cloner cloner) 71 71 : base(original, cloner) { -
branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.ALPS/3.3/Analyzers/OldestAverageYoungestAgeCalculator.cs
r16453 r16462 25 25 using HeuristicLab.Operators; 26 26 using HeuristicLab.Parameters; 27 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;27 using HEAL.Fossil; 28 28 29 29 namespace HeuristicLab.Algorithms.ALPS { 30 30 [Item("OldestAverageYoungestAgeCalculator", "An operator which calculates the oldest, average and youngest age of solutions in the scope tree.")] 31 [Storable Class]31 [StorableType("DF4FA02E-C328-4A6E-9096-5BFADFA9F5DE")] 32 32 public sealed class OldestAverageYoungestAgeCalculator : SingleSuccessorOperator { 33 33 public IScopeTreeLookupParameter<DoubleValue> AgeParameter { … … 46 46 #region Storing & Cloning 47 47 [StorableConstructor] 48 private OldestAverageYoungestAgeCalculator( bool deserializing) : base(deserializing) { }48 private OldestAverageYoungestAgeCalculator(StorableConstructorFlag _) : base(_) { } 49 49 private OldestAverageYoungestAgeCalculator(OldestAverageYoungestAgeCalculator original, Cloner cloner) : base(original, cloner) { } 50 50 public override IDeepCloneable Clone(Cloner cloner) { -
branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.ALPS/3.3/EldersSelector.cs
r16453 r16462 26 26 using HeuristicLab.Data; 27 27 using HeuristicLab.Parameters; 28 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;28 using HEAL.Fossil; 29 29 using HeuristicLab.Selection; 30 30 … … 32 32 33 33 [Item("EldersSelector", "Select all individuals which are too old for their current layer.")] 34 [Storable Class]34 [StorableType("5C81CE34-F8D4-4B92-A2E4-A62332D68B1C")] 35 35 public sealed class EldersSelector : Selector { 36 36 public IScopeTreeLookupParameter<DoubleValue> AgeParameter { … … 48 48 49 49 [StorableConstructor] 50 private EldersSelector(bool deserializing) 51 : base(deserializing) { } 50 private EldersSelector(StorableConstructorFlag _) : base(_) { } 52 51 private EldersSelector(EldersSelector original, Cloner cloner) 53 52 : base(original, cloner) { } -
branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.ALPS/3.3/HeuristicLab.Algorithms.ALPS-3.3.csproj
r16454 r16462 83 83 <HintPath>..\..\packages\Google.Protobuf.3.6.1\lib\net45\Google.Protobuf.dll</HintPath> 84 84 </Reference> 85 <Reference Include="HEAL.Fossil, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">85 <Reference Include="HEAL.Fossil, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 86 86 <HintPath>..\..\packages\HEAL.Fossil.1.0.0\lib\netstandard2.0\HEAL.Fossil.dll</HintPath> 87 87 </Reference> -
branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.ALPS/3.3/LastLayerCloner.cs
r16453 r16462 26 26 using HeuristicLab.Operators; 27 27 using HeuristicLab.Parameters; 28 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;28 using HEAL.Fossil; 29 29 30 30 namespace HeuristicLab.Algorithms.ALPS { 31 31 [Item("LastLayerCloner", "An operator that creates a new layer by cloning the current last one.")] 32 [Storable Class]32 [StorableType("A0EC32A3-DBB1-4941-BE2A-880C7812C57B")] 33 33 public sealed class LastLayerCloner : SingleSuccessorOperator { 34 34 public OperatorParameter NewLayerOperatorParameter { … … 42 42 43 43 [StorableConstructor] 44 private LastLayerCloner( bool deserializing) : base(deserializing) { }44 private LastLayerCloner(StorableConstructorFlag _) : base(_) { } 45 45 46 46 private LastLayerCloner(LastLayerCloner original, Cloner cloner) -
branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.ALPS/3.3/MatingPoolCreator.cs
r16453 r16462 25 25 using HeuristicLab.Operators; 26 26 using HeuristicLab.Parameters; 27 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;27 using HEAL.Fossil; 28 28 29 29 namespace HeuristicLab.Algorithms.ALPS { 30 30 [Item("MatingPoolCreator", "An operator which creates mating pools based on a set of sub-populations. For each sub-population, the individuals from the previous sub-population are copied into the current sub-population.")] 31 [Storable Class]31 [StorableType("F8B8EAF4-84FC-4E38-B3CB-82EEDBAFE083")] 32 32 public sealed class MatingPoolCreator : SingleSuccessorOperator { 33 33 public IValueLookupParameter<IntValue> MatingPoolRangeParameter { … … 36 36 37 37 [StorableConstructor] 38 private MatingPoolCreator(bool deserializing) 39 : base(deserializing) { } 38 private MatingPoolCreator(StorableConstructorFlag _) : base(_) { } 40 39 private MatingPoolCreator(MatingPoolCreator original, Cloner cloner) 41 40 : base(original, cloner) { } -
branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.ALPS/3.3/ReseedingController.cs
r16453 r16462 25 25 using HeuristicLab.Operators; 26 26 using HeuristicLab.Parameters; 27 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;27 using HEAL.Fossil; 28 28 29 29 namespace HeuristicLab.Algorithms.ALPS { 30 30 [Item("ReseedingController", "An operator that controls if reseeding is needed.")] 31 [Storable Class]31 [StorableType("67294ABE-C118-41F0-B736-0576F30F664F")] 32 32 public sealed class ReseedingController : SingleSuccessorOperator { 33 33 public ILookupParameter<IntValue> GenerationsParameter { … … 47 47 48 48 [StorableConstructor] 49 private ReseedingController(bool deserializing) 50 : base(deserializing) { } 49 private ReseedingController(StorableConstructorFlag _) : base(_) { } 51 50 52 51 private ReseedingController(ReseedingController original, Cloner cloner) -
branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.ALPS/3.3/ResultsHistoryWiper.cs
r16453 r16462 27 27 using HeuristicLab.Optimization; 28 28 using HeuristicLab.Parameters; 29 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;29 using HEAL.Fossil; 30 30 31 31 namespace HeuristicLab.Algorithms.ALPS { 32 32 [Item("ResultsHistoryWiper", "An operator that removes the history of a ResultsCollection by setting all values in all DataTables to NaN.")] 33 [Storable Class]33 [StorableType("98514FF7-CE23-446F-9ACB-901FDF056CF0")] 34 34 public sealed class ResultsHistoryWiper : SingleSuccessorOperator { 35 35 public ILookupParameter<ResultCollection> ResultsParameter { … … 38 38 39 39 [StorableConstructor] 40 private ResultsHistoryWiper( bool deserializing) : base(deserializing) {40 private ResultsHistoryWiper(StorableConstructorFlag _) : base(_) { 41 41 } 42 42 -
branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.ALPS/3.3/WeightingReducer.cs
r16453 r16462 27 27 using HeuristicLab.Operators; 28 28 using HeuristicLab.Parameters; 29 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;29 using HEAL.Fossil; 30 30 31 31 namespace HeuristicLab.Algorithms.ALPS { 32 32 [Item("WeightingReducer", "An operator that combines two values based on the weight of the lower (0.0) and higher (1.0) value.")] 33 [Storable Class]33 [StorableType("A2B65E34-61EC-414A-827C-AAA3F1A1E46C")] 34 34 public sealed class WeightingReducer : SingleSuccessorOperator { 35 35 public IScopeTreeLookupParameter<DoubleValue> ParameterToReduce { … … 44 44 45 45 [StorableConstructor] 46 private WeightingReducer( bool deserializing) : base(deserializing) { }46 private WeightingReducer(StorableConstructorFlag _) : base(_) { } 47 47 private WeightingReducer(WeightingReducer original, Cloner cloner) 48 48 : base(original, cloner) {
Note: See TracChangeset
for help on using the changeset viewer.