- Timestamp:
- 05/06/10 02:46:37 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Analysis/3.3/BestAverageWorstQualityCalculator.cs
r3659 r3662 29 29 namespace HeuristicLab.Analysis { 30 30 /// <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. 32 32 /// </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.")] 34 34 [StorableClass] 35 35 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"]; } 38 38 } 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"]; } 41 41 } 42 public IValueLookupParameter<DoubleValue> BestQualityParameter {43 get { return ( IValueLookupParameter<DoubleValue>)Parameters["BestQuality"]; }42 public ValueLookupParameter<DoubleValue> BestQualityParameter { 43 get { return (ValueLookupParameter<DoubleValue>)Parameters["BestQuality"]; } 44 44 } 45 public IValueLookupParameter<DoubleValue> AverageQualityParameter {46 get { return ( IValueLookupParameter<DoubleValue>)Parameters["AverageQuality"]; }45 public ValueLookupParameter<DoubleValue> AverageQualityParameter { 46 get { return (ValueLookupParameter<DoubleValue>)Parameters["AverageQuality"]; } 47 47 } 48 public IValueLookupParameter<DoubleValue> WorstQualityParameter {49 get { return ( IValueLookupParameter<DoubleValue>)Parameters["WorstQuality"]; }48 public ValueLookupParameter<DoubleValue> WorstQualityParameter { 49 get { return (ValueLookupParameter<DoubleValue>)Parameters["WorstQuality"]; } 50 50 } 51 51 … … 53 53 : base() { 54 54 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.")); 56 56 Parameters.Add(new ValueLookupParameter<DoubleValue>("BestQuality", "The quality value of the best solution.")); 57 57 Parameters.Add(new ValueLookupParameter<DoubleValue>("AverageQuality", "The average quality of all solutions."));
Note: See TracChangeset
for help on using the changeset viewer.