Changeset 9596 for branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Decoders/2D/BL
- Timestamp:
- 06/07/13 01:20:12 (12 years ago)
- Location:
- branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Decoders/2D/BL
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Decoders/2D/BL/BottomLeftGroupingVectorDecoder.cs
r9593 r9596 41 41 [Item("Identical bin two dimensional grouping vector decoder", "<Description missing...>")] 42 42 [StorableClass] 43 public class BottomLeftGroupingVectorDecoder : PackingSolutionDecoder< 44 TwoDimensionalPacking, 45 RectangularPackingBin, 46 RectangularPackingItem>, I2DGVDecoder { 47 48 public BottomLeftGroupingVectorDecoder() 49 : base() { 50 //EncodedSolutionParameter.ActualName = "EncodedSolution"; 51 } 43 public class BottomLeftGroupingVectorDecoder : PackingSolutionDecoder<TwoDimensionalPacking, RectangularPackingBin,RectangularPackingItem>, I2DGVDecoder { 44 public BottomLeftGroupingVectorDecoder() : base() {} 52 45 [StorableConstructor] 53 46 protected BottomLeftGroupingVectorDecoder(bool deserializing) : base(deserializing) { } … … 59 52 } 60 53 61 62 54 public override PackingPlan<TwoDimensionalPacking, RectangularPackingBin, RectangularPackingItem> CreatePackingPlanFromEncoding(IItem encodedSolution, RectangularPackingBin binMeasures, ItemList<RectangularPackingItem> itemMeasures) { 63 64 55 var solution = encodedSolution as GroupingVectorEncoding; 65 56 if (solution == null) throw new InvalidOperationException("Encoding is not of type GroupingVector"); 66 67 PackingPlan<TwoDimensionalPacking, RectangularPackingBin, RectangularPackingItem> result = 68 new PackingPlan<TwoDimensionalPacking, RectangularPackingBin, RectangularPackingItem>(binMeasures); 69 70 result.BinPackings = TwoDimensionalPackingFunctions.BottomLeftPacking(solution, binMeasures, itemMeasures); //BottomLeftFunctions.BottomLeftPacking(solution, binMeasures, itemMeasures); 57 PackingPlan2D result = new PackingPlan2D(binMeasures); 58 result.Pack(solution, itemMeasures); 71 59 return result; 72 60 } -
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Decoders/2D/BL/BottomLeftMultiComponentVectorDecoder.cs
r9593 r9596 41 41 [Item("Identical bin two dimensional multi component vector decoder", "<Description missing...>")] 42 42 [StorableClass] 43 public class BottomLeftMultiComponentVectorDecoder : PackingSolutionDecoder< 44 TwoDimensionalPacking, 45 RectangularPackingBin, 46 RectangularPackingItem>, I2DMCVDecoder { 47 48 public BottomLeftMultiComponentVectorDecoder() 49 : base() { 50 //EncodedSolutionParameter.ActualName = "EncodedSolution"; 51 } 43 public class BottomLeftMultiComponentVectorDecoder : PackingSolutionDecoder<TwoDimensionalPacking,RectangularPackingBin, RectangularPackingItem>, I2DMCVDecoder { 44 public BottomLeftMultiComponentVectorDecoder() : base() {} 52 45 [StorableConstructor] 53 46 protected BottomLeftMultiComponentVectorDecoder(bool deserializing) : base(deserializing) { } … … 59 52 } 60 53 61 62 54 public override PackingPlan<TwoDimensionalPacking, RectangularPackingBin, RectangularPackingItem> CreatePackingPlanFromEncoding(IItem encodedSolution, RectangularPackingBin binMeasures, ItemList<RectangularPackingItem> 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<TwoDimensionalPacking, RectangularPackingBin, RectangularPackingItem> result = 68 new PackingPlan<TwoDimensionalPacking, RectangularPackingBin, RectangularPackingItem>(binMeasures); 69 70 result.BinPackings = TwoDimensionalPackingFunctions.BottomLeftPacking(solution, binMeasures, itemMeasures); //BottomLeftFunctions.BottomLeftPacking(solution, binMeasures, itemMeasures); 71 57 PackingPlan2D result = new PackingPlan2D(binMeasures); 58 result.Pack(solution, itemMeasures); 72 59 return result; 73 60 } -
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Decoders/2D/BL/BottomLeftPackingSequenceDecoder.cs
r9593 r9596 40 40 [Item("Identical bin, two dimensional, direct permutation decoder", "<Description missing...>")] 41 41 [StorableClass] 42 public class BottomLeftPackingSequenceDecoder : PackingSolutionDecoder< 43 TwoDimensionalPacking, 44 RectangularPackingBin, 45 RectangularPackingItem>, I2DPSDecoder { 42 public class BottomLeftPackingSequenceDecoder : PackingSolutionDecoder<TwoDimensionalPacking, RectangularPackingBin, RectangularPackingItem>, I2DPSDecoder { 46 43 47 public BottomLeftPackingSequenceDecoder() 48 : base() { 49 //EncodedSolutionParameter.ActualName = "EncodedSolution"; 50 } 44 public BottomLeftPackingSequenceDecoder(): base() { } 51 45 [StorableConstructor] 52 46 protected BottomLeftPackingSequenceDecoder(bool deserializing) : base(deserializing) { } … … 58 52 } 59 53 60 61 54 public override PackingPlan<TwoDimensionalPacking, RectangularPackingBin, RectangularPackingItem> CreatePackingPlanFromEncoding(IItem encodedSolution, RectangularPackingBin binMeasures, ItemList<RectangularPackingItem> itemMeasures) { 62 63 55 var solution = encodedSolution as PackingSequenceEncoding; 64 56 if (solution == null) throw new InvalidOperationException("Encoding is not of type PackingSequence"); 65 66 PackingPlan<TwoDimensionalPacking, RectangularPackingBin, RectangularPackingItem> result = 67 new PackingPlan<TwoDimensionalPacking, RectangularPackingBin, RectangularPackingItem>(binMeasures); 68 69 result.BinPackings = TwoDimensionalPackingFunctions.BottomLeftPacking(solution, binMeasures, itemMeasures); //BottomLeftFunctions.BottomLeftPacking(solution, binMeasures, itemMeasures); 70 57 PackingPlan2D result = new PackingPlan2D(binMeasures); 58 result.Pack(solution, itemMeasures); 71 59 return result; 72 60 }
Note: See TracChangeset
for help on using the changeset viewer.