source: trunk/sources/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/OffspringSelectionIslandGeneticAlgorithmMainLoop.cs @ 3429

Last change on this file since 3429 was 3429, checked in by abeham, 11 years ago

Added an OS Island GA #976
Wired the parallel parameter in the standard Island GA #971

File size: 23.7 KB
Line 
1#region License Information
2/* HeuristicLab
3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
4 *
5 * This file is part of HeuristicLab.
6 *
7 * HeuristicLab is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * HeuristicLab is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
19 */
20#endregion
21
22using System;
23using System.Collections.Generic;
24using System.Linq;
25using HeuristicLab.Analysis;
26using HeuristicLab.Common;
27using HeuristicLab.Core;
28using HeuristicLab.Data;
29using HeuristicLab.Operators;
30using HeuristicLab.Optimization;
31using HeuristicLab.Optimization.Operators;
32using HeuristicLab.Parameters;
33using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
34using HeuristicLab.PluginInfrastructure;
35using HeuristicLab.Selection;
36
37namespace HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm {
38  /// <summary>
39  /// An offspring selection island genetic algorithm main loop operator.
40  /// </summary>
41  [Item("OffspringSelectionIslandGeneticAlgorithmMainLoop", "An offspring selection island genetic algorithm main loop operator.")]
42  [StorableClass]
43  public sealed class OffspringSelectionIslandGeneticAlgorithmMainLoop : AlgorithmOperator {
44    #region Parameter Properties
45    public ValueLookupParameter<IRandom> RandomParameter {
46      get { return (ValueLookupParameter<IRandom>)Parameters["Random"]; }
47    }
48    public ValueLookupParameter<BoolValue> MaximizationParameter {
49      get { return (ValueLookupParameter<BoolValue>)Parameters["Maximization"]; }
50    }
51    public SubScopesLookupParameter<DoubleValue> QualityParameter {
52      get { return (SubScopesLookupParameter<DoubleValue>)Parameters["Quality"]; }
53    }
54    public ValueLookupParameter<DoubleValue> BestKnownQualityParameter {
55      get { return (ValueLookupParameter<DoubleValue>)Parameters["BestKnownQuality"]; }
56    }
57    public ValueLookupParameter<IntValue> NumberOfIslandsParameter {
58      get { return (ValueLookupParameter<IntValue>)Parameters["NumberOfIslands"]; }
59    }
60    public ValueLookupParameter<IntValue> MigrationIntervalParameter {
61      get { return (ValueLookupParameter<IntValue>)Parameters["MigrationInterval"]; }
62    }
63    public ValueLookupParameter<PercentValue> MigrationRateParameter {
64      get { return (ValueLookupParameter<PercentValue>)Parameters["MigrationRate"]; }
65    }
66    public ValueLookupParameter<IOperator> MigratorParameter {
67      get { return (ValueLookupParameter<IOperator>)Parameters["Migrator"]; }
68    }
69    public ValueLookupParameter<IOperator> EmigrantsSelectorParameter {
70      get { return (ValueLookupParameter<IOperator>)Parameters["EmigrantsSelector"]; }
71    }
72    public ValueLookupParameter<IOperator> ImmigrationSelectorParameter {
73      get { return (ValueLookupParameter<IOperator>)Parameters["ImmigrationSelector"]; }
74    }
75    public ValueLookupParameter<IntValue> PopulationSizeParameter {
76      get { return (ValueLookupParameter<IntValue>)Parameters["PopulationSize"]; }
77    }
78    public ValueLookupParameter<IntValue> MaximumMigrationsParameter {
79      get { return (ValueLookupParameter<IntValue>)Parameters["MaximumMigrations"]; }
80    }
81    public ValueLookupParameter<IOperator> SelectorParameter {
82      get { return (ValueLookupParameter<IOperator>)Parameters["Selector"]; }
83    }
84    public ValueLookupParameter<IOperator> CrossoverParameter {
85      get { return (ValueLookupParameter<IOperator>)Parameters["Crossover"]; }
86    }
87    public ValueLookupParameter<PercentValue> MutationProbabilityParameter {
88      get { return (ValueLookupParameter<PercentValue>)Parameters["MutationProbability"]; }
89    }
90    public ValueLookupParameter<IOperator> MutatorParameter {
91      get { return (ValueLookupParameter<IOperator>)Parameters["Mutator"]; }
92    }
93    public ValueLookupParameter<IOperator> EvaluatorParameter {
94      get { return (ValueLookupParameter<IOperator>)Parameters["Evaluator"]; }
95    }
96    public ValueLookupParameter<IntValue> ElitesParameter {
97      get { return (ValueLookupParameter<IntValue>)Parameters["Elites"]; }
98    }
99    public ValueLookupParameter<ResultCollection> ResultsParameter {
100      get { return (ValueLookupParameter<ResultCollection>)Parameters["Results"]; }
101    }
102    public ValueLookupParameter<IOperator> VisualizerParameter {
103      get { return (ValueLookupParameter<IOperator>)Parameters["Visualizer"]; }
104    }
105    public LookupParameter<IItem> VisualizationParameter {
106      get { return (LookupParameter<IItem>)Parameters["Visualization"]; }
107    }
108    public ValueLookupParameter<DoubleValue> SuccessRatioParameter {
109      get { return (ValueLookupParameter<DoubleValue>)Parameters["SuccessRatio"]; }
110    }
111    public ValueLookupParameter<DoubleValue> ComparisonFactorLowerBoundParameter {
112      get { return (ValueLookupParameter<DoubleValue>)Parameters["ComparisonFactorLowerBound"]; }
113    }
114    public ValueLookupParameter<DoubleValue> ComparisonFactorUpperBoundParameter {
115      get { return (ValueLookupParameter<DoubleValue>)Parameters["ComparisonFactorUpperBound"]; }
116    }
117    public ValueLookupParameter<IOperator> ComparisonFactorModifierParameter {
118      get { return (ValueLookupParameter<IOperator>)Parameters["ComparisonFactorModifier"]; }
119    }
120    public ValueLookupParameter<DoubleValue> MaximumSelectionPressureParameter {
121      get { return (ValueLookupParameter<DoubleValue>)Parameters["MaximumSelectionPressure"]; }
122    }
123    public ValueLookupParameter<BoolValue> OffspringSelectionBeforeMutationParameter {
124      get { return (ValueLookupParameter<BoolValue>)Parameters["OffspringSelectionBeforeMutation"]; }
125    }
126    #endregion
127
128    [StorableConstructor]
129    private OffspringSelectionIslandGeneticAlgorithmMainLoop(bool deserializing) : base() { }
130    public OffspringSelectionIslandGeneticAlgorithmMainLoop()
131      : base() {
132      #region Create parameters
133      Parameters.Add(new ValueLookupParameter<IRandom>("Random", "A pseudo random number generator."));
134      Parameters.Add(new ValueLookupParameter<BoolValue>("Maximization", "True if the problem is a maximization problem, otherwise false."));
135      Parameters.Add(new SubScopesLookupParameter<DoubleValue>("Quality", "The value which represents the quality of a solution."));
136      Parameters.Add(new ValueLookupParameter<DoubleValue>("BestKnownQuality", "The best known quality value found so far."));
137      Parameters.Add(new ValueLookupParameter<IntValue>("NumberOfIslands", "The number of islands."));
138      Parameters.Add(new ValueLookupParameter<IntValue>("MigrationInterval", "The number of generations that should pass between migration phases."));
139      Parameters.Add(new ValueLookupParameter<PercentValue>("MigrationRate", "The proportion of individuals that should migrate between the islands."));
140      Parameters.Add(new ValueLookupParameter<IOperator>("Migrator", "The migration strategy."));
141      Parameters.Add(new ValueLookupParameter<IOperator>("EmigrantsSelector", "Selects the individuals that will be migrated."));
142      Parameters.Add(new ValueLookupParameter<IOperator>("ImmigrationSelector", "Selects the population from the unification of the original population and the immigrants."));
143      Parameters.Add(new ValueLookupParameter<IntValue>("PopulationSize", "The size of the population of solutions."));
144      Parameters.Add(new ValueLookupParameter<IntValue>("MaximumMigrations", "The maximum number of migrations after which the operator should terminate."));
145      Parameters.Add(new ValueLookupParameter<IOperator>("Selector", "The operator used to select solutions for reproduction."));
146      Parameters.Add(new ValueLookupParameter<IOperator>("Crossover", "The operator used to cross solutions."));
147      Parameters.Add(new ValueLookupParameter<PercentValue>("MutationProbability", "The probability that the mutation operator is applied on a solution."));
148      Parameters.Add(new ValueLookupParameter<IOperator>("Mutator", "The operator used to mutate solutions."));
149      Parameters.Add(new ValueLookupParameter<IOperator>("Evaluator", "The operator used to evaluate solutions."));
150      Parameters.Add(new ValueLookupParameter<IntValue>("Elites", "The numer of elite solutions which are kept in each generation."));
151      Parameters.Add(new ValueLookupParameter<ResultCollection>("Results", "The results collection to store the results."));
152      Parameters.Add(new ValueLookupParameter<IOperator>("Visualizer", "The operator used to visualize solutions."));
153      Parameters.Add(new LookupParameter<IItem>("Visualization", "The item which represents the visualization of solutions."));
154      Parameters.Add(new ValueLookupParameter<DoubleValue>("SuccessRatio", "The ratio of successful to total children that should be achieved."));
155      Parameters.Add(new ValueLookupParameter<DoubleValue>("ComparisonFactorLowerBound", "The lower bound of the comparison factor (start)."));
156      Parameters.Add(new ValueLookupParameter<DoubleValue>("ComparisonFactorUpperBound", "The upper bound of the comparison factor (end)."));
157      Parameters.Add(new ValueLookupParameter<IOperator>("ComparisonFactorModifier", "The operator used to modify the comparison factor."));
158      Parameters.Add(new ValueLookupParameter<DoubleValue>("MaximumSelectionPressure", "The maximum selection pressure that terminates the algorithm."));
159      Parameters.Add(new ValueLookupParameter<BoolValue>("OffspringSelectionBeforeMutation", "True if the offspring selection step should be applied before mutation, false if it should be applied after mutation."));
160      #endregion
161
162      #region Create operators
163      VariableCreator variableCreator = new VariableCreator();
164      UniformSubScopesProcessor ussp0 = new UniformSubScopesProcessor();
165      VariableCreator islandVariableCreator = new VariableCreator();
166      Assigner islandVariableAssigner = new Assigner();
167      BestQualityMemorizer bestQualityMemorizer1 = new BestQualityMemorizer();
168      BestAverageWorstQualityCalculator bestAverageWorstQualityCalculator1 = new BestAverageWorstQualityCalculator();
169      BestQualityMemorizer bestQualityMemorizer2 = new BestQualityMemorizer();
170      BestAverageWorstQualityCalculator bestAverageWorstQualityCalculator2 = new BestAverageWorstQualityCalculator();
171      DataTableValuesCollector dataTableValuesCollector1 = new DataTableValuesCollector();
172      QualityDifferenceCalculator qualityDifferenceCalculator1 = new QualityDifferenceCalculator();
173      ResultsCollector resultsCollector = new ResultsCollector();
174      UniformSubScopesProcessor ussp1 = new UniformSubScopesProcessor();
175      OffspringSelectionGeneticAlgorithmMainLoop mainLoop = new OffspringSelectionGeneticAlgorithmMainLoop();
176      Placeholder emigrantsSelector = new Placeholder();
177      Placeholder migrator = new Placeholder();
178      UniformSubScopesProcessor ussp2 = new UniformSubScopesProcessor();
179      IntCounter maximumGenerationsCounter = new IntCounter();
180      MergingReducer mergingReducer = new MergingReducer();
181      Placeholder immigrationSelector = new Placeholder();
182      RightReducer rightReducer = new RightReducer();
183      IntCounter migrationsCounter = new IntCounter();
184      Comparator maxMigrationsComparator = new Comparator();
185      BestQualityMemorizer bestQualityMemorizer3 = new BestQualityMemorizer();
186      BestAverageWorstQualityCalculator bestAverageWorstQualityCalculator3 = new BestAverageWorstQualityCalculator();
187      DataTableValuesCollector dataTableValuesCollector2 = new DataTableValuesCollector();
188      QualityDifferenceCalculator qualityDifferenceCalculator2 = new QualityDifferenceCalculator();
189      ConditionalBranch migrationTerminationCondition = new ConditionalBranch();
190
191      variableCreator.CollectedValues.Add(new ValueParameter<IntValue>("Migrations", new IntValue(0)));
192     
193      islandVariableCreator.CollectedValues.Add(new ValueParameter<ResultCollection>("IslandResults", new ResultCollection()));
194      islandVariableCreator.CollectedValues.Add(new ValueParameter<IntValue>("Generations", new IntValue(0)));
195      islandVariableCreator.CollectedValues.Add(new ValueParameter<IntValue>("EvaluatedSolutions", new IntValue(0)));
196
197      islandVariableAssigner.LeftSideParameter.ActualName = "ComparisonFactor";
198      islandVariableAssigner.RightSideParameter.ActualName = ComparisonFactorLowerBoundParameter.Name;
199
200      bestQualityMemorizer1.BestQualityParameter.ActualName = "BestQuality";
201      bestQualityMemorizer1.MaximizationParameter.ActualName = MaximizationParameter.Name;
202      bestQualityMemorizer1.QualityParameter.ActualName = QualityParameter.Name;
203
204      bestAverageWorstQualityCalculator1.AverageQualityParameter.ActualName = "CurrentAverageQuality";
205      bestAverageWorstQualityCalculator1.BestQualityParameter.ActualName = "CurrentBestQuality";
206      bestAverageWorstQualityCalculator1.MaximizationParameter.ActualName = MaximizationParameter.Name;
207      bestAverageWorstQualityCalculator1.QualityParameter.ActualName = QualityParameter.Name;
208      bestAverageWorstQualityCalculator1.WorstQualityParameter.ActualName = "CurrentWorstQuality";
209
210      bestQualityMemorizer2.BestQualityParameter.ActualName = "BestQuality";
211      bestQualityMemorizer2.MaximizationParameter.ActualName = MaximizationParameter.Name;
212      bestQualityMemorizer2.QualityParameter.ActualName = "BestQuality";
213
214      bestAverageWorstQualityCalculator2.AverageQualityParameter.ActualName = "CurrentAverageBestQuality";
215      bestAverageWorstQualityCalculator2.BestQualityParameter.ActualName = "CurrentBestBestQuality";
216      bestAverageWorstQualityCalculator2.MaximizationParameter.ActualName = MaximizationParameter.Name;
217      bestAverageWorstQualityCalculator2.QualityParameter.ActualName = "CurrentBestQuality";
218      bestAverageWorstQualityCalculator2.WorstQualityParameter.ActualName = "CurrentWorstBestQuality";
219
220      dataTableValuesCollector1.CollectedValues.Add(new LookupParameter<DoubleValue>("Current Best BestQuality", null, "CurrentBestBestQuality"));
221      dataTableValuesCollector1.CollectedValues.Add(new LookupParameter<DoubleValue>("Current Average BestQuality", null, "CurrentAverageBestQuality"));
222      dataTableValuesCollector1.CollectedValues.Add(new LookupParameter<DoubleValue>("Current Worst BestQuality", null, "CurrentWorstBestQuality"));
223      dataTableValuesCollector1.CollectedValues.Add(new LookupParameter<DoubleValue>("Best Quality", null, "BestQuality"));
224      dataTableValuesCollector1.CollectedValues.Add(new LookupParameter<DoubleValue>("Best Known Quality", null, BestKnownQualityParameter.Name));
225      dataTableValuesCollector1.DataTableParameter.ActualName = "BestQualities";
226
227      qualityDifferenceCalculator1.AbsoluteDifferenceParameter.ActualName = "AbsoluteDifferenceBestKnownToBest";
228      qualityDifferenceCalculator1.FirstQualityParameter.ActualName = BestKnownQualityParameter.Name;
229      qualityDifferenceCalculator1.RelativeDifferenceParameter.ActualName = "RelativeDifferenceBestKnownToBest";
230      qualityDifferenceCalculator1.SecondQualityParameter.ActualName = "BestQuality";
231
232      resultsCollector.CollectedValues.Add(new LookupParameter<IntValue>("Migrations"));
233      resultsCollector.CollectedValues.Add(new LookupParameter<DoubleValue>("Current Best BestQuality", null, "CurrentBestBestQuality"));
234      resultsCollector.CollectedValues.Add(new LookupParameter<DoubleValue>("Current Average BestQuality", null, "CurrentAverageBestQuality"));
235      resultsCollector.CollectedValues.Add(new LookupParameter<DoubleValue>("Current Worst BestQuality", null, "CurrentWorstBestQuality"));
236      resultsCollector.CollectedValues.Add(new LookupParameter<DoubleValue>("Best Quality", null, "BestQuality"));
237      resultsCollector.CollectedValues.Add(new LookupParameter<DoubleValue>("Best Known Quality", null, BestKnownQualityParameter.Name));
238      resultsCollector.CollectedValues.Add(new LookupParameter<DoubleValue>("Absolute Difference of Best Known Quality to Best Quality", null, "AbsoluteDifferenceBestKnownToBest"));
239      resultsCollector.CollectedValues.Add(new LookupParameter<DoubleValue>("Relative Difference of Best Known Quality to Best Quality", null, "RelativeDifferenceBestKnownToBest"));
240      resultsCollector.CollectedValues.Add(new LookupParameter<DataTable>("BestQualities"));
241      resultsCollector.CollectedValues.Add(new SubScopesLookupParameter<ResultCollection>("IslandResults", "Result set for each island"));
242      resultsCollector.ResultsParameter.ActualName = ResultsParameter.Name;
243
244      mainLoop.VariableInitializer = null; // we do the variable initialization here
245      mainLoop.BestKnownQualityParameter.ActualName = BestKnownQualityParameter.Name;
246      mainLoop.MaximizationParameter.ActualName = MaximizationParameter.Name;
247      mainLoop.QualityParameter.ActualName = QualityParameter.Name;
248      mainLoop.SelectorParameter.ActualName = SelectorParameter.Name;
249      mainLoop.CrossoverParameter.ActualName = CrossoverParameter.Name;
250      mainLoop.ElitesParameter.ActualName = ElitesParameter.Name;
251      mainLoop.MaximumGenerationsParameter.ActualName = "MaximumGenerations";
252      mainLoop.MutatorParameter.ActualName = MutatorParameter.Name;
253      mainLoop.EvaluatorParameter.ActualName = EvaluatorParameter.Name;
254      mainLoop.MutationProbabilityParameter.ActualName = MutationProbabilityParameter.Name;
255      mainLoop.RandomParameter.ActualName = RandomParameter.Name;
256      mainLoop.ResultsParameter.ActualName = "IslandResults";
257      mainLoop.VisualizerParameter.ActualName = VisualizerParameter.Name;
258      mainLoop.VisualizationParameter.ActualName = VisualizationParameter.Name;
259      mainLoop.SuccessRatioParameter.ActualName = SuccessRatioParameter.Name;
260      mainLoop.ComparisonFactorLowerBoundParameter.ActualName = ComparisonFactorLowerBoundParameter.Name;
261      mainLoop.ComparisonFactorModifierParameter.ActualName = ComparisonFactorModifierParameter.Name;
262      mainLoop.ComparisonFactorUpperBoundParameter.ActualName = ComparisonFactorUpperBoundParameter.Name;
263      mainLoop.MaximumSelectionPressureParameter.ActualName = MaximumSelectionPressureParameter.Name;
264      mainLoop.OffspringSelectionBeforeMutationParameter.ActualName = OffspringSelectionBeforeMutationParameter.Name;
265
266      maximumGenerationsCounter.ValueParameter.ActualName = "MaximumGenerations";
267      maximumGenerationsCounter.Increment = null;
268      maximumGenerationsCounter.IncrementParameter.ActualName = "MigrationInterval";
269
270      emigrantsSelector.Name = "Emigrants Selector (placeholder)";
271      emigrantsSelector.OperatorParameter.ActualName = EmigrantsSelectorParameter.Name;
272
273      migrator.Name = "Migrator (placeholder)";
274      migrator.OperatorParameter.ActualName = MigratorParameter.Name;
275
276      immigrationSelector.Name = "Immigration Selector (placeholder)";
277      immigrationSelector.OperatorParameter.ActualName = ImmigrationSelectorParameter.Name;
278
279      migrationsCounter.Name = "Migrations + 1";
280      migrationsCounter.IncrementParameter.Value = new IntValue(1);
281      migrationsCounter.ValueParameter.ActualName = "Migrations";
282
283      maxMigrationsComparator.Name = "Migrations >= MaximumMigration ?";
284      maxMigrationsComparator.LeftSideParameter.ActualName = "Migrations";
285      maxMigrationsComparator.RightSideParameter.ActualName = MaximumMigrationsParameter.Name;
286      maxMigrationsComparator.Comparison.Value = ComparisonType.GreaterOrEqual;
287      maxMigrationsComparator.ResultParameter.ActualName = "MigrationTerminate";
288
289      bestQualityMemorizer3.BestQualityParameter.ActualName = "BestQuality";
290      bestQualityMemorizer3.MaximizationParameter.ActualName = MaximizationParameter.Name;
291      bestQualityMemorizer3.QualityParameter.ActualName = "BestQuality";
292
293      bestAverageWorstQualityCalculator3.AverageQualityParameter.ActualName = "CurrentAverageBestQuality";
294      bestAverageWorstQualityCalculator3.BestQualityParameter.ActualName = "CurrentBestBestQuality";
295      bestAverageWorstQualityCalculator3.MaximizationParameter.ActualName = MaximizationParameter.Name;
296      bestAverageWorstQualityCalculator3.QualityParameter.ActualName = "CurrentBestQuality";
297      bestAverageWorstQualityCalculator3.WorstQualityParameter.ActualName = "CurrentWorstBestQuality";
298
299      dataTableValuesCollector2.CollectedValues.Add(new LookupParameter<DoubleValue>("Current Best BestQuality", null, "CurrentBestBestQuality"));
300      dataTableValuesCollector2.CollectedValues.Add(new LookupParameter<DoubleValue>("Current Average BestQuality", null, "CurrentAverageBestQuality"));
301      dataTableValuesCollector2.CollectedValues.Add(new LookupParameter<DoubleValue>("Current Worst BestQuality", null, "CurrentWorstBestQuality"));
302      dataTableValuesCollector2.CollectedValues.Add(new LookupParameter<DoubleValue>("Best Quality", null, "BestQuality"));
303      dataTableValuesCollector2.CollectedValues.Add(new LookupParameter<DoubleValue>("Best Known Quality", null, BestKnownQualityParameter.Name));
304      dataTableValuesCollector2.DataTableParameter.ActualName = "BestQualities";
305
306      qualityDifferenceCalculator2.AbsoluteDifferenceParameter.ActualName = "AbsoluteDifferenceBestKnownToBest";
307      qualityDifferenceCalculator2.FirstQualityParameter.ActualName = BestKnownQualityParameter.Name;
308      qualityDifferenceCalculator2.RelativeDifferenceParameter.ActualName = "RelativeDifferenceBestKnownToBest";
309      qualityDifferenceCalculator2.SecondQualityParameter.ActualName = "BestQuality";
310
311      migrationTerminationCondition.ConditionParameter.ActualName = "MigrationTerminate";
312      #endregion
313
314      #region Create operator graph
315      OperatorGraph.InitialOperator = variableCreator;
316      variableCreator.Successor = ussp0;
317      ussp0.Operator = islandVariableCreator;
318      ussp0.Successor = bestQualityMemorizer2;
319      islandVariableCreator.Successor = islandVariableAssigner;
320      islandVariableAssigner.Successor = bestQualityMemorizer1;
321      bestQualityMemorizer1.Successor = bestAverageWorstQualityCalculator1;
322      bestQualityMemorizer2.Successor = bestAverageWorstQualityCalculator2;
323      bestAverageWorstQualityCalculator2.Successor = dataTableValuesCollector1;
324      dataTableValuesCollector1.Successor = qualityDifferenceCalculator1;
325      qualityDifferenceCalculator1.Successor = resultsCollector;
326      resultsCollector.Successor = ussp1;
327      ussp1.Operator = mainLoop;
328      ussp1.Successor = migrator;
329      mainLoop.Successor = maximumGenerationsCounter;
330      maximumGenerationsCounter.Successor = emigrantsSelector;
331      emigrantsSelector.Successor = null;
332      migrator.Successor = ussp2;
333      ussp2.Operator = mergingReducer;
334      ussp2.Successor = migrationsCounter;
335      mergingReducer.Successor = immigrationSelector;
336      immigrationSelector.Successor = rightReducer;
337      rightReducer.Successor = null;
338      migrationsCounter.Successor = maxMigrationsComparator;
339      maxMigrationsComparator.Successor = bestQualityMemorizer3;
340      bestQualityMemorizer3.Successor = bestAverageWorstQualityCalculator3;
341      bestAverageWorstQualityCalculator3.Successor = dataTableValuesCollector2;
342      dataTableValuesCollector2.Successor = qualityDifferenceCalculator2;
343      qualityDifferenceCalculator2.Successor = migrationTerminationCondition;
344      migrationTerminationCondition.FalseBranch = ussp1;
345      migrationTerminationCondition.TrueBranch = null;
346      migrationTerminationCondition.Successor = null;
347      #endregion
348    }
349  }
350}
Note: See TracBrowser for help on using the repository browser.