Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/06/20 14:36:43 (4 years ago)
Author:
dleko
Message:

#2825 Be able to copy and store NSGA3 executions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2825-NSGA3/HeuristicLab.Algorithms.NSGA3/3.3/ReferencePoint.cs

    r17707 r17719  
    22using System.Collections.Generic;
    33using System.Linq;
     4using HEAL.Attic;
    45using HeuristicLab.Common;
    56using HeuristicLab.Core;
     
    78namespace HeuristicLab.Algorithms.NSGA3
    89{
     10    [StorableType("5026513A-F3C7-4A85-95D6-82B5B376E900")]
    911    public class ReferencePoint : IDeepCloneable
    1012    {
     
    1214
    1315        // The potentially associated solutions to this reference point and the distance to that solution
    14         private readonly Dictionary<Solution, double> potentialAssociatedSolutions = new Dictionary<Solution, double>();
    15 
    16         private readonly IRandom random;
    17 
    18         public double[] Values { get; }
     16        private Dictionary<Solution, double> potentialAssociatedSolutions = new Dictionary<Solution, double>();
     17
     18        [Storable]
     19        private IRandom random;
     20
     21        [Storable]
     22        public double[] Values { get; set; }
     23
     24        [Storable]
     25        public int NumberOfAssociatedSolutions { get; set; } = 0;
     26
    1927        public int Objectives => Values.Length;
    20         public int NumberOfAssociatedSolutions { get; set; } = 0;
    2128
    2229        #endregion Properties
    2330
    2431        #region Constructors
     32
     33        [StorableConstructor]
     34        public ReferencePoint(StorableConstructorFlag _)
     35        {
     36        }
    2537
    2638        public ReferencePoint(IRandom random, int obj)
Note: See TracChangeset for help on using the changeset viewer.