Changeset 9596 for branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Decoders/3D/DBL
- Timestamp:
- 06/07/13 01:20:12 (11 years ago)
- Location:
- branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Decoders/3D/DBL
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Decoders/3D/DBL/DeepestBottomLeftGroupingVectorDecoder.cs
r9593 r9596 38 38 39 39 namespace HeuristicLab.Problems.BinPacking.Decoders { 40 [Item("Identical bin three dimensional direct grouping vectordecoder", "<Description missing...>")]40 [Item("Identical bin, three dimensional, GroupingVector-decoder", "<Description missing...>")] 41 41 [StorableClass] 42 public class DeepestBottomLeftGroupingVectorDecoder : PackingSolutionDecoder< 43 ThreeDimensionalPacking, 44 CuboidPackingBin, 45 CuboidPackingItem>, I3DGVDecoder { 46 47 public DeepestBottomLeftGroupingVectorDecoder() 48 : base() { 49 //EncodedSolutionParameter.ActualName = "EncodedSolution"; 50 } 42 public class DeepestBottomLeftGroupingVectorDecoder : PackingSolutionDecoder<ThreeDimensionalPacking, CuboidPackingBin, CuboidPackingItem>, I3DGVDecoder { 43 public DeepestBottomLeftGroupingVectorDecoder() : base() {} 51 44 [StorableConstructor] 52 45 protected DeepestBottomLeftGroupingVectorDecoder(bool deserializing) : base(deserializing) { } … … 58 51 } 59 52 60 61 53 public override PackingPlan<ThreeDimensionalPacking, CuboidPackingBin, CuboidPackingItem> CreatePackingPlanFromEncoding(IItem encodedSolution, CuboidPackingBin binMeasures, ItemList<CuboidPackingItem> itemMeasures) { 62 63 54 var solution = encodedSolution as GroupingVectorEncoding; 64 55 if (solution == null) throw new InvalidOperationException("Encoding is not of type GroupingVector"); 65 66 PackingPlan<ThreeDimensionalPacking, CuboidPackingBin, CuboidPackingItem> result = new PackingPlan<ThreeDimensionalPacking, CuboidPackingBin, CuboidPackingItem>(binMeasures); 67 68 result.BinPackings = ThreeDimensionalPackingFunctions.DeepestLeftBottomPacking(solution, binMeasures, itemMeasures); 69 56 PackingPlan3D result = new PackingPlan3D(binMeasures); 57 result.Pack(solution, itemMeasures); 70 58 return result; 71 59 } -
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Decoders/3D/DBL/DeepestBottomLeftMultiComponentVectorDecoder.cs
r9593 r9596 39 39 40 40 namespace HeuristicLab.Problems.BinPacking.Decoders { 41 [Item("Identical bin three dimensional multi component vectordecoder", "<Description missing...>")]41 [Item("Identical bin, three dimensional, MultiComponentVector-decoder", "<Description missing...>")] 42 42 [StorableClass] 43 public class DeepestBottomLeftMultiComponentVectorDecoder : PackingSolutionDecoder< 44 ThreeDimensionalPacking, 45 CuboidPackingBin, 46 CuboidPackingItem>, I3DMCVDecoder { 47 48 public DeepestBottomLeftMultiComponentVectorDecoder() 49 : base() { 50 //EncodedSolutionParameter.ActualName = "EncodedSolution"; 51 } 43 public class DeepestBottomLeftMultiComponentVectorDecoder : PackingSolutionDecoder<ThreeDimensionalPacking, CuboidPackingBin, CuboidPackingItem>, I3DMCVDecoder { 44 public DeepestBottomLeftMultiComponentVectorDecoder() : base() { } 52 45 [StorableConstructor] 53 46 protected DeepestBottomLeftMultiComponentVectorDecoder(bool deserializing) : base(deserializing) { } … … 59 52 } 60 53 61 62 54 public override PackingPlan<ThreeDimensionalPacking, CuboidPackingBin, CuboidPackingItem> CreatePackingPlanFromEncoding(IItem encodedSolution, CuboidPackingBin binMeasures, ItemList<CuboidPackingItem> itemMeasures) { 63 64 55 var solution = encodedSolution as MultiComponentVectorEncoding; 65 56 if (solution == null) throw new InvalidOperationException("Encoding is not of type MultiComponent Vector"); 66 67 PackingPlan<ThreeDimensionalPacking, CuboidPackingBin, CuboidPackingItem> result = 68 new PackingPlan<ThreeDimensionalPacking, CuboidPackingBin, CuboidPackingItem>(binMeasures); 69 70 result.BinPackings = ThreeDimensionalPackingFunctions.DeepestLeftBottomPacking(solution, binMeasures, itemMeasures); 71 57 PackingPlan3D result = new PackingPlan3D(binMeasures); 58 result.Pack(solution, itemMeasures); 72 59 return result; 73 60 } -
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Decoders/3D/DBL/DeepestBottomLeftPackingSequenceDecoder.cs
r9593 r9596 38 38 39 39 namespace HeuristicLab.Problems.BinPacking.Decoders { 40 [Item("Identical bin, three dimensional, direct permutationdecoder", "<Description missing...>")]40 [Item("Identical bin, three dimensional, PackingSequence-decoder", "<Description missing...>")] 41 41 [StorableClass] 42 public class DeepestBottomLeftPackingSequenceDecoder : PackingSolutionDecoder< 43 ThreeDimensionalPacking, 44 CuboidPackingBin, 45 CuboidPackingItem>, I3DPSDecoder { 46 47 public DeepestBottomLeftPackingSequenceDecoder() 48 : base() { 49 //EncodedSolutionParameter.ActualName = "EncodedSolution"; 50 } 42 public class DeepestBottomLeftPackingSequenceDecoder : PackingSolutionDecoder<ThreeDimensionalPacking, CuboidPackingBin, CuboidPackingItem>, I3DPSDecoder { 43 public DeepestBottomLeftPackingSequenceDecoder(): base() {} 51 44 [StorableConstructor] 52 45 protected DeepestBottomLeftPackingSequenceDecoder(bool deserializing) : base(deserializing) { } … … 58 51 } 59 52 60 61 53 public override PackingPlan<ThreeDimensionalPacking, CuboidPackingBin, CuboidPackingItem> CreatePackingPlanFromEncoding(IItem encodedSolution, CuboidPackingBin binMeasures, ItemList<CuboidPackingItem> itemMeasures) { 62 63 54 var solution = encodedSolution as PackingSequenceEncoding; 64 55 if (solution == null) throw new InvalidOperationException("Encoding is not of type PackingSequence"); 65 66 PackingPlan<ThreeDimensionalPacking, CuboidPackingBin, CuboidPackingItem> result = 67 new PackingPlan<ThreeDimensionalPacking, CuboidPackingBin, CuboidPackingItem>(binMeasures); 68 69 result.BinPackings = ThreeDimensionalPackingFunctions.DeepestLeftBottomPacking(solution, binMeasures, itemMeasures); 70 56 PackingPlan3D result = new PackingPlan3D(binMeasures); 57 result.Pack(solution, itemMeasures); 71 58 return result; 72 59 }
Note: See TracChangeset
for help on using the changeset viewer.