Changeset 14045 for branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.2D/3.3/Decoders/EP
- Timestamp:
- 07/12/16 18:23:13 (8 years ago)
- Location:
- branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.2D/3.3/Decoders/EP
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.2D/3.3/Decoders/EP/ExtremePointGroupingVectorDecoder2D.cs
r13607 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; … … 32 32 using HeuristicLab.Encodings.PackingEncoding.GroupingVector; 33 33 using HeuristicLab.Problems.BinPacking2D; 34 using HeuristicLab.Problems.BinPacking.Shapes; 34 35 35 36 namespace HeuristicLab.Problems.BinPacking.Decoders { 36 37 [Item("Identical bin, two dimensional, extreme points based decoder for the GroupingVector encoding.", "<Description missing...>")] 37 38 [StorableClass] 38 public class ExtremePointGroupingVectorDecoder2D : PackingSolutionDecoder<TwoDimensionalPacking, RectangularPacking Bin, RectangularPackingItem>, I2DGVDecoder {39 public class ExtremePointGroupingVectorDecoder2D : PackingSolutionDecoder<TwoDimensionalPacking, RectangularPackingShape, RectangularPackingItem>, I2DGVDecoder { 39 40 public ExtremePointGroupingVectorDecoder2D () : base() {} 40 41 [StorableConstructor] … … 47 48 } 48 49 49 public static PackingPlan<TwoDimensionalPacking, RectangularPacking Bin, RectangularPackingItem> Decode(GroupingVectorEncoding solution, RectangularPackingBinbinMeasures, ItemList<RectangularPackingItem> itemMeasures) {50 public static PackingPlan<TwoDimensionalPacking, RectangularPackingShape, RectangularPackingItem> Decode(GroupingVectorEncoding solution, RectangularPackingShape binMeasures, ItemList<RectangularPackingItem> itemMeasures) { 50 51 PackingPlan2D result = new PackingPlan2D(binMeasures, true, false); 51 52 result.Pack(solution, itemMeasures); … … 53 54 } 54 55 55 public override PackingPlan<TwoDimensionalPacking, RectangularPacking Bin, RectangularPackingItem> CreatePackingPlanFromEncoding(IItem encodedSolution, RectangularPackingBinbinMeasures, ItemList<RectangularPackingItem> itemMeasures) {56 public override PackingPlan<TwoDimensionalPacking, RectangularPackingShape, RectangularPackingItem> CreatePackingPlanFromEncoding(IItem encodedSolution, RectangularPackingShape binMeasures, ItemList<RectangularPackingItem> itemMeasures) { 56 57 var solution = encodedSolution as GroupingVectorEncoding; 57 58 if (solution == null) throw new InvalidOperationException("Encoding is not of type GroupingVector"); -
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.2D/3.3/Decoders/EP/ExtremePointMultiComponentVectorDecoder2D.cs
r13607 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; … … 31 31 using HeuristicLab.Encodings.PackingEncoding.MultiComponentVector; 32 32 using HeuristicLab.Problems.BinPacking2D; 33 using HeuristicLab.Problems.BinPacking.Shapes; 33 34 34 35 namespace HeuristicLab.Problems.BinPacking.Decoders { 35 36 [Item("Identical bin, two dimensional, extreme points based decoder for the MultiComponentVector encoding.", "<Description missing...>")] // TODO 36 37 [StorableClass] 37 public class ExtremePointMultiComponentVectorDecoder2D : PackingSolutionDecoder<TwoDimensionalPacking, RectangularPackingBin, RectangularPackingItem>, I2DMCVDecoder {38 public class ExtremePointMultiComponentVectorDecoder2D : PackingSolutionDecoder<TwoDimensionalPacking, RectangularPackingShape, RectangularPackingItem>, I2DMCVDecoder { 38 39 public ExtremePointMultiComponentVectorDecoder2D () : base() {} 39 40 [StorableConstructor] … … 46 47 } 47 48 48 public static PackingPlan<TwoDimensionalPacking, RectangularPacking Bin, RectangularPackingItem> Decode(MultiComponentVectorEncoding solution, RectangularPackingBinbinMeasures, ItemList<RectangularPackingItem> itemMeasures) {49 public static PackingPlan<TwoDimensionalPacking, RectangularPackingShape, RectangularPackingItem> Decode(MultiComponentVectorEncoding solution, RectangularPackingShape binMeasures, ItemList<RectangularPackingItem> itemMeasures) { 49 50 PackingPlan2D result = new PackingPlan2D(binMeasures, true, false); 50 51 result.Pack(solution, itemMeasures); … … 52 53 } 53 54 54 public override PackingPlan<TwoDimensionalPacking, RectangularPacking Bin, RectangularPackingItem> CreatePackingPlanFromEncoding(IItem encodedSolution, RectangularPackingBinbinMeasures, ItemList<RectangularPackingItem> itemMeasures) {55 public override PackingPlan<TwoDimensionalPacking, RectangularPackingShape, RectangularPackingItem> CreatePackingPlanFromEncoding(IItem encodedSolution, RectangularPackingShape binMeasures, ItemList<RectangularPackingItem> itemMeasures) { 55 56 var solution = encodedSolution as MultiComponentVectorEncoding; 56 57 if (solution == null) throw new InvalidOperationException("Encoding is not of type MultiComponentVector"); -
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.2D/3.3/Decoders/EP/ExtremePointPackingSequenceDecoder2D.cs
r13607 r14045 25 25 using HeuristicLab.Core; 26 26 using HeuristicLab.Problems.BinPacking.Dimensions; 27 using HeuristicLab.Problems.BinPacking.PackingBin;28 27 using HeuristicLab.Problems.BinPacking.PackingItem; 29 28 using HeuristicLab.Encodings.PackingEncoding.PackingPlan; … … 32 31 using HeuristicLab.Problems.BinPacking.Interfaces; 33 32 using HeuristicLab.Problems.BinPacking2D; 33 using HeuristicLab.Problems.BinPacking.Shapes; 34 34 35 35 namespace HeuristicLab.Problems.BinPacking.Decoders { 36 36 [Item("Identical bin, two dimensional, extreme points based decoder for the PackingSequence encoding.", "<Description missing...>")] // TODO 37 37 [StorableClass] 38 public class ExtremePointPackingSequenceDecoder2D : PackingSolutionDecoder<TwoDimensionalPacking, RectangularPacking Bin, RectangularPackingItem>, I2DPSDecoder {38 public class ExtremePointPackingSequenceDecoder2D : PackingSolutionDecoder<TwoDimensionalPacking, RectangularPackingShape, RectangularPackingItem>, I2DPSDecoder { 39 39 public ExtremePointPackingSequenceDecoder2D () : base() {} 40 40 [StorableConstructor] … … 48 48 49 49 50 public override PackingPlan<TwoDimensionalPacking, RectangularPacking Bin, RectangularPackingItem> CreatePackingPlanFromEncoding(IItem encodedSolution, RectangularPackingBinbinMeasures, ItemList<RectangularPackingItem> itemMeasures) {50 public override PackingPlan<TwoDimensionalPacking, RectangularPackingShape, RectangularPackingItem> CreatePackingPlanFromEncoding(IItem encodedSolution, RectangularPackingShape binMeasures, ItemList<RectangularPackingItem> itemMeasures) { 51 51 var solution = encodedSolution as PackingSequenceEncoding; 52 52 if (solution == null) throw new InvalidOperationException("Encoding is not of type PackingSequence");
Note: See TracChangeset
for help on using the changeset viewer.