Changeset 3659 for trunk/sources/HeuristicLab.Algorithms.GeneticAlgorithm
- Timestamp:
- 05/06/10 00:47:32 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Algorithms.GeneticAlgorithm/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.