Changeset 9563 for branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Problem/CuboidIdenticalBinPackingProblem.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/CuboidIdenticalBinPackingProblem.cs
r9495 r9563 44 44 using HeuristicLab.Problems.Instances; 45 45 using HeuristicLab.Encodings.PackingEncoding.MultiComponentVector; 46 using HeuristicLab.PluginInfrastructure; 46 47 47 48 namespace HeuristicLab.Problems.BinPacking.Problem { … … 112 113 } 113 114 public CuboidIdenticalBinPackingProblem() : base( 114 new PackingPlanEvaluationAlgorithm<P ackingSequenceEncoding, ThreeDimensionalPacking, CuboidPackingBin, CuboidPackingItem>()) {115 new PackingPlanEvaluationAlgorithm<Permutation, ThreeDimensionalPacking, CuboidPackingBin, CuboidPackingItem>()) { 115 116 } 116 117 … … 121 122 Operators.RemoveAll(op => typeof(I2DOperator).IsAssignableFrom(op.GetType())); 122 123 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(); 129 134 } else { 130 135 string error = "The given problem does not support the selected solution-creator.";
Note: See TracChangeset
for help on using the changeset viewer.