Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/28/18 16:10:48 (6 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.NSGA2/3.3
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.NSGA2/3.3/HeuristicLab.Algorithms.NSGA2-3.3.csproj

    r16454 r16462  
    166166      <HintPath>..\..\packages\Google.Protobuf.3.6.1\lib\net45\Google.Protobuf.dll</HintPath>
    167167    </Reference>
    168     <Reference Include="HEAL.Fossil, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
     168    <Reference Include="HEAL.Fossil, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL">
    169169      <HintPath>..\..\packages\HEAL.Fossil.1.0.0\lib\netstandard2.0\HEAL.Fossil.dll</HintPath>
    170170    </Reference>
  • branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.NSGA2/3.3/NSGA2.cs

    r16453 r16462  
    3030using HeuristicLab.Optimization.Operators;
    3131using HeuristicLab.Parameters;
    32 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     32using HEAL.Fossil;
    3333using HeuristicLab.PluginInfrastructure;
    3434using HeuristicLab.Random;
     
    4040  [Item("NSGA-II", "The Nondominated Sorting Genetic Algorithm II was introduced in Deb et al. 2002. A Fast and Elitist Multiobjective Genetic Algorithm: NSGA-II. IEEE Transactions on Evolutionary Computation, 6(2), pp. 182-197.")]
    4141  [Creatable(CreatableAttribute.Categories.PopulationBasedAlgorithms, Priority = 135)]
    42   [StorableClass]
     42  [StorableType("9F34A562-68E7-4C4A-B452-F915802BACDA")]
    4343  public class NSGA2 : HeuristicOptimizationEngineAlgorithm, IStorableContent {
    4444    public string Filename { get; set; }
     
    162162
    163163    [StorableConstructor]
    164     protected NSGA2(bool deserializing) : base(deserializing) { }
     164    protected NSGA2(StorableConstructorFlag _) : base(_) { }
    165165    protected NSGA2(NSGA2 original, Cloner cloner)
    166166      : base(original, cloner) {
  • branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.NSGA2/3.3/NSGA2MainLoop.cs

    r16453 r16462  
    2626using HeuristicLab.Optimization.Operators;
    2727using HeuristicLab.Parameters;
    28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     28using HEAL.Fossil;
    2929using HeuristicLab.Selection;
    3030
     
    3434  /// </summary>
    3535  [Item("NSGA2MainLoop", "An operator which represents the main loop of the NSGA-II algorithm.")]
    36   [StorableClass]
     36  [StorableType("F81EA9B1-0A1A-4597-BF2C-C830C32D3394")]
    3737  public class NSGA2MainLoop : AlgorithmOperator {
    3838    #region Parameter properties
     
    8585
    8686    [StorableConstructor]
    87     protected NSGA2MainLoop(bool deserializing) : base(deserializing) { }
     87    protected NSGA2MainLoop(StorableConstructorFlag _) : base(_) { }
    8888    [StorableHook(HookType.AfterDeserialization)]
    8989    private void AfterDeserialization() {
Note: See TracChangeset for help on using the changeset viewer.