Changeset 16462 for branches/2520_PersistenceReintegration/HeuristicLab.Encodings.BinaryVectorEncoding
- Timestamp:
- 12/28/18 16:10:48 (6 years ago)
- Location:
- branches/2520_PersistenceReintegration/HeuristicLab.Encodings.BinaryVectorEncoding/3.3
- Files:
-
- 25 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/BinaryVector.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.BinaryVectorEncoding { 28 [Storable Class]28 [StorableType("B349929A-675C-41F4-AEB9-EEA3121E73A9")] 29 29 [Item("BinaryVector", "Represents a vector of binary values.")] 30 30 public class BinaryVector : BoolArray { 31 31 [StorableConstructor] 32 protected BinaryVector( bool deserializing) : base(deserializing) { }32 protected BinaryVector(StorableConstructorFlag _) : base(_) { } 33 33 protected BinaryVector(BinaryVector original, Cloner cloner) : base(original, cloner) { } 34 34 public BinaryVector() : base() { } -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/BinaryVectorCreator.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.BinaryVectorEncoding { … … 33 33 /// </summary> 34 34 [Item("BinaryVectorCreator", "A base class for operators creating bool-valued vectors.")] 35 [Storable Class]35 [StorableType("5CE4B676-CE68-4338-AF85-A289D3C8BA69")] 36 36 public abstract class BinaryVectorCreator : InstrumentedOperator, IBinaryVectorCreator, IStochasticOperator { 37 37 public override bool CanChangeName { … … 49 49 50 50 [StorableConstructor] 51 protected BinaryVectorCreator( bool deserializing) : base(deserializing) { }51 protected BinaryVectorCreator(StorableConstructorFlag _) : base(_) { } 52 52 protected BinaryVectorCreator(BinaryVectorCreator original, Cloner cloner) : base(original, cloner) { } 53 53 protected BinaryVectorCreator() -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/BinaryVectorCrossover.cs
r16453 r16462 25 25 using HeuristicLab.Optimization; 26 26 using HeuristicLab.Parameters; 27 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;27 using HEAL.Fossil; 28 28 29 29 namespace HeuristicLab.Encodings.BinaryVectorEncoding { … … 32 32 /// </summary> 33 33 [Item("BinaryVectorCrossover", "A base class for operators that perform a crossover of bool-valued vectors.")] 34 [Storable Class]34 [StorableType("1E97E70A-DBB0-49E4-B67B-41A581B95BAE")] 35 35 public abstract class BinaryVectorCrossover : InstrumentedOperator, IBinaryVectorCrossover, IStochasticOperator { 36 36 public override bool CanChangeName { … … 48 48 49 49 [StorableConstructor] 50 protected BinaryVectorCrossover( bool deserializing) : base(deserializing) { }50 protected BinaryVectorCrossover(StorableConstructorFlag _) : base(_) { } 51 51 protected BinaryVectorCrossover(BinaryVectorCrossover original, Cloner cloner) : base(original, cloner) { } 52 52 protected BinaryVectorCrossover() -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/BinaryVectorEncoding.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.BinaryVectorEncoding { 34 34 [Item("BinaryVectorEncoding", "Describes a binary vector encoding.")] 35 [Storable Class]35 [StorableType("889C5E1A-3FBF-4AB3-AB2E-199A781503B5")] 36 36 public sealed class BinaryVectorEncoding : Encoding<IBinaryVectorCreator> { 37 37 #region Encoding Parameters … … 60 60 61 61 [StorableConstructor] 62 private BinaryVectorEncoding( bool deserializing) : base(deserializing) { }62 private BinaryVectorEncoding(StorableConstructorFlag _) : base(_) { } 63 63 [StorableHook(HookType.AfterDeserialization)] 64 64 private void AfterDeserialization() { -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/BinaryVectorManipulator.cs
r16453 r16462 25 25 using HeuristicLab.Optimization; 26 26 using HeuristicLab.Parameters; 27 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;27 using HEAL.Fossil; 28 28 29 29 namespace HeuristicLab.Encodings.BinaryVectorEncoding { … … 32 32 /// </summary> 33 33 [Item("BinaryVectorManipulator", "A base class for operators that manipulate bool-valued vectors.")] 34 [Storable Class]34 [StorableType("B5A9B51F-33F3-4C0B-87CF-147C3BF03545")] 35 35 public abstract class BinaryVectorManipulator : InstrumentedOperator, IBinaryVectorManipulator, IStochasticOperator { 36 36 public override bool CanChangeName { … … 45 45 46 46 [StorableConstructor] 47 protected BinaryVectorManipulator( bool deserializing) : base(deserializing) { }47 protected BinaryVectorManipulator(StorableConstructorFlag _) : base(_) { } 48 48 protected BinaryVectorManipulator(BinaryVectorManipulator original, Cloner cloner) : base(original, cloner) { } 49 49 protected BinaryVectorManipulator() -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Creators/RandomBinaryVectorCreator.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.BinaryVectorEncoding { … … 32 32 /// </summary> 33 33 [Item("RandomBinaryVectorCreator", "An operator which creates a new random binary vector with each element randomly initialized.")] 34 [Storable Class]34 [StorableType("D5BF4C14-1C0B-4589-835E-BA337D325E31")] 35 35 public sealed class RandomBinaryVectorCreator : BinaryVectorCreator { 36 36 private const string TrueProbabilityParameterName = "TrueProbability"; … … 46 46 47 47 [StorableConstructor] 48 private RandomBinaryVectorCreator( bool deserializing) : base(deserializing) { }48 private RandomBinaryVectorCreator(StorableConstructorFlag _) : base(_) { } 49 49 private RandomBinaryVectorCreator(RandomBinaryVectorCreator original, Cloner cloner) : base(original, cloner) { } 50 50 public override IDeepCloneable Clone(Cloner cloner) { return new RandomBinaryVectorCreator(this, cloner); } -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Crossovers/MultiBinaryVectorCrossover.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.BinaryVectorEncoding { 34 34 [Item("MultiBinaryVectorCrossover", "Randomly selects and applies one of its crossovers every time it is called.")] 35 [Storable Class]35 [StorableType("0ACAFFFB-E57A-4171-9D6D-A20B7A7B935E")] 36 36 public class MultiBinaryVectorCrossover : StochasticMultiBranch<IBinaryVectorCrossover>, IBinaryVectorCrossover, IStochasticOperator { 37 37 public override bool CanChangeName { … … 51 51 52 52 [StorableConstructor] 53 protected MultiBinaryVectorCrossover( bool deserializing) : base(deserializing) { }53 protected MultiBinaryVectorCrossover(StorableConstructorFlag _) : base(_) { } 54 54 protected MultiBinaryVectorCrossover(MultiBinaryVectorCrossover original, Cloner cloner) : base(original, cloner) { } 55 55 public MultiBinaryVectorCrossover() -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Crossovers/NPointCrossover.cs
r16453 r16462 26 26 using HeuristicLab.Data; 27 27 using HeuristicLab.Parameters; 28 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;28 using HEAL.Fossil; 29 29 30 30 namespace HeuristicLab.Encodings.BinaryVectorEncoding { … … 36 36 /// </remarks> 37 37 [Item("NPointCrossover", "N point crossover for binary vectors. It is implemented as described in Eiben, A.E. and Smith, J.E. 2003. Introduction to Evolutionary Computation. Natural Computing Series, Springer-Verlag Berlin Heidelberg.")] 38 [Storable Class]38 [StorableType("59683F25-9315-47D9-9E06-539559C9DEE1")] 39 39 public sealed class NPointCrossover : BinaryVectorCrossover { 40 40 /// <summary> … … 46 46 47 47 [StorableConstructor] 48 private NPointCrossover( bool deserializing) : base(deserializing) { }48 private NPointCrossover(StorableConstructorFlag _) : base(_) { } 49 49 private NPointCrossover(NPointCrossover original, Cloner cloner) : base(original, cloner) { } 50 50 /// <summary> -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Crossovers/SinglePointCrossover.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.BinaryVectorEncoding { … … 34 34 /// </remarks> 35 35 [Item("SinglePointCrossover", "Single point crossover for binary vectors. It is implemented based on the NPointCrossover.")] 36 [Storable Class]36 [StorableType("40B6A5D5-8937-495E-8B98-2E4F8FD06D93")] 37 37 public sealed class SinglePointCrossover : BinaryVectorCrossover { 38 38 39 39 [StorableConstructor] 40 private SinglePointCrossover( bool deserializing) : base(deserializing) { }40 private SinglePointCrossover(StorableConstructorFlag _) : base(_) { } 41 41 private SinglePointCrossover(SinglePointCrossover original, Cloner cloner) : base(original, cloner) { } 42 42 public SinglePointCrossover() : base() { } -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Crossovers/UniformCrossover.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.BinaryVectorEncoding { … … 33 33 /// </remarks> 34 34 [Item("UniformCrossover", "Uniform crossover for binary vectors. It is implemented as described in Eiben, A.E. and Smith, J.E. 2003. Introduction to Evolutionary Computation. Natural Computing Series, Springer-Verlag Berlin Heidelberg.")] 35 [Storable Class]35 [StorableType("6B0DDD76-EC81-4C5A-989E-239A82B78E66")] 36 36 public sealed class UniformCrossover : BinaryVectorCrossover { 37 37 38 38 [StorableConstructor] 39 private UniformCrossover( bool deserializing) : base(deserializing) { }39 private UniformCrossover(StorableConstructorFlag _) : base(_) { } 40 40 private UniformCrossover(UniformCrossover original, Cloner cloner) : base(original, cloner) { } 41 41 public UniformCrossover() : base() { } -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/HeuristicLab.Encodings.BinaryVectorEncoding-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.BinaryVectorEncoding/3.3/Manipulators/SinglePositionBitflipManipulator.cs
r16453 r16462 22 22 using HeuristicLab.Common; 23 23 using HeuristicLab.Core; 24 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;24 using HEAL.Fossil; 25 25 26 26 namespace HeuristicLab.Encodings.BinaryVectorEncoding { … … 32 32 /// </remarks> 33 33 [Item("SinglePositionBitflipManipulator", "Flips exactly one bit of a binary 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.")] 34 [Storable Class]34 [StorableType("72BE48BD-F47C-4C81-81F6-FA42D496AC34")] 35 35 public sealed class SinglePositionBitflipManipulator : BinaryVectorManipulator { 36 36 37 37 [StorableConstructor] 38 private SinglePositionBitflipManipulator( bool deserializing) : base(deserializing) { }38 private SinglePositionBitflipManipulator(StorableConstructorFlag _) : base(_) { } 39 39 private SinglePositionBitflipManipulator(SinglePositionBitflipManipulator original, Cloner cloner) : base(original, cloner) { } 40 40 public SinglePositionBitflipManipulator() : base() { } -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Manipulators/SomePositionsBitflipManipulator.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.BinaryVectorEncoding { … … 35 35 /// </remarks> 36 36 [Item("SomePositionsBitflipManipulator", "Flips some bits of a binary vector, each position is flipped with a probability of pm. It is implemented as described in Eiben, A.E. and Smith, J.E. 2003. Introduction to Evolutionary Computation. Natural Computing Series, Springer-Verlag Berlin Heidelberg, p. 43.")] 37 [Storable Class]37 [StorableType("058E0380-0BFB-4E39-82DC-C4E3CCD8EAF5")] 38 38 public sealed class SomePositionsBitflipManipulator : BinaryVectorManipulator { 39 39 /// <summary> … … 45 45 46 46 [StorableConstructor] 47 private SomePositionsBitflipManipulator( bool deserializing) : base(deserializing) { }47 private SomePositionsBitflipManipulator(StorableConstructorFlag _) : base(_) { } 48 48 private SomePositionsBitflipManipulator(SomePositionsBitflipManipulator original, Cloner cloner) : base(original, cloner) { } 49 49 /// <summary> -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Moves/OneBitflipMove/ExhaustiveOneBitflipMoveGenerator.cs
r16453 r16462 23 23 using HeuristicLab.Core; 24 24 using HeuristicLab.Optimization; 25 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;25 using HEAL.Fossil; 26 26 27 27 namespace HeuristicLab.Encodings.BinaryVectorEncoding { 28 28 [Item("ExhaustiveBitflipMoveGenerator", "Generates all possible one bitflip moves from a given binaryVector.")] 29 [Storable Class]29 [StorableType("15F17361-2334-434A-904D-EF9426DEF32F")] 30 30 public sealed class ExhaustiveOneBitflipMoveGenerator : OneBitflipMoveGenerator, IExhaustiveMoveGenerator { 31 31 [StorableConstructor] 32 private ExhaustiveOneBitflipMoveGenerator( bool deserializing) : base(deserializing) { }32 private ExhaustiveOneBitflipMoveGenerator(StorableConstructorFlag _) : base(_) { } 33 33 private ExhaustiveOneBitflipMoveGenerator(ExhaustiveOneBitflipMoveGenerator original, Cloner cloner) : base(original, cloner) { } 34 34 public ExhaustiveOneBitflipMoveGenerator() : base() { } -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Moves/OneBitflipMove/OneBitflipMove.cs
r16453 r16462 22 22 using HeuristicLab.Common; 23 23 using HeuristicLab.Core; 24 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;24 using HEAL.Fossil; 25 25 26 26 namespace HeuristicLab.Encodings.BinaryVectorEncoding { 27 27 [Item("OneBitflipMove", "Item that describes a one bitflip move.")] 28 [Storable Class]28 [StorableType("BFF3ABCF-9C7B-41F8-8861-B2164D92FD89")] 29 29 public class OneBitflipMove : OneIndexMove { 30 30 [StorableConstructor] 31 protected OneBitflipMove( bool deserializing) : base(deserializing) { }31 protected OneBitflipMove(StorableConstructorFlag _) : base(_) { } 32 32 protected OneBitflipMove(OneBitflipMove original, Cloner cloner) : base(original, cloner) { } 33 33 public OneBitflipMove() : base() { } -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Moves/OneBitflipMove/OneBitflipMoveAttribute.cs
r16453 r16462 22 22 using HeuristicLab.Common; 23 23 using HeuristicLab.Core; 24 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;24 using HEAL.Fossil; 25 25 26 26 namespace HeuristicLab.Encodings.BinaryVectorEncoding { 27 27 [Item("OneBitflipMoveAttribute", "Describes the attributes (move quality and index) of a single bitflip move.")] 28 [Storable Class]28 [StorableType("D5CD3F76-E016-417F-B916-7666683A42D7")] 29 29 public class OneBitflipMoveAttribute : Item { 30 30 [Storable] … … 34 34 35 35 [StorableConstructor] 36 protected OneBitflipMoveAttribute( bool deserializing) : base(deserializing) { }36 protected OneBitflipMoveAttribute(StorableConstructorFlag _) : base(_) { } 37 37 protected OneBitflipMoveAttribute(OneBitflipMoveAttribute original, Cloner cloner) 38 38 : base(original, cloner) { -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Moves/OneBitflipMove/OneBitflipMoveGenerator.cs
r16453 r16462 25 25 using HeuristicLab.Optimization; 26 26 using HeuristicLab.Parameters; 27 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;27 using HEAL.Fossil; 28 28 29 29 namespace HeuristicLab.Encodings.BinaryVectorEncoding { 30 30 [Item("OneBitflipMoveGenerator", "Base class for all one bitflip move generators.")] 31 [Storable Class]31 [StorableType("600CE405-5ADC-471A-966B-27965190AF73")] 32 32 public abstract class OneBitflipMoveGenerator : SingleSuccessorOperator, IOneBitflipMoveOperator, IMoveGenerator { 33 33 public override bool CanChangeName { … … 45 45 46 46 [StorableConstructor] 47 protected OneBitflipMoveGenerator( bool deserializing) : base(deserializing) { }47 protected OneBitflipMoveGenerator(StorableConstructorFlag _) : base(_) { } 48 48 protected OneBitflipMoveGenerator(OneBitflipMoveGenerator original, Cloner cloner) : base(original, cloner) { } 49 49 public OneBitflipMoveGenerator() -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Moves/OneBitflipMove/OneBitflipMoveMaker.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.BinaryVectorEncoding { 31 31 [Item("OneBitflipMoveMaker", "Peforms a one bitflip move on a given BitVector and updates the quality.")] 32 [Storable Class]32 [StorableType("13029FD8-4A99-4EA6-A4AA-8877B86582B8")] 33 33 public class OneBitflipMoveMaker : SingleSuccessorOperator, IOneBitflipMoveOperator, IMoveMaker, ISingleObjectiveOperator { 34 34 public override bool CanChangeName { … … 49 49 50 50 [StorableConstructor] 51 protected OneBitflipMoveMaker( bool deserializing) : base(deserializing) { }51 protected OneBitflipMoveMaker(StorableConstructorFlag _) : base(_) { } 52 52 protected OneBitflipMoveMaker(OneBitflipMoveMaker original, Cloner cloner) : base(original, cloner) { } 53 53 public OneBitflipMoveMaker() -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Moves/OneBitflipMove/OneBitflipMoveTabuChecker.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.BinaryVectorEncoding { 31 31 [Item("OneBitflipMoveTabuChecker", "Prevents peforming a one bitflip move again.")] 32 [Storable Class]32 [StorableType("27523531-D19E-47ED-9397-F7457D41B85B")] 33 33 public class OneBitflipMoveTabuChecker : SingleSuccessorOperator, IOneBitflipMoveOperator, ITabuChecker { 34 34 public override bool CanChangeName { … … 63 63 64 64 [StorableConstructor] 65 protected OneBitflipMoveTabuChecker( bool deserializing) : base(deserializing) { }65 protected OneBitflipMoveTabuChecker(StorableConstructorFlag _) : base(_) { } 66 66 protected OneBitflipMoveTabuChecker(OneBitflipMoveTabuChecker original, Cloner cloner) : base(original, cloner) { } 67 67 public OneBitflipMoveTabuChecker() -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Moves/OneBitflipMove/OneBitflipMoveTabuMaker.cs
r16453 r16462 24 24 using HeuristicLab.Optimization.Operators; 25 25 using HeuristicLab.Parameters; 26 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;26 using HEAL.Fossil; 27 27 28 28 namespace HeuristicLab.Encodings.BinaryVectorEncoding { 29 29 [Item("OneBitflipMoveTabuMaker", "Declares a given one bitflip move as tabu, by adding its attributes to the tabu list. It also removes the oldest entry in the tabu list when its size is greater than tenure.")] 30 [Storable Class]30 [StorableType("F0C4D51D-EF93-426D-8D94-867BE0DBE1F6")] 31 31 public class OneBitflipMoveTabuMaker : TabuMaker, IOneBitflipMoveOperator { 32 32 public ILookupParameter<BinaryVector> BinaryVectorParameter { … … 38 38 39 39 [StorableConstructor] 40 protected OneBitflipMoveTabuMaker( bool deserializing) : base(deserializing) { }40 protected OneBitflipMoveTabuMaker(StorableConstructorFlag _) : base(_) { } 41 41 protected OneBitflipMoveTabuMaker(OneBitflipMoveTabuMaker original, Cloner cloner) : base(original, cloner) { } 42 42 public OneBitflipMoveTabuMaker() -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Moves/OneBitflipMove/StochasticOneBitflipMultiMoveGenerator.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.BinaryVectorEncoding { 31 31 [Item("StochasticOneBitflipMultiMoveGenerator", "Randomly samples n from all possible one bitflip moves from a given BinaryVector.")] 32 [Storable Class]32 [StorableType("11A9E43A-6291-4F9D-90AB-DC205923EE68")] 33 33 public class StochasticOneBitflipMultiMoveGenerator : OneBitflipMoveGenerator, IStochasticOperator, IMultiMoveGenerator { 34 34 public ILookupParameter<IRandom> RandomParameter { … … 45 45 46 46 [StorableConstructor] 47 protected StochasticOneBitflipMultiMoveGenerator( bool deserializing) : base(deserializing) { }47 protected StochasticOneBitflipMultiMoveGenerator(StorableConstructorFlag _) : base(_) { } 48 48 protected StochasticOneBitflipMultiMoveGenerator(StochasticOneBitflipMultiMoveGenerator original, Cloner cloner) : base(original, cloner) { } 49 49 public StochasticOneBitflipMultiMoveGenerator() -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Moves/OneBitflipMove/StochasticOneBitflipSingleMoveGenerator.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.BinaryVectorEncoding { 29 29 [Item("StochasticOneBitflipSingleMoveGenerator", "Randomly samples a single from all possible one bitflip moves from a given BinaryVector.")] 30 [Storable Class]30 [StorableType("9EFDBD19-B9AF-4820-8DA9-EE04370D7D8B")] 31 31 public class StochasticOneBitflipSingleMoveGenerator : OneBitflipMoveGenerator, IStochasticOperator, ISingleMoveGenerator { 32 32 public ILookupParameter<IRandom> RandomParameter { … … 35 35 36 36 [StorableConstructor] 37 protected StochasticOneBitflipSingleMoveGenerator( bool deserializing) : base(deserializing) { }37 protected StochasticOneBitflipSingleMoveGenerator(StorableConstructorFlag _) : base(_) { } 38 38 protected StochasticOneBitflipSingleMoveGenerator(StochasticOneBitflipSingleMoveGenerator original, Cloner cloner) : base(original, cloner) { } 39 39 public StochasticOneBitflipSingleMoveGenerator() -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Moves/OneIndexMove.cs
r16453 r16462 22 22 using HeuristicLab.Common; 23 23 using HeuristicLab.Core; 24 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;24 using HEAL.Fossil; 25 25 26 26 namespace HeuristicLab.Encodings.BinaryVectorEncoding { 27 27 [Item("OneIndexMove", "A move on a binary vector that is specified by 1 index")] 28 [Storable Class]28 [StorableType("C7948F7F-EC47-4752-9E18-9299123189D1")] 29 29 public class OneIndexMove : Item { 30 30 [Storable] … … 34 34 35 35 [StorableConstructor] 36 protected OneIndexMove( bool deserializing) : base(deserializing) { }36 protected OneIndexMove(StorableConstructorFlag _) : base(_) { } 37 37 protected OneIndexMove(OneIndexMove original, Cloner cloner) 38 38 : base(original, cloner) { -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/ShakingOperators/BinaryVectorShakingOperator.cs
r16453 r16462 28 28 using HeuristicLab.Optimization.Operators; 29 29 using HeuristicLab.Parameters; 30 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;30 using HEAL.Fossil; 31 31 using HeuristicLab.PluginInfrastructure; 32 32 … … 36 36 /// </summary> 37 37 [Item("BinaryVectorShakingOperator", "A shaking operator for VNS which uses available manipulation operators to perform the shaking.")] 38 [Storable Class]38 [StorableType("9AC6B66C-C95D-4A39-8E40-6F4B5AC03B6E")] 39 39 public class BinaryVectorShakingOperator : ShakingOperator<IBinaryVectorManipulator>, IBinaryVectorMultiNeighborhoodShakingOperator, IStochasticOperator { 40 40 … … 48 48 49 49 [StorableConstructor] 50 protected BinaryVectorShakingOperator( bool deserializing) : base(deserializing) { }50 protected BinaryVectorShakingOperator(StorableConstructorFlag _) : base(_) { } 51 51 protected BinaryVectorShakingOperator(BinaryVectorShakingOperator original, Cloner cloner) : base(original, cloner) { } 52 52 public override IDeepCloneable Clone(Cloner cloner) { -
branches/2520_PersistenceReintegration/HeuristicLab.Encodings.BinaryVectorEncoding/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.BinaryVectorEncoding { 29 29 [Item("Hamming Similarity Calculator for BinaryVector", "Calculates the solution similarity based on the Hamming distance between two binary vectors.")] 30 [Storable Class]30 [StorableType("1718CDA7-9BC7-4A05-A52D-774BEEB59E05")] 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() { }
Note: See TracChangeset
for help on using the changeset viewer.