Changeset 5356 for trunk/sources/HeuristicLab.Algorithms.EvolutionStrategy
- Timestamp:
- 01/22/11 15:18:20 (13 years ago)
- Location:
- trunk/sources/HeuristicLab.Algorithms.EvolutionStrategy/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.EvolutionStrategy/3.3/EvolutionStrategyMainLoop.cs
r5208 r5356 78 78 public ValueLookupParameter<IOperator> AnalyzerParameter { 79 79 get { return (ValueLookupParameter<IOperator>)Parameters["Analyzer"]; } 80 } 81 public LookupParameter<IntValue> EvaluatedSolutionsParameter { 82 get { return (LookupParameter<IntValue>)Parameters["EvaluatedSolutions"]; } 80 83 } 81 84 private ScopeParameter CurrentScopeParameter { … … 123 126 Parameters.Add(new ValueLookupParameter<VariableCollection>("Results", "The variable collection where results should be stored.")); 124 127 Parameters.Add(new ValueLookupParameter<IOperator>("Analyzer", "The operator used to analyze each generation.")); 128 Parameters.Add(new LookupParameter<IntValue>("EvaluatedSolutions", "The number of times solutions have been evaluated.")); 125 129 Parameters.Add(new ScopeParameter("CurrentScope", "The current scope which represents a population of solutions on which the EvolutionStrategy should be applied.")); 126 130 Parameters.Add(new ValueLookupParameter<IOperator>("StrategyParameterManipulator", "The operator to mutate the endogeneous strategy parameters.")); … … 148 152 UniformSubScopesProcessor uniformSubScopesProcessor3 = new UniformSubScopesProcessor(); 149 153 Placeholder evaluator = new Placeholder(); 154 SubScopesCounter subScopesCounter = new SubScopesCounter(); 150 155 ConditionalBranch plusOrCommaReplacementBranch = new ConditionalBranch(); 151 156 MergingReducer plusReplacement = new MergingReducer(); … … 155 160 IntCounter intCounter = new IntCounter(); 156 161 Comparator comparator = new Comparator(); 157 ResultsCollector resultsCollector2 = new ResultsCollector();158 162 Placeholder analyzer2 = new Placeholder(); 159 163 ConditionalBranch conditionalBranch = new ConditionalBranch(); … … 208 212 evaluator.OperatorParameter.ActualName = EvaluatorParameter.Name; 209 213 214 subScopesCounter.Name = "Increment EvaluatedSolutions"; 215 subScopesCounter.ValueParameter.ActualName = EvaluatedSolutionsParameter.Name; 216 210 217 plusOrCommaReplacementBranch.ConditionParameter.ActualName = PlusSelectionParameter.Name; 211 218 … … 222 229 comparator.ResultParameter.ActualName = "Terminate"; 223 230 comparator.RightSideParameter.ActualName = MaximumGenerationsParameter.Name; 224 225 resultsCollector2.CollectedValues.Add(new LookupParameter<IntValue>("Generations"));226 resultsCollector2.ResultsParameter.ActualName = "Results";227 231 228 232 analyzer2.Name = "Analyzer (placeholder)"; … … 258 262 mutator2.Successor = null; 259 263 uniformSubScopesProcessor3.Operator = evaluator; 260 uniformSubScopesProcessor3.Successor = null;264 uniformSubScopesProcessor3.Successor = subScopesCounter; 261 265 evaluator.Successor = null; 266 subScopesCounter.Successor = null; 262 267 plusOrCommaReplacementBranch.TrueBranch = plusReplacement; 263 268 plusOrCommaReplacementBranch.FalseBranch = commaReplacement; … … 266 271 rightReducer.Successor = intCounter; 267 272 intCounter.Successor = comparator; 268 comparator.Successor = resultsCollector2; 269 resultsCollector2.Successor = analyzer2; 273 comparator.Successor = analyzer2; 270 274 analyzer2.Successor = conditionalBranch; 271 275 conditionalBranch.FalseBranch = selector;
Note: See TracChangeset
for help on using the changeset viewer.