Free cookie consent management tool by TermsFeed Policy Generator

Changeset 7310


Ignore:
Timestamp:
01/10/12 23:27:04 (13 years ago)
Author:
ascheibe
Message:

#1745

  • moved island analyzer to islands
  • fixed bug which lead to bad performance compared to the original island GA
File:
1 edited

Legend:

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

    r7296 r7310  
    183183      SubScopesIntReducer generationsReducer = new SubScopesIntReducer();
    184184      AllSubScopesIntReducer evaluatedSolutionsReducer = new AllSubScopesIntReducer();
    185       UniformSubScopesProcessor uniformSubScopesProcessor4 = new UniformSubScopesProcessor();
    186185      Placeholder islandAnalyzer2 = new Placeholder();
    187186      UniformSubScopesProcessor uniformSubScopesProcessor5 = new UniformSubScopesProcessor();
     
    317316      generationsReducer.Successor = evaluatedSolutionsReducer;
    318317      evaluatedSolutionsReducer.Successor = migrationsCounter;
    319       migrationsCounter.Successor = uniformSubScopesProcessor4;
     318      migrationsCounter.Successor = uniformSubScopesProcessor5;
    320319      generationsAssigner.Successor = evaluatedSolutionsAssigner;
    321320      evaluatedSolutionsAssigner.Successor = selector;
     
    341340      subScopesProcessor2.Operators.Add(new EmptyOperator());
    342341      subScopesProcessor2.Successor = mergingReducer;
    343       mergingReducer.Successor = null;
     342      mergingReducer.Successor = islandAnalyzer2;
    344343      bestSelector.Successor = rightReducer;
    345       rightReducer.Successor = islandGenerationsCounter;
     344      rightReducer.Successor = null;
     345      islandAnalyzer2.Successor = islandGenerationsCounter;
    346346      islandGenerationsCounter.Successor = checkIslandGenerationsReachedMaximum;
    347347      checkIslandGenerationsReachedMaximum.Successor = checkContinueEvolution;
    348       uniformSubScopesProcessor4.Operator = islandAnalyzer2;
    349       uniformSubScopesProcessor4.Successor = uniformSubScopesProcessor5;
    350       islandAnalyzer2.Successor = null;
    351348      uniformSubScopesProcessor5.Operator = emigrantsSelector;
    352349      emigrantsSelector.Successor = null;
Note: See TracChangeset for help on using the changeset viewer.