- Timestamp:
- 05/15/13 22:23:36 (12 years ago)
- Location:
- branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Problem
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Problem/CuboidIdenticalBinPackingProblem.cs
r9473 r9495 44 44 using HeuristicLab.Problems.Instances; 45 45 using HeuristicLab.Encodings.PackingEncoding.MultiComponentVector; 46 using HeuristicLab.Encodings.PackingEncoding.Potvin;47 46 48 47 namespace HeuristicLab.Problems.BinPacking.Problem { … … 120 119 #region Helpers 121 120 protected override void InitializeDecoder() { 121 Operators.RemoveAll(op => typeof(I2DOperator).IsAssignableFrom(op.GetType())); 122 122 123 if (SolutionCreator is PackingSequenceRandomCreator) { 123 124 PackingSolutionDecoder = new ExtremePointPackingSequenceDecoder3D(); … … 126 127 } else if (SolutionCreator is MultiComponentVectorRandomCreator) { 127 128 PackingSolutionDecoder = new ExtremePointMultiComponentVectorDecoder3D(); 128 } else if (SolutionCreator is PotvinRandomCreator) {129 PackingSolutionDecoder = new ExtremePointPotvinDecoder3D();130 129 } else { 131 130 string error = "The given problem does not support the selected solution-creator."; -
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Problem/RectangularIdenticalBinPackingProblem.cs
r9440 r9495 114 114 #region Helpers 115 115 protected override void InitializeDecoder() { 116 Operators.RemoveAll(op => typeof(I3DOperator).IsAssignableFrom(op.GetType())); 117 116 118 if (SolutionCreator is PackingSequenceRandomCreator) { 117 119 PackingSolutionDecoder = new ExtremePointPackingSequenceDecoder2D(); -
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Problem/RegularIdenticalBinPackingProblem.cs
r9473 r9495 43 43 using HeuristicLab.Problems.Instances; 44 44 using HeuristicLab.Encodings.PackingEncoding.MultiComponentVector; 45 using HeuristicLab.Encodings.PackingEncoding.Potvin;46 45 47 46 namespace HeuristicLab.Problems.BinPacking.Problem { … … 67 66 set { PackingBinMeasuresParameter.Value = value; } 68 67 } 69 public IdenticalBinPackingSolutionDecoder<D,B,I, PackingPlan<D,B,I>> PackingSolutionDecoder {70 get { return PackingSolutionDecoderParameter.Value as IdenticalBinPackingSolutionDecoder<D, B, I, PackingPlan<D, B, I>>; }68 public PackingSolutionDecoder<D,B,I> PackingSolutionDecoder { 69 get { return PackingSolutionDecoderParameter.Value as PackingSolutionDecoder<D, B, I>; } 71 70 set { PackingSolutionDecoderParameter.Value = value; } 72 71 } … … 139 138 Operators.AddRange(ApplicationManager.Manager.GetInstances<IMultiComponentVectorOperator>()); 140 139 InitializeDecoder(); 141 } else if (SolutionCreator.GetType() == typeof(PotvinRandomCreator)) {142 Operators.AddRange(ApplicationManager.Manager.GetInstances<IPotvinOperator>());143 InitializeDecoder();144 140 } 145 141 }
Note: See TracChangeset
for help on using the changeset viewer.