Ignore:
Timestamp:
07/13/16 08:29:03 (5 years ago)
Author:
gkronber
Message:

#1966: renamed *EvaluationAlgorithm to *DecodingEvaluator

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Problem.cs

    r14050 r14054  
    3636namespace HeuristicLab.Problems.BinPacking {
    3737  [StorableClass]
    38   public abstract class Problem<D, B, I> : SingleObjectiveHeuristicOptimizationProblem<IPackingPlanEvaluationAlgorithm, IPackingSolutionCreator>
    39     where D : class, IPackingPosition 
     38  public abstract class Problem<D, B, I> : SingleObjectiveHeuristicOptimizationProblem<IDecodingEvaluator, IPackingSolutionCreator>
     39    where D : class, IPackingPosition
    4040    where B : PackingShape<D>, new()
    41     where I : PackingShape<D>, IPackingItem, new () {
     41    where I : PackingShape<D>, IPackingItem, new() {
    4242
    4343
    4444    #region Parameter Properties
    45     public OptionalValueParameter<PackingPlan<D,B,I>> BestKnownSolutionParameter {
     45    public OptionalValueParameter<PackingPlan<D, B, I>> BestKnownSolutionParameter {
    4646      get { return (OptionalValueParameter<PackingPlan<D, B, I>>)Parameters["BestKnownSolution"]; }
    4747    }
     
    7373    public ItemList<I> PackingItemMeasures {
    7474      get { return PackingItemMeasuresParameter.Value; }
    75       set { PackingItemMeasuresParameter.Value = value; } 
     75      set { PackingItemMeasuresParameter.Value = value; }
    7676    }
    7777    public IEvaluator PackingPlanEvaluator {
     
    9292    [StorableConstructor]
    9393    protected Problem(bool deserializing) : base(deserializing) { }
    94     protected Problem(Problem<D,B,I> original, Cloner cloner)
     94    protected Problem(Problem<D, B, I> original, Cloner cloner)
    9595      : base(original, cloner) {
    9696      InitializeEventHandlers();
    9797    }
    9898
    99     protected Problem(IPackingPlanEvaluationAlgorithm e) : this(e, new MultiComponentVectorRandomCreator()) { }
    100 
    101     protected Problem(IPackingPlanEvaluationAlgorithm e, IPackingSolutionCreator c) : base (e, c){
     99    protected Problem(IDecodingEvaluator e) : this(e, new MultiComponentVectorRandomCreator()) { }
     100
     101    protected Problem(IDecodingEvaluator e, IPackingSolutionCreator c) : base(e, c) {
    102102      Parameters.Add(new OptionalValueParameter<PackingPlan<D, B, I>>("BestKnownSolution", "The best known solution of this bin-packing instance."));
    103103      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.