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/RectangularIdenticalBinPackingProblem.cs

    r13032 r13460  
    3636
    3737namespace 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.")]
    3939  [StorableClass]
    40   [Creatable("Problems")]
     40  [Creatable(CreatableAttribute.Categories.CombinatorialProblems, Priority = 300)]
    4141  public class RectangularIdenticalBinPackingProblem : RegularIdenticalBinPackingProblem<TwoDimensionalPacking, RectangularPackingBin, RectangularPackingItem> {
    4242
     
    104104    #region Helpers
    105105    protected override void InitializeDecoder() {
    106       Operators.RemoveAll(op => typeof(I3DOperator).IsAssignableFrom(op.GetType()));
     106      Operators.RemoveAll(op => op is I3DOperator);
    107107
    108108      PackingSolutionDecoderParameter.ValidValues.Clear();
    109109      if (SolutionCreator is PackingSequenceRandomCreator) {       
    110110        PackingSolutionDecoderParameter.ValidValues.UnionWith(ApplicationManager.Manager.GetInstances<I2DPSDecoder>());
    111         //PackingSolutionDecoder = new ExtremePointPackingSequenceDecoder2D();
    112111      } else if (SolutionCreator is GroupingVectorRandomCreator) { 
    113112        PackingSolutionDecoderParameter.ValidValues.UnionWith(ApplicationManager.Manager.GetInstances<I2DGVDecoder>());
    114         //PackingSolutionDecoder = new ExtremePointGroupingVectorDecoder2D();
    115113      } else if (SolutionCreator is MultiComponentVectorRandomCreator) { 
    116114        PackingSolutionDecoderParameter.ValidValues.UnionWith(ApplicationManager.Manager.GetInstances<I2DMCVDecoder>());
    117         //PackingSolutionDecoder = new ExtremePointMultiComponentVectorDecoder2D();
    118115      } else {
    119116        string error = "The given problem does not support the selected solution-creator.";
    120         PluginInfrastructure.ErrorHandling.ShowErrorDialog(error, null);
     117        ErrorHandling.ShowErrorDialog(error, null);
    121118      }
    122119    }
Note: See TracChangeset for help on using the changeset viewer.