Changeset 13460 for branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Problem/CuboidIdenticalBinPackingProblem.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/CuboidIdenticalBinPackingProblem.cs
r13032 r13460 36 36 37 37 namespace HeuristicLab.Problems.BinPacking.Problem { 38 [Item(" CuboidIdenticalBinPackingProblem", "Represents a three-dimensional bin-packing problem using only bins with identical measures and bins/items with cuboidic shapes.")]38 [Item("Bin Packing Problem (3D, identical cuboids) (BPP)", "Represents a three-dimensional bin-packing problem using only bins with identical measures and bins/items with cuboidic shapes.")] 39 39 [StorableClass] 40 [Creatable( "Problems")]40 [Creatable(CreatableAttribute.Categories.CombinatorialProblems, Priority = 310)] 41 41 public class CuboidIdenticalBinPackingProblem : RegularIdenticalBinPackingProblem<ThreeDimensionalPacking, CuboidPackingBin, CuboidPackingItem> { 42 42 … … 109 109 #region Helpers 110 110 protected override void InitializeDecoder() { 111 Operators.RemoveAll(op => typeof(I2DOperator).IsAssignableFrom(op.GetType()));111 Operators.RemoveAll(op => op is I2DOperator); 112 112 113 113 PackingSolutionDecoderParameter.ValidValues.Clear(); 114 114 if (SolutionCreator is PackingSequenceRandomCreator) { 115 115 PackingSolutionDecoderParameter.ValidValues.UnionWith(ApplicationManager.Manager.GetInstances<I3DPSDecoder>()); 116 //PackingSolutionDecoder = new ExtremePointPackingSequenceDecoder3D();117 116 } else if (SolutionCreator is GroupingVectorRandomCreator) { 118 117 PackingSolutionDecoderParameter.ValidValues.UnionWith(ApplicationManager.Manager.GetInstances<I3DGVDecoder>()); 119 //PackingSolutionDecoder = new ExtremePointGroupingVectorDecoder3D();120 118 } else if (SolutionCreator is MultiComponentVectorRandomCreator) { 121 119 PackingSolutionDecoderParameter.ValidValues.UnionWith(ApplicationManager.Manager.GetInstances<I3DMCVDecoder>()); 122 //PackingSolutionDecoder = ApplicationManager.Manager.GetInstances<ExtremePointMultiComponentVectorDecoder3D>().First();123 120 } else { 124 121 string error = "The given problem does not support the selected solution-creator."; 125 PluginInfrastructure.ErrorHandling.ShowErrorDialog(error, null);122 ErrorHandling.ShowErrorDialog(error, null); 126 123 } 127 124 }
Note: See TracChangeset
for help on using the changeset viewer.