Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/06/10 02:46:37 (14 years ago)
Author:
swagner
Message:

Worked on refactoring of algorithm analysis and tracing (#999)

  • adapted analyzers
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Analysis/3.3/BestAverageWorstQualityCalculator.cs

    r3659 r3662  
    2929namespace HeuristicLab.Analysis {
    3030  /// <summary>
    31   /// An operator which calculates the best, average and worst solution quality of the current population.
     31  /// An operator which calculates the best, average and worst quality of solutions in the scope tree.
    3232  /// </summary>
    33   [Item("BestAverageWorstQualityCalculator", "An operator which calculates the best, average and worst solution quality of the current population.")]
     33  [Item("BestAverageWorstQualityCalculator", "An operator which calculates the best, average and worst quality of solutions in the scope tree.")]
    3434  [StorableClass]
    3535  public sealed class BestAverageWorstQualityCalculator : SingleSuccessorOperator {
    36     public IValueLookupParameter<BoolValue> MaximizationParameter {
    37       get { return (IValueLookupParameter<BoolValue>)Parameters["Maximization"]; }
     36    public ValueLookupParameter<BoolValue> MaximizationParameter {
     37      get { return (ValueLookupParameter<BoolValue>)Parameters["Maximization"]; }
    3838    }
    39     public ILookupParameter<ItemArray<DoubleValue>> QualityParameter {
    40       get { return (ILookupParameter<ItemArray<DoubleValue>>)Parameters["Quality"]; }
     39    public ScopeTreeLookupParameter<DoubleValue> QualityParameter {
     40      get { return (ScopeTreeLookupParameter<DoubleValue>)Parameters["Quality"]; }
    4141    }
    42     public IValueLookupParameter<DoubleValue> BestQualityParameter {
    43       get { return (IValueLookupParameter<DoubleValue>)Parameters["BestQuality"]; }
     42    public ValueLookupParameter<DoubleValue> BestQualityParameter {
     43      get { return (ValueLookupParameter<DoubleValue>)Parameters["BestQuality"]; }
    4444    }
    45     public IValueLookupParameter<DoubleValue> AverageQualityParameter {
    46       get { return (IValueLookupParameter<DoubleValue>)Parameters["AverageQuality"]; }
     45    public ValueLookupParameter<DoubleValue> AverageQualityParameter {
     46      get { return (ValueLookupParameter<DoubleValue>)Parameters["AverageQuality"]; }
    4747    }
    48     public IValueLookupParameter<DoubleValue> WorstQualityParameter {
    49       get { return (IValueLookupParameter<DoubleValue>)Parameters["WorstQuality"]; }
     48    public ValueLookupParameter<DoubleValue> WorstQualityParameter {
     49      get { return (ValueLookupParameter<DoubleValue>)Parameters["WorstQuality"]; }
    5050    }
    5151
     
    5353      : base() {
    5454      Parameters.Add(new ValueLookupParameter<BoolValue>("Maximization", "True if the current problem is a maximization problem, otherwise false."));
    55       Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Quality", "The value contained in each sub-scope which represents the solution quality."));
     55      Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Quality", "The value contained in the scope tree which represents the solution quality."));
    5656      Parameters.Add(new ValueLookupParameter<DoubleValue>("BestQuality", "The quality value of the best solution."));
    5757      Parameters.Add(new ValueLookupParameter<DoubleValue>("AverageQuality", "The average quality of all solutions."));
Note: See TracChangeset for help on using the changeset viewer.