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