Changeset 3659
- Timestamp:
- 05/06/10 00:47:32 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 added
- 1 deleted
- 53 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/sources/HeuristicLab.Algorithms.EvolutionStrategy/3.3/EvolutionStrategyMainLoop.cs ¶
r3620 r3659 44 44 get { return (ValueLookupParameter<BoolValue>)Parameters["Maximization"]; } 45 45 } 46 public S ubScopesLookupParameter<DoubleValue> QualityParameter {47 get { return (S ubScopesLookupParameter<DoubleValue>)Parameters["Quality"]; }46 public ScopeTreeLookupParameter<DoubleValue> QualityParameter { 47 get { return (ScopeTreeLookupParameter<DoubleValue>)Parameters["Quality"]; } 48 48 } 49 49 public ValueLookupParameter<DoubleValue> BestKnownQualityParameter { … … 106 106 Parameters.Add(new ValueLookupParameter<IRandom>("Random", "A pseudo random number generator.")); 107 107 Parameters.Add(new ValueLookupParameter<BoolValue>("Maximization", "True if the problem is a maximization problem, otherwise false.")); 108 Parameters.Add(new S ubScopesLookupParameter<DoubleValue>("Quality", "The value which represents the quality of a solution."));108 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Quality", "The value which represents the quality of a solution.")); 109 109 Parameters.Add(new ValueLookupParameter<DoubleValue>("BestKnownQuality", "The best known quality value found so far.")); 110 110 Parameters.Add(new ValueLookupParameter<IntValue>("PopulationSize", "µ (mu) - the size of the population.")); -
TabularUnified trunk/sources/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/GeneticAlgorithmMainLoop.cs ¶
r3616 r3659 44 44 get { return (ValueLookupParameter<BoolValue>)Parameters["Maximization"]; } 45 45 } 46 public S ubScopesLookupParameter<DoubleValue> QualityParameter {47 get { return (S ubScopesLookupParameter<DoubleValue>)Parameters["Quality"]; }46 public ScopeTreeLookupParameter<DoubleValue> QualityParameter { 47 get { return (ScopeTreeLookupParameter<DoubleValue>)Parameters["Quality"]; } 48 48 } 49 49 public ValueLookupParameter<IOperator> SelectorParameter { … … 94 94 Parameters.Add(new ValueLookupParameter<IRandom>("Random", "A pseudo random number generator.")); 95 95 Parameters.Add(new ValueLookupParameter<BoolValue>("Maximization", "True if the problem is a maximization problem, otherwise false.")); 96 Parameters.Add(new S ubScopesLookupParameter<DoubleValue>("Quality", "The value which represents the quality of a solution."));96 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Quality", "The value which represents the quality of a solution.")); 97 97 Parameters.Add(new ValueLookupParameter<IOperator>("Selector", "The operator used to select solutions for reproduction.")); 98 98 Parameters.Add(new ValueLookupParameter<IOperator>("Crossover", "The operator used to cross solutions.")); -
TabularUnified trunk/sources/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/IslandGeneticAlgorithmMainLoop.cs ¶
r3650 r3659 49 49 get { return (ValueLookupParameter<BoolValue>)Parameters["Maximization"]; } 50 50 } 51 public S ubScopesLookupParameter<DoubleValue> QualityParameter {52 get { return (S ubScopesLookupParameter<DoubleValue>)Parameters["Quality"]; }51 public ScopeTreeLookupParameter<DoubleValue> QualityParameter { 52 get { return (ScopeTreeLookupParameter<DoubleValue>)Parameters["Quality"]; } 53 53 } 54 54 public ValueLookupParameter<DoubleValue> BestKnownQualityParameter { … … 115 115 Parameters.Add(new ValueLookupParameter<IRandom>("Random", "A pseudo random number generator.")); 116 116 Parameters.Add(new ValueLookupParameter<BoolValue>("Maximization", "True if the problem is a maximization problem, otherwise false.")); 117 Parameters.Add(new S ubScopesLookupParameter<DoubleValue>("Quality", "The value which represents the quality of a solution."));117 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Quality", "The value which represents the quality of a solution.")); 118 118 Parameters.Add(new ValueLookupParameter<DoubleValue>("BestKnownQuality", "The best known quality value found so far.")); 119 119 Parameters.Add(new ValueLookupParameter<IntValue>("NumberOfIslands", "The number of islands.")); … … 193 193 resultsCollector2.Name = "Reference Island Results"; 194 194 resultsCollector2.CopyValue = new BoolValue(false); 195 resultsCollector2.CollectedValues.Add(new S ubScopesLookupParameter<ResultCollection>("IslandResults", "Result set for each island", "Results"));195 resultsCollector2.CollectedValues.Add(new ScopeTreeLookupParameter<ResultCollection>("IslandResults", "Result set for each island", "Results")); 196 196 resultsCollector2.ResultsParameter.ActualName = ResultsParameter.Name; 197 197 -
TabularUnified trunk/sources/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/IslandOffspringSelectionGeneticAlgorithmMainLoop.cs ¶
r3654 r3659 49 49 get { return (ValueLookupParameter<BoolValue>)Parameters["Maximization"]; } 50 50 } 51 public S ubScopesLookupParameter<DoubleValue> QualityParameter {52 get { return (S ubScopesLookupParameter<DoubleValue>)Parameters["Quality"]; }51 public ScopeTreeLookupParameter<DoubleValue> QualityParameter { 52 get { return (ScopeTreeLookupParameter<DoubleValue>)Parameters["Quality"]; } 53 53 } 54 54 public ValueLookupParameter<DoubleValue> BestKnownQualityParameter { … … 142 142 Parameters.Add(new ValueLookupParameter<IRandom>("Random", "A pseudo random number generator.")); 143 143 Parameters.Add(new ValueLookupParameter<BoolValue>("Maximization", "True if the problem is a maximization problem, otherwise false.")); 144 Parameters.Add(new S ubScopesLookupParameter<DoubleValue>("Quality", "The value which represents the quality of a solution."));144 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Quality", "The value which represents the quality of a solution.")); 145 145 Parameters.Add(new ValueLookupParameter<DoubleValue>("BestKnownQuality", "The best known quality value found so far.")); 146 146 Parameters.Add(new ValueLookupParameter<IntValue>("NumberOfIslands", "The number of islands.")); … … 236 236 resultsCollector1.CollectedValues.Add(new LookupParameter<IntValue>("Generations")); 237 237 resultsCollector1.CollectedValues.Add(new LookupParameter<IntValue>("Evaluated Solutions", null, "EvaluatedSolutions")); 238 resultsCollector1.CollectedValues.Add(new S ubScopesLookupParameter<ResultCollection>("IslandResults", "Result set for each island", "Results"));238 resultsCollector1.CollectedValues.Add(new ScopeTreeLookupParameter<ResultCollection>("IslandResults", "Result set for each island", "Results")); 239 239 resultsCollector1.ResultsParameter.ActualName = ResultsParameter.Name; 240 240 241 241 resultsCollector2.Name = "Reference Island Results"; 242 242 resultsCollector2.CopyValue = new BoolValue(false); 243 resultsCollector2.CollectedValues.Add(new S ubScopesLookupParameter<ResultCollection>("IslandResults", "Result set for each island", "Results"));243 resultsCollector2.CollectedValues.Add(new ScopeTreeLookupParameter<ResultCollection>("IslandResults", "Result set for each island", "Results")); 244 244 resultsCollector2.ResultsParameter.ActualName = ResultsParameter.Name; 245 245 -
TabularUnified trunk/sources/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/OffspringSelectionGeneticAlgorithmMainLoop.cs ¶
r3650 r3659 43 43 get { return (ValueLookupParameter<BoolValue>)Parameters["Maximization"]; } 44 44 } 45 public S ubScopesLookupParameter<DoubleValue> QualityParameter {46 get { return (S ubScopesLookupParameter<DoubleValue>)Parameters["Quality"]; }45 public ScopeTreeLookupParameter<DoubleValue> QualityParameter { 46 get { return (ScopeTreeLookupParameter<DoubleValue>)Parameters["Quality"]; } 47 47 } 48 48 public ValueLookupParameter<IOperator> SelectorParameter { … … 104 104 Parameters.Add(new ValueLookupParameter<IRandom>("Random", "A pseudo random number generator.")); 105 105 Parameters.Add(new ValueLookupParameter<BoolValue>("Maximization", "True if the problem is a maximization problem, otherwise false.")); 106 Parameters.Add(new S ubScopesLookupParameter<DoubleValue>("Quality", "The value which represents the quality of a solution."));106 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Quality", "The value which represents the quality of a solution.")); 107 107 Parameters.Add(new ValueLookupParameter<DoubleValue>("BestKnownQuality", "The best known quality value found so far.")); 108 108 Parameters.Add(new ValueLookupParameter<IOperator>("Selector", "The operator used to select solutions for reproduction.")); -
TabularUnified trunk/sources/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/OffspringSelectionGeneticAlgorithmMainOperator.cs ¶
r3611 r3659 43 43 get { return (ValueLookupParameter<BoolValue>)Parameters["Maximization"]; } 44 44 } 45 public S ubScopesLookupParameter<DoubleValue> QualityParameter {46 get { return (S ubScopesLookupParameter<DoubleValue>)Parameters["Quality"]; }45 public ScopeTreeLookupParameter<DoubleValue> QualityParameter { 46 get { return (ScopeTreeLookupParameter<DoubleValue>)Parameters["Quality"]; } 47 47 } 48 48 public ValueLookupParameter<IOperator> SelectorParameter { … … 98 98 Parameters.Add(new ValueLookupParameter<IRandom>("Random", "A pseudo random number generator.")); 99 99 Parameters.Add(new ValueLookupParameter<BoolValue>("Maximization", "True if the problem is a maximization problem, otherwise false.")); 100 Parameters.Add(new S ubScopesLookupParameter<DoubleValue>("Quality", "The value which represents the quality of a solution."));100 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Quality", "The value which represents the quality of a solution.")); 101 101 Parameters.Add(new ValueLookupParameter<IOperator>("Selector", "The operator used to select solutions for reproduction.")); 102 102 Parameters.Add(new ValueLookupParameter<IOperator>("Crossover", "The operator used to cross solutions.")); -
TabularUnified trunk/sources/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/SASEGASAMainLoop.cs ¶
r3658 r3659 55 55 get { return (ValueLookupParameter<BoolValue>)Parameters["Maximization"]; } 56 56 } 57 public S ubScopesLookupParameter<DoubleValue> QualityParameter {58 get { return (S ubScopesLookupParameter<DoubleValue>)Parameters["Quality"]; }57 public ScopeTreeLookupParameter<DoubleValue> QualityParameter { 58 get { return (ScopeTreeLookupParameter<DoubleValue>)Parameters["Quality"]; } 59 59 } 60 60 public ValueLookupParameter<DoubleValue> BestKnownQualityParameter { … … 124 124 Parameters.Add(new ValueLookupParameter<IRandom>("Random", "A pseudo random number generator.")); 125 125 Parameters.Add(new ValueLookupParameter<BoolValue>("Maximization", "True if the problem is a maximization problem, otherwise false.")); 126 Parameters.Add(new S ubScopesLookupParameter<DoubleValue>("Quality", "The value which represents the quality of a solution."));126 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Quality", "The value which represents the quality of a solution.")); 127 127 Parameters.Add(new ValueLookupParameter<DoubleValue>("BestKnownQuality", "The best known quality value found so far.")); 128 128 Parameters.Add(new ValueLookupParameter<IntValue>("NumberOfVillages", "The initial number of villages.")); … … 234 234 resultsCollector2.Name = "Reference Village Results"; 235 235 resultsCollector2.CopyValue = new BoolValue(false); 236 resultsCollector2.CollectedValues.Add(new S ubScopesLookupParameter<ResultCollection>("VillageResults", "Result set for each village", "Results"));236 resultsCollector2.CollectedValues.Add(new ScopeTreeLookupParameter<ResultCollection>("VillageResults", "Result set for each village", "Results")); 237 237 resultsCollector2.ResultsParameter.ActualName = ResultsParameter.Name; 238 238 -
TabularUnified trunk/sources/HeuristicLab.Algorithms.TabuSearch/3.3/TabuNeighborhoodAnalyzer.cs ¶
r3658 r3659 29 29 namespace HeuristicLab.Algorithms.TabuSearch { 30 30 public class TabuNeighborhoodAnalyzer : SingleSuccessorOperator, IAnalyzer { 31 public S ubScopesLookupParameter<BoolValue> IsTabuParameter {32 get { return (S ubScopesLookupParameter<BoolValue>)Parameters["IsTabu"]; }31 public ScopeTreeLookupParameter<BoolValue> IsTabuParameter { 32 get { return (ScopeTreeLookupParameter<BoolValue>)Parameters["IsTabu"]; } 33 33 } 34 34 public LookupParameter<PercentValue> PercentTabuParameter { … … 41 41 public TabuNeighborhoodAnalyzer() 42 42 : base() { 43 Parameters.Add(new S ubScopesLookupParameter<BoolValue>("IsTabu", "A value that determines if a move is tabu or not."));43 Parameters.Add(new ScopeTreeLookupParameter<BoolValue>("IsTabu", "A value that determines if a move is tabu or not.")); 44 44 Parameters.Add(new LookupParameter<PercentValue>("PercentTabu", "Indicates how much of the neighborhood is tabu.")); 45 45 Parameters.Add(new LookupParameter<ResultCollection>("Results", "The result collection where the value should be stored.")); -
TabularUnified trunk/sources/HeuristicLab.Algorithms.TabuSearch/3.3/TabuSelector.cs ¶
r3521 r3659 91 91 Parameters.Add(new ValueLookupParameter<BoolValue>("Aspiration", "Whether the default aspiration criterion should be used or not. The default aspiration criterion accepts a tabu move if it results in a better solution than the best solution found so far.", new BoolValue(true))); 92 92 Parameters.Add(new ValueLookupParameter<BoolValue>("Maximization", "Whether the problem is a maximization or minimization problem (used to decide whether a solution is better")); 93 Parameters.Add(new S ubScopesLookupParameter<DoubleValue>("MoveQuality", "The quality of the move."));94 Parameters.Add(new S ubScopesLookupParameter<BoolValue>("MoveTabu", "The tabu status of the move."));93 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("MoveQuality", "The quality of the move.")); 94 Parameters.Add(new ScopeTreeLookupParameter<BoolValue>("MoveTabu", "The tabu status of the move.")); 95 95 Parameters.Add(new ValueLookupParameter<BoolValue>("CopySelected", "True if the selected move should be copied.", new BoolValue(false))); 96 96 Parameters.Add(new LookupParameter<BoolValue>("EmptyNeighborhood", "Will be set to true if the neighborhood didn't contain any non-tabu moves, otherwise it is set to false.")); -
TabularUnified 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.")); -
TabularUnified 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 } -
TabularUnified 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.")); -
TabularUnified 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.")); -
TabularUnified 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.")); -
TabularUnified 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")); -
TabularUnified 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"; -
TabularUnified trunk/sources/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/BinaryVectorCrossover.cs ¶
r3520 r3659 42 42 } 43 43 public ILookupParameter<ItemArray<BinaryVector>> ParentsParameter { 44 get { return (S ubScopesLookupParameter<BinaryVector>)Parameters["Parents"]; }44 get { return (ScopeTreeLookupParameter<BinaryVector>)Parameters["Parents"]; } 45 45 } 46 46 public ILookupParameter<BinaryVector> ChildParameter { … … 51 51 : base() { 52 52 Parameters.Add(new LookupParameter<IRandom>("Random", "The pseudo random number generator which should be used for stochastic crossover operators.")); 53 Parameters.Add(new S ubScopesLookupParameter<BinaryVector>("Parents", "The parent vectors which should be crossed."));53 Parameters.Add(new ScopeTreeLookupParameter<BinaryVector>("Parents", "The parent vectors which should be crossed.")); 54 54 Parameters.Add(new LookupParameter<BinaryVector>("Child", "The child vector resulting from the crossover.")); 55 55 } -
TabularUnified trunk/sources/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Crossovers/MultiBinaryVectorCrossover.cs ¶
r3593 r3659 52 52 public MultiBinaryVectorCrossover() 53 53 : base() { 54 Parameters.Add(new S ubScopesLookupParameter<BinaryVector>("Parents", "The parent binary vector which should be crossed."));54 Parameters.Add(new ScopeTreeLookupParameter<BinaryVector>("Parents", "The parent binary vector which should be crossed.")); 55 55 ParentsParameter.ActualName = "BinaryVector"; 56 56 Parameters.Add(new LookupParameter<BinaryVector>("Child", "The child binary vector resulting from the crossover.")); -
TabularUnified trunk/sources/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/Crossovers/MultiIntegerVectorCrossover.cs ¶
r3593 r3659 52 52 public MultiIntegerVectorCrossover() 53 53 : base() { 54 Parameters.Add(new S ubScopesLookupParameter<IntegerVector>("Parents", "The parent integer vector which should be crossed."));54 Parameters.Add(new ScopeTreeLookupParameter<IntegerVector>("Parents", "The parent integer vector which should be crossed.")); 55 55 ParentsParameter.ActualName = "IntegerVector"; 56 56 Parameters.Add(new LookupParameter<IntegerVector>("Child", "The child integer vector resulting from the crossover.")); -
TabularUnified trunk/sources/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/IntegerVectorCrossover.cs ¶
r3520 r3659 42 42 } 43 43 public ILookupParameter<ItemArray<IntegerVector>> ParentsParameter { 44 get { return (S ubScopesLookupParameter<IntegerVector>)Parameters["Parents"]; }44 get { return (ScopeTreeLookupParameter<IntegerVector>)Parameters["Parents"]; } 45 45 } 46 46 public ILookupParameter<IntegerVector> ChildParameter { … … 51 51 : base() { 52 52 Parameters.Add(new LookupParameter<IRandom>("Random", "The pseudo random number generator which should be used for stochastic crossover operators.")); 53 Parameters.Add(new S ubScopesLookupParameter<IntegerVector>("Parents", "The parent vectors which should be crossed."));53 Parameters.Add(new ScopeTreeLookupParameter<IntegerVector>("Parents", "The parent vectors which should be crossed.")); 54 54 Parameters.Add(new LookupParameter<IntegerVector>("Child", "The child vector resulting from the crossover.")); 55 55 } -
TabularUnified trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Crossovers/MultiPermutationCrossover.cs ¶
r3593 r3659 52 52 public MultiPermutationCrossover() 53 53 : base() { 54 Parameters.Add(new S ubScopesLookupParameter<Permutation>("Parents", "The parent permutations which should be crossed."));54 Parameters.Add(new ScopeTreeLookupParameter<Permutation>("Parents", "The parent permutations which should be crossed.")); 55 55 ParentsParameter.ActualName = "Permutation"; 56 56 Parameters.Add(new LookupParameter<Permutation>("Child", "The child permutation resulting from the crossover.")); -
TabularUnified trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/PermutationCrossover.cs ¶
r3376 r3659 42 42 } 43 43 public ILookupParameter<ItemArray<Permutation>> ParentsParameter { 44 get { return (S ubScopesLookupParameter<Permutation>)Parameters["Parents"]; }44 get { return (ScopeTreeLookupParameter<Permutation>)Parameters["Parents"]; } 45 45 } 46 46 public ILookupParameter<Permutation> ChildParameter { … … 51 51 : base() { 52 52 Parameters.Add(new LookupParameter<IRandom>("Random", "The pseudo random number generator which should be used for stochastic crossover operators.")); 53 Parameters.Add(new S ubScopesLookupParameter<Permutation>("Parents", "The parent permutations which should be crossed."));53 Parameters.Add(new ScopeTreeLookupParameter<Permutation>("Parents", "The parent permutations which should be crossed.")); 54 54 ParentsParameter.ActualName = "Permutation"; 55 55 Parameters.Add(new LookupParameter<Permutation>("Child", "The child permutation resulting from the crossover.")); -
TabularUnified trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/Crossovers/BlendAlphaBetaCrossover.cs ¶
r3376 r3659 50 50 /// The quality of the parents. 51 51 /// </summary> 52 public S ubScopesLookupParameter<DoubleValue> QualityParameter {53 get { return (S ubScopesLookupParameter<DoubleValue>)Parameters["Quality"]; }52 public ScopeTreeLookupParameter<DoubleValue> QualityParameter { 53 get { return (ScopeTreeLookupParameter<DoubleValue>)Parameters["Quality"]; } 54 54 } 55 55 /// <summary> … … 73 73 : base() { 74 74 Parameters.Add(new ValueLookupParameter<BoolValue>("Maximization", "Whether the problem is a maximization problem or not.")); 75 Parameters.Add(new S ubScopesLookupParameter<DoubleValue>("Quality", "The quality values of the parents."));75 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Quality", "The quality values of the parents.")); 76 76 Parameters.Add(new ValueLookupParameter<DoubleValue>("Alpha", "The value for alpha.", new DoubleValue(0.75))); 77 77 Parameters.Add(new ValueLookupParameter<DoubleValue>("Beta", "The value for beta.", new DoubleValue(0.25))); -
TabularUnified trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/Crossovers/HeuristicCrossover.cs ¶
r3376 r3659 47 47 /// The quality of the parents. 48 48 /// </summary> 49 public S ubScopesLookupParameter<DoubleValue> QualityParameter {50 get { return (S ubScopesLookupParameter<DoubleValue>)Parameters["Quality"]; }49 public ScopeTreeLookupParameter<DoubleValue> QualityParameter { 50 get { return (ScopeTreeLookupParameter<DoubleValue>)Parameters["Quality"]; } 51 51 } 52 52 … … 58 58 : base() { 59 59 Parameters.Add(new ValueLookupParameter<BoolValue>("Maximization", "Whether the problem is a maximization problem or not.")); 60 Parameters.Add(new S ubScopesLookupParameter<DoubleValue>("Quality", "The quality values of the parents."));60 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Quality", "The quality values of the parents.")); 61 61 } 62 62 -
TabularUnified trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/Crossovers/MultiRealVectorCrossover.cs ¶
r3593 r3659 55 55 public MultiRealVectorCrossover() 56 56 : base() { 57 Parameters.Add(new S ubScopesLookupParameter<RealVector>("Parents", "The parent real vector which should be crossed."));57 Parameters.Add(new ScopeTreeLookupParameter<RealVector>("Parents", "The parent real vector which should be crossed.")); 58 58 ParentsParameter.ActualName = "RealVector"; 59 59 Parameters.Add(new LookupParameter<RealVector>("Child", "The child real vector resulting from the crossover.")); -
TabularUnified trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/RealVectorCrossover.cs ¶
r3376 r3659 43 43 } 44 44 public ILookupParameter<ItemArray<RealVector>> ParentsParameter { 45 get { return (S ubScopesLookupParameter<RealVector>)Parameters["Parents"]; }45 get { return (ScopeTreeLookupParameter<RealVector>)Parameters["Parents"]; } 46 46 } 47 47 public ILookupParameter<RealVector> ChildParameter { … … 55 55 : base() { 56 56 Parameters.Add(new LookupParameter<IRandom>("Random", "The pseudo random number generator which should be used for stochastic crossover operators.")); 57 Parameters.Add(new S ubScopesLookupParameter<RealVector>("Parents", "The parent vectors which should be crossed."));57 Parameters.Add(new ScopeTreeLookupParameter<RealVector>("Parents", "The parent vectors which should be crossed.")); 58 58 Parameters.Add(new LookupParameter<RealVector>("Child", "The child vector resulting from the crossover.")); 59 59 Parameters.Add(new ValueLookupParameter<DoubleMatrix>("Bounds", "The lower and upper bounds of the real vector.")); -
TabularUnified trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/StrategyParameters/StdDevStrategyVectorCrossover.cs ¶
r3450 r3659 48 48 : base() { 49 49 Parameters.Add(new LookupParameter<IRandom>("Random", "The random number generator to use.")); 50 Parameters.Add(new S ubScopesLookupParameter<RealVector>("ParentStrategyParameter", "The strategy parameters to cross."));50 Parameters.Add(new ScopeTreeLookupParameter<RealVector>("ParentStrategyParameter", "The strategy parameters to cross.")); 51 51 Parameters.Add(new LookupParameter<RealVector>("StrategyParameter", "The crossed strategy parameter.")); 52 52 ParentsParameter.ActualName = "StrategyParameter"; -
TabularUnified trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Analyzers/PopulationMinAvgMaxTreeSizeAnalyzer.cs ¶
r3651 r3659 62 62 public PopulationMinAvgMaxTreeSizeAnalyzer() 63 63 : base() { 64 Parameters.Add(new S ubScopesLookupParameter<SymbolicExpressionTree>(SymbolicExpressionTreeParameterName, "The symbolic expression tree whose size should be calculated."));65 Parameters.Add(new S ubScopesLookupParameter<DoubleValue>(SymbolicExpressionTreeSizeParameterName, "The tree size of the symbolic expression tree."));64 Parameters.Add(new ScopeTreeLookupParameter<SymbolicExpressionTree>(SymbolicExpressionTreeParameterName, "The symbolic expression tree whose size should be calculated.")); 65 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>(SymbolicExpressionTreeSizeParameterName, "The tree size of the symbolic expression tree.")); 66 66 Parameters.Add(new ValueLookupParameter<DataTable>(SymbolicExpressionTreeSizesParameterName, "The data table to store the tree sizes.")); 67 67 Parameters.Add(new ValueLookupParameter<VariableCollection>(ResultsParameterName, "The results collection where the analysis values should be stored.")); -
TabularUnified trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Crossovers/SymbolicExpressionTreeCrossover.cs ¶
r3534 r3659 42 42 private const string FailedCrossoverEventsParameterName = "FailedCrossoverEvents"; 43 43 public ILookupParameter<ItemArray<SymbolicExpressionTree>> ParentsParameter { 44 get { return (S ubScopesLookupParameter<SymbolicExpressionTree>)Parameters[ParentsParameterName]; }44 get { return (ScopeTreeLookupParameter<SymbolicExpressionTree>)Parameters[ParentsParameterName]; } 45 45 } 46 46 public ILookupParameter<SymbolicExpressionTree> ChildParameter { … … 56 56 protected SymbolicExpressionTreeCrossover() 57 57 : base() { 58 Parameters.Add(new S ubScopesLookupParameter<SymbolicExpressionTree>(ParentsParameterName, "The parent symbolic expression trees which should be crossed."));58 Parameters.Add(new ScopeTreeLookupParameter<SymbolicExpressionTree>(ParentsParameterName, "The parent symbolic expression trees which should be crossed.")); 59 59 Parameters.Add(new LookupParameter<SymbolicExpressionTree>(ChildParameterName, "The child symbolic expression tree resulting from the crossover.")); 60 60 Parameters.Add(new ValueParameter<IntValue>(FailedCrossoverEventsParameterName, "The number of failed crossover events (child is an exact copy of a parent)", new IntValue())); -
TabularUnified trunk/sources/HeuristicLab.Operators/3.3/SubScopesSorter.cs ¶
r3376 r3659 36 36 private string actualName; 37 37 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<BoolValue> DescendingParameter { … … 51 51 public SubScopesSorter() 52 52 : base() { 53 Parameters.Add(new S ubScopesLookupParameter<DoubleValue>("Value", "The values contained in each sub-scope acording which the sub-scopes of the current scope are sorted."));53 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Value", "The values contained in each sub-scope acording which the sub-scopes of the current scope are sorted.")); 54 54 Parameters.Add(new ValueLookupParameter<BoolValue>("Descending", "True if the sub-scopes should be sorted in descending order, otherwise false.")); 55 55 Parameters.Add(new ScopeParameter("CurrentScope", "The current scope whose sub-scopes are sorted.")); -
TabularUnified trunk/sources/HeuristicLab.Optimization.Operators/3.3/WeightedParentsQualityComparator.cs ¶
r3413 r3659 53 53 Parameters.Add(new ValueLookupParameter<BoolValue>("Maximization", "True if the problem is a maximization problem, false otherwise")); 54 54 Parameters.Add(new LookupParameter<DoubleValue>("LeftSide", "The quality of the child.")); 55 Parameters.Add(new S ubScopesLookupParameter<DoubleValue>("RightSide", "The qualities of the parents."));55 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("RightSide", "The qualities of the parents.")); 56 56 Parameters.Add(new LookupParameter<BoolValue>("Result", "The result of the comparison: True means Quality is better, False means it is worse than parents.")); 57 57 Parameters.Add(new ValueLookupParameter<DoubleValue>("ComparisonFactor", "Determines if the quality should be compared to the better parent (1.0), to the worse (0.0) or to any linearly interpolated value between them.")); -
TabularUnified trunk/sources/HeuristicLab.Parameters.Views/3.3/HeuristicLab.Parameters.Views-3.3.csproj ¶
r3437 r3659 92 92 <DependentUpon>ConstrainedValueParameterView.cs</DependentUpon> 93 93 </Compile> 94 <Compile Include="ScopeTreeLookupParameterView.cs"> 95 <SubType>UserControl</SubType> 96 </Compile> 97 <Compile Include="ScopeTreeLookupParameterView.Designer.cs"> 98 <DependentUpon>ScopeTreeLookupParameterView.cs</DependentUpon> 99 </Compile> 94 100 <Compile Include="ValueLookupParameterView.cs"> 95 101 <SubType>UserControl</SubType> -
TabularUnified trunk/sources/HeuristicLab.Parameters/3.3/HeuristicLab.Parameters-3.3.csproj ¶
r3634 r3659 86 86 <None Include="HeuristicLabParametersPlugin.cs.frame" /> 87 87 <Compile Include="ConstrainedValueParameter.cs" /> 88 <Compile Include="SubScopesSubScopesLookupParameter.cs" />89 88 <Compile Include="OptionalConstrainedValueParameter.cs" /> 90 89 <Compile Include="ValueParameter.cs" /> -
TabularUnified trunk/sources/HeuristicLab.Parameters/3.3/SubScopesLookupParameter.cs ¶
r3634 r3659 21 21 22 22 using System; 23 using System.Collections.Generic; 24 using System.Linq; 23 25 using HeuristicLab.Common; 24 26 using HeuristicLab.Core; … … 27 29 namespace HeuristicLab.Parameters { 28 30 /// <summary> 29 /// A generic parameter representing instances of type T which are collected from or written to the sub-scopes of the current scope.31 /// A generic parameter representing instances of type T which are collected from or written to scope tree. 30 32 /// </summary> 31 [Item("S ubScopesLookupParameter<T>", "A generic parameter representing instances of type T which are collected from or written to the sub-scopes of the current scope.")]33 [Item("ScopeTreeLookupParameter<T>", "A generic parameter representing instances of type T which are collected from or written to scope tree.")] 32 34 [StorableClass] 33 public class SubScopesLookupParameter<T> : LookupParameter<ItemArray<T>> where T : class, IItem { 34 public SubScopesLookupParameter() : base() { } 35 public SubScopesLookupParameter(string name) : base(name) { } 36 public SubScopesLookupParameter(string name, string description) : base(name, description) { } 37 public SubScopesLookupParameter(string name, string description, string actualName) : base(name, description, actualName) { } 35 public class ScopeTreeLookupParameter<T> : LookupParameter<ItemArray<T>> where T : class, IItem { 36 [Storable] 37 private int depth; 38 public int Depth { 39 get { return depth; } 40 set { 41 if (value < 0) throw new ArgumentException("Depth must be larger than or equal to 0."); 42 if (depth != value) { 43 depth = value; 44 OnDepthChanged(); 45 } 46 } 47 } 48 49 public ScopeTreeLookupParameter() 50 : base() { 51 depth = 1; 52 } 53 public ScopeTreeLookupParameter(string name) 54 : base(name) { 55 depth = 1; 56 } 57 public ScopeTreeLookupParameter(string name, string description) 58 : base(name, description) { 59 depth = 1; 60 } 61 public ScopeTreeLookupParameter(string name, string description, string actualName) 62 : base(name, description, actualName) { 63 depth = 1; 64 } 65 [StorableConstructor] 66 protected ScopeTreeLookupParameter(bool deserializing) : base(deserializing) { } 67 68 public override IDeepCloneable Clone(Cloner cloner) { 69 ScopeTreeLookupParameter<T> clone = (ScopeTreeLookupParameter<T>)base.Clone(cloner); 70 clone.depth = depth; 71 return clone; 72 } 38 73 39 74 protected override IItem GetActualValue() { 40 75 string name = LookupParameter<ItemArray<T>>.TranslateName(Name, ExecutionContext); 41 IScope scope = ExecutionContext.Scope; 42 ItemArray<T> values = new ItemArray<T>(scope.SubScopes.Count); 76 77 IEnumerable<IScope> scopes = new IScope[] { ExecutionContext.Scope }; 78 for (int i = 0; i < depth; i++) 79 scopes = scopes.Select(x => (IEnumerable<IScope>)x.SubScopes).Aggregate((a, b) => a.Concat(b)); 80 81 List<T> values = new List<T>(); 43 82 IVariable var; 44 83 T value; 45 46 for (int i = 0; i < values.Length; i++) { 47 scope.SubScopes[i].Variables.TryGetValue(name, out var); 84 foreach (IScope scope in scopes) { 85 scope.Variables.TryGetValue(name, out var); 48 86 if (var != null) { 49 87 value = var.Value as T; … … 54 92 typeof(T).GetPrettyName()) 55 93 ); 56 values [i] = value;94 values.Add(value); 57 95 } 58 96 } 59 return values;97 return new ItemArray<T>(values); 60 98 } 61 99 protected override void SetActualValue(IItem value) { … … 68 106 69 107 string name = LookupParameter<ItemArray<T>>.TranslateName(Name, ExecutionContext); 70 IScope scope = ExecutionContext.Scope; 108 109 IEnumerable<IScope> scopes = new IScope[] { ExecutionContext.Scope }; 110 for (int i = 0; i < depth; i++) 111 scopes = scopes.Select(x => (IEnumerable<IScope>)x.SubScopes).Aggregate((a, b) => a.Concat(b)); 112 113 if (scopes.Count() != values.Length) throw new InvalidOperationException("Number of values is not equal to number of scopes."); 114 115 int j = 0; 71 116 IVariable var; 117 foreach (IScope scope in scopes) { 118 scope.Variables.TryGetValue(name, out var); 119 if (var != null) var.Value = values[j]; 120 else scope.Variables.Add(new Variable(name, values[j])); 121 j++; 122 } 123 } 72 124 73 for (int i = 0; i < values.Length; i++) { 74 scope.SubScopes[i].Variables.TryGetValue(name, out var); 75 if (var != null) var.Value = values[i]; 76 else scope.SubScopes[i].Variables.Add(new Variable(name, values[i])); 77 } 125 public event EventHandler DepthChanged; 126 protected virtual void OnDepthChanged() { 127 EventHandler handler = DepthChanged; 128 if (handler != null) handler(this, EventArgs.Empty); 78 129 } 79 130 } -
TabularUnified trunk/sources/HeuristicLab.Problems.ArtificialAnt/3.3/Analyzers/PopulationBestAntTrailAnalyzer.cs ¶
r3631 r3659 59 59 : base() { 60 60 Parameters.Add(new LookupParameter<BoolMatrix>("World", "The world with food items for the artificial ant.")); 61 Parameters.Add(new S ubScopesLookupParameter<SymbolicExpressionTree>("SymbolicExpressionTree", "The artificial ant solutions from which the best solution should be visualized."));62 Parameters.Add(new S ubScopesLookupParameter<DoubleValue>("Quality", "The qualities of the artificial ant solutions which should be visualized."));61 Parameters.Add(new ScopeTreeLookupParameter<SymbolicExpressionTree>("SymbolicExpressionTree", "The artificial ant solutions from which the best solution should be visualized.")); 62 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Quality", "The qualities of the artificial ant solutions which should be visualized.")); 63 63 Parameters.Add(new LookupParameter<AntTrail>("BestSolution", "The visual representation of the best ant trail.")); 64 64 Parameters.Add(new LookupParameter<IntValue>("MaxTimeSteps", "The maximal time steps that the artificial ant has available to collect all food items.")); -
TabularUnified trunk/sources/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/Analyzers/PopulationBestSymbolicRegressionSolutionAnalyzer.cs ¶
r3651 r3659 79 79 public PopulationBestSymbolicRegressionSolutionAnalyzer() 80 80 : base() { 81 Parameters.Add(new S ubScopesLookupParameter<SymbolicExpressionTree>(SymbolicExpressionTreeParameterName, "The symbolic expression trees to analyze."));81 Parameters.Add(new ScopeTreeLookupParameter<SymbolicExpressionTree>(SymbolicExpressionTreeParameterName, "The symbolic expression trees to analyze.")); 82 82 Parameters.Add(new LookupParameter<ISymbolicExpressionTreeInterpreter>(SymbolicExpressionTreeInterpreterParameterName, "The interpreter that should be used for the analysis of symbolic expression trees.")); 83 83 Parameters.Add(new LookupParameter<DataAnalysisProblemData>(ProblemDataParameterName, "The problem data for which the symbolic expression tree is a solution.")); 84 84 Parameters.Add(new LookupParameter<DoubleValue>(UpperEstimationLimitParameterName, "The upper estimation limit that was set for the evaluation of the symbolic expression trees.")); 85 85 Parameters.Add(new LookupParameter<DoubleValue>(LowerEstimationLimitParameterName, "The lower estimation limit that was set for the evaluation of the symbolic expression trees.")); 86 Parameters.Add(new S ubScopesLookupParameter<DoubleValue>(QualityParameterName, "The qualities of the symbolic regression trees which should be analyzed."));86 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>(QualityParameterName, "The qualities of the symbolic regression trees which should be analyzed.")); 87 87 Parameters.Add(new LookupParameter<SymbolicRegressionSolution>(BestSolutionParameterName, "The best symbolic regression solution.")); 88 88 Parameters.Add(new LookupParameter<DoubleValue>(BestSolutionQualityParameterName, "The quality of the best symbolic regression solution.")); -
TabularUnified trunk/sources/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/Analyzers/PopulationSymbolicRegressionModelQualityAnalyzer.cs ¶
r3652 r3659 89 89 : base() { 90 90 Parameters.Add(new LookupParameter<ISymbolicExpressionTreeInterpreter>(SymbolicExpressionTreeInterpreterParameterName, "The interpreter that should be used to calculate the output values of the symbolic expression tree.")); 91 Parameters.Add(new S ubScopesLookupParameter<SymbolicExpressionTree>(SymbolicExpressionTreeParameterName, "The symbolic expression trees to analyze."));91 Parameters.Add(new ScopeTreeLookupParameter<SymbolicExpressionTree>(SymbolicExpressionTreeParameterName, "The symbolic expression trees to analyze.")); 92 92 Parameters.Add(new LookupParameter<DataAnalysisProblemData>(ProblemDataParameterName, "The problem data containing the input varaibles for the symbolic regression problem.")); 93 93 Parameters.Add(new LookupParameter<ResultCollection>(ResultsParameterName, "The result collection where the best symbolic regression solution should be stored.")); -
TabularUnified trunk/sources/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/Analyzers/PopulationSymbolicRegressionVariableFrequencyAnalyzer.cs ¶
r3651 r3659 68 68 public PopulationSymbolicRegressionVariableFrequencyAnalyzer() 69 69 : base() { 70 Parameters.Add(new S ubScopesLookupParameter<SymbolicExpressionTree>(SymbolicExpressionTreeParameterName, "The symbolic expression trees to analyze."));70 Parameters.Add(new ScopeTreeLookupParameter<SymbolicExpressionTree>(SymbolicExpressionTreeParameterName, "The symbolic expression trees to analyze.")); 71 71 Parameters.Add(new LookupParameter<DataAnalysisProblemData>(ProblemDataParameterName, "The problem data containing the input varaibles for the symbolic regression problem.")); 72 72 Parameters.Add(new ValueLookupParameter<DataTable>(VariableFrequenciesParameterName, "The data table to store the variable frequencies.")); -
TabularUnified trunk/sources/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/Analyzers/PopulationValidationBestScaledSymbolicRegressionSolutionAnalyzer.cs ¶
r3651 r3659 90 90 public PopulationValidationBestScaledSymbolicRegressionSolutionAnalyzer() 91 91 : base() { 92 Parameters.Add(new S ubScopesLookupParameter<SymbolicExpressionTree>(SymbolicExpressionTreeParameterName, "The symbolic expression trees to analyze."));92 Parameters.Add(new ScopeTreeLookupParameter<SymbolicExpressionTree>(SymbolicExpressionTreeParameterName, "The symbolic expression trees to analyze.")); 93 93 Parameters.Add(new LookupParameter<ISymbolicExpressionTreeInterpreter>(SymbolicExpressionTreeInterpreterParameterName, "The interpreter that should be used for the analysis of symbolic expression trees.")); 94 94 Parameters.Add(new LookupParameter<DataAnalysisProblemData>(ProblemDataParameterName, "The problem data for which the symbolic expression tree is a solution.")); -
TabularUnified trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/VariableFrequencyAnalyser.cs ¶
r3531 r3659 64 64 public VariableFrequencyAnalyser() 65 65 : base() { 66 Parameters.Add(new S ubScopesLookupParameter<SymbolicExpressionTree>(SymbolicExpressionTreeParameterName, "The symbolic expression trees that should be analyzed."));66 Parameters.Add(new ScopeTreeLookupParameter<SymbolicExpressionTree>(SymbolicExpressionTreeParameterName, "The symbolic expression trees that should be analyzed.")); 67 67 Parameters.Add(new LookupParameter<DataAnalysisProblemData>(DataAnalysisProblemDataParameterName, "The problem data on which the for which the symbolic expression tree is a solution.")); 68 68 Parameters.Add(new LookupParameter<DoubleMatrix>(VariableFrequenciesParameterName, "The relative variable reference frequencies aggregated over the whole population.")); -
TabularUnified trunk/sources/HeuristicLab.Problems.Knapsack/3.3/Analyzers/MultiPopulationBestKnapsackSolutionAnalyzer.cs ¶
r3658 r3659 70 70 public MultiPopulationBestKnapsackSolutionAnalyzer() 71 71 : base() { 72 Parameters.Add(new S ubScopesLookupParameter<ItemArray<BinaryVector>>("BinaryVector", "The knapsack solutions from which the best solution should be visualized."));72 Parameters.Add(new ScopeTreeLookupParameter<ItemArray<BinaryVector>>("BinaryVector", "The knapsack solutions from which the best solution should be visualized.")); 73 73 Parameters.Add(new LookupParameter<IntValue>("KnapsackCapacity", "Capacity of the Knapsack.")); 74 74 Parameters.Add(new LookupParameter<IntArray>("Weights", "The weights of the items.")); 75 75 Parameters.Add(new LookupParameter<IntArray>("Values", "The values of the items.")); 76 76 77 Parameters.Add(new S ubScopesLookupParameter<ItemArray<DoubleValue>>("Quality", "The qualities of the knapsack solutions which should be visualized."));77 Parameters.Add(new ScopeTreeLookupParameter<ItemArray<DoubleValue>>("Quality", "The qualities of the knapsack solutions which should be visualized.")); 78 78 Parameters.Add(new LookupParameter<KnapsackSolution>("BestSolution", "The best knapsack solution.")); 79 79 Parameters.Add(new ValueLookupParameter<ResultCollection>("Results", "The result collection where the knapsack solution should be stored.")); -
TabularUnified trunk/sources/HeuristicLab.Problems.Knapsack/3.3/Analyzers/PopulationBestKnapsackSolutionAnalyzer.cs ¶
r3658 r3659 70 70 public PopulationBestKnapsackSolutionAnalyzer() 71 71 : base() { 72 Parameters.Add(new S ubScopesLookupParameter<BinaryVector>("BinaryVector", "The knapsack solutions from which the best solution should be visualized."));72 Parameters.Add(new ScopeTreeLookupParameter<BinaryVector>("BinaryVector", "The knapsack solutions from which the best solution should be visualized.")); 73 73 Parameters.Add(new LookupParameter<IntValue>("KnapsackCapacity", "Capacity of the Knapsack.")); 74 74 Parameters.Add(new LookupParameter<IntArray>("Weights", "The weights of the items.")); 75 75 Parameters.Add(new LookupParameter<IntArray>("Values", "The values of the items.")); 76 76 77 Parameters.Add(new S ubScopesLookupParameter<DoubleValue>("Quality", "The qualities of the knapsack solutions which should be visualized."));77 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Quality", "The qualities of the knapsack solutions which should be visualized.")); 78 78 Parameters.Add(new LookupParameter<KnapsackSolution>("BestSolution", "The best knapsack solution.")); 79 79 Parameters.Add(new ValueLookupParameter<ResultCollection>("Results", "The result collection where the knapsack solution should be stored.")); -
TabularUnified trunk/sources/HeuristicLab.Problems.OneMax/3.3/Analyzers/MultiPopulationBestOneMaxSolutionAnalyzer.cs ¶
r3658 r3659 61 61 public MultiPopulationBestOneMaxSolutionAnalyzer() 62 62 : base() { 63 Parameters.Add(new S ubScopesLookupParameter<ItemArray<BinaryVector>>("BinaryVector", "The Onemax solutions from which the best solution should be visualized."));63 Parameters.Add(new ScopeTreeLookupParameter<ItemArray<BinaryVector>>("BinaryVector", "The Onemax solutions from which the best solution should be visualized.")); 64 64 65 Parameters.Add(new S ubScopesLookupParameter<ItemArray<DoubleValue>>("Quality", "The qualities of the Onemax solutions which should be visualized."));65 Parameters.Add(new ScopeTreeLookupParameter<ItemArray<DoubleValue>>("Quality", "The qualities of the Onemax solutions which should be visualized.")); 66 66 Parameters.Add(new LookupParameter<OneMaxSolution>("BestSolution", "The best Onemax solution.")); 67 67 Parameters.Add(new ValueLookupParameter<ResultCollection>("Results", "The result collection where the Onemax solution should be stored.")); -
TabularUnified trunk/sources/HeuristicLab.Problems.OneMax/3.3/Analyzers/PopulationBestOneMaxSolutionAnalyzer.cs ¶
r3658 r3659 61 61 public PopulationBestOneMaxSolutionAnalyzer() 62 62 : base() { 63 Parameters.Add(new S ubScopesLookupParameter<BinaryVector>("BinaryVector", "The Onemax solutions from which the best solution should be visualized."));63 Parameters.Add(new ScopeTreeLookupParameter<BinaryVector>("BinaryVector", "The Onemax solutions from which the best solution should be visualized.")); 64 64 65 Parameters.Add(new S ubScopesLookupParameter<DoubleValue>("Quality", "The qualities of the Onemax solutions which should be visualized."));65 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Quality", "The qualities of the Onemax solutions which should be visualized.")); 66 66 Parameters.Add(new LookupParameter<OneMaxSolution>("BestSolution", "The best Onemax solution.")); 67 67 Parameters.Add(new ValueLookupParameter<ResultCollection>("Results", "The result collection where the Onemax solution should be stored.")); -
TabularUnified trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Analyzers/MultiPopulationBestSingleObjectiveTestFunctionSolutionAnalyzer.cs ¶
r3658 r3659 61 61 public MultiPopulationBestSingleObjectiveTestFunctionSolutionAnalyzer() 62 62 : base() { 63 Parameters.Add(new S ubScopesLookupParameter<ItemArray<RealVector>>("RealVector", "The SingleObjectiveTestFunction solutions from which the best solution should be visualized."));63 Parameters.Add(new ScopeTreeLookupParameter<ItemArray<RealVector>>("RealVector", "The SingleObjectiveTestFunction solutions from which the best solution should be visualized.")); 64 64 65 Parameters.Add(new S ubScopesLookupParameter<ItemArray<DoubleValue>>("Quality", "The qualities of the SingleObjectiveTestFunction solutions which should be visualized."));65 Parameters.Add(new ScopeTreeLookupParameter<ItemArray<DoubleValue>>("Quality", "The qualities of the SingleObjectiveTestFunction solutions which should be visualized.")); 66 66 Parameters.Add(new LookupParameter<SingleObjectiveTestFunctionSolution>("BestSolution", "The best SingleObjectiveTestFunction solution.")); 67 67 Parameters.Add(new ValueLookupParameter<ResultCollection>("Results", "The result collection where the SingleObjectiveTestFunction solution should be stored.")); -
TabularUnified trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Analyzers/PopulationBestSingleObjectiveTestFunctionSolutionAnalyzer.cs ¶
r3658 r3659 61 61 public PopulationBestSingleObjectiveTestFunctionSolutionAnalyzer() 62 62 : base() { 63 Parameters.Add(new S ubScopesLookupParameter<RealVector>("RealVector", "The SingleObjectiveTestFunction solutions from which the best solution should be visualized."));63 Parameters.Add(new ScopeTreeLookupParameter<RealVector>("RealVector", "The SingleObjectiveTestFunction solutions from which the best solution should be visualized.")); 64 64 65 Parameters.Add(new S ubScopesLookupParameter<DoubleValue>("Quality", "The qualities of the SingleObjectiveTestFunction solutions which should be visualized."));65 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Quality", "The qualities of the SingleObjectiveTestFunction solutions which should be visualized.")); 66 66 Parameters.Add(new LookupParameter<SingleObjectiveTestFunctionSolution>("BestSolution", "The best SingleObjectiveTestFunction solution.")); 67 67 Parameters.Add(new ValueLookupParameter<ResultCollection>("Results", "The result collection where the SingleObjectiveTestFunction solution should be stored.")); -
TabularUnified trunk/sources/HeuristicLab.Problems.TravelingSalesman/3.3/Analyzers/MultiPopulationBestTSPSolutionAnalyzer.cs ¶
r3658 r3659 64 64 : base() { 65 65 Parameters.Add(new LookupParameter<DoubleMatrix>("Coordinates", "The x- and y-Coordinates of the cities.")); 66 Parameters.Add(new S ubScopesSubScopesLookupParameter<Permutation>("Permutation", "The TSP solutions given in path representation from which the best solution should be analyzed."));67 Parameters.Add(new S ubScopesSubScopesLookupParameter<DoubleValue>("Quality", "The qualities of the TSP solutions which should be analyzed."));66 Parameters.Add(new ScopeTreeLookupParameter<Permutation>("Permutation", "The TSP solutions given in path representation from which the best solution should be analyzed.")); 67 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Quality", "The qualities of the TSP solutions which should be analyzed.")); 68 68 Parameters.Add(new LookupParameter<PathTSPTour>("BestSolution", "The best TSP solution.")); 69 69 Parameters.Add(new ValueLookupParameter<ResultCollection>("Results", "The result collection where the best TSP solution should be stored.")); -
TabularUnified trunk/sources/HeuristicLab.Problems.TravelingSalesman/3.3/Analyzers/PopulationBestTSPSolutionAnalyzer.cs ¶
r3658 r3659 62 62 : base() { 63 63 Parameters.Add(new LookupParameter<DoubleMatrix>("Coordinates", "The x- and y-Coordinates of the cities.")); 64 Parameters.Add(new S ubScopesLookupParameter<Permutation>("Permutation", "The TSP solutions given in path representation from which the best solution should be analyzed."));65 Parameters.Add(new S ubScopesLookupParameter<DoubleValue>("Quality", "The qualities of the TSP solutions which should be analyzed."));64 Parameters.Add(new ScopeTreeLookupParameter<Permutation>("Permutation", "The TSP solutions given in path representation from which the best solution should be analyzed.")); 65 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Quality", "The qualities of the TSP solutions which should be analyzed.")); 66 66 Parameters.Add(new LookupParameter<PathTSPTour>("BestSolution", "The best TSP solution.")); 67 67 Parameters.Add(new ValueLookupParameter<ResultCollection>("Results", "The result collection where the best TSP solution should be stored.")); -
TabularUnified trunk/sources/HeuristicLab.Selection/3.3/ConditionalSelector.cs ¶
r3413 r3659 32 32 [StorableClass] 33 33 public class ConditionalSelector : Selector { 34 public S ubScopesLookupParameter<BoolValue> ConditionParameter {35 get { return (S ubScopesLookupParameter<BoolValue>)Parameters["Condition"]; }34 public ScopeTreeLookupParameter<BoolValue> ConditionParameter { 35 get { return (ScopeTreeLookupParameter<BoolValue>)Parameters["Condition"]; } 36 36 } 37 37 public ValueParameter<BoolValue> CopySelectedParameter { … … 46 46 public ConditionalSelector() 47 47 : base() { 48 Parameters.Add(new S ubScopesLookupParameter<BoolValue>("Condition", "The boolean variable based on which the scopes are selected into a true scope-branch and a false scope-branch."));48 Parameters.Add(new ScopeTreeLookupParameter<BoolValue>("Condition", "The boolean variable based on which the scopes are selected into a true scope-branch and a false scope-branch.")); 49 49 Parameters.Add(new ValueParameter<BoolValue>("CopySelected", "The parameter that decides whether the selected scopes should be copied or moved.", new BoolValue(true))); 50 50 } -
TabularUnified trunk/sources/HeuristicLab.Selection/3.3/GenderSpecificSelector.cs ¶
r3413 r3659 89 89 #region Create parameters 90 90 Parameters.Add(new ValueLookupParameter<BoolValue>("Maximization", "True if the problem is a maximization problem.")); 91 Parameters.Add(new S ubScopesLookupParameter<DoubleValue>("Quality", "The quality of the solutions."));91 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Quality", "The quality of the solutions.")); 92 92 Parameters.Add(new ValueLookupParameter<IntValue>("NumberOfSelectedSubScopes", "The number of scopes that should be selected.")); 93 93 Parameters.Add(new ValueLookupParameter<BoolValue>("CopySelected", "True if the scopes should be copied, false if they should be moved.", new BoolValue(true))); -
TabularUnified trunk/sources/HeuristicLab.Selection/3.3/RandomReplacer.cs ¶
r3601 r3659 53 53 public RandomReplacer() 54 54 : base() { 55 Parameters.Add(new S ubScopesLookupParameter<DoubleValue>("Quality", "The quality of a solution."));55 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Quality", "The quality of a solution.")); 56 56 Parameters.Add(new ValueLookupParameter<BoolValue>("Maximization", "True if the problem is a maximization problem, otherwise false.")); 57 57 Parameters.Add(new LookupParameter<IRandom>("Random", "The pseudo random number generator to use.")); -
TabularUnified trunk/sources/HeuristicLab.Selection/3.3/SingleObjectiveSelector.cs ¶
r3376 r3659 56 56 Parameters.Add(new ValueLookupParameter<IntValue>("NumberOfSelectedSubScopes", "The number of sub-scopes which should be selected.")); 57 57 Parameters.Add(new ValueLookupParameter<BoolValue>("Maximization", "True if the current problem is a maximization problem, otherwise false.")); 58 Parameters.Add(new S ubScopesLookupParameter<DoubleValue>("Quality", "The quality value contained in each sub-scope which is used for selection."));58 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Quality", "The quality value contained in each sub-scope which is used for selection.")); 59 59 } 60 60 } -
TabularUnified trunk/sources/HeuristicLab.Selection/3.3/WorstReplacer.cs ¶
r3601 r3659 50 50 public WorstReplacer() 51 51 : base() { 52 Parameters.Add(new S ubScopesLookupParameter<DoubleValue>("Quality", "The quality of a solution."));52 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Quality", "The quality of a solution.")); 53 53 Parameters.Add(new ValueLookupParameter<BoolValue>("Maximization", "True if the problem is a maximization problem, otherwise false.")); 54 54
Note: See TracChangeset
for help on using the changeset viewer.