Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/13/12 00:13:33 (13 years ago)
Author:
ascheibe
Message:

#1745 added multiple reduction operations

File:
1 edited

Legend:

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

    r7322 r7323  
    181181      Comparator checkIslandGenerationsReachedMaximum = new Comparator();
    182182      ConditionalBranch checkContinueEvolution = new ConditionalBranch();
    183       SubScopesIntReducer generationsReducer = new SubScopesIntReducer();
    184       AllSubScopesIntReducer evaluatedSolutionsReducer = new AllSubScopesIntReducer();
     183      IntDataReducer generationsReducer = new IntDataReducer();
     184      IntDataReducer evaluatedSolutionsReducer = new IntDataReducer();
    185185      Placeholder islandAnalyzer2 = new Placeholder();
    186186      UniformSubScopesProcessor uniformSubScopesProcessor5 = new UniformSubScopesProcessor();
     
    270270      generationsReducer.ParameterToReduce.ActualName = islandGenerationsCounter.ValueParameter.ActualName;
    271271      generationsReducer.TargetParameterName.Value = new StringValue("Generations");
     272      generationsReducer.ReductionOperation.Value = new ReductionType(ReductionTypes.Min);
    272273
    273274      evaluatedSolutionsReducer.Name = "Increment Evaluated Solutions";
    274275      evaluatedSolutionsReducer.ParameterToReduce.ActualName = IslandEvaluatedSolutions.Name;
    275276      evaluatedSolutionsReducer.TargetParameterName.Value = new StringValue(EvaluatedSolutionsParameter.Name);
     277      evaluatedSolutionsReducer.ReductionOperation.Value = new ReductionType(ReductionTypes.Sum);
    276278
    277279      emigrantsSelector.Name = "Emigrants Selector (placeholder)";
Note: See TracChangeset for help on using the changeset viewer.