Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/02/13 04:26:26 (11 years ago)
Author:
jhelm
Message:

#1966: Implemented additional Operator-Wrappers for PackingSequence and GroupingVector; Implemented additional problem-class for Rosenbauer-Problemstatement; Added marker-interfaces for decoder-types;

File:
1 edited

Legend:

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

    r9495 r9563  
    108108    }
    109109    public RectangularIdenticalBinPackingProblem() : base(
    110       new PackingPlanEvaluationAlgorithm<PackingSequenceEncoding, TwoDimensionalPacking, RectangularPackingBin, RectangularPackingItem>()) {
     110      new PackingPlanEvaluationAlgorithm<Permutation, TwoDimensionalPacking, RectangularPackingBin, RectangularPackingItem>()) {
    111111    }
    112112
     
    116116      Operators.RemoveAll(op => typeof(I3DOperator).IsAssignableFrom(op.GetType()));
    117117
    118       if (SolutionCreator is PackingSequenceRandomCreator) {
    119         PackingSolutionDecoder = new ExtremePointPackingSequenceDecoder2D();
    120       } else if (SolutionCreator is GroupingVectorRandomCreator) {
    121         PackingSolutionDecoder = new ExtremePointGroupingVectorDecoder2D();
    122       } else if (SolutionCreator is MultiComponentVectorRandomCreator) {
    123         PackingSolutionDecoder = new ExtremePointMultiComponentVectorDecoder2D();
     118      PackingSolutionDecoderParameter.ValidValues.Clear();
     119      if (SolutionCreator is PackingSequenceRandomCreator) {       
     120        PackingSolutionDecoderParameter.ValidValues.UnionWith(ApplicationManager.Manager.GetInstances<I2DPSDecoder>());
     121        //PackingSolutionDecoder = new ExtremePointPackingSequenceDecoder2D();
     122      } else if (SolutionCreator is GroupingVectorRandomCreator) { 
     123        PackingSolutionDecoderParameter.ValidValues.UnionWith(ApplicationManager.Manager.GetInstances<I2DGVDecoder>());
     124        //PackingSolutionDecoder = new ExtremePointGroupingVectorDecoder2D();
     125      } else if (SolutionCreator is MultiComponentVectorRandomCreator) { 
     126        PackingSolutionDecoderParameter.ValidValues.UnionWith(ApplicationManager.Manager.GetInstances<I2DMCVDecoder>());
     127        //PackingSolutionDecoder = new ExtremePointMultiComponentVectorDecoder2D();
    124128      } else {
    125129        string error = "The given problem does not support the selected solution-creator.";
Note: See TracChangeset for help on using the changeset viewer.