Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/25/19 17:11:06 (5 years ago)
Author:
gkronber
Message:

#2936: merged r15682 & r16117:16658 from trunk/HeuristicLab.Encodings.IntegerVectorEncoding to branch/HeuristicLab.Encodings.IntegerVectorEncoding

Location:
branches/2936_GQAPIntegration/HeuristicLab.Encodings.IntegerVectorEncoding
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/2936_GQAPIntegration/HeuristicLab.Encodings.IntegerVectorEncoding

  • branches/2936_GQAPIntegration/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/Manipulators/RoundedNormalAllPositionsManipulator.cs

    r15605 r16710  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2525using HeuristicLab.Data;
    2626using HeuristicLab.Parameters;
    27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     27using HEAL.Attic;
    2828using HeuristicLab.Random;
    2929
     
    3434  /// </summary>
    3535  [Item("RoundedNormalAllPositionsManipulator", "This manipulation operator adds a value sigma_i * N_i(0,1) to the current value in each position i given the values for sigma_i in the parameter. The result is rounded to the next feasible value. If there are less elements in Sigma than positions, then Sigma is cycled.")]
    36   [StorableClass]
     36  [StorableType("CDAE115B-1BAD-4CC2-B63E-E3C45955175D")]
    3737  public class RoundedNormalAllPositionsManipulator : BoundedIntegerVectorManipulator {
    3838
     
    4242
    4343    [StorableConstructor]
    44     protected RoundedNormalAllPositionsManipulator(bool deserializing) : base(deserializing) { }
     44    protected RoundedNormalAllPositionsManipulator(StorableConstructorFlag _) : base(_) { }
    4545    protected RoundedNormalAllPositionsManipulator(RoundedNormalAllPositionsManipulator original, Cloner cloner) : base(original, cloner) { }
    4646    /// <summary>
     
    7575        if (bounds.Columns > 2) step = bounds[i % bounds.Rows, 2];
    7676
    77         int value = (vector[i] + (int)Math.Round((N.NextDouble() * sigma[i % sigma.Length])) - min) / step;
     77        double value = vector[i] + N.NextDouble() * sigma[i % sigma.Length];
    7878        max = FloorFeasible(min, max, step, max - 1);
    7979        vector[i] = RoundFeasible(min, max, step, value);
  • branches/2936_GQAPIntegration/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/Manipulators/SelfAdaptiveRoundedNormalAllPositionsManipulator.cs

    r15605 r16710  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2626using HeuristicLab.Optimization;
    2727using HeuristicLab.Parameters;
    28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     28using HEAL.Attic;
    2929using HeuristicLab.Random;
    3030
     
    3535  /// </summary>
    3636  [Item("SelfAdaptiveRoundedNormalAllPositionsManipulator", "This manipulation operator adds a value sigma_i * N(0,1) to the current value in each position i. The resulting value is rounded to the next feasible value. The values for sigma_i are looked up dynamically. If there are less elements in the strategy vector than positions, then the strategy vector is cycled.")]
    37   [StorableClass]
     37  [StorableType("2CD4AE6E-3A73-4514-AB66-4D94C700F779")]
    3838  public class SelfAdaptiveRoundedNormalAllPositionsManipulator : BoundedIntegerVectorManipulator, ISelfAdaptiveManipulator {
    3939    public Type StrategyParameterType {
     
    5252
    5353    [StorableConstructor]
    54     protected SelfAdaptiveRoundedNormalAllPositionsManipulator(bool deserializing) : base(deserializing) { }
     54    protected SelfAdaptiveRoundedNormalAllPositionsManipulator(StorableConstructorFlag _) : base(_) { }
    5555    protected SelfAdaptiveRoundedNormalAllPositionsManipulator(SelfAdaptiveRoundedNormalAllPositionsManipulator original, Cloner cloner) : base(original, cloner) { }
    5656    /// <summary>
  • branches/2936_GQAPIntegration/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/Manipulators/UniformOnePositionManipulator.cs

    r15605 r16710  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2525using HeuristicLab.Data;
    2626using HeuristicLab.Parameters;
    27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     27using HEAL.Attic;
    2828
    2929namespace HeuristicLab.Encodings.IntegerVectorEncoding {
     
    3535  /// </remarks>
    3636  [Item("UniformOnePositionManipulator", " Uniformly distributed change of a single position of an integer vector. It is implemented as described in Michalewicz, Z. 1999. Genetic Algorithms + Data Structures = Evolution Programs. Third, Revised and Extended Edition, Spring-Verlag Berlin Heidelberg.")]
    37   [StorableClass]
     37  [StorableType("205791F7-231F-4957-B27E-387161BF56F0")]
    3838  public class UniformOnePositionManipulator : BoundedIntegerVectorManipulator {
    3939
    4040    [StorableConstructor]
    41     protected UniformOnePositionManipulator(bool deserializing) : base(deserializing) { }
     41    protected UniformOnePositionManipulator(StorableConstructorFlag _) : base(_) { }
    4242    protected UniformOnePositionManipulator(UniformOnePositionManipulator original, Cloner cloner) : base(original, cloner) { }
    4343    /// <summary>
  • branches/2936_GQAPIntegration/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/Manipulators/UniformSomePositionsManipulator.cs

    r15605 r16710  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2525using HeuristicLab.Data;
    2626using HeuristicLab.Parameters;
    27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     27using HEAL.Attic;
    2828
    2929namespace HeuristicLab.Encodings.IntegerVectorEncoding {
     
    3535  /// </remarks>
    3636  [Item("UniformSomePositionsManipulator", "Uniformly distributed change of several, but at least one, positions of an integer vector. It is implemented as described in Michalewicz, Z. 1999. Genetic Algorithms + Data Structures = Evolution Programs. Third, Revised and Extended Edition, Spring-Verlag Berlin Heidelberg.")]
    37   [StorableClass]
     37  [StorableType("1A0F372D-7256-41EA-B825-9173BC1E278B")]
    3838  public class UniformSomePositionsManipulator : BoundedIntegerVectorManipulator {
    3939
     
    4343
    4444    [StorableConstructor]
    45     protected UniformSomePositionsManipulator(bool deserializing) : base(deserializing) { }
     45    protected UniformSomePositionsManipulator(StorableConstructorFlag _) : base(_) { }
    4646    protected UniformSomePositionsManipulator(UniformSomePositionsManipulator original, Cloner cloner) : base(original, cloner) { }
    4747    public UniformSomePositionsManipulator()
Note: See TracChangeset for help on using the changeset viewer.