Changeset 9596 for branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Decoders/3D/DBL/DeepestBottomLeftMultiComponentVectorDecoder.cs
- Timestamp:
- 06/07/13 01:20:12 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 }
Note: See TracChangeset
for help on using the changeset viewer.