Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/28/18 16:10:48 (5 years ago)
Author:
jkarder
Message:

#2520: worked on reintegration of new persistence

  • added nuget references to HEAL.Fossil
  • added StorableType attributes to many classes
  • changed signature of StorableConstructors
  • removed some classes in old persistence
  • removed some unnecessary usings
Location:
branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.ParameterlessPopulationPyramid/3.3
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.ParameterlessPopulationPyramid/3.3/EvaluationTracker.cs

    r16453 r16462  
    2727using HeuristicLab.Encodings.BinaryVectorEncoding;
    2828using HeuristicLab.Parameters;
    29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     29using HEAL.Fossil;
    3030using HeuristicLab.Problems.Binary;
    3131
     
    3434  // B. W. Goldman and W. F. Punch, "Parameter-less Population Pyramid," GECCO, pp. 785–792, 2014
    3535  // and the original source code in C++11 available from: https://github.com/brianwgoldman/Parameter-less_Population_Pyramid
    36   [StorableClass]
     36  [StorableType("D5F1358D-C100-40CF-9BA5-E95F72F64D1A")]
    3737  internal sealed class EvaluationTracker : BinaryProblem {
    3838    [Storable]
     
    6666
    6767    [StorableConstructor]
    68     private EvaluationTracker(bool deserializing) : base(deserializing) { }
     68    private EvaluationTracker(StorableConstructorFlag _) : base(_) { }
    6969
    7070    private EvaluationTracker(EvaluationTracker original, Cloner cloner)
  • branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.ParameterlessPopulationPyramid/3.3/HeuristicLab.Algorithms.ParameterlessPopulationPyramid-3.3.csproj

    r16454 r16462  
    7676      <HintPath>..\..\packages\Google.Protobuf.3.6.1\lib\net45\Google.Protobuf.dll</HintPath>
    7777    </Reference>
    78     <Reference Include="HEAL.Fossil, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
     78    <Reference Include="HEAL.Fossil, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL">
    7979      <HintPath>..\..\packages\HEAL.Fossil.1.0.0\lib\netstandard2.0\HEAL.Fossil.dll</HintPath>
    8080    </Reference>
  • branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.ParameterlessPopulationPyramid/3.3/HillClimber.cs

    r16453 r16462  
    3131using HeuristicLab.Optimization;
    3232using HeuristicLab.Parameters;
    33 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     33using HEAL.Fossil;
    3434using HeuristicLab.Problems.Binary;
    3535using HeuristicLab.Random;
     
    4141  // and the original source code in C++11 available from: https://github.com/brianwgoldman/Parameter-less_Population_Pyramid
    4242  [Item("Hill Climber (HC)", "Binary Hill Climber.")]
    43   [StorableClass]
     43  [StorableType("BA349010-6295-406E-8989-B271FB96ED86")]
    4444  [Creatable(CreatableAttribute.Categories.SingleSolutionAlgorithms, Priority = 150)]
    4545  public class HillClimber : BasicAlgorithm {
     
    8383
    8484    [StorableConstructor]
    85     protected HillClimber(bool deserializing) : base(deserializing) { }
     85    protected HillClimber(StorableConstructorFlag _) : base(_) { }
    8686    protected HillClimber(HillClimber original, Cloner cloner)
    8787      : base(original, cloner) {
  • branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.ParameterlessPopulationPyramid/3.3/LinkageTree.cs

    r16453 r16462  
    2727using HeuristicLab.Core;
    2828using HeuristicLab.Encodings.BinaryVectorEncoding;
    29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     29using HEAL.Fossil;
    3030using HeuristicLab.Random;
    3131
     
    3434  // B. W. Goldman and W. F. Punch, "Parameter-less Population Pyramid," GECCO, pp. 785–792, 2014
    3535  // and the original source code in C++11 available from: https://github.com/brianwgoldman/Parameter-less_Population_Pyramid
    36   [StorableClass]
     36  [StorableType("40E75AC2-ABD0-43A9-AC91-7478FDD6A399")]
    3737  public class LinkageTree : DeepCloneable {
    3838    [Storable]
     
    5151
    5252    [StorableConstructor]
    53     protected LinkageTree(bool deserializing) : base() { }
     53    protected LinkageTree(StorableConstructorFlag _) { }
    5454
    5555
  • branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.ParameterlessPopulationPyramid/3.3/ParameterlessPopulationPyramid.cs

    r16453 r16462  
    3232using HeuristicLab.Optimization;
    3333using HeuristicLab.Parameters;
    34 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     34using HEAL.Fossil;
    3535using HeuristicLab.Problems.Binary;
    3636using HeuristicLab.Random;
     
    4141  // and the original source code in C++11 available from: https://github.com/brianwgoldman/Parameter-less_Population_Pyramid
    4242  [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")]
    43   [StorableClass]
     43  [StorableType("CAD84CAB-1ECC-4D76-BDC5-701AAF690E17")]
    4444  [Creatable(CreatableAttribute.Categories.PopulationBasedAlgorithms, Priority = 400)]
    4545  public class ParameterlessPopulationPyramid : BasicAlgorithm {
     
    166166
    167167    [StorableConstructor]
    168     protected ParameterlessPopulationPyramid(bool deserializing) : base(deserializing) { }
     168    protected ParameterlessPopulationPyramid(StorableConstructorFlag _) : base(_) { }
    169169
    170170    protected ParameterlessPopulationPyramid(ParameterlessPopulationPyramid original, Cloner cloner)
  • branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.ParameterlessPopulationPyramid/3.3/Population.cs

    r16453 r16462  
    2626using HeuristicLab.Core;
    2727using HeuristicLab.Encodings.BinaryVectorEncoding;
    28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     28using HEAL.Fossil;
    2929
    3030namespace HeuristicLab.Algorithms.ParameterlessPopulationPyramid {
     
    3232  // B. W. Goldman and W. F. Punch, "Parameter-less Population Pyramid," GECCO, pp. 785–792, 2014
    3333  // and the original source code in C++11 available from: https://github.com/brianwgoldman/Parameter-less_Population_Pyramid
    34   [StorableClass]
     34  [StorableType("E09EB41C-B95C-40DF-BF60-8F1E21E9892F")]
    3535  public class Population : DeepCloneable {
    3636    [Storable]
     
    4747
    4848    [StorableConstructor]
    49     protected Population(bool deserializing) : base() { }
     49    protected Population(StorableConstructorFlag _) { }
    5050
    5151
Note: See TracChangeset for help on using the changeset viewer.