Changeset 9563 for branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Problem/RectangularIdenticalBinPackingProblem.cs
- Timestamp:
- 06/02/13 04:26:26 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Problem/RectangularIdenticalBinPackingProblem.cs
r9495 r9563 108 108 } 109 109 public RectangularIdenticalBinPackingProblem() : base( 110 new PackingPlanEvaluationAlgorithm<P ackingSequenceEncoding, TwoDimensionalPacking, RectangularPackingBin, RectangularPackingItem>()) {110 new PackingPlanEvaluationAlgorithm<Permutation, TwoDimensionalPacking, RectangularPackingBin, RectangularPackingItem>()) { 111 111 } 112 112 … … 116 116 Operators.RemoveAll(op => typeof(I3DOperator).IsAssignableFrom(op.GetType())); 117 117 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(); 124 128 } else { 125 129 string error = "The given problem does not support the selected solution-creator.";
Note: See TracChangeset
for help on using the changeset viewer.