Changeset 5356 for trunk/sources/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/IslandGeneticAlgorithm.cs
- Timestamp:
- 01/22/11 15:18:20 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/IslandGeneticAlgorithm.cs
r5351 r5356 187 187 } 188 188 private IslandGeneticAlgorithmMainLoop MainLoop { 189 get { return (IslandGeneticAlgorithmMainLoop)((UniformSubScopesProcessor)((VariableCreator)IslandProcessor.Successor).Successor).Successor; } 189 get { 190 return (IslandGeneticAlgorithmMainLoop)( 191 (ResultsCollector)( 192 (UniformSubScopesProcessor)( 193 (VariableCreator)IslandProcessor.Successor 194 ).Successor 195 ).Successor 196 ).Successor; 197 } 190 198 } 191 199 [Storable] … … 238 246 UniformSubScopesProcessor ussp2 = new UniformSubScopesProcessor(); 239 247 SubScopesCounter subScopesCounter = new SubScopesCounter(); 248 ResultsCollector resultsCollector = new ResultsCollector(); 240 249 IslandGeneticAlgorithmMainLoop mainLoop = new IslandGeneticAlgorithmMainLoop(); 241 250 OperatorGraph.InitialOperator = randomCreator; … … 262 271 263 272 ussp2.Operator = subScopesCounter; 264 ussp2.Successor = mainLoop;273 ussp2.Successor = resultsCollector; 265 274 266 275 subScopesCounter.Name = "Count EvaluatedSolutions"; 267 276 subScopesCounter.ValueParameter.ActualName = "EvaluatedSolutions"; 268 277 subScopesCounter.Successor = null; 278 279 resultsCollector.CollectedValues.Add(new LookupParameter<IntValue>("Evaluated Solutions", null, "EvaluatedSolutions")); 280 resultsCollector.ResultsParameter.ActualName = "Results"; 281 resultsCollector.Successor = mainLoop; 269 282 270 283 mainLoop.EmigrantsSelectorParameter.ActualName = EmigrantsSelectorParameter.Name;
Note: See TracChangeset
for help on using the changeset viewer.