Changeset 17097 for stable/HeuristicLab.Problems.BinPacking/3.3/3D
- Timestamp:
- 07/07/19 23:40:10 (5 years ago)
- Location:
- stable
- Files:
-
- 30 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
-
stable/HeuristicLab.Problems.BinPacking
- Property svn:mergeinfo changed
/branches/2520_PersistenceReintegration/HeuristicLab.Problems.BinPacking (added) merged: 16452-16454,16462,16476,16529,16539,16558-16559 /trunk/HeuristicLab.Problems.BinPacking merged: 16565,16568
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.BinPacking/3.3/3D/BinPacking3D.cs
r15584 r17097 23 23 using System.Collections.Generic; 24 24 using System.Linq; 25 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;25 using HEAL.Attic; 26 26 using HeuristicLab.Core; 27 27 using HeuristicLab.Common; … … 30 30 namespace HeuristicLab.Problems.BinPacking3D { 31 31 [Item("BinPacking3D", "Represents a single-bin packing for a 3D bin-packing problem.")] 32 [Storable Class]32 [StorableType("34D86A6D-F75F-4F62-9FB6-D7FEA738CECD")] 33 33 public class BinPacking3D : BinPacking<PackingPosition, PackingShape, PackingItem> { 34 34 … … 43 43 } 44 44 [StorableConstructor] 45 protected BinPacking3D( bool deserializing) : base(deserializing) { }45 protected BinPacking3D(StorableConstructorFlag _) : base(_) { } 46 46 protected BinPacking3D(BinPacking3D original, Cloner cloner) 47 47 : base(original, cloner) { -
stable/HeuristicLab.Problems.BinPacking/3.3/3D/Evaluators/BinUtilizationEvaluator.cs
r15584 r17097 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.Attic; 26 25 using HeuristicLab.Common; 27 26 … … 29 28 // NOTE: same implementation as for 2d problem 30 29 [Item("Bin-Utilization Evaluator (3d)", "Calculates the overall utilization of bin space.")] 31 [Storable Class]30 [StorableType("D6743552-FF6F-4D9B-AFC2-38FF3D25DEB9")] 32 31 public class BinUtilizationEvaluator : Item, IEvaluator { 33 32 34 33 [StorableConstructor] 35 protected BinUtilizationEvaluator( bool deserializing) : base(deserializing) { }34 protected BinUtilizationEvaluator(StorableConstructorFlag _) : base(_) { } 36 35 protected BinUtilizationEvaluator(BinUtilizationEvaluator original, Cloner cloner) 37 36 : base(original, cloner) { -
stable/HeuristicLab.Problems.BinPacking/3.3/3D/Evaluators/PackingRatioEvaluator.cs
r15584 r17097 23 23 using System.Linq; 24 24 using HeuristicLab.Core; 25 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;25 using HEAL.Attic; 26 26 using HeuristicLab.Common; 27 27 … … 29 29 // NOTE: same implementation as for 2d problem 30 30 [Item("Packing-Ratio Evaluator (3d)", "Calculates the ratio between packed and unpacked space.")] 31 [Storable Class]31 [StorableType("1CD9C03B-3C29-4D3D-B3FA-A3C5234907CD")] 32 32 public class PackingRatioEvaluator : Item, IEvaluator { 33 33 34 34 [StorableConstructor] 35 protected PackingRatioEvaluator( bool deserializing) : base(deserializing) { }35 protected PackingRatioEvaluator(StorableConstructorFlag _) : base(_) { } 36 36 protected PackingRatioEvaluator(PackingRatioEvaluator original, Cloner cloner) 37 37 : base(original, cloner) { -
stable/HeuristicLab.Problems.BinPacking/3.3/3D/Instances/RandomInstanceProvider.cs
r15584 r17097 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 8Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
stable/HeuristicLab.Problems.BinPacking/3.3/3D/Instances/RealWorldContainerPackingInstanceProvider.cs
r15584 r17097 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 8Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
stable/HeuristicLab.Problems.BinPacking/3.3/3D/Instances/ThreeDInstanceDescriptor.cs
r15584 r17097 2 2 3 3 /* HeuristicLab 4 * Copyright (C) 2002-201 8Heuristic and Evolutionary Algorithms Laboratory (HEAL)4 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 5 5 * 6 6 * This file is part of HeuristicLab. -
stable/HeuristicLab.Problems.BinPacking/3.3/3D/Instances/ThreeDInstanceParser.cs
r15584 r17097 2 2 3 3 /* HeuristicLab 4 * Copyright (C) 2002-201 8Heuristic and Evolutionary Algorithms Laboratory (HEAL)4 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 5 5 * 6 6 * This file is part of HeuristicLab. -
stable/HeuristicLab.Problems.BinPacking/3.3/3D/IntegerVectorEncoding/BottomLeftIntegerVectorDecoder.cs
r15584 r17097 21 21 22 22 using System; 23 using System.Linq;24 23 using HeuristicLab.Core; 25 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;24 using HEAL.Attic; 26 25 using HeuristicLab.Common; 27 26 using System.Collections.Generic; … … 30 29 namespace HeuristicLab.Problems.BinPacking3D { 31 30 [Item("Bottom-left IntegerVector Decoder (3d)", "Decodes the integer vector and creates a packing solution candidate")] 32 [Storable Class]31 [StorableType("3216A482-05F0-4E4C-B74E-E5C81A24DFC2")] 33 32 public class BottomLeftIntegerVectorDecoder : IntegerVectorDecoderBase { 34 33 35 34 [StorableConstructor] 36 protected BottomLeftIntegerVectorDecoder( bool deserializing) : base(deserializing) { }35 protected BottomLeftIntegerVectorDecoder(StorableConstructorFlag _) : base(_) { } 37 36 protected BottomLeftIntegerVectorDecoder(BottomLeftIntegerVectorDecoder original, Cloner cloner) 38 37 : base(original, cloner) { -
stable/HeuristicLab.Problems.BinPacking/3.3/3D/IntegerVectorEncoding/ExtremePointIntegerVectorDecoder.cs
r15584 r17097 21 21 22 22 using HeuristicLab.Core; 23 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;23 using HEAL.Attic; 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.BinPacking3D { 30 28 [Item("Extreme-point IntegerVector Decoder (3d)", "Decodes the integer vector and creates a packing solution candidate")] 31 [Storable Class]29 [StorableType("F5A3F964-93C0-4B94-82ED-F241ADE409E8")] 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) { -
stable/HeuristicLab.Problems.BinPacking/3.3/3D/IntegerVectorEncoding/IntegerVectorDecoderBase.cs
r15584 r17097 21 21 22 22 using HeuristicLab.Core; 23 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;23 using HEAL.Attic; 24 24 using HeuristicLab.Common; 25 25 using System.Collections.Generic; … … 28 28 29 29 namespace HeuristicLab.Problems.BinPacking3D { 30 [Storable Class]30 [StorableType("19C0AA6B-8FC5-4EA9-A441-5C4F5AD4C38E")] 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) { -
stable/HeuristicLab.Problems.BinPacking/3.3/3D/IntegerVectorEncoding/IntegerVectorProblem.cs
r15584 r17097 2 2 3 3 /* HeuristicLab 4 * Copyright (C) 2002-201 8Heuristic and Evolutionary Algorithms Laboratory (HEAL)4 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 5 5 * 6 6 * This file is part of HeuristicLab. … … 30 30 using HeuristicLab.Optimization; 31 31 using HeuristicLab.Optimization.Operators; 32 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;32 using HEAL.Attic; 33 33 34 34 namespace HeuristicLab.Problems.BinPacking3D { 35 35 [Item("Bin Packing Problem (3D, 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("B5101A23-114F-4052-A06D-FFAF2B95A5E6")] 37 37 [Creatable(Category = CreatableAttribute.Categories.CombinatorialProblems, Priority = 330)] 38 38 public sealed class IntegerVectorProblem : ProblemBase<IntegerVectorEncoding, IntegerVector> { 39 39 [StorableConstructor] 40 private IntegerVectorProblem( bool deserializing) : base(deserializing) { }40 private IntegerVectorProblem(StorableConstructorFlag _) : base(_) { } 41 41 42 42 // cloning -
stable/HeuristicLab.Problems.BinPacking/3.3/3D/Interfaces/IDecoder.cs
r15584 r17097 22 22 using System.Collections.Generic; 23 23 using HeuristicLab.Core; 24 using HEAL.Attic; 24 25 25 26 namespace HeuristicLab.Problems.BinPacking3D { 27 [StorableType("df195f8b-c7c1-4167-bff1-362e30f3c4dd")] 26 28 public interface IDecoder<in T> : IItem { 27 29 Solution Decode(T encodedSolution, PackingShape binShape, IList<PackingItem> items, bool useStackingConstraints); -
stable/HeuristicLab.Problems.BinPacking/3.3/3D/Interfaces/IEvaluator.cs
r15584 r17097 21 21 22 22 using HeuristicLab.Core; 23 using HEAL.Attic; 23 24 24 25 namespace HeuristicLab.Problems.BinPacking3D { 26 [StorableType("9bc2a33b-46b1-457c-a96b-afb15d5cc01f")] 25 27 public interface IEvaluator : IItem { 26 28 double Evaluate(Solution solution); -
stable/HeuristicLab.Problems.BinPacking/3.3/3D/Interfaces/IOperator.cs
r15584 r17097 22 22 using HeuristicLab.Core; 23 23 using HeuristicLab.Data; 24 using HEAL.Attic; 24 25 25 26 namespace HeuristicLab.Problems.BinPacking3D { 27 [StorableType("d442d459-ad09-46df-8b3e-6164db9fb0e2")] 26 28 public interface IOperator<TSol> : IItem { 27 29 ILookupParameter<ReadOnlyItemList<PackingItem>> ItemsParameter { get; } -
stable/HeuristicLab.Problems.BinPacking/3.3/3D/MoveEvaluatorBase.cs
r15584 r17097 26 26 using HeuristicLab.Optimization; 27 27 using HeuristicLab.Parameters; 28 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;28 using HEAL.Attic; 29 29 30 30 namespace HeuristicLab.Problems.BinPacking3D { 31 [Storable Class]31 [StorableType("13F03B86-9790-4F75-9155-B3AEE3F9B541")] 32 32 public abstract class MoveEvaluatorBase<TSol, TMove> : SingleSuccessorOperator, 33 33 ISingleObjectiveMoveEvaluator, ISingleObjectiveMoveOperator, IOperator<TSol> … … 64 64 65 65 [StorableConstructor] 66 protected MoveEvaluatorBase( bool deserializing) : base(deserializing) { }66 protected MoveEvaluatorBase(StorableConstructorFlag _) : base(_) { } 67 67 protected MoveEvaluatorBase(MoveEvaluatorBase<TSol, TMove> original, Cloner cloner) : base(original, cloner) { } 68 68 protected MoveEvaluatorBase() -
stable/HeuristicLab.Problems.BinPacking/3.3/3D/PackingItem.cs
r15584 r17097 21 21 22 22 using HeuristicLab.Core; 23 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;23 using HEAL.Attic; 24 24 using HeuristicLab.Common; 25 25 using HeuristicLab.Data; … … 29 29 namespace HeuristicLab.Problems.BinPacking3D { 30 30 [Item("PackingItem (3d)", "Represents a cuboidic packing-item for bin-packing problems.")] 31 [Storable Class]31 [StorableType("413E8254-9600-42F9-B057-E57B502881FD")] 32 32 public class PackingItem : PackingShape, IPackingItem { 33 33 public IValueParameter<PackingShape> TargetBinParameter { … … 61 61 62 62 [StorableConstructor] 63 protected PackingItem( bool deserializing) : base(deserializing) { }63 protected PackingItem(StorableConstructorFlag _) : base(_) { } 64 64 protected PackingItem(PackingItem original, Cloner cloner) 65 65 : base(original, cloner) { -
stable/HeuristicLab.Problems.BinPacking/3.3/3D/PackingPosition.cs
r15584 r17097 21 21 22 22 using System; 23 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;23 using HEAL.Attic; 24 24 using HeuristicLab.Core; 25 25 using HeuristicLab.Common; … … 27 27 namespace HeuristicLab.Problems.BinPacking3D { 28 28 [Item("Packing Position (3d)", "Represents a packing-position associated with a three dimensional packing-problem.")] 29 [Storable Class]29 [StorableType("68408986-2325-43D3-A53B-DC2F31FB690C")] 30 30 // PackingPosition is immutable (and handled as value type concerning Equals and GetHashCode) 31 31 public class PackingPosition : BinPacking.PackingPosition, IComparable<PackingPosition> { … … 42 42 43 43 [StorableConstructor] 44 protected PackingPosition( bool deserializing) : base(deserializing) { }44 protected PackingPosition(StorableConstructorFlag _) : base(_) { } 45 45 protected PackingPosition(PackingPosition original, Cloner cloner) 46 46 : base(original, cloner) { -
stable/HeuristicLab.Problems.BinPacking/3.3/3D/PackingShape.cs
r15584 r17097 22 22 using System; 23 23 using HeuristicLab.Core; 24 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;24 using HEAL.Attic; 25 25 using HeuristicLab.Common; 26 26 using HeuristicLab.Data; … … 30 30 namespace HeuristicLab.Problems.BinPacking3D { 31 31 [Item("PackingShape (3d)", "Represents the cuboid measures (width, height, depth) of a three-dimensional cuboidic bin-packing object.")] 32 [Storable Class]32 [StorableType("87C5DC4E-A7E3-4853-B6C7-690B3F47DB57")] 33 33 public class PackingShape : PackingShape<PackingPosition>, IComparable<PackingShape> { 34 34 public IFixedValueParameter<IntValue> HeightParameter { … … 58 58 59 59 [StorableConstructor] 60 protected PackingShape( bool deserializing) : base(deserializing) { }60 protected PackingShape(StorableConstructorFlag _) : base(_) { } 61 61 protected PackingShape(PackingShape original, Cloner cloner) 62 62 : base(original, cloner) { … … 118 118 else throw new ArgumentException(string.Format("Cannot compare with object {0}", obj), "obj"); 119 119 } 120 121 120 #endregion 122 121 122 [StorableType(StorableMemberSelection.AllFields, "6dc0b0e2-e165-44e0-a342-71974f0494e3")] 123 123 private struct CuboidDiagonal { 124 124 public int x1; -
stable/HeuristicLab.Problems.BinPacking/3.3/3D/PermutationEncoding/BottomLeftPermutationDecoder.cs
r15584 r17097 21 21 22 22 using HeuristicLab.Core; 23 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;23 using HEAL.Attic; 24 24 using HeuristicLab.Common; 25 25 using System.Collections.Generic; … … 28 28 namespace HeuristicLab.Problems.BinPacking3D { 29 29 [Item("Bottom-left Permutation Decoder (3d)", "Decodes the permutation and creates a packing solution candidate")] 30 [Storable Class]30 [StorableType("120B6DE4-B1C2-4FCD-AE1F-051863DBE698")] 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) { -
stable/HeuristicLab.Problems.BinPacking/3.3/3D/PermutationEncoding/ExtremePointPermutationDecoder.cs
r15584 r17097 20 20 #endregion 21 21 22 using System;23 22 using HeuristicLab.Core; 24 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;23 using HEAL.Attic; 25 24 using HeuristicLab.Common; 26 25 using System.Collections.Generic; 27 26 using HeuristicLab.Encodings.PermutationEncoding; 28 using System.Linq;29 27 30 28 31 29 namespace HeuristicLab.Problems.BinPacking3D { 32 30 [Item("Extreme-point Permutation Decoder (3d)", "Decodes the permutation and creates a packing solution candidate")] 33 [Storable Class]31 [StorableType("1232374B-6C9C-46A2-B7C2-97F484597D44")] 34 32 public class ExtremePointPermutationDecoder : ExtremePointPermutationDecoderBase { 35 33 36 34 [StorableConstructor] 37 protected ExtremePointPermutationDecoder( bool deserializing) : base(deserializing) { }35 protected ExtremePointPermutationDecoder(StorableConstructorFlag _) : base(_) { } 38 36 protected ExtremePointPermutationDecoder(ExtremePointPermutationDecoder original, Cloner cloner) 39 37 : base(original, cloner) { -
stable/HeuristicLab.Problems.BinPacking/3.3/3D/PermutationEncoding/ExtremePointPermutationDecoderBase.cs
r15584 r17097 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 8Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 24 24 using HeuristicLab.Core; 25 25 using HeuristicLab.Encodings.PermutationEncoding; 26 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;26 using HEAL.Attic; 27 27 28 28 namespace HeuristicLab.Problems.BinPacking3D { 29 29 [Item("Extreme-point Permutation Decoder (3d) Base", "Base class for decoders")] 30 [Storable Class]30 [StorableType("CF1A3362-B650-419D-A5C0-ADB9AFFCCC56")] 31 31 public abstract class ExtremePointPermutationDecoderBase : Item, IDecoder<Permutation> { 32 32 33 33 [StorableConstructor] 34 protected ExtremePointPermutationDecoderBase( bool deserializing) : base(deserializing) { }34 protected ExtremePointPermutationDecoderBase(StorableConstructorFlag _) : base(_) { } 35 35 protected ExtremePointPermutationDecoderBase(ExtremePointPermutationDecoderBase original, Cloner cloner) 36 36 : base(original, cloner) { -
stable/HeuristicLab.Problems.BinPacking/3.3/3D/PermutationEncoding/FreeVolumeBestFitExtremePointPermutationDecoder.cs
r15584 r17097 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 8Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 26 26 using HeuristicLab.Core; 27 27 using HeuristicLab.Encodings.PermutationEncoding; 28 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;28 using HEAL.Attic; 29 29 30 30 namespace HeuristicLab.Problems.BinPacking3D { 31 31 [Item("Free Volume Best Fit Extreme-point Permutation Decoder (3d)", "Decodes the permutation and creates a packing solution candidate")] 32 [Storable Class]32 [StorableType("3CF690C8-EB29-40DC-ADE3-9B9A83928772")] 33 33 public class FreeVolumeBestFitExtremePointPermutationDecoder : ExtremePointPermutationDecoderBase { 34 34 35 35 [StorableConstructor] 36 protected FreeVolumeBestFitExtremePointPermutationDecoder( bool deserializing) : base(deserializing) { }36 protected FreeVolumeBestFitExtremePointPermutationDecoder(StorableConstructorFlag _) : base(_) { } 37 37 protected FreeVolumeBestFitExtremePointPermutationDecoder(FreeVolumeBestFitExtremePointPermutationDecoder original, Cloner cloner) 38 38 : base(original, cloner) { -
stable/HeuristicLab.Problems.BinPacking/3.3/3D/PermutationEncoding/PermutationProblem.cs
r15584 r17097 2 2 3 3 /* HeuristicLab 4 * Copyright (C) 2002-201 8Heuristic and Evolutionary Algorithms Laboratory (HEAL)4 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 5 5 * 6 6 * This file is part of HeuristicLab. … … 29 29 using HeuristicLab.Optimization; 30 30 using HeuristicLab.Optimization.Operators; 31 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;31 using HEAL.Attic; 32 32 33 33 namespace HeuristicLab.Problems.BinPacking3D { 34 34 [Item("Bin Packing Problem (3D, permutation encoding) (BPP)", "Represents a three-dimensional bin-packing problem using only bins with identical measures and bins/items with rectangular shapes.")] 35 [Storable Class]35 [StorableType("84B8B871-C360-43BD-BFC3-F6F16B379439")] 36 36 [Creatable(Category = CreatableAttribute.Categories.CombinatorialProblems, Priority = 320)] 37 37 public sealed class PermutationProblem : ProblemBase<PermutationEncoding, Permutation> { 38 38 [StorableConstructor] 39 private PermutationProblem( bool deserializing) : base(deserializing) { }39 private PermutationProblem(StorableConstructorFlag _) : base(_) { } 40 40 41 41 // cloning -
stable/HeuristicLab.Problems.BinPacking/3.3/3D/PermutationEncoding/ResidualSpaceBestFitExtremePointPermutationDecoder.cs
r15584 r17097 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 8Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 26 26 using HeuristicLab.Core; 27 27 using HeuristicLab.Encodings.PermutationEncoding; 28 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;28 using HEAL.Attic; 29 29 30 30 namespace HeuristicLab.Problems.BinPacking3D { 31 31 [Item("Residual Space Best Fit Extreme-point Permutation Decoder (3d)", "Decodes the permutation and creates a packing solution candidate")] 32 [Storable Class]32 [StorableType("FD6679E5-CB7C-4DDA-B45F-DA6137CFA00E")] 33 33 public class ResidualSpaceBestFitExtremePointPermutationDecoder : ExtremePointPermutationDecoderBase { 34 34 35 35 [StorableConstructor] 36 protected ResidualSpaceBestFitExtremePointPermutationDecoder( bool deserializing) : base(deserializing) { }36 protected ResidualSpaceBestFitExtremePointPermutationDecoder(StorableConstructorFlag _) : base(_) { } 37 37 protected ResidualSpaceBestFitExtremePointPermutationDecoder(ResidualSpaceBestFitExtremePointPermutationDecoder original, Cloner cloner) 38 38 : base(original, cloner) { -
stable/HeuristicLab.Problems.BinPacking/3.3/3D/PermutationEncoding/Swap2MoveEvaluator.cs
r15584 r17097 23 23 using HeuristicLab.Core; 24 24 using HeuristicLab.Encodings.PermutationEncoding; 25 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;25 using HEAL.Attic; 26 26 27 27 namespace HeuristicLab.Problems.BinPacking3D { 28 28 [Item("Swap2MoveEvaluator", "Move evaluator for 2-opt moves.")] 29 [Storable Class]29 [StorableType("CF5E678F-E420-4825-A3FE-AE48D9B9B7C0")] 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() -
stable/HeuristicLab.Problems.BinPacking/3.3/3D/PermutationEncoding/TranslocationMoveEvaluator.cs
r15584 r17097 23 23 using HeuristicLab.Core; 24 24 using HeuristicLab.Encodings.PermutationEncoding; 25 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;25 using HEAL.Attic; 26 26 27 27 namespace HeuristicLab.Problems.BinPacking3D { 28 28 [Item("TranslocationMoveEvaluator", "Move evaluator for insertion or translocation moves.")] 29 [Storable Class]29 [StorableType("76E856C1-3DB9-44EC-A995-2CD667B69753")] 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() -
stable/HeuristicLab.Problems.BinPacking/3.3/3D/ProblemBase.cs
r15584 r17097 2 2 3 3 /* HeuristicLab 4 * Copyright (C) 2002-201 8Heuristic and Evolutionary Algorithms Laboratory (HEAL)4 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 5 5 * 6 6 * This file is part of HeuristicLab. … … 28 28 using HeuristicLab.Optimization; 29 29 using HeuristicLab.Parameters; 30 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;30 using HEAL.Attic; 31 31 using HeuristicLab.Problems.Instances; 32 32 33 33 namespace HeuristicLab.Problems.BinPacking3D { 34 34 // in comparison to the 2d problem the 3d problem implementation also supports checking stacking constraints 35 [Storable Class]35 [StorableType("11F0A7B9-EF53-435E-AE3B-200A269DE308")] 36 36 public abstract class ProblemBase<TEnc, TSol> : 37 37 SingleObjectiveBasicProblem<TEnc>, IProblemInstanceConsumer<BPPData>, IProblemInstanceExporter<BPPData> … … 152 152 // persistence 153 153 [StorableConstructor] 154 protected ProblemBase( bool deserializing) : base(deserializing) { }154 protected ProblemBase(StorableConstructorFlag _) : base(_) { } 155 155 156 156 // cloning -
stable/HeuristicLab.Problems.BinPacking/3.3/3D/Solution.cs
r14170 r17097 1 1 using HeuristicLab.Common; 2 2 using HeuristicLab.Core; 3 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;3 using HEAL.Attic; 4 4 using HeuristicLab.Problems.BinPacking; 5 5 6 6 namespace HeuristicLab.Problems.BinPacking3D { 7 7 [Item("Bin Packing Solution (3d)", "Represents a solution for a 3D bin packing problem.")] 8 [Storable Class]8 [StorableType("C0620C6F-3882-45CD-976F-4840ABD08BCD")] 9 9 public class Solution : PackingPlan<PackingPosition, PackingShape, PackingItem> { 10 10 public Solution(PackingShape binShape) : this(binShape, false, false) { } 11 11 public Solution(PackingShape binShape, bool useExtremePoints, bool stackingConstraints) : base(binShape, useExtremePoints, stackingConstraints) { } 12 12 [StorableConstructor] 13 protected Solution( bool deserializing) : base(deserializing) { }13 protected Solution(StorableConstructorFlag _) : base(_) { } 14 14 protected Solution(Solution original, Cloner cloner) 15 15 : base(original, cloner) {
Note: See TracChangeset
for help on using the changeset viewer.