- Timestamp:
- 12/28/18 16:10:48 (6 years ago)
- Location:
- branches/2520_PersistenceReintegration/HeuristicLab.Problems.BinPacking/3.3/2D
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2520_PersistenceReintegration/HeuristicLab.Problems.BinPacking/3.3/2D/BinPacking2D.cs
r15583 r16462 23 23 using System.Collections.Generic; 24 24 using System.Linq; 25 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;25 using HEAL.Fossil; 26 26 using HeuristicLab.Core; 27 27 using HeuristicLab.Common; … … 29 29 namespace HeuristicLab.Problems.BinPacking2D { 30 30 [Item("BinPacking2D", "Represents a single-bin packing for a 2D bin-packing problem.")] 31 [Storable Class]31 [StorableType("8B9C6AB0-ED65-4868-B1DF-09BD1F49309A")] 32 32 public class BinPacking2D : BinPacking.BinPacking<PackingPosition, PackingShape, PackingItem> { 33 33 … … 39 39 40 40 [StorableConstructor] 41 protected BinPacking2D( bool deserializing) : base(deserializing) { }41 protected BinPacking2D(StorableConstructorFlag _) : base(_) { } 42 42 protected BinPacking2D(BinPacking2D original, Cloner cloner) : base(original, cloner) { } 43 43 public override IDeepCloneable Clone(Cloner cloner) { -
branches/2520_PersistenceReintegration/HeuristicLab.Problems.BinPacking/3.3/2D/Evaluators/BinUtilizationEvaluator.cs
r15583 r16462 20 20 #endregion 21 21 22 using System;23 22 using System.Linq; 24 23 using HeuristicLab.Core; 25 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;24 using HEAL.Fossil; 26 25 using HeuristicLab.Common; 27 26 28 27 namespace HeuristicLab.Problems.BinPacking2D { 29 28 [Item("Bin-Utilization Evaluator (2d)", "Calculates the overall utilization of bin space.")] 30 [Storable Class]29 [StorableType("54C2F064-D3C8-40C0-808D-B952D0C43033")] 31 30 public class BinUtilizationEvaluator : Item, IEvaluator { 32 31 33 32 [StorableConstructor] 34 protected BinUtilizationEvaluator( bool deserializing) : base(deserializing) { }33 protected BinUtilizationEvaluator(StorableConstructorFlag _) : base(_) { } 35 34 protected BinUtilizationEvaluator(BinUtilizationEvaluator original, Cloner cloner) 36 35 : base(original, cloner) { -
branches/2520_PersistenceReintegration/HeuristicLab.Problems.BinPacking/3.3/2D/Evaluators/PackingRatioEvaluator.cs
r15583 r16462 23 23 using System.Linq; 24 24 using HeuristicLab.Core; 25 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;25 using HEAL.Fossil; 26 26 using HeuristicLab.Common; 27 27 28 28 namespace HeuristicLab.Problems.BinPacking2D { 29 29 [Item("Packing-Ratio Evaluator (2d)", "Calculates the ratio between packed and unpacked space.")] 30 [Storable Class]30 [StorableType("F07A6B7A-763B-413C-B3DA-916A6147B71A")] 31 31 public class PackingRatioEvaluator : Item, IEvaluator { 32 32 33 33 [StorableConstructor] 34 protected PackingRatioEvaluator( bool deserializing) : base(deserializing) { }34 protected PackingRatioEvaluator(StorableConstructorFlag _) : base(_) { } 35 35 protected PackingRatioEvaluator(PackingRatioEvaluator original, Cloner cloner) 36 36 : base(original, cloner) { -
branches/2520_PersistenceReintegration/HeuristicLab.Problems.BinPacking/3.3/2D/IntegerVectorEncoding/BottomLeftIntegerVectorDecoder.cs
r15583 r16462 20 20 #endregion 21 21 22 using System.Linq;23 22 using HeuristicLab.Core; 24 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;23 using HEAL.Fossil; 25 24 using HeuristicLab.Common; 26 25 using System.Collections.Generic; 27 using HeuristicLab.Encodings.IntegerVectorEncoding;28 26 29 27 namespace HeuristicLab.Problems.BinPacking2D { 30 28 [Item("Bottom-left IntegerVector Decoder (2d)", "Decodes the integer vector and creates a packing solution candidate")] 31 [Storable Class]29 [StorableType("27643FED-BADA-48BF-8A71-38C35D160961")] 32 30 public class BottomLeftIntegerVectorDecoder : IntegerVectorDecoderBase { 33 31 34 32 [StorableConstructor] 35 protected BottomLeftIntegerVectorDecoder( bool deserializing) : base(deserializing) { }33 protected BottomLeftIntegerVectorDecoder(StorableConstructorFlag _) : base(_) { } 36 34 protected BottomLeftIntegerVectorDecoder(BottomLeftIntegerVectorDecoder original, Cloner cloner) 37 35 : base(original, cloner) { -
branches/2520_PersistenceReintegration/HeuristicLab.Problems.BinPacking/3.3/2D/IntegerVectorEncoding/ExtremePointIntegerVectorDecoder.cs
r15583 r16462 21 21 22 22 using HeuristicLab.Core; 23 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;23 using HEAL.Fossil; 24 24 using HeuristicLab.Common; 25 25 using System.Collections.Generic; 26 using System.Linq;27 using HeuristicLab.Encodings.IntegerVectorEncoding;28 26 29 27 namespace HeuristicLab.Problems.BinPacking2D { 30 28 [Item("Extreme-point IntegerVector Decoder (2d)", "Decodes the integer vector and creates a packing solution candidate")] 31 [Storable Class]29 [StorableType("D40DEE7A-4AAC-47DA-9FA8-12D3C09177A7")] 32 30 public class ExtremePointIntegerVectorDecoder : IntegerVectorDecoderBase { 33 31 34 32 [StorableConstructor] 35 protected ExtremePointIntegerVectorDecoder( bool deserializing) : base(deserializing) { }33 protected ExtremePointIntegerVectorDecoder(StorableConstructorFlag _) : base(_) { } 36 34 protected ExtremePointIntegerVectorDecoder(ExtremePointIntegerVectorDecoder original, Cloner cloner) 37 35 : base(original, cloner) { -
branches/2520_PersistenceReintegration/HeuristicLab.Problems.BinPacking/3.3/2D/IntegerVectorEncoding/IntegerVectorDecoderBase.cs
r15583 r16462 21 21 22 22 using HeuristicLab.Core; 23 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;23 using HEAL.Fossil; 24 24 using HeuristicLab.Common; 25 25 using System.Collections.Generic; … … 28 28 29 29 namespace HeuristicLab.Problems.BinPacking2D { 30 [Storable Class]30 [StorableType("63588140-31BB-402A-BEEE-B11C8809A585")] 31 31 public abstract class IntegerVectorDecoderBase : Item, IDecoder<IntegerVector> { 32 32 33 33 [StorableConstructor] 34 protected IntegerVectorDecoderBase( bool deserializing) : base(deserializing) { }34 protected IntegerVectorDecoderBase(StorableConstructorFlag _) : base(_) { } 35 35 protected IntegerVectorDecoderBase(IntegerVectorDecoderBase original, Cloner cloner) 36 36 : base(original, cloner) { -
branches/2520_PersistenceReintegration/HeuristicLab.Problems.BinPacking/3.3/2D/IntegerVectorEncoding/IntegerVectorProblem.cs
r16453 r16462 30 30 using HeuristicLab.Optimization; 31 31 using HeuristicLab.Optimization.Operators; 32 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;32 using HEAL.Fossil; 33 33 34 34 namespace HeuristicLab.Problems.BinPacking2D { 35 35 [Item("Bin Packing Problem (2D, integer vector encoding) (BPP)", "Represents a two-dimensional bin-packing problem using only bins with identical measures and bins/items with rectangular shapes.")] 36 [Storable Class]36 [StorableType("0928004F-FB4B-4516-9FAE-B44D2F39413B")] 37 37 [Creatable(Category = CreatableAttribute.Categories.CombinatorialProblems, Priority = 310)] 38 38 public sealed class IntegerVectorProblem : ProblemBase<IntegerVectorEncoding, IntegerVector> { 39 39 // persistence 40 40 [StorableConstructor] 41 private IntegerVectorProblem( bool deserializing) : base(deserializing) { }41 private IntegerVectorProblem(StorableConstructorFlag _) : base(_) { } 42 42 43 43 // cloning -
branches/2520_PersistenceReintegration/HeuristicLab.Problems.BinPacking/3.3/2D/MoveEvaluatorBase.cs
r15583 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.Problems.BinPacking2D { 31 [Storable Class]31 [StorableType("13553924-A74F-4897-ABAB-CD049CFD2B41")] 32 32 public abstract class MoveEvaluatorBase<TSol, TMove> : SingleSuccessorOperator, 33 33 ISingleObjectiveMoveEvaluator, ISingleObjectiveMoveOperator, IOperator<TSol> … … 61 61 62 62 [StorableConstructor] 63 protected MoveEvaluatorBase( bool deserializing) : base(deserializing) { }63 protected MoveEvaluatorBase(StorableConstructorFlag _) : base(_) { } 64 64 protected MoveEvaluatorBase(MoveEvaluatorBase<TSol, TMove> original, Cloner cloner) : base(original, cloner) { } 65 65 protected MoveEvaluatorBase() -
branches/2520_PersistenceReintegration/HeuristicLab.Problems.BinPacking/3.3/2D/PackingItem.cs
r15583 r16462 21 21 22 22 23 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;23 using HEAL.Fossil; 24 24 using HeuristicLab.Common; 25 25 using HeuristicLab.Core; … … 30 30 namespace HeuristicLab.Problems.BinPacking2D { 31 31 [Item("PackingItem (2d)", "Represents a rectangular packing-item for bin-packing problems.")] 32 [Storable Class]32 [StorableType("36B693B0-3CD9-4EE2-97EF-B8BEA8E4877A")] 33 33 public class PackingItem : PackingShape, IPackingItem { 34 34 … … 49 49 50 50 [StorableConstructor] 51 protected PackingItem( bool deserializing) : base(deserializing) { }51 protected PackingItem(StorableConstructorFlag _) : base(_) { } 52 52 protected PackingItem(PackingItem original, Cloner cloner) 53 53 : base(original, cloner) { -
branches/2520_PersistenceReintegration/HeuristicLab.Problems.BinPacking/3.3/2D/PackingPosition.cs
r15583 r16462 21 21 22 22 using System; 23 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;23 using HEAL.Fossil; 24 24 using HeuristicLab.Core; 25 25 using HeuristicLab.Common; … … 27 27 namespace HeuristicLab.Problems.BinPacking2D { 28 28 [Item("Packing Position (2d)", "Represents a packing-position associated with a two dimensional packing-problem.")] 29 [Storable Class]29 [StorableType("7B0A0FD9-2D2C-4E03-BB66-674446A07587")] 30 30 // PackingPosition is an immutable class (and handled as value type concerning Equals and GetHashCode()) 31 31 public class PackingPosition : BinPacking.PackingPosition, IComparable<PackingPosition> { … … 39 39 40 40 [StorableConstructor] 41 protected PackingPosition( bool deserializing) : base(deserializing) { }41 protected PackingPosition(StorableConstructorFlag _) : base(_) { } 42 42 protected PackingPosition(PackingPosition original, Cloner cloner) 43 43 : base(original, cloner) { -
branches/2520_PersistenceReintegration/HeuristicLab.Problems.BinPacking/3.3/2D/PackingShape.cs
r15583 r16462 23 23 using System; 24 24 using HeuristicLab.Core; 25 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;25 using HEAL.Fossil; 26 26 using HeuristicLab.Common; 27 27 using HeuristicLab.Data; … … 31 31 namespace HeuristicLab.Problems.BinPacking2D { 32 32 [Item("PackingShape (2d)", "Represents the rectangular measures (width, height) of a two-dimensional bin-packing object.")] 33 [Storable Class]33 [StorableType("11EF7917-826C-4154-A7E6-0869C1188B95")] 34 34 public class PackingShape : PackingShape<PackingPosition>, IComparable<PackingShape> { 35 35 public int Height { … … 44 44 45 45 [StorableConstructor] 46 protected PackingShape( bool deserializing) : base(deserializing) { }46 protected PackingShape(StorableConstructorFlag _) : base(_) { } 47 47 protected PackingShape(PackingShape original, Cloner cloner) 48 48 : base(original, cloner) { -
branches/2520_PersistenceReintegration/HeuristicLab.Problems.BinPacking/3.3/2D/PermutationEncoding/BottomLeftPermutationDecoder.cs
r15583 r16462 21 21 22 22 using HeuristicLab.Core; 23 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;23 using HEAL.Fossil; 24 24 using HeuristicLab.Common; 25 25 using System.Collections.Generic; … … 28 28 namespace HeuristicLab.Problems.BinPacking2D { 29 29 [Item("Bottom-left Permutation Decoder (2d)", "Decodes the permutation and creates a packing solution candidate")] 30 [Storable Class]30 [StorableType("BD0B1034-46EC-430A-B971-258FACC9A39B")] 31 31 public class BottomLeftPermutationDecoder : Item, IDecoder<Permutation> { 32 32 33 33 [StorableConstructor] 34 protected BottomLeftPermutationDecoder( bool deserializing) : base(deserializing) { }34 protected BottomLeftPermutationDecoder(StorableConstructorFlag _) : base(_) { } 35 35 protected BottomLeftPermutationDecoder(BottomLeftPermutationDecoder original, Cloner cloner) 36 36 : base(original, cloner) { -
branches/2520_PersistenceReintegration/HeuristicLab.Problems.BinPacking/3.3/2D/PermutationEncoding/ExtremePointPermutationDecoder.cs
r15583 r16462 21 21 22 22 using HeuristicLab.Core; 23 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;23 using HEAL.Fossil; 24 24 using HeuristicLab.Common; 25 25 using System.Collections.Generic; … … 28 28 namespace HeuristicLab.Problems.BinPacking2D { 29 29 [Item("Extreme-point Permutation Decoder (2d)", "Decodes the permutation and creates a packing solution candidate")] 30 [Storable Class]30 [StorableType("F50F332A-CFE7-4AB7-95C6-8D7943B3DEF2")] 31 31 public class ExtremePointPermutationDecoder : Item, IDecoder<Permutation> { 32 32 33 33 [StorableConstructor] 34 protected ExtremePointPermutationDecoder( bool deserializing) : base(deserializing) { }34 protected ExtremePointPermutationDecoder(StorableConstructorFlag _) : base(_) { } 35 35 protected ExtremePointPermutationDecoder(ExtremePointPermutationDecoder original, Cloner cloner) 36 36 : base(original, cloner) { -
branches/2520_PersistenceReintegration/HeuristicLab.Problems.BinPacking/3.3/2D/PermutationEncoding/PermutationProblem.cs
r16453 r16462 29 29 using HeuristicLab.Optimization; 30 30 using HeuristicLab.Optimization.Operators; 31 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;31 using HEAL.Fossil; 32 32 33 33 namespace HeuristicLab.Problems.BinPacking2D { 34 34 [Item("Bin Packing Problem (2D, permutation encoding) (BPP)", "Represents a two-dimensional bin-packing problem using only bins with identical measures and bins/items with rectangular shapes.")] 35 [Storable Class]35 [StorableType("BE95CC5D-7FFD-4BC7-A2FF-7D71D3B951F6")] 36 36 [Creatable(Category = CreatableAttribute.Categories.CombinatorialProblems, Priority = 300)] 37 37 public sealed class PermutationProblem : ProblemBase<PermutationEncoding, Permutation> { 38 38 // persistence 39 39 [StorableConstructor] 40 private PermutationProblem( bool deserializing) : base(deserializing) { }40 private PermutationProblem(StorableConstructorFlag _) : base(_) { } 41 41 42 42 // cloning -
branches/2520_PersistenceReintegration/HeuristicLab.Problems.BinPacking/3.3/2D/PermutationEncoding/Swap2MoveEvaluator.cs
r15583 r16462 23 23 using HeuristicLab.Core; 24 24 using HeuristicLab.Encodings.PermutationEncoding; 25 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;25 using HEAL.Fossil; 26 26 27 27 namespace HeuristicLab.Problems.BinPacking2D { 28 28 [Item("Swap2MoveEvaluator", "Move evaluator for 2-opt moves.")] 29 [Storable Class]29 [StorableType("7C1A0291-AD10-457D-B7B3-3D2B5B02C58D")] 30 30 public sealed class Swap2MoveEvaluator : MoveEvaluatorBase<Permutation, Swap2Move>, IPermutationSwap2MoveOperator { 31 31 public ILookupParameter<Swap2Move> Swap2MoveParameter { … … 37 37 38 38 [StorableConstructor] 39 private Swap2MoveEvaluator( bool deserializing) : base(deserializing) { }39 private Swap2MoveEvaluator(StorableConstructorFlag _) : base(_) { } 40 40 private Swap2MoveEvaluator(Swap2MoveEvaluator original, Cloner cloner) : base(original, cloner) { } 41 41 public Swap2MoveEvaluator() -
branches/2520_PersistenceReintegration/HeuristicLab.Problems.BinPacking/3.3/2D/PermutationEncoding/TranslocationMoveEvaluator.cs
r15583 r16462 23 23 using HeuristicLab.Core; 24 24 using HeuristicLab.Encodings.PermutationEncoding; 25 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;25 using HEAL.Fossil; 26 26 27 27 namespace HeuristicLab.Problems.BinPacking2D { 28 28 [Item("TranslocationMoveEvaluator", "Move evaluator for insertion or translocation moves.")] 29 [Storable Class]29 [StorableType("9198644C-27DA-408B-810E-7686F0539802")] 30 30 public sealed class TranslocationMoveEvaluator : MoveEvaluatorBase<Permutation, TranslocationMove>, IPermutationTranslocationMoveOperator { 31 31 public ILookupParameter<TranslocationMove> TranslocationMoveParameter { … … 36 36 } 37 37 [StorableConstructor] 38 private TranslocationMoveEvaluator( bool deserializing) : base(deserializing) { }38 private TranslocationMoveEvaluator(StorableConstructorFlag _) : base(_) { } 39 39 private TranslocationMoveEvaluator(TranslocationMoveEvaluator original, Cloner cloner) : base(original, cloner) { } 40 40 public TranslocationMoveEvaluator() -
branches/2520_PersistenceReintegration/HeuristicLab.Problems.BinPacking/3.3/2D/ProblemBase.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.Problems.Instances; 32 32 33 33 namespace HeuristicLab.Problems.BinPacking2D { 34 [Storable Class]34 [StorableType("215B7963-4B3D-4197-B18F-16CC13EC5D68")] 35 35 public abstract class ProblemBase<TEnc, TSol> : 36 36 SingleObjectiveBasicProblem<TEnc>, IProblemInstanceConsumer<BPPData>, IProblemInstanceExporter<BPPData> … … 138 138 // persistence 139 139 [StorableConstructor] 140 protected ProblemBase( bool deserializing) : base(deserializing) { }140 protected ProblemBase(StorableConstructorFlag _) : base(_) { } 141 141 142 142 // cloning -
branches/2520_PersistenceReintegration/HeuristicLab.Problems.BinPacking/3.3/2D/Solution.cs
r15583 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 using HeuristicLab.Problems.BinPacking; 26 26 27 27 namespace HeuristicLab.Problems.BinPacking2D { 28 28 [Item("Bin Packing Solution (2d)", "Represents a solution for a 2D bin packing problem.")] 29 [Storable Class]29 [StorableType("9C014DEE-B1B3-447F-885E-5887E29DADF1")] 30 30 public class Solution : PackingPlan<PackingPosition, PackingShape, PackingItem> { 31 31 public Solution(PackingShape binShape) : this(binShape, false, false) { } 32 32 public Solution(PackingShape binShape, bool useExtremePoints, bool stackingConstraints) : base(binShape, useExtremePoints, stackingConstraints) { } 33 33 [StorableConstructor] 34 protected Solution( bool deserializing) : base(deserializing) { }34 protected Solution(StorableConstructorFlag _) : base(_) { } 35 35 protected Solution(Solution original, Cloner cloner) 36 36 : base(original, cloner) {
Note: See TracChangeset
for help on using the changeset viewer.