Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/22/12 22:02:38 (13 years ago)
Author:
ascheibe
Message:

#1745 implemented reviewing comments for the data reducer and the local random generator

File:
1 edited

Legend:

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

    r7391 r7392  
    158158      VariableCreator islandVariableCreator = new VariableCreator();
    159159      Placeholder islandAnalyzer1 = new Placeholder();
    160       SubScopesRandomCreator subScopesRandomCreator = new SubScopesRandomCreator();
     160      LocalRandomGenerator localRandomGenerator = new LocalRandomGenerator();
    161161      Placeholder analyzer1 = new Placeholder();
    162162      ResultsCollector resultsCollector1 = new ResultsCollector();
     
    182182      Comparator checkIslandGenerationsReachedMaximum = new Comparator();
    183183      ConditionalBranch checkContinueEvolution = new ConditionalBranch();
    184       IntDataReducer generationsReducer = new IntDataReducer();
    185       IntDataReducer evaluatedSolutionsReducer = new IntDataReducer();
     184      DataReducer generationsReducer = new DataReducer();
     185      DataReducer evaluatedSolutionsReducer = new DataReducer();
    186186      Placeholder islandAnalyzer2 = new Placeholder();
    187187      UniformSubScopesProcessor uniformSubScopesProcessor5 = new UniformSubScopesProcessor();
     
    234234
    235235      stochasticBranch.ProbabilityParameter.ActualName = MutationProbabilityParameter.Name;
    236       stochasticBranch.RandomParameter.ActualName = RandomParameter.Name;
     236      //set it to the random number generator of the island
     237      stochasticBranch.RandomParameter.ActualName = "LocalRandom";
    237238
    238239      mutator.Name = "Mutator (placeholder)";
     
    312313      uniformSubScopesProcessor0.Successor = analyzer1;
    313314      islandVariableCreator.Successor = islandAnalyzer1;
    314       islandAnalyzer1.Successor = subScopesRandomCreator;
    315       subScopesRandomCreator.Successor = null;
     315      islandAnalyzer1.Successor = localRandomGenerator;
     316      localRandomGenerator.Successor = null;
    316317      analyzer1.Successor = resultsCollector1;
    317318      resultsCollector1.Successor = uniformSubScopesProcessor1;
Note: See TracChangeset for help on using the changeset viewer.