Changeset 14049 for branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Problem.cs
- Timestamp:
- 07/12/16 20:03:45 (8 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Problem.cs
r14048 r14049 35 35 36 36 namespace HeuristicLab.Problems.BinPacking { 37 [Item("BinPackingProblem", "Abstract class that represents a BinPacking Problem")]38 37 [StorableClass] 39 public abstract class BinPackingProblem<D, B, I> : SingleObjectiveHeuristicOptimizationProblem<IPackingPlanEvaluationAlgorithm, IPackingSolutionCreator>38 public abstract class Problem<D, B, I> : SingleObjectiveHeuristicOptimizationProblem<IPackingPlanEvaluationAlgorithm, IPackingSolutionCreator> 40 39 where D : class, IPackingPosition 41 40 where B : PackingShape<D>, new() … … 92 91 93 92 [StorableConstructor] 94 protected BinPackingProblem(bool deserializing) : base(deserializing) { }95 protected BinPackingProblem(BinPackingProblem<D,B,I> original, Cloner cloner)93 protected Problem(bool deserializing) : base(deserializing) { } 94 protected Problem(Problem<D,B,I> original, Cloner cloner) 96 95 : base(original, cloner) { 97 96 InitializeEventHandlers(); 98 97 } 99 98 100 protected BinPackingProblem(IPackingPlanEvaluationAlgorithm e) : this(e, new MultiComponentVectorRandomCreator()) { }101 102 protected BinPackingProblem(IPackingPlanEvaluationAlgorithm e, IPackingSolutionCreator c) : base (e, c){99 protected Problem(IPackingPlanEvaluationAlgorithm e) : this(e, new MultiComponentVectorRandomCreator()) { } 100 101 protected Problem(IPackingPlanEvaluationAlgorithm e, IPackingSolutionCreator c) : base (e, c){ 103 102 Parameters.Add(new OptionalValueParameter<PackingPlan<D, B, I>>("BestKnownSolution", "The best known solution of this bin-packing instance.")); 104 103 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>()));
Note: See TracChangeset
for help on using the changeset viewer.