Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/14/15 18:59:13 (8 years ago)
Author:
gkronber
Message:

#1966:

  • renamed creatables
  • partially fixed bin packing problem instance provider
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Problem/CuboidIdenticalBinPackingProblem.cs

    r13032 r13460  
    3636
    3737namespace 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.")]
    3939  [StorableClass]
    40   [Creatable("Problems")]
     40  [Creatable(CreatableAttribute.Categories.CombinatorialProblems, Priority = 310)]
    4141  public class CuboidIdenticalBinPackingProblem : RegularIdenticalBinPackingProblem<ThreeDimensionalPacking, CuboidPackingBin, CuboidPackingItem> {
    4242
     
    109109    #region Helpers
    110110    protected override void InitializeDecoder() {
    111       Operators.RemoveAll(op => typeof(I2DOperator).IsAssignableFrom(op.GetType()));
     111      Operators.RemoveAll(op => op is I2DOperator);
    112112
    113113      PackingSolutionDecoderParameter.ValidValues.Clear();
    114114      if (SolutionCreator is PackingSequenceRandomCreator) {   
    115115        PackingSolutionDecoderParameter.ValidValues.UnionWith(ApplicationManager.Manager.GetInstances<I3DPSDecoder>());
    116         //PackingSolutionDecoder = new ExtremePointPackingSequenceDecoder3D();
    117116      } else if (SolutionCreator is GroupingVectorRandomCreator) {     
    118117        PackingSolutionDecoderParameter.ValidValues.UnionWith(ApplicationManager.Manager.GetInstances<I3DGVDecoder>());
    119         //PackingSolutionDecoder = new ExtremePointGroupingVectorDecoder3D();
    120118      } else if (SolutionCreator is MultiComponentVectorRandomCreator) {   
    121119        PackingSolutionDecoderParameter.ValidValues.UnionWith(ApplicationManager.Manager.GetInstances<I3DMCVDecoder>());
    122         //PackingSolutionDecoder = ApplicationManager.Manager.GetInstances<ExtremePointMultiComponentVectorDecoder3D>().First();
    123120      } else {
    124121        string error = "The given problem does not support the selected solution-creator.";
    125         PluginInfrastructure.ErrorHandling.ShowErrorDialog(error, null);
     122        ErrorHandling.ShowErrorDialog(error, null);
    126123      }
    127124    }
Note: See TracChangeset for help on using the changeset viewer.