Free cookie consent management tool by TermsFeed Policy Generator

Changeset 7289


Ignore:
Timestamp:
01/08/12 19:01:18 (13 years ago)
Author:
ascheibe
Message:

#1745 readded migrations counter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HiveHiveEngine/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/ParallelIslandGeneticAlgorithmMainLoop.cs

    r7288 r7289  
    187187      UniformSubScopesProcessor uniformSubScopesProcessor5 = new UniformSubScopesProcessor();
    188188      Placeholder emigrantsSelector = new Placeholder();
     189      IntCounter migrationsCounter = new IntCounter();
    189190      Placeholder migrator = new Placeholder();
    190191      UniformSubScopesProcessor uniformSubScopesProcessor6 = new UniformSubScopesProcessor();
     
    271272      generationsReducer.Name = "Increment Generations";
    272273      generationsReducer.ParameterToReduce.Value = new StringValue(islandGenerationsCounter.ValueParameter.ActualName);
    273       generationsReducer.TargetParameterName.Value = new StringValue("Generations"); //TODO: fixme
     274      generationsReducer.TargetParameterName.Value = new StringValue("Generations");
    274275
    275276      evaluatedSolutionsReducer.Name = "Increment Evaluated Solutions";
     
    279280      emigrantsSelector.Name = "Emigrants Selector (placeholder)";
    280281      emigrantsSelector.OperatorParameter.ActualName = EmigrantsSelectorParameter.Name;
     282
     283      migrationsCounter.Name = "Increment number of Migrations";
     284      migrationsCounter.ValueParameter.ActualName = "Migrations";
     285      migrationsCounter.Increment = new IntValue(1);
    281286
    282287      migrator.Name = "Migrator (placeholder)";
     
    344349      islandAnalyzer2.Successor = null;
    345350      uniformSubScopesProcessor5.Operator = emigrantsSelector;
     351      emigrantsSelector.Successor = migrationsCounter;
    346352      uniformSubScopesProcessor5.Successor = migrator;
    347353      migrator.Successor = uniformSubScopesProcessor6;
Note: See TracChangeset for help on using the changeset viewer.