Changeset 3659 for trunk/sources/HeuristicLab.Analysis
- Timestamp:
- 05/06/10 00:47:32 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Analysis/3.3
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Analysis/3.3/BestAverageWorstQualityCalculator.cs
r3376 r3659 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 S ubScopesLookupParameter<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 each sub-scope 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.")); -
trunk/sources/HeuristicLab.Analysis/3.3/BestQualityMemorizer.cs
r3376 r3659 47 47 : base() { 48 48 Parameters.Add(new ValueLookupParameter<BoolValue>("Maximization", "True if the current problem is a maximization problem, otherwise false.")); 49 Parameters.Add(new S ubScopesLookupParameter<DoubleValue>("Quality", "The value contained in each sub-scope which represents the solution quality."));49 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Quality", "The value contained in each sub-scope which represents the solution quality.")); 50 50 Parameters.Add(new ValueLookupParameter<DoubleValue>("BestQuality", "The quality value of the best solution.")); 51 51 } -
trunk/sources/HeuristicLab.Analysis/3.3/MinAverageMaxValueCalculator.cs
r3623 r3659 49 49 public MinAverageMaxValueCalculator() 50 50 : base() { 51 Parameters.Add(new S ubScopesLookupParameter<DoubleValue>("Value", "The value contained in each sub-scope for which the minimum, average and maximum should be calculated."));51 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Value", "The value contained in each sub-scope for which the minimum, average and maximum should be calculated.")); 52 52 Parameters.Add(new ValueLookupParameter<DoubleValue>("MinValue", "The minimum of the value.")); 53 53 Parameters.Add(new ValueLookupParameter<DoubleValue>("AverageValue", "The average of the value.")); -
trunk/sources/HeuristicLab.Analysis/3.3/PopulationBestAverageWorstQualityAnalyzer.cs
r3658 r3659 39 39 get { return (ValueLookupParameter<BoolValue>)Parameters["Maximization"]; } 40 40 } 41 public S ubScopesLookupParameter<DoubleValue> QualityParameter {42 get { return (S ubScopesLookupParameter<DoubleValue>)Parameters["Quality"]; }41 public ScopeTreeLookupParameter<DoubleValue> QualityParameter { 42 get { return (ScopeTreeLookupParameter<DoubleValue>)Parameters["Quality"]; } 43 43 } 44 44 public ValueLookupParameter<DoubleValue> BestKnownQualityParameter { … … 81 81 #region Create parameters 82 82 Parameters.Add(new ValueLookupParameter<BoolValue>("Maximization", "True if the problem is a maximization problem, otherwise false.")); 83 Parameters.Add(new S ubScopesLookupParameter<DoubleValue>("Quality", "The value which represents the quality of a solution."));83 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Quality", "The value which represents the quality of a solution.")); 84 84 Parameters.Add(new ValueLookupParameter<DoubleValue>("BestKnownQuality", "The best known quality value found so far.")); 85 85 Parameters.Add(new ValueLookupParameter<DoubleValue>("BestQuality", "The best quality value found in the current run.")); -
trunk/sources/HeuristicLab.Analysis/3.3/PopulationMinAverageMaxValueAnalyzer.cs
r3658 r3659 36 36 public sealed class PopulationMinAverageMaxValueAnalyzer : AlgorithmOperator, IAnalyzer { 37 37 #region Parameter properties 38 public S ubScopesLookupParameter<DoubleValue> ValueParameter {39 get { return (S ubScopesLookupParameter<DoubleValue>)Parameters["Value"]; }38 public ScopeTreeLookupParameter<DoubleValue> ValueParameter { 39 get { return (ScopeTreeLookupParameter<DoubleValue>)Parameters["Value"]; } 40 40 } 41 41 public ValueLookupParameter<DoubleValue> MinValueParameter { … … 65 65 private void Initialize() { 66 66 #region Create parameters 67 Parameters.Add(new S ubScopesLookupParameter<DoubleValue>("Value", "The value contained in each solution which should be analyzed."));67 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Value", "The value contained in each solution which should be analyzed.")); 68 68 Parameters.Add(new ValueLookupParameter<DoubleValue>("MinValue", "The minimum of the value.")); 69 69 Parameters.Add(new ValueLookupParameter<DoubleValue>("AverageValue", "The average of the value.")); -
trunk/sources/HeuristicLab.Analysis/3.3/PopulationQualityAnalyzer.cs
r3658 r3659 39 39 get { return (ValueLookupParameter<BoolValue>)Parameters["Maximization"]; } 40 40 } 41 public S ubScopesLookupParameter<DoubleValue> QualityParameter {42 get { return (S ubScopesLookupParameter<DoubleValue>)Parameters["Quality"]; }41 public ScopeTreeLookupParameter<DoubleValue> QualityParameter { 42 get { return (ScopeTreeLookupParameter<DoubleValue>)Parameters["Quality"]; } 43 43 } 44 44 public ValueLookupParameter<DoubleValue> BestKnownQualityParameter { … … 72 72 #region Create parameters 73 73 Parameters.Add(new ValueLookupParameter<BoolValue>("Maximization", "True if the problem is a maximization problem, otherwise false.")); 74 Parameters.Add(new S ubScopesLookupParameter<DoubleValue>("Quality", "The value which represents the quality of a solution."));74 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Quality", "The value which represents the quality of a solution.")); 75 75 Parameters.Add(new ValueLookupParameter<DoubleValue>("BestKnownQuality", "The best known quality value found so far.")); 76 76 Parameters.Add(new ValueLookupParameter<DoubleValue>("BestQuality", "The best quality value found in the current run.")); … … 96 96 bestQualityMemorizer2.QualityParameter.ActualName = "Quality"; 97 97 98 dataTableValuesCollector.CollectedValues.Add(new S ubScopesLookupParameter<DoubleValue>("Quality", null, "Quality"));98 dataTableValuesCollector.CollectedValues.Add(new ScopeTreeLookupParameter<DoubleValue>("Quality", null, "Quality")); 99 99 dataTableValuesCollector.CollectedValues.Add(new LookupParameter<DoubleValue>("Best Quality", null, "BestQuality")); 100 100 dataTableValuesCollector.CollectedValues.Add(new LookupParameter<DoubleValue>("Best Known Quality", null, "BestKnownQuality")); … … 106 106 qualityDifferenceCalculator.SecondQualityParameter.ActualName = "BestQuality"; 107 107 108 resultsCollector.CollectedValues.Add(new S ubScopesLookupParameter<DoubleValue>("Quality", null, "Quality"));108 resultsCollector.CollectedValues.Add(new ScopeTreeLookupParameter<DoubleValue>("Quality", null, "Quality")); 109 109 resultsCollector.CollectedValues.Add(new LookupParameter<DoubleValue>("Best Quality", null, "BestQuality")); 110 110 resultsCollector.CollectedValues.Add(new LookupParameter<DoubleValue>("Best Known Quality", null, "BestKnownQuality")); -
trunk/sources/HeuristicLab.Analysis/3.3/PopulationValueAnalyzer.cs
r3658 r3659 36 36 public sealed class PopulationValueAnalyzer : AlgorithmOperator, IAnalyzer { 37 37 #region Parameter properties 38 public S ubScopesLookupParameter<DoubleValue> ValueParameter {39 get { return (S ubScopesLookupParameter<DoubleValue>)Parameters["Value"]; }38 public ScopeTreeLookupParameter<DoubleValue> ValueParameter { 39 get { return (ScopeTreeLookupParameter<DoubleValue>)Parameters["Value"]; } 40 40 } 41 41 public ValueLookupParameter<DataTable> ValuesParameter { … … 56 56 private void Initialize() { 57 57 #region Create parameters 58 Parameters.Add(new S ubScopesLookupParameter<DoubleValue>("Value", "The value contained in each solution which should be analyzed."));58 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Value", "The value contained in each solution which should be analyzed.")); 59 59 Parameters.Add(new ValueLookupParameter<DataTable>("Values", "The data table to store the values.")); 60 60 Parameters.Add(new ValueLookupParameter<VariableCollection>("Results", "The results collection where the analysis values should be stored.")); … … 65 65 ResultsCollector resultsCollector = new ResultsCollector(); 66 66 67 dataTableValuesCollector.CollectedValues.Add(new S ubScopesLookupParameter<DoubleValue>("Value", null, "Value"));67 dataTableValuesCollector.CollectedValues.Add(new ScopeTreeLookupParameter<DoubleValue>("Value", null, "Value")); 68 68 dataTableValuesCollector.DataTableParameter.ActualName = "Values"; 69 69 70 resultsCollector.CollectedValues.Add(new S ubScopesLookupParameter<DoubleValue>("Value", null, "Value"));70 resultsCollector.CollectedValues.Add(new ScopeTreeLookupParameter<DoubleValue>("Value", null, "Value")); 71 71 resultsCollector.CollectedValues.Add(new LookupParameter<DataTable>("Values")); 72 72 resultsCollector.ResultsParameter.ActualName = "Results";
Note: See TracChangeset
for help on using the changeset viewer.