- Timestamp:
- 12/28/18 16:10:48 (6 years ago)
- Location:
- branches/2520_PersistenceReintegration/HeuristicLab.Problems.Knapsack/3.3
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2520_PersistenceReintegration/HeuristicLab.Problems.Knapsack/3.3/Analyzers/BestKnapsackSolutionAnalyzer.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 32 32 namespace HeuristicLab.Problems.Knapsack { … … 35 35 /// </summary> 36 36 [Item("BestKnapsackSolutionAnalyzer", "An operator for analyzing the best solution for a Knapsack problem.")] 37 [Storable Class]37 [StorableType("40BCB11E-F9C9-4749-A4FF-831BD8342D1A")] 38 38 public class BestKnapsackSolutionAnalyzer : SingleSuccessorOperator, IAnalyzer, ISingleObjectiveOperator { 39 39 public virtual bool EnabledByDefault { … … 73 73 74 74 [StorableConstructor] 75 protected BestKnapsackSolutionAnalyzer( bool deserializing) : base(deserializing) { }75 protected BestKnapsackSolutionAnalyzer(StorableConstructorFlag _) : base(_) { } 76 76 protected BestKnapsackSolutionAnalyzer(BestKnapsackSolutionAnalyzer original, Cloner cloner) : base(original, cloner) { } 77 77 public BestKnapsackSolutionAnalyzer() -
branches/2520_PersistenceReintegration/HeuristicLab.Problems.Knapsack/3.3/Evaluators/KnapsackEvaluator.cs
r16453 r16462 27 27 using HeuristicLab.Operators; 28 28 using HeuristicLab.Parameters; 29 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;29 using HEAL.Fossil; 30 30 31 31 namespace HeuristicLab.Problems.Knapsack { … … 34 34 /// </summary> 35 35 [Item("KnapsackEvaluator", "Evaluates solutions for the Knapsack problem.")] 36 [Storable Class]36 [StorableType("905F6A31-FDC1-48EA-9229-DA23956F1929")] 37 37 public class KnapsackEvaluator : InstrumentedOperator, IKnapsackEvaluator { 38 38 public ILookupParameter<DoubleValue> QualityParameter { … … 70 70 71 71 [StorableConstructor] 72 protected KnapsackEvaluator( bool deserializing) : base(deserializing) { }72 protected KnapsackEvaluator(StorableConstructorFlag _) : base(_) { } 73 73 protected KnapsackEvaluator(KnapsackEvaluator original, Cloner cloner) : base(original, cloner) { } 74 74 public KnapsackEvaluator() -
branches/2520_PersistenceReintegration/HeuristicLab.Problems.Knapsack/3.3/HeuristicLab.Problems.Knapsack-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.Problems.Knapsack/3.3/Improvers/KnapsackImprovementOperator.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 33 33 namespace HeuristicLab.Problems.Knapsack { … … 40 40 /// </remarks> 41 41 [Item("KnapsackImprovementOperator", "An operator that improves knapsack solutions. It is implemented as described in Laguna, M. and Martí, R. (2003). Scatter Search: Methodology and Implementations in C. Operations Research/Computer Science Interfaces Series, Vol. 24. Springer.")] 42 [Storable Class]42 [StorableType("DD57DC5B-8874-49C8-B28F-89962FC11EB2")] 43 43 public sealed class KnapsackImprovementOperator : SingleSuccessorOperator, ISingleObjectiveImprovementOperator { 44 44 #region Parameter properties … … 86 86 87 87 [StorableConstructor] 88 private KnapsackImprovementOperator( bool deserializing) : base(deserializing) { }88 private KnapsackImprovementOperator(StorableConstructorFlag _) : base(_) { } 89 89 private KnapsackImprovementOperator(KnapsackImprovementOperator original, Cloner cloner) : base(original, cloner) { } 90 90 public KnapsackImprovementOperator() -
branches/2520_PersistenceReintegration/HeuristicLab.Problems.Knapsack/3.3/KnapsackProblem.cs
r16453 r16462 31 31 using HeuristicLab.Optimization.Operators; 32 32 using HeuristicLab.Parameters; 33 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;33 using HEAL.Fossil; 34 34 using HeuristicLab.PluginInfrastructure; 35 35 … … 37 37 [Item("Knapsack Problem (KSP)", "Represents a Knapsack problem.")] 38 38 [Creatable(CreatableAttribute.Categories.CombinatorialProblems, Priority = 200)] 39 [Storable Class]39 [StorableType("8CEDAFA2-6E0A-4D4B-B6C6-F85CC58B824E")] 40 40 public sealed class KnapsackProblem : SingleObjectiveHeuristicOptimizationProblem<IKnapsackEvaluator, IBinaryVectorCreator>, IStorableContent { 41 41 public string Filename { get; set; } … … 99 99 100 100 [StorableConstructor] 101 private KnapsackProblem( bool deserializing) : base(deserializing) { }101 private KnapsackProblem(StorableConstructorFlag _) : base(_) { } 102 102 private KnapsackProblem(KnapsackProblem original, Cloner cloner) 103 103 : base(original, cloner) { -
branches/2520_PersistenceReintegration/HeuristicLab.Problems.Knapsack/3.3/KnapsackSolution.cs
r16453 r16462 26 26 using HeuristicLab.Data; 27 27 using HeuristicLab.Encodings.BinaryVectorEncoding; 28 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;28 using HEAL.Fossil; 29 29 30 30 namespace HeuristicLab.Problems.Knapsack { … … 33 33 /// </summary> 34 34 [Item("KnapsackSolution", "Represents a Knapsack solution which can be visualized in the GUI.")] 35 [Storable Class]35 [StorableType("C959079D-3D92-4C88-8734-9DADEE851169")] 36 36 public class KnapsackSolution : Item { 37 37 public static new Image StaticItemImage { … … 110 110 111 111 [StorableConstructor] 112 protected KnapsackSolution( bool deserializing) : base(deserializing) { }112 protected KnapsackSolution(StorableConstructorFlag _) : base(_) { } 113 113 protected KnapsackSolution(KnapsackSolution original, Cloner cloner) 114 114 : base(original, cloner) { -
branches/2520_PersistenceReintegration/HeuristicLab.Problems.Knapsack/3.3/MoveEvaluators/KnapsackMoveEvaluator.cs
r16453 r16462 25 25 using HeuristicLab.Encodings.BinaryVectorEncoding; 26 26 using HeuristicLab.Operators; 27 using HeuristicLab.Optimization;28 27 using HeuristicLab.Parameters; 29 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;28 using HEAL.Fossil; 30 29 31 30 namespace HeuristicLab.Problems.Knapsack { … … 34 33 /// </summary> 35 34 [Item("KnapsackMoveEvaluator", "A base class for operators which evaluate Knapsack moves.")] 36 [Storable Class]35 [StorableType("F953FC74-8688-48E5-856D-E9D8A2411CA0")] 37 36 public abstract class KnapsackMoveEvaluator : SingleSuccessorOperator, IKnapsackMoveEvaluator, IBinaryVectorMoveOperator { 38 37 public ILookupParameter<DoubleValue> QualityParameter { … … 59 58 60 59 [StorableConstructor] 61 protected KnapsackMoveEvaluator( bool deserializing) : base(deserializing) { }60 protected KnapsackMoveEvaluator(StorableConstructorFlag _) : base(_) { } 62 61 protected KnapsackMoveEvaluator(KnapsackMoveEvaluator original, Cloner cloner) : base(original, cloner) { } 63 62 protected KnapsackMoveEvaluator() -
branches/2520_PersistenceReintegration/HeuristicLab.Problems.Knapsack/3.3/MoveEvaluators/KnapsackOneBitflipMoveEvaluator.cs
r16453 r16462 25 25 using HeuristicLab.Encodings.BinaryVectorEncoding; 26 26 using HeuristicLab.Parameters; 27 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;27 using HEAL.Fossil; 28 28 29 29 namespace HeuristicLab.Problems.Knapsack { … … 32 32 /// </summary> 33 33 [Item("KnapsackOneBitflipMoveEvaluator", "Base class for evaluating one bitflip moves.")] 34 [Storable Class]34 [StorableType("E1BB4CCB-E9C3-4A16-8F03-3F619D4A4B0A")] 35 35 public class KnapsackOneBitflipMoveEvaluator : KnapsackMoveEvaluator, IOneBitflipMoveOperator { 36 36 public ILookupParameter<OneBitflipMove> OneBitflipMoveParameter { … … 39 39 40 40 [StorableConstructor] 41 protected KnapsackOneBitflipMoveEvaluator( bool deserializing) : base(deserializing) { }41 protected KnapsackOneBitflipMoveEvaluator(StorableConstructorFlag _) : base(_) { } 42 42 protected KnapsackOneBitflipMoveEvaluator(KnapsackOneBitflipMoveEvaluator original, Cloner cloner) : base(original, cloner) { } 43 43 public KnapsackOneBitflipMoveEvaluator() -
branches/2520_PersistenceReintegration/HeuristicLab.Problems.Knapsack/3.3/PathRelinkers/KnapsackPathRelinker.cs
r16453 r16462 28 28 using HeuristicLab.Encodings.BinaryVectorEncoding; 29 29 using HeuristicLab.Optimization.Operators; 30 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;30 using HEAL.Fossil; 31 31 32 32 namespace HeuristicLab.Problems.Knapsack { … … 38 38 /// </remarks> 39 39 [Item("KnapsackPathRelinker", "An operator that relinks paths between knapsack solutions. The operator incrementally assimilates the initiating solution into the guiding solution by adding and removing elements as needed.")] 40 [Storable Class]40 [StorableType("3A528AB4-5552-4979-B443-2943A3496BC3")] 41 41 public sealed class KnapsackPathRelinker : SingleObjectivePathRelinker { 42 42 [StorableConstructor] 43 private KnapsackPathRelinker( bool deserializing) : base(deserializing) { }43 private KnapsackPathRelinker(StorableConstructorFlag _) : base(_) { } 44 44 private KnapsackPathRelinker(KnapsackPathRelinker original, Cloner cloner) : base(original, cloner) { } 45 45 public KnapsackPathRelinker() : base() { } -
branches/2520_PersistenceReintegration/HeuristicLab.Problems.Knapsack/3.3/PathRelinkers/KnapsackSimultaneousPathRelinker.cs
r16453 r16462 28 28 using HeuristicLab.Encodings.BinaryVectorEncoding; 29 29 using HeuristicLab.Optimization.Operators; 30 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;30 using HEAL.Fossil; 31 31 32 32 namespace HeuristicLab.Problems.Knapsack { … … 38 38 /// </remarks> 39 39 [Item("KnapsackSimultaneousPathRelinker", "An operator that relinks paths between knapsack solutions starting from both ends. The operator incrementally assimilates the initiating solution into the guiding solution and vice versa by adding and removing elements as needed.")] 40 [Storable Class]40 [StorableType("8D046D17-BA0F-4974-AF76-95B3F90FB7A4")] 41 41 public sealed class KnapsackSimultaneousPathRelinker : SingleObjectivePathRelinker { 42 42 [StorableConstructor] 43 private KnapsackSimultaneousPathRelinker( bool deserializing) : base(deserializing) { }43 private KnapsackSimultaneousPathRelinker(StorableConstructorFlag _) : base(_) { } 44 44 private KnapsackSimultaneousPathRelinker(KnapsackSimultaneousPathRelinker original, Cloner cloner) : base(original, cloner) { } 45 45 public KnapsackSimultaneousPathRelinker() : base() { } -
branches/2520_PersistenceReintegration/HeuristicLab.Problems.Knapsack/3.3/SimilarityCalculators/KnapsackSimilarityCalculator.cs
r16453 r16462 21 21 22 22 using System; 23 using HEAL.Fossil; 23 24 using HeuristicLab.Common; 24 25 using HeuristicLab.Core; … … 40 41 protected override bool IsCommutative { get { return true; } } 41 42 42 private KnapsackSimilarityCalculator(bool deserializing) : base(deserializing) { } 43 [StorableConstructor] 44 private KnapsackSimilarityCalculator(StorableConstructorFlag _) : base(_) { } 43 45 private KnapsackSimilarityCalculator(KnapsackSimilarityCalculator original, Cloner cloner) : base(original, cloner) { } 44 46 public KnapsackSimilarityCalculator() : base() { }
Note: See TracChangeset
for help on using the changeset viewer.