Changeset 13460 for branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Problem/RectangularIdenticalBinPackingProblem.cs
- Timestamp:
- 12/14/15 18:59:13 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Problem/RectangularIdenticalBinPackingProblem.cs
r13032 r13460 36 36 37 37 namespace HeuristicLab.Problems.BinPacking.Problem { 38 [Item(" RectangularIdenticalBinPackingProblem", "Represents a two-dimensional bin-packing problem using only bins with identical measures and bins/items with rectangular shapes.")]38 [Item("Bin Packing Problem (2D, identical rectangles) (BPP)", "Represents a two-dimensional bin-packing problem using only bins with identical measures and bins/items with rectangular shapes.")] 39 39 [StorableClass] 40 [Creatable( "Problems")]40 [Creatable(CreatableAttribute.Categories.CombinatorialProblems, Priority = 300)] 41 41 public class RectangularIdenticalBinPackingProblem : RegularIdenticalBinPackingProblem<TwoDimensionalPacking, RectangularPackingBin, RectangularPackingItem> { 42 42 … … 104 104 #region Helpers 105 105 protected override void InitializeDecoder() { 106 Operators.RemoveAll(op => typeof(I3DOperator).IsAssignableFrom(op.GetType()));106 Operators.RemoveAll(op => op is I3DOperator); 107 107 108 108 PackingSolutionDecoderParameter.ValidValues.Clear(); 109 109 if (SolutionCreator is PackingSequenceRandomCreator) { 110 110 PackingSolutionDecoderParameter.ValidValues.UnionWith(ApplicationManager.Manager.GetInstances<I2DPSDecoder>()); 111 //PackingSolutionDecoder = new ExtremePointPackingSequenceDecoder2D();112 111 } else if (SolutionCreator is GroupingVectorRandomCreator) { 113 112 PackingSolutionDecoderParameter.ValidValues.UnionWith(ApplicationManager.Manager.GetInstances<I2DGVDecoder>()); 114 //PackingSolutionDecoder = new ExtremePointGroupingVectorDecoder2D();115 113 } else if (SolutionCreator is MultiComponentVectorRandomCreator) { 116 114 PackingSolutionDecoderParameter.ValidValues.UnionWith(ApplicationManager.Manager.GetInstances<I2DMCVDecoder>()); 117 //PackingSolutionDecoder = new ExtremePointMultiComponentVectorDecoder2D();118 115 } else { 119 116 string error = "The given problem does not support the selected solution-creator."; 120 PluginInfrastructure.ErrorHandling.ShowErrorDialog(error, null);117 ErrorHandling.ShowErrorDialog(error, null); 121 118 } 122 119 }
Note: See TracChangeset
for help on using the changeset viewer.