Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/22/11 15:18:20 (13 years ago)
Author:
abeham
Message:

#1344

  • Adapted all algorithms to count evaluated solutions / moves and outside of the parallel region
  • Used the same pattern in every algorithm: Initialize and collect the variable in the Algorithm and increment it in the main loops and main operators
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/GeneticAlgorithmMainLoop.cs

    r5352 r5356  
    141141      IntCounter intCounter = new IntCounter();
    142142      Comparator comparator = new Comparator();
    143       ResultsCollector resultsCollector2 = new ResultsCollector();
    144143      Placeholder analyzer2 = new Placeholder();
    145144      ConditionalBranch conditionalBranch = new ConditionalBranch();
     
    148147
    149148      resultsCollector1.CollectedValues.Add(new LookupParameter<IntValue>("Generations"));
    150       resultsCollector1.CollectedValues.Add(new LookupParameter<IntValue>(EvaluatedSolutionsParameter.Name));
    151149      resultsCollector1.ResultsParameter.ActualName = "Results";
    152150
     
    190188      comparator.ResultParameter.ActualName = "Terminate";
    191189      comparator.RightSideParameter.ActualName = "MaximumGenerations";
    192 
    193       resultsCollector2.CollectedValues.Add(new LookupParameter<IntValue>("Generations"));
    194       resultsCollector2.CollectedValues.Add(new LookupParameter<IntValue>(EvaluatedSolutionsParameter.Name));
    195       resultsCollector2.ResultsParameter.ActualName = "Results";
    196190
    197191      analyzer2.Name = "Analyzer";
     
    230224      mergingReducer.Successor = intCounter;
    231225      intCounter.Successor = comparator;
    232       comparator.Successor = resultsCollector2;
    233       resultsCollector2.Successor = analyzer2;
     226      comparator.Successor = analyzer2;
    234227      analyzer2.Successor = conditionalBranch;
    235228      conditionalBranch.FalseBranch = selector;
Note: See TracChangeset for help on using the changeset viewer.