Changeset 16462 for branches/2520_PersistenceReintegration/HeuristicLab.Encodings.IntegerVectorEncoding
- Timestamp:
- 12/28/18 16:10:48 (6 years ago)
- Location:
- branches/2520_PersistenceReintegration/HeuristicLab.Encodings.IntegerVectorEncoding/3.3
- Files:
-
- 29 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/BoundedIntegerVectorCrossover.cs
r16453 r16462 25 25 using HeuristicLab.Data; 26 26 using HeuristicLab.Parameters; 27 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;27 using HEAL.Fossil; 28 28 29 29 namespace HeuristicLab.Encodings.IntegerVectorEncoding { 30 30 [Item("BoundedIntegerVectorCrossover", "Base class for bounded crossovers.")] 31 [Storable Class]31 [StorableType("90834C8F-461F-4A94-A7CB-25C8D1063604")] 32 32 public abstract class BoundedIntegerVectorCrossover : IntegerVectorCrossover, IBoundedIntegerVectorOperator { 33 33 … … 37 37 38 38 [StorableConstructor] 39 protected BoundedIntegerVectorCrossover( bool deserializing) : base(deserializing) { }39 protected BoundedIntegerVectorCrossover(StorableConstructorFlag _) : base(_) { } 40 40 protected BoundedIntegerVectorCrossover(BoundedIntegerVectorCrossover original, Cloner cloner) : base(original, cloner) { } 41 41 public BoundedIntegerVectorCrossover() -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/BoundedIntegerVectorManipulator.cs
r16453 r16462 25 25 using HeuristicLab.Data; 26 26 using HeuristicLab.Parameters; 27 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;27 using HEAL.Fossil; 28 28 29 29 namespace HeuristicLab.Encodings.IntegerVectorEncoding { 30 30 [Item("BoundedIntegerVectorManipulator", "Base class for bounded integer vector manipulators.")] 31 [Storable Class]31 [StorableType("A2B6079B-19AC-4518-91FB-8BEDFC8C776F")] 32 32 public abstract class BoundedIntegerVectorManipulator : IntegerVectorManipulator, IBoundedIntegerVectorOperator { 33 33 … … 37 37 38 38 [StorableConstructor] 39 protected BoundedIntegerVectorManipulator( bool deserializing) : base(deserializing) { }39 protected BoundedIntegerVectorManipulator(StorableConstructorFlag _) : base(_) { } 40 40 protected BoundedIntegerVectorManipulator(BoundedIntegerVectorManipulator original, Cloner cloner) : base(original, cloner) { } 41 41 public BoundedIntegerVectorManipulator() -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/Creators/UniformRandomIntegerVectorCreator.cs
r16453 r16462 23 23 using HeuristicLab.Core; 24 24 using HeuristicLab.Data; 25 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;25 using HEAL.Fossil; 26 26 27 27 namespace HeuristicLab.Encodings.IntegerVectorEncoding { … … 30 30 /// </summary> 31 31 [Item("UniformRandomIntegerVectorCreator", "An operator which creates a new random int vector with each element uniformly distributed in a specified range.")] 32 [Storable Class]32 [StorableType("23B6374A-EE3B-4487-B728-635395D5F1B7")] 33 33 public class UniformRandomIntegerVectorCreator : IntegerVectorCreator { 34 34 [StorableConstructor] 35 protected UniformRandomIntegerVectorCreator( bool deserializing) : base(deserializing) { }35 protected UniformRandomIntegerVectorCreator(StorableConstructorFlag _) : base(_) { } 36 36 protected UniformRandomIntegerVectorCreator(UniformRandomIntegerVectorCreator original, Cloner cloner) : base(original, cloner) { } 37 37 public UniformRandomIntegerVectorCreator() : base() { } -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/Crossovers/DiscreteCrossover.cs
r16453 r16462 23 23 using HeuristicLab.Common; 24 24 using HeuristicLab.Core; 25 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;25 using HEAL.Fossil; 26 26 27 27 namespace HeuristicLab.Encodings.IntegerVectorEncoding { … … 33 33 /// </remarks> 34 34 [Item("DiscreteCrossover", "Discrete crossover for integer vectors. It is implemented as described in Gwiazda, T.D. 2006. Genetic algorithms reference Volume I Crossover for single-objective numerical optimization problems, p.17.")] 35 [Storable Class]35 [StorableType("64C79AA5-1D77-4CF4-A19B-9646F270E4D8")] 36 36 public class DiscreteCrossover : IntegerVectorCrossover { 37 37 [StorableConstructor] 38 protected DiscreteCrossover( bool deserializing) : base(deserializing) { }38 protected DiscreteCrossover(StorableConstructorFlag _) : base(_) { } 39 39 protected DiscreteCrossover(DiscreteCrossover original, Cloner cloner) : base(original, cloner) { } 40 40 public DiscreteCrossover() : base() { } -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/Crossovers/MultiIntegerVectorCrossover.cs
r16453 r16462 29 29 using HeuristicLab.Optimization; 30 30 using HeuristicLab.Parameters; 31 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;31 using HEAL.Fossil; 32 32 using HeuristicLab.PluginInfrastructure; 33 33 34 34 namespace HeuristicLab.Encodings.IntegerVectorEncoding { 35 35 [Item("MultiIntegerVectorCrossover", "Randomly selects and applies one of its crossovers every time it is called.")] 36 [Storable Class]36 [StorableType("EC482D88-4258-48D3-BCD2-C6FC013C8FED")] 37 37 public class MultiIntegerVectorCrossover : StochasticMultiBranch<IIntegerVectorCrossover>, IIntegerVectorCrossover, IStochasticOperator, IBoundedIntegerVectorOperator { 38 38 public override bool CanChangeName { … … 56 56 57 57 [StorableConstructor] 58 protected MultiIntegerVectorCrossover( bool deserializing) : base(deserializing) { }58 protected MultiIntegerVectorCrossover(StorableConstructorFlag _) : base(_) { } 59 59 protected MultiIntegerVectorCrossover(MultiIntegerVectorCrossover original, Cloner cloner) : base(original, cloner) { } 60 60 public MultiIntegerVectorCrossover() -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/Crossovers/RoundedAverageCrossover.cs
r16453 r16462 24 24 using HeuristicLab.Core; 25 25 using HeuristicLab.Data; 26 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;26 using HEAL.Fossil; 27 27 28 28 namespace HeuristicLab.Encodings.IntegerVectorEncoding { … … 31 31 /// </summary> 32 32 [Item("RoundedAverageCrossover", "Average crossover for integer vectors.")] 33 [Storable Class]33 [StorableType("6899DA13-4004-4E22-99B5-46FE6E3418FA")] 34 34 public class RoundedAverageCrossover : BoundedIntegerVectorCrossover, IBoundedIntegerVectorOperator { 35 35 36 36 [StorableConstructor] 37 protected RoundedAverageCrossover( bool deserializing) : base(deserializing) { }37 protected RoundedAverageCrossover(StorableConstructorFlag _) : base(_) { } 38 38 protected RoundedAverageCrossover(RoundedAverageCrossover original, Cloner cloner) : base(original, cloner) { } 39 39 public RoundedAverageCrossover() : base() { } -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/Crossovers/RoundedBlendAlphaBetaCrossover.cs
r16453 r16462 26 26 using HeuristicLab.Optimization; 27 27 using HeuristicLab.Parameters; 28 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;28 using HEAL.Fossil; 29 29 30 30 namespace HeuristicLab.Encodings.IntegerVectorEncoding { … … 37 37 /// </summary> 38 38 [Item("RoundedBlendAlphaBetaCrossover", "The rounded blend alpha beta crossover (BLX-a-b) for integer vectors is similar to the blend alpha crossover (BLX-a), but distinguishes between the better and worse of the parents. The interval from which to choose the new offspring can be extended beyond the better parent by specifying a higher alpha value, and beyond the worse parent by specifying a higher beta value. The new offspring is sampled uniformly in the extended range and rounded to the next feasible integer.")] 39 [Storable Class]39 [StorableType("E9786DA1-C713-44EA-AD2A-BBE371712BA2")] 40 40 public class RoundedBlendAlphaBetaCrossover : BoundedIntegerVectorCrossover, ISingleObjectiveOperator { 41 41 /// <summary> … … 65 65 66 66 [StorableConstructor] 67 protected RoundedBlendAlphaBetaCrossover( bool deserializing) : base(deserializing) { }67 protected RoundedBlendAlphaBetaCrossover(StorableConstructorFlag _) : base(_) { } 68 68 protected RoundedBlendAlphaBetaCrossover(RoundedBlendAlphaBetaCrossover original, Cloner cloner) : base(original, cloner) { } 69 69 /// <summary> -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/Crossovers/RoundedBlendAlphaCrossover.cs
r16453 r16462 25 25 using HeuristicLab.Data; 26 26 using HeuristicLab.Parameters; 27 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;27 using HEAL.Fossil; 28 28 29 29 namespace HeuristicLab.Encodings.IntegerVectorEncoding { … … 34 34 /// </summary> 35 35 [Item("RoundedBlendAlphaCrossover", "The rounded blend alpha crossover (BLX-a) for integer vectors creates new offspring by sampling a new value in the range [min_i - d * alpha, max_i + d * alpha) at each position i and rounding the result to the next feasible integer. Here min_i and max_i are the smaller and larger value of the two parents at position i and d is max_i - min_i.")] 36 [Storable Class]36 [StorableType("F371B342-7D0C-4ED9-8F3F-A641E82DC8F1")] 37 37 public class RoundedBlendAlphaCrossover : BoundedIntegerVectorCrossover { 38 38 /// <summary> … … 47 47 48 48 [StorableConstructor] 49 protected RoundedBlendAlphaCrossover( bool deserializing) : base(deserializing) { }49 protected RoundedBlendAlphaCrossover(StorableConstructorFlag _) : base(_) { } 50 50 protected RoundedBlendAlphaCrossover(RoundedBlendAlphaCrossover original, Cloner cloner) : base(original, cloner) { } 51 51 /// <summary> -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/Crossovers/RoundedHeuristicCrossover.cs
r16453 r16462 26 26 using HeuristicLab.Optimization; 27 27 using HeuristicLab.Parameters; 28 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;28 using HEAL.Fossil; 29 29 30 30 namespace HeuristicLab.Encodings.IntegerVectorEncoding { … … 35 35 /// </summary> 36 36 [Item("RoundedHeuristicCrossover", "The heuristic crossover produces offspring that extend the better parent in direction from the worse to the better parent.")] 37 [Storable Class]37 [StorableType("94963FD3-4092-4B76-88E0-5FE5AC2DA9E2")] 38 38 public class RoundedHeuristicCrossover : BoundedIntegerVectorCrossover, ISingleObjectiveOperator { 39 39 /// <summary> … … 51 51 52 52 [StorableConstructor] 53 protected RoundedHeuristicCrossover( bool deserializing) : base(deserializing) { }53 protected RoundedHeuristicCrossover(StorableConstructorFlag _) : base(_) { } 54 54 protected RoundedHeuristicCrossover(RoundedHeuristicCrossover original, Cloner cloner) : base(original, cloner) { } 55 55 /// <summary> -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/Crossovers/RoundedLocalCrossover.cs
r16453 r16462 24 24 using HeuristicLab.Core; 25 25 using HeuristicLab.Data; 26 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;26 using HEAL.Fossil; 27 27 28 28 namespace HeuristicLab.Encodings.IntegerVectorEncoding { … … 32 32 /// </remarks> 33 33 [Item("RoundedLocalCrossover", @"The runded local crossover is similar to the arithmetic crossover, but uses a random alpha for each position x = alpha * p1 + (1-alpha) * p2.")] 34 [Storable Class]34 [StorableType("2E21F322-85CD-4B67-AF9C-4119FAABB3C1")] 35 35 public class RoundedLocalCrossover : BoundedIntegerVectorCrossover { 36 36 [StorableConstructor] 37 protected RoundedLocalCrossover( bool deserializing) : base(deserializing) { }37 protected RoundedLocalCrossover(StorableConstructorFlag _) : base(_) { } 38 38 protected RoundedLocalCrossover(RoundedLocalCrossover original, Cloner cloner) : base(original, cloner) { } 39 39 public RoundedLocalCrossover() : base() { } -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/Crossovers/RoundedUniformArithmeticCrossover.cs
r16453 r16462 25 25 using HeuristicLab.Data; 26 26 using HeuristicLab.Parameters; 27 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;27 using HEAL.Fossil; 28 28 29 29 namespace HeuristicLab.Encodings.IntegerVectorEncoding { … … 32 32 /// </summary> 33 33 [Item("RoundedUniformSomePositionsArithmeticCrossover", "The uniform some positions arithmetic crossover (continuous recombination) constructs an offspring by calculating x = alpha * p1 + (1-alpha) * p2 for a position x in the vector with a given probability (otherwise p1 is taken at this position).")] 34 [Storable Class]34 [StorableType("8393AFC2-FAA5-47A8-A1E3-E6DEABE71B2F")] 35 35 public class RoundedUniformArithmeticCrossover : BoundedIntegerVectorCrossover, IBoundedIntegerVectorOperator { 36 36 … … 49 49 50 50 [StorableConstructor] 51 protected RoundedUniformArithmeticCrossover( bool deserializing) : base(deserializing) { }51 protected RoundedUniformArithmeticCrossover(StorableConstructorFlag _) : base(_) { } 52 52 protected RoundedUniformArithmeticCrossover(RoundedUniformArithmeticCrossover original, Cloner cloner) : base(original, cloner) { } 53 53 /// <summary> -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/Crossovers/SinglePointCrossover.cs
r16453 r16462 23 23 using HeuristicLab.Common; 24 24 using HeuristicLab.Core; 25 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;25 using HEAL.Fossil; 26 26 27 27 namespace HeuristicLab.Encodings.IntegerVectorEncoding { … … 33 33 /// </remarks> 34 34 [Item("SinglePointCrossover", "Single point crossover for integer vectors. It is implemented as described in Michalewicz, Z. 1999. Genetic Algorithms + Data Structures = Evolution Programs. Third, Revised and Extended Edition, Spring-Verlag Berlin Heidelberg.")] 35 [Storable Class]35 [StorableType("0B985803-CC2D-466B-B5F2-9A1F7C415735")] 36 36 public class SinglePointCrossover : IntegerVectorCrossover { 37 37 [StorableConstructor] 38 protected SinglePointCrossover( bool deserializing) : base(deserializing) { }38 protected SinglePointCrossover(StorableConstructorFlag _) : base(_) { } 39 39 protected SinglePointCrossover(SinglePointCrossover original, Cloner cloner) : base(original, cloner) { } 40 40 public SinglePointCrossover() : base() { } -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/HeuristicLab.Encodings.IntegerVectorEncoding-3.3.csproj
r16454 r16462 102 102 <HintPath>..\..\packages\Google.Protobuf.3.6.1\lib\net45\Google.Protobuf.dll</HintPath> 103 103 </Reference> 104 <Reference Include="HEAL.Fossil, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">104 <Reference Include="HEAL.Fossil, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 105 105 <HintPath>..\..\packages\HEAL.Fossil.1.0.0\lib\netstandard2.0\HEAL.Fossil.dll</HintPath> 106 106 </Reference> -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/IntegerVector.cs
r16453 r16462 24 24 using HeuristicLab.Core; 25 25 using HeuristicLab.Data; 26 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;26 using HEAL.Fossil; 27 27 28 28 namespace HeuristicLab.Encodings.IntegerVectorEncoding { 29 [Storable Class]29 [StorableType("2DDD33C1-4732-478B-83B1-17226A8F2B61")] 30 30 [Item("IntegerVector", "Represents a vector of integer values.")] 31 31 public class IntegerVector : IntArray { 32 32 [StorableConstructor] 33 protected IntegerVector( bool deserializing) : base(deserializing) { }33 protected IntegerVector(StorableConstructorFlag _) : base(_) { } 34 34 protected IntegerVector(IntegerVector original, Cloner cloner) : base(original, cloner) { } 35 35 public IntegerVector() : base() { } -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/IntegerVectorCreator.cs
r16453 r16462 26 26 using HeuristicLab.Optimization; 27 27 using HeuristicLab.Parameters; 28 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;28 using HEAL.Fossil; 29 29 30 30 namespace HeuristicLab.Encodings.IntegerVectorEncoding { … … 33 33 /// </summary> 34 34 [Item("IntegerVectorCreator", "A base class for operators creating int-valued vectors.")] 35 [Storable Class]35 [StorableType("3C20D629-EFCB-4A1C-81B4-1DF0942B27F7")] 36 36 public abstract class IntegerVectorCreator : InstrumentedOperator, IIntegerVectorCreator, IStochasticOperator { 37 37 public override bool CanChangeName { … … 52 52 53 53 [StorableConstructor] 54 protected IntegerVectorCreator( bool deserializing) : base(deserializing) { }54 protected IntegerVectorCreator(StorableConstructorFlag _) : base(_) { } 55 55 protected IntegerVectorCreator(IntegerVectorCreator original, Cloner cloner) : base(original, cloner) { } 56 56 protected IntegerVectorCreator() -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/IntegerVectorCrossover.cs
r16453 r16462 24 24 using HeuristicLab.Optimization; 25 25 using HeuristicLab.Parameters; 26 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;26 using HEAL.Fossil; 27 27 28 28 namespace HeuristicLab.Encodings.IntegerVectorEncoding { … … 31 31 /// </summary> 32 32 [Item("IntegerVectorCrossover", "A base class for operators that perform a crossover of int-valued vectors.")] 33 [Storable Class]33 [StorableType("BE778213-C140-4B1C-A4A4-1D92D0ADAB45")] 34 34 public abstract class IntegerVectorCrossover : IntegerVectorOperator, IIntegerVectorCrossover, IStochasticOperator { 35 35 public override bool CanChangeName { … … 47 47 48 48 [StorableConstructor] 49 protected IntegerVectorCrossover( bool deserializing) : base(deserializing) { }49 protected IntegerVectorCrossover(StorableConstructorFlag _) : base(_) { } 50 50 protected IntegerVectorCrossover(IntegerVectorCrossover original, Cloner cloner) : base(original, cloner) { } 51 51 protected IntegerVectorCrossover() -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/IntegerVectorEncoding.cs
r16453 r16462 28 28 using HeuristicLab.Optimization; 29 29 using HeuristicLab.Parameters; 30 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;30 using HEAL.Fossil; 31 31 using HeuristicLab.PluginInfrastructure; 32 32 33 33 namespace HeuristicLab.Encodings.IntegerVectorEncoding { 34 34 [Item("IntegerVectorEncoding", "Describes an integer vector encoding.")] 35 [Storable Class]35 [StorableType("15D6E55E-C39F-4784-8350-14A0FD47CF0E")] 36 36 public sealed class IntegerVectorEncoding : Encoding<IIntegerVectorCreator> { 37 37 #region Encoding Parameters … … 78 78 79 79 [StorableConstructor] 80 private IntegerVectorEncoding( bool deserializing) : base(deserializing) { }80 private IntegerVectorEncoding(StorableConstructorFlag _) : base(_) { } 81 81 [StorableHook(HookType.AfterDeserialization)] 82 82 private void AfterDeserialization() { -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/IntegerVectorManipulator.cs
r16453 r16462 24 24 using HeuristicLab.Optimization; 25 25 using HeuristicLab.Parameters; 26 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;26 using HEAL.Fossil; 27 27 28 28 namespace HeuristicLab.Encodings.IntegerVectorEncoding { … … 31 31 /// </summary> 32 32 [Item("IntegerVectorManipulator", "A base class for operators that manipulate int-valued vectors.")] 33 [Storable Class]33 [StorableType("CE399EA5-7FAD-4070-A89D-A0FC3431B02D")] 34 34 public abstract class IntegerVectorManipulator : IntegerVectorOperator, IIntegerVectorManipulator, IStochasticOperator { 35 35 public override bool CanChangeName { … … 44 44 45 45 [StorableConstructor] 46 protected IntegerVectorManipulator( bool deserializing) : base(deserializing) { }46 protected IntegerVectorManipulator(StorableConstructorFlag _) : base(_) { } 47 47 protected IntegerVectorManipulator(IntegerVectorManipulator original, Cloner cloner) : base(original, cloner) { } 48 48 protected IntegerVectorManipulator() -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/IntegerVectorOperator.cs
r16453 r16462 24 24 using HeuristicLab.Core; 25 25 using HeuristicLab.Operators; 26 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;26 using HEAL.Fossil; 27 27 28 28 namespace HeuristicLab.Encodings.IntegerVectorEncoding { 29 29 [Item("IntegerVectorOperator", "Base class for integer vectoro operators.")] 30 [Storable Class]30 [StorableType("6B380738-453C-4E60-B4AB-B3907BB5D9E2")] 31 31 public abstract class IntegerVectorOperator : InstrumentedOperator, IIntegerVectorOperator { 32 32 33 33 [StorableConstructor] 34 protected IntegerVectorOperator( bool deserializing) : base(deserializing) { }34 protected IntegerVectorOperator(StorableConstructorFlag _) : base(_) { } 35 35 protected IntegerVectorOperator(IntegerVectorOperator original, Cloner cloner) : base(original, cloner) { } 36 36 public IntegerVectorOperator() : base() { } -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/Manipulators/RoundedNormalAllPositionsManipulator.cs
r16453 r16462 25 25 using HeuristicLab.Data; 26 26 using HeuristicLab.Parameters; 27 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;27 using HEAL.Fossil; 28 28 using HeuristicLab.Random; 29 29 … … 34 34 /// </summary> 35 35 [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 [Storable Class]36 [StorableType("CDAE115B-1BAD-4CC2-B63E-E3C45955175D")] 37 37 public class RoundedNormalAllPositionsManipulator : BoundedIntegerVectorManipulator { 38 38 … … 42 42 43 43 [StorableConstructor] 44 protected RoundedNormalAllPositionsManipulator( bool deserializing) : base(deserializing) { }44 protected RoundedNormalAllPositionsManipulator(StorableConstructorFlag _) : base(_) { } 45 45 protected RoundedNormalAllPositionsManipulator(RoundedNormalAllPositionsManipulator original, Cloner cloner) : base(original, cloner) { } 46 46 /// <summary> -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/Manipulators/SelfAdaptiveRoundedNormalAllPositionsManipulator.cs
r16453 r16462 26 26 using HeuristicLab.Optimization; 27 27 using HeuristicLab.Parameters; 28 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;28 using HEAL.Fossil; 29 29 using HeuristicLab.Random; 30 30 … … 35 35 /// </summary> 36 36 [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 [Storable Class]37 [StorableType("2CD4AE6E-3A73-4514-AB66-4D94C700F779")] 38 38 public class SelfAdaptiveRoundedNormalAllPositionsManipulator : BoundedIntegerVectorManipulator, ISelfAdaptiveManipulator { 39 39 public Type StrategyParameterType { … … 52 52 53 53 [StorableConstructor] 54 protected SelfAdaptiveRoundedNormalAllPositionsManipulator( bool deserializing) : base(deserializing) { }54 protected SelfAdaptiveRoundedNormalAllPositionsManipulator(StorableConstructorFlag _) : base(_) { } 55 55 protected SelfAdaptiveRoundedNormalAllPositionsManipulator(SelfAdaptiveRoundedNormalAllPositionsManipulator original, Cloner cloner) : base(original, cloner) { } 56 56 /// <summary> -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/Manipulators/UniformOnePositionManipulator.cs
r16453 r16462 25 25 using HeuristicLab.Data; 26 26 using HeuristicLab.Parameters; 27 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;27 using HEAL.Fossil; 28 28 29 29 namespace HeuristicLab.Encodings.IntegerVectorEncoding { … … 35 35 /// </remarks> 36 36 [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 [Storable Class]37 [StorableType("205791F7-231F-4957-B27E-387161BF56F0")] 38 38 public class UniformOnePositionManipulator : BoundedIntegerVectorManipulator { 39 39 40 40 [StorableConstructor] 41 protected UniformOnePositionManipulator( bool deserializing) : base(deserializing) { }41 protected UniformOnePositionManipulator(StorableConstructorFlag _) : base(_) { } 42 42 protected UniformOnePositionManipulator(UniformOnePositionManipulator original, Cloner cloner) : base(original, cloner) { } 43 43 /// <summary> -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/Manipulators/UniformSomePositionsManipulator.cs
r16453 r16462 25 25 using HeuristicLab.Data; 26 26 using HeuristicLab.Parameters; 27 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;27 using HEAL.Fossil; 28 28 29 29 namespace HeuristicLab.Encodings.IntegerVectorEncoding { … … 35 35 /// </remarks> 36 36 [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 [Storable Class]37 [StorableType("1A0F372D-7256-41EA-B825-9173BC1E278B")] 38 38 public class UniformSomePositionsManipulator : BoundedIntegerVectorManipulator { 39 39 … … 43 43 44 44 [StorableConstructor] 45 protected UniformSomePositionsManipulator( bool deserializing) : base(deserializing) { }45 protected UniformSomePositionsManipulator(StorableConstructorFlag _) : base(_) { } 46 46 protected UniformSomePositionsManipulator(UniformSomePositionsManipulator original, Cloner cloner) : base(original, cloner) { } 47 47 public UniformSomePositionsManipulator() -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/ShakingOperators/IntegerVectorShakingOperator.cs
r16453 r16462 29 29 using HeuristicLab.Optimization.Operators; 30 30 using HeuristicLab.Parameters; 31 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;31 using HEAL.Fossil; 32 32 using HeuristicLab.PluginInfrastructure; 33 33 … … 37 37 /// </summary> 38 38 [Item("IntegerVectorShakingOperator", "A shaking operator for VNS which uses available manipulation operators to perform the shaking.")] 39 [Storable Class]39 [StorableType("852155D8-B96F-4AAA-A9F9-5358F317C015")] 40 40 public class IntegerVectorShakingOperator : ShakingOperator<IIntegerVectorManipulator>, IIntegerVectorMultiNeighborhoodShakingOperator, IStochasticOperator, IBoundedIntegerVectorOperator { 41 41 … … 53 53 54 54 [StorableConstructor] 55 protected IntegerVectorShakingOperator( bool deserializing) : base(deserializing) { }55 protected IntegerVectorShakingOperator(StorableConstructorFlag _) : base(_) { } 56 56 protected IntegerVectorShakingOperator(IntegerVectorShakingOperator original, Cloner cloner) : base(original, cloner) { } 57 57 public override IDeepCloneable Clone(Cloner cloner) { -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/SimilarityCalculators/EuclideanSimilarityCalculator.cs
r16453 r16462 24 24 using HeuristicLab.Core; 25 25 using HeuristicLab.Optimization.Operators; 26 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;26 using HEAL.Fossil; 27 27 28 28 namespace HeuristicLab.Encodings.IntegerVectorEncoding { 29 29 [Item("Euclidean Similarity Calculator for IntegerVector", "Calculates the solution similarity based on the Euclidean distance and a transformation into (0;1] between two integer vectors.")] 30 [Storable Class]30 [StorableType("479842EF-3426-4355-A064-7B235DC1D5E2")] 31 31 public sealed class EuclideanSimilarityCalculator : SingleObjectiveSolutionSimilarityCalculator { 32 32 protected override bool IsCommutative { … … 47 47 48 48 [StorableConstructor] 49 private EuclideanSimilarityCalculator( bool deserializing) : base(deserializing) { }49 private EuclideanSimilarityCalculator(StorableConstructorFlag _) : base(_) { } 50 50 private EuclideanSimilarityCalculator(EuclideanSimilarityCalculator original, Cloner cloner) 51 51 : base(original, cloner) { -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/SimilarityCalculators/HammingSimilarityCalculator.cs
r16453 r16462 24 24 using HeuristicLab.Core; 25 25 using HeuristicLab.Optimization.Operators; 26 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;26 using HEAL.Fossil; 27 27 28 28 namespace HeuristicLab.Encodings.IntegerVectorEncoding { 29 29 [Item("Hamming Similarity Calculator for IntegerVector", "Calculates the solution similarity based on the Hamming distance between two integer vectors.")] 30 [Storable Class]30 [StorableType("3784C4BD-8834-4A90-900C-0340C7F7BB47")] 31 31 public sealed class HammingSimilarityCalculator : SingleObjectiveSolutionSimilarityCalculator { 32 32 protected override bool IsCommutative { … … 35 35 36 36 [StorableConstructor] 37 private HammingSimilarityCalculator( bool deserializing) : base(deserializing) { }37 private HammingSimilarityCalculator(StorableConstructorFlag _) : base(_) { } 38 38 private HammingSimilarityCalculator(HammingSimilarityCalculator original, Cloner cloner) : base(original, cloner) { } 39 39 public HammingSimilarityCalculator() { } -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/StrategyParameters/StdDevStrategyVectorCreator.cs
r16453 r16462 26 26 using HeuristicLab.Optimization; 27 27 using HeuristicLab.Parameters; 28 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;28 using HEAL.Fossil; 29 29 30 30 namespace HeuristicLab.Encodings.IntegerVectorEncoding { 31 31 [Item("StdDevStrategyVectorCreator", "Creates the endogeneous strategy parameters.")] 32 [Storable Class]32 [StorableType("3357CE2D-EC8C-4DD7-B51A-FA72D558EA91")] 33 33 public class StdDevStrategyVectorCreator : SingleSuccessorOperator, IStochasticOperator, IIntegerVectorStdDevStrategyParameterCreator { 34 34 public override bool CanChangeName { … … 49 49 50 50 [StorableConstructor] 51 protected StdDevStrategyVectorCreator( bool deserializing) : base(deserializing) { }51 protected StdDevStrategyVectorCreator(StorableConstructorFlag _) : base(_) { } 52 52 protected StdDevStrategyVectorCreator(StdDevStrategyVectorCreator original, Cloner cloner) : base(original, cloner) { } 53 53 public StdDevStrategyVectorCreator() -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/StrategyParameters/StdDevStrategyVectorCrossover.cs
r16453 r16462 26 26 using HeuristicLab.Optimization; 27 27 using HeuristicLab.Parameters; 28 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;28 using HEAL.Fossil; 29 29 30 30 namespace HeuristicLab.Encodings.IntegerVectorEncoding { 31 31 [Item("StdDevStrategyVectorCrossover", "Crosses the strategy vector by using intermediate recombination (average crossover).")] 32 [Storable Class]32 [StorableType("27583F67-4C80-4059-B4F9-80587C0DFB13")] 33 33 public class StdDevStrategyVectorCrossover : SingleSuccessorOperator, IStochasticOperator, IIntegerVectorStdDevStrategyParameterCrossover { 34 34 public override bool CanChangeName { … … 46 46 47 47 [StorableConstructor] 48 protected StdDevStrategyVectorCrossover( bool deserializing) : base(deserializing) { }48 protected StdDevStrategyVectorCrossover(StorableConstructorFlag _) : base(_) { } 49 49 protected StdDevStrategyVectorCrossover(StdDevStrategyVectorCrossover original, Cloner cloner) : base(original, cloner) { } 50 50 public StdDevStrategyVectorCrossover() -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/StrategyParameters/StdDevStrategyVectorManipulator.cs
r16453 r16462 27 27 using HeuristicLab.Optimization; 28 28 using HeuristicLab.Parameters; 29 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;29 using HEAL.Fossil; 30 30 using HeuristicLab.Random; 31 31 … … 35 35 /// </summary> 36 36 [Item("StdDevStrategyVectorManipulator", "Mutates the endogenous strategy parameters.")] 37 [Storable Class]37 [StorableType("8DEED222-E816-4B80-B3F9-0A799EC40C4E")] 38 38 public class StdDevStrategyVectorManipulator : SingleSuccessorOperator, IStochasticOperator, IIntegerVectorStdDevStrategyParameterManipulator { 39 39 public override bool CanChangeName { … … 57 57 58 58 [StorableConstructor] 59 protected StdDevStrategyVectorManipulator( bool deserializing) : base(deserializing) { }59 protected StdDevStrategyVectorManipulator(StorableConstructorFlag _) : base(_) { } 60 60 protected StdDevStrategyVectorManipulator(StdDevStrategyVectorManipulator original, Cloner cloner) : base(original, cloner) { } 61 61 public StdDevStrategyVectorManipulator()
Note: See TracChangeset
for help on using the changeset viewer.