Changeset 14128 for branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Problem.cs
- Timestamp:
- 07/20/16 14:02:36 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Problem.cs
r14054 r14128 26 26 using HeuristicLab.Parameters; 27 27 using HeuristicLab.Data; 28 using HeuristicLab.Encodings.PackingEncoding.MultiComponentVector;29 28 using HeuristicLab.PluginInfrastructure; 30 29 using System.Linq; 31 30 using System; 32 using HeuristicLab.Encodings.PackingEncoding.PackingSequence;33 using HeuristicLab.Encodings.PackingEncoding.GroupingVector;34 31 using HeuristicLab.Encodings.PackingEncoding; 35 32 … … 97 94 } 98 95 99 protected Problem(IDecodingEvaluator e) : this(e, new MultiComponentVectorRandomCreator()) { } 100 101 protected Problem(IDecodingEvaluator e, IPackingSolutionCreator c) : base(e, c) { 96 protected Problem(IDecodingEvaluator e) : this(e, new PackingSequenceRandomCreator()) { } 97 98 protected Problem(IDecodingEvaluator e, IPackingSolutionCreator c) 99 : base(e, c) { 102 100 Parameters.Add(new OptionalValueParameter<PackingPlan<D, B, I>>("BestKnownSolution", "The best known solution of this bin-packing instance.")); 103 101 Parameters.Add(new ValueParameter<ItemList<I>>("PackingItemMeasures", "Packing-item data defining the measures of the different items that need to be packed.", new ItemList<I>())); … … 109 107 Parameters.Add(new ConstrainedValueParameter<IPackingSolutionDecoder>("PackingSolutionDecoder", "The operator that decodes the representation and creates a packing plan.")); 110 108 this.Maximization.Value = true; 111 InitializeProblemInstance(); 109 InitializeProblemInstance(); // TODO 112 110 InitializeOperators(); 113 111 InitializeEventHandlers(); … … 163 161 Operators.AddRange(ApplicationManager.Manager.GetInstances<IPackingSequenceOperator>()); 164 162 InitializeDecoder(); 165 } else if (SolutionCreator.GetType() == typeof(GroupingVectorRandomCreator)) {163 } /* else if (SolutionCreator.GetType() == typeof(GroupingVectorRandomCreator)) { 166 164 Operators.AddRange(ApplicationManager.Manager.GetInstances<IGroupingVectorOperator>()); 167 165 InitializeDecoder(); … … 169 167 Operators.AddRange(ApplicationManager.Manager.GetInstances<IMultiComponentVectorOperator>()); 170 168 InitializeDecoder(); 171 } 169 } */ 172 170 } 173 171 private void ParameterizeOperators() { … … 193 191 PackingPlanEvaluator.PackingPlanParameter.Hidden = false; 194 192 } 193 /* 195 194 196 195 foreach (var op in Operators.OfType<IPackingSolutionManipulator>()) { … … 205 204 op.ParentsParameter.Hidden = true; 206 205 } 207 206 */ 208 207 foreach (var op in Operators.OfType<BestBinPackingSolutionAnalyzer<D, B, I>>()) { 209 208 op.QualityParameter.ActualName = PackingPlanEvaluator.QualityParameter.ActualName;
Note: See TracChangeset
for help on using the changeset viewer.