Changeset 14045 for branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.3D/3.3/Decoders
- Timestamp:
- 07/12/16 18:23:13 (8 years ago)
- Location:
- branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.3D/3.3/Decoders
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.3D/3.3/Decoders/DBL/DeepestBottomLeftGroupingVectorDecoder.cs
r13032 r14045 24 24 using HeuristicLab.Core; 25 25 using HeuristicLab.Problems.BinPacking.Dimensions; 26 using HeuristicLab.Problems.BinPacking.PackingBin; 26 27 27 using HeuristicLab.Problems.BinPacking.PackingItem; 28 28 using HeuristicLab.Encodings.PackingEncoding.PackingPlan; … … 30 30 using HeuristicLab.Problems.BinPacking.Interfaces; 31 31 using HeuristicLab.Encodings.PackingEncoding.GroupingVector; 32 using HeuristicLab.Problems.BinPacking.Shapes; 32 33 33 34 namespace HeuristicLab.Problems.BinPacking.Decoders { 34 35 [Item("Identical bin, three dimensional, GroupingVector-decoder", "<Description missing...>")] 35 36 [StorableClass] 36 public class DeepestBottomLeftGroupingVectorDecoder : PackingSolutionDecoder<ThreeDimensionalPacking, CuboidPacking Bin, CuboidPackingItem>, I3DGVDecoder {37 public class DeepestBottomLeftGroupingVectorDecoder : PackingSolutionDecoder<ThreeDimensionalPacking, CuboidPackingShape, CuboidPackingItem>, I3DGVDecoder { 37 38 public DeepestBottomLeftGroupingVectorDecoder() : base() {} 38 39 [StorableConstructor] … … 45 46 } 46 47 47 public override PackingPlan<ThreeDimensionalPacking, CuboidPacking Bin, CuboidPackingItem> CreatePackingPlanFromEncoding(IItem encodedSolution, CuboidPackingBinbinMeasures, ItemList<CuboidPackingItem> itemMeasures) {48 public override PackingPlan<ThreeDimensionalPacking, CuboidPackingShape, CuboidPackingItem> CreatePackingPlanFromEncoding(IItem encodedSolution, CuboidPackingShape binMeasures, ItemList<CuboidPackingItem> itemMeasures) { 48 49 var solution = encodedSolution as GroupingVectorEncoding; 49 50 if (solution == null) throw new InvalidOperationException("Encoding is not of type GroupingVector"); -
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.3D/3.3/Decoders/DBL/DeepestBottomLeftMultiComponentVectorDecoder.cs
r13032 r14045 24 24 using HeuristicLab.Core; 25 25 using HeuristicLab.Problems.BinPacking.Dimensions; 26 using HeuristicLab.Problems.BinPacking.PackingBin; 26 27 27 using HeuristicLab.Problems.BinPacking.PackingItem; 28 28 using HeuristicLab.Encodings.PackingEncoding.PackingPlan; … … 30 30 using HeuristicLab.Problems.BinPacking.Interfaces; 31 31 using HeuristicLab.Encodings.PackingEncoding.MultiComponentVector; 32 using HeuristicLab.Problems.BinPacking.Shapes; 32 33 33 34 namespace HeuristicLab.Problems.BinPacking.Decoders { 34 35 [Item("Identical bin, three dimensional, MultiComponentVector-decoder", "<Description missing...>")] 35 36 [StorableClass] 36 public class DeepestBottomLeftMultiComponentVectorDecoder : PackingSolutionDecoder<ThreeDimensionalPacking, CuboidPacking Bin, CuboidPackingItem>, I3DMCVDecoder {37 public class DeepestBottomLeftMultiComponentVectorDecoder : PackingSolutionDecoder<ThreeDimensionalPacking, CuboidPackingShape, CuboidPackingItem>, I3DMCVDecoder { 37 38 public DeepestBottomLeftMultiComponentVectorDecoder() : base() { } 38 39 [StorableConstructor] … … 45 46 } 46 47 47 public override PackingPlan<ThreeDimensionalPacking, CuboidPacking Bin, CuboidPackingItem> CreatePackingPlanFromEncoding(IItem encodedSolution, CuboidPackingBinbinMeasures, ItemList<CuboidPackingItem> itemMeasures) {48 public override PackingPlan<ThreeDimensionalPacking, CuboidPackingShape, CuboidPackingItem> CreatePackingPlanFromEncoding(IItem encodedSolution, CuboidPackingShape binMeasures, ItemList<CuboidPackingItem> itemMeasures) { 48 49 var solution = encodedSolution as MultiComponentVectorEncoding; 49 50 if (solution == null) throw new InvalidOperationException("Encoding is not of type MultiComponent Vector"); -
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.3D/3.3/Decoders/DBL/DeepestBottomLeftPackingSequenceDecoder.cs
r13032 r14045 24 24 using HeuristicLab.Core; 25 25 using HeuristicLab.Problems.BinPacking.Dimensions; 26 using HeuristicLab.Problems.BinPacking.PackingBin; 26 27 27 using HeuristicLab.Problems.BinPacking.PackingItem; 28 28 using HeuristicLab.Encodings.PackingEncoding.PackingPlan; … … 30 30 using HeuristicLab.Encodings.PackingEncoding.PackingSequence; 31 31 using HeuristicLab.Problems.BinPacking.Interfaces; 32 using HeuristicLab.Problems.BinPacking.Shapes; 32 33 33 34 namespace HeuristicLab.Problems.BinPacking.Decoders { 34 35 [Item("Identical bin, three dimensional, PackingSequence-decoder", "<Description missing...>")] 35 36 [StorableClass] 36 public class DeepestBottomLeftPackingSequenceDecoder : PackingSolutionDecoder<ThreeDimensionalPacking, CuboidPacking Bin, CuboidPackingItem>, I3DPSDecoder {37 public class DeepestBottomLeftPackingSequenceDecoder : PackingSolutionDecoder<ThreeDimensionalPacking, CuboidPackingShape, CuboidPackingItem>, I3DPSDecoder { 37 38 public DeepestBottomLeftPackingSequenceDecoder(): base() {} 38 39 [StorableConstructor] … … 45 46 } 46 47 47 public override PackingPlan<ThreeDimensionalPacking, CuboidPacking Bin, CuboidPackingItem> CreatePackingPlanFromEncoding(IItem encodedSolution, CuboidPackingBinbinMeasures, ItemList<CuboidPackingItem> itemMeasures) {48 public override PackingPlan<ThreeDimensionalPacking, CuboidPackingShape, CuboidPackingItem> CreatePackingPlanFromEncoding(IItem encodedSolution, CuboidPackingShape binMeasures, ItemList<CuboidPackingItem> itemMeasures) { 48 49 var solution = encodedSolution as PackingSequenceEncoding; 49 50 if (solution == null) throw new InvalidOperationException("Encoding is not of type PackingSequence"); -
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.3D/3.3/Decoders/EP/ExtremePointGroupingVectorDecoder3D.cs
r13032 r14045 24 24 using HeuristicLab.Core; 25 25 using HeuristicLab.Problems.BinPacking.Dimensions; 26 using HeuristicLab.Problems.BinPacking.PackingBin; 26 27 27 using HeuristicLab.Problems.BinPacking.PackingItem; 28 28 using HeuristicLab.Encodings.PackingEncoding.PackingPlan; … … 30 30 using HeuristicLab.Problems.BinPacking.Interfaces; 31 31 using HeuristicLab.Encodings.PackingEncoding.GroupingVector; 32 using HeuristicLab.Problems.BinPacking.Shapes; 32 33 33 34 namespace HeuristicLab.Problems.BinPacking.Decoders { 34 35 [Item("Identical bin, three dimensional, extreme points based decoder for the GroupingVector encoding.", "<Description missing...>")] 35 36 [StorableClass] 36 public class ExtremePointGroupingVectorDecoder3D : PackingSolutionDecoder<ThreeDimensionalPacking, CuboidPacking Bin, CuboidPackingItem>, I3DGVDecoder {37 public class ExtremePointGroupingVectorDecoder3D : PackingSolutionDecoder<ThreeDimensionalPacking, CuboidPackingShape, CuboidPackingItem>, I3DGVDecoder { 37 38 public ExtremePointGroupingVectorDecoder3D() : base() { } 38 39 [StorableConstructor] … … 45 46 } 46 47 47 public static PackingPlan<ThreeDimensionalPacking, CuboidPacking Bin, CuboidPackingItem> Decode(GroupingVectorEncoding solution, CuboidPackingBinbinMeasures, ItemList<CuboidPackingItem> itemMeasures, bool stackingConstraints) {48 public static PackingPlan<ThreeDimensionalPacking, CuboidPackingShape, CuboidPackingItem> Decode(GroupingVectorEncoding solution, CuboidPackingShape binMeasures, ItemList<CuboidPackingItem> itemMeasures, bool stackingConstraints) { 48 49 PackingPlan3D result = new PackingPlan3D(binMeasures, true, stackingConstraints); 49 50 result.Pack(solution, itemMeasures); … … 51 52 } 52 53 53 public override PackingPlan<ThreeDimensionalPacking, CuboidPacking Bin, CuboidPackingItem> CreatePackingPlanFromEncoding(IItem encodedSolution, CuboidPackingBinbinMeasures, ItemList<CuboidPackingItem> itemMeasures) {54 public override PackingPlan<ThreeDimensionalPacking, CuboidPackingShape, CuboidPackingItem> CreatePackingPlanFromEncoding(IItem encodedSolution, CuboidPackingShape binMeasures, ItemList<CuboidPackingItem> itemMeasures) { 54 55 var solution = encodedSolution as GroupingVectorEncoding; 55 56 if (solution == null) throw new InvalidOperationException("Encoding is not of type GroupingVector"); -
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.3D/3.3/Decoders/EP/ExtremePointMultiComponentVectorDecoder3D.cs
r13032 r14045 24 24 using HeuristicLab.Core; 25 25 using HeuristicLab.Problems.BinPacking.Dimensions; 26 using HeuristicLab.Problems.BinPacking.PackingBin; 26 27 27 using HeuristicLab.Problems.BinPacking.PackingItem; 28 28 using HeuristicLab.Encodings.PackingEncoding.PackingPlan; … … 30 30 using HeuristicLab.Problems.BinPacking.Interfaces; 31 31 using HeuristicLab.Encodings.PackingEncoding.MultiComponentVector; 32 using HeuristicLab.Problems.BinPacking.Shapes; 32 33 33 34 namespace HeuristicLab.Problems.BinPacking.Decoders { 34 35 [Item("Identical bin, three dimensional, extreme points based decoder for the MultiComponentVector encoding.", "<Description missing...>")] 35 36 [StorableClass] 36 public class ExtremePointMultiComponentVectorDecoder3D : PackingSolutionDecoder<ThreeDimensionalPacking, CuboidPacking Bin, CuboidPackingItem>, I3DMCVDecoder {37 public class ExtremePointMultiComponentVectorDecoder3D : PackingSolutionDecoder<ThreeDimensionalPacking, CuboidPackingShape, CuboidPackingItem>, I3DMCVDecoder { 37 38 public ExtremePointMultiComponentVectorDecoder3D () : base() { } 38 39 [StorableConstructor] … … 45 46 } 46 47 47 public static PackingPlan<ThreeDimensionalPacking, CuboidPacking Bin, CuboidPackingItem> Decode(MultiComponentVectorEncoding solution, CuboidPackingBinbinMeasures, ItemList<CuboidPackingItem> itemMeasures, bool stackingConstraints) {48 public static PackingPlan<ThreeDimensionalPacking, CuboidPackingShape, CuboidPackingItem> Decode(MultiComponentVectorEncoding solution, CuboidPackingShape binMeasures, ItemList<CuboidPackingItem> itemMeasures, bool stackingConstraints) { 48 49 PackingPlan3D result = new PackingPlan3D(binMeasures, true, stackingConstraints); 49 50 result.Pack(solution, itemMeasures); … … 51 52 } 52 53 53 public override PackingPlan<ThreeDimensionalPacking, CuboidPacking Bin, CuboidPackingItem> CreatePackingPlanFromEncoding(IItem encodedSolution, CuboidPackingBinbinMeasures, ItemList<CuboidPackingItem> itemMeasures) {54 public override PackingPlan<ThreeDimensionalPacking, CuboidPackingShape, CuboidPackingItem> CreatePackingPlanFromEncoding(IItem encodedSolution, CuboidPackingShape binMeasures, ItemList<CuboidPackingItem> itemMeasures) { 54 55 var solution = encodedSolution as MultiComponentVectorEncoding; 55 56 if (solution == null) throw new InvalidOperationException("Encoding is not of type MultiComponentVector"); -
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.3D/3.3/Decoders/EP/ExtremePointPackingSequenceDecoder3D.cs
r13032 r14045 25 25 using HeuristicLab.Core; 26 26 using HeuristicLab.Problems.BinPacking.Dimensions; 27 using HeuristicLab.Problems.BinPacking.PackingBin; 27 28 28 using HeuristicLab.Problems.BinPacking.PackingItem; 29 29 using HeuristicLab.Encodings.PackingEncoding.PackingPlan; … … 31 31 using HeuristicLab.Encodings.PackingEncoding.PackingSequence; 32 32 using HeuristicLab.Problems.BinPacking.Interfaces; 33 using HeuristicLab.Problems.BinPacking.Shapes; 33 34 34 35 namespace HeuristicLab.Problems.BinPacking.Decoders { 35 36 [Item("Identical bin, three dimensional, extreme points based decoder for the PackingSequence encoding.", "<Description missing...>")] 36 37 [StorableClass] 37 public class ExtremePointPackingSequenceDecoder3D : PackingSolutionDecoder<ThreeDimensionalPacking, CuboidPacking Bin, CuboidPackingItem>, I3DPSDecoder {38 public class ExtremePointPackingSequenceDecoder3D : PackingSolutionDecoder<ThreeDimensionalPacking, CuboidPackingShape, CuboidPackingItem>, I3DPSDecoder { 38 39 public ExtremePointPackingSequenceDecoder3D () : base() {} 39 40 [StorableConstructor] … … 47 48 48 49 49 public override PackingPlan<ThreeDimensionalPacking, CuboidPacking Bin, CuboidPackingItem> CreatePackingPlanFromEncoding(IItem encodedSolution, CuboidPackingBinbinMeasures, ItemList<CuboidPackingItem> itemMeasures) {50 public override PackingPlan<ThreeDimensionalPacking, CuboidPackingShape, CuboidPackingItem> CreatePackingPlanFromEncoding(IItem encodedSolution, CuboidPackingShape binMeasures, ItemList<CuboidPackingItem> itemMeasures) { 50 51 var solution = encodedSolution as PackingSequenceEncoding; 51 52 if (solution == null) throw new InvalidOperationException("Encoding is not of type PackingSequence");
Note: See TracChangeset
for help on using the changeset viewer.