Ignore:
Timestamp:
07/12/16 20:35:19 (5 years ago)
Author:
gkronber
Message:

#1966: renamed evaluators

File:
1 edited

Legend:

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

    r14049 r14050  
    5555      get { return (IFixedValueParameter<IntValue>)Parameters["LowerBound"]; }
    5656    }
    57     public ValueParameter<IPackingPlanEvaluator> PackingPlanEvaluatorParameter {
    58       get { return (ValueParameter<IPackingPlanEvaluator>)Parameters["PackingPlanEvaluator"]; }
     57    public ValueParameter<IEvaluator> PackingPlanEvaluatorParameter {
     58      get { return (ValueParameter<IEvaluator>)Parameters["PackingPlanEvaluator"]; }
    5959    }
    6060    public IValueParameter<B> PackingBinMeasuresParameter {
     
    7575      set { PackingItemMeasuresParameter.Value = value; }
    7676    }
    77     public IPackingPlanEvaluator PackingPlanEvaluator {
     77    public IEvaluator PackingPlanEvaluator {
    7878      get { return PackingPlanEvaluatorParameter.Value; }
    7979      set { PackingPlanEvaluatorParameter.Value = value; }
     
    106106      Parameters.Add(new FixedValueParameter<IntValue>("LowerBound", "The lower possible number of bins needed to solve this problem (taken from Dell'Amico, Martello and Vigo; 2002)", new IntValue()));
    107107      Parameters.Add(new ValueParameter<B>("PackingBinMeasures", "Packing-bin data defining the measures of the used bins.", new B()));
    108       Parameters.Add(new ValueParameter<IPackingPlanEvaluator>("PackingPlanEvaluator", "The evaluator is used to determine the quality of a solution.", CreateDefaultEvaluator()));
     108      Parameters.Add(new ValueParameter<IEvaluator>("PackingPlanEvaluator", "The evaluator is used to determine the quality of a solution.", CreateDefaultEvaluator()));
    109109      Parameters.Add(new ConstrainedValueParameter<IPackingSolutionDecoder>("PackingSolutionDecoder", "The operator that decodes the representation and creates a packing plan."));
    110110      this.Maximization.Value = true;
     
    142142    protected abstract void RemoveTooBigItems();
    143143    protected abstract void InitializeProblemData();
    144     protected abstract IPackingPlanEvaluator CreateDefaultEvaluator();
     144    protected abstract IEvaluator CreateDefaultEvaluator();
    145145    protected void ApplyHorizontalOrientation() {
    146146      PackingBinMeasures.ApplyHorizontalOrientation();
Note: See TracChangeset for help on using the changeset viewer.