Ignore:
Timestamp:
02/28/19 14:23:36 (2 years ago)
Author:
bburlacu
Message:

#2987: Migrate to new persistence. Add support for objective scaling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2987_MOEAD_Algorithm/HeuristicLab.Algorithms.MOEAD/3.4/MOEADSolution.cs

    r16560 r16630  
    1 using HeuristicLab.Common;
     1#region License Information
     2/* HeuristicLab
     3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     4 *
     5 * This file is part of HeuristicLab.
     6 *
     7 * HeuristicLab is free software: you can redistribute it and/or modify
     8 * it under the terms of the GNU General Public License as published by
     9 * the Free Software Foundation, either version 3 of the License, or
     10 * (at your option) any later version.
     11 *
     12 * HeuristicLab is distributed in the hope that it will be useful,
     13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15 * GNU General Public License for more details.
     16 *
     17 * You should have received a copy of the GNU General Public License
     18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
     19 */
     20#endregion
     21
     22using HEAL.Attic;
     23using HeuristicLab.Common;
    224using HeuristicLab.Core;
    3 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    425
    526namespace HeuristicLab.Algorithms.MOEAD {
     27  [StorableType("DFE1AC99-9AEF-4A35-884B-C82E2B3D84F7")]
    628  public interface IMOEADSolution : IItem {
    729    IItem Individual { get; set; }
     
    1234
    1335  [Item("MOEADSolution", "Represents a solution inside the MOEA/D population")]
    14   [StorableClass]
     36  [StorableType("8D7DE459-E6D5-4B74-9135-00E27CF451D3")]
    1537  public class MOEADSolution : Item, IMOEADSolution {
    1638    [Storable]
     
    5577
    5678    [StorableConstructor]
    57     protected MOEADSolution(bool deserializing) : base(deserializing) { }
     79    protected MOEADSolution(StorableConstructorFlag deserializing) : base(deserializing) { }
    5880  }
    5981
    6082  [Item("MOEADSolution", "Represents a solution inside the MOEA/D population")]
    61   [StorableClass]
     83  [StorableType("24B4B79B-5828-4E6B-BE35-452DEA1FF538")]
    6284  public class MOEADSolution<T> : MOEADSolution where T : class, IItem {
    6385    public new T Individual {
     
    7597
    7698    [StorableConstructor]
    77     protected MOEADSolution(bool deserializing) : base(deserializing) { }
     99    protected MOEADSolution(StorableConstructorFlag deserializing) : base(deserializing) { }
    78100  }
    79101}
Note: See TracChangeset for help on using the changeset viewer.