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

    r9495 r9563  
    4444using HeuristicLab.Problems.Instances;
    4545using HeuristicLab.Encodings.PackingEncoding.MultiComponentVector;
     46using HeuristicLab.PluginInfrastructure;
    4647
    4748namespace HeuristicLab.Problems.BinPacking.Problem {
     
    112113    }
    113114    public CuboidIdenticalBinPackingProblem() : base(
    114       new PackingPlanEvaluationAlgorithm<PackingSequenceEncoding, ThreeDimensionalPacking, CuboidPackingBin, CuboidPackingItem>()) {
     115      new PackingPlanEvaluationAlgorithm<Permutation, ThreeDimensionalPacking, CuboidPackingBin, CuboidPackingItem>()) {
    115116    }
    116117
     
    121122      Operators.RemoveAll(op => typeof(I2DOperator).IsAssignableFrom(op.GetType()));
    122123
    123       if (SolutionCreator is PackingSequenceRandomCreator) {
    124         PackingSolutionDecoder = new ExtremePointPackingSequenceDecoder3D();
    125       } else if (SolutionCreator is GroupingVectorRandomCreator) {
    126         PackingSolutionDecoder = new ExtremePointGroupingVectorDecoder3D();
    127       } else if (SolutionCreator is MultiComponentVectorRandomCreator) {
    128         PackingSolutionDecoder = new ExtremePointMultiComponentVectorDecoder3D();
     124      PackingSolutionDecoderParameter.ValidValues.Clear();
     125      if (SolutionCreator is PackingSequenceRandomCreator) {   
     126        PackingSolutionDecoderParameter.ValidValues.UnionWith(ApplicationManager.Manager.GetInstances<I3DPSDecoder>());
     127        //PackingSolutionDecoder = new ExtremePointPackingSequenceDecoder3D();
     128      } else if (SolutionCreator is GroupingVectorRandomCreator) {     
     129        PackingSolutionDecoderParameter.ValidValues.UnionWith(ApplicationManager.Manager.GetInstances<I3DGVDecoder>());
     130        //PackingSolutionDecoder = new ExtremePointGroupingVectorDecoder3D();
     131      } else if (SolutionCreator is MultiComponentVectorRandomCreator) {   
     132        PackingSolutionDecoderParameter.ValidValues.UnionWith(ApplicationManager.Manager.GetInstances<I3DMCVDecoder>());
     133        //PackingSolutionDecoder = ApplicationManager.Manager.GetInstances<ExtremePointMultiComponentVectorDecoder3D>().First();
    129134      } else {
    130135        string error = "The given problem does not support the selected solution-creator.";
Note: See TracChangeset for help on using the changeset viewer.