Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/25/15 00:55:53 (9 years ago)
Author:
bburlacu
Message:

#1772: Small updates to SelectionSchemeAnalyzer and SymbolicDataAnalysisGeneticOperatorImprovementAnalyzer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/Analyzers/SelectionSchemeAnalyzer.cs

    r12163 r12894  
    6161      // to make sure the solutions are analyzed on the first application of this operator
    6262      if (updateCounter == null) {
    63         updateCounter = new IntValue(updateInterval);
     63        updateCounter = new IntValue(0);
    6464        UpdateCounterParameter.ActualValue = updateCounter;
    6565      }
     66      updateCounter.Value++;
    6667      //analyze solutions only every 'updateInterval' times
    67       if (updateCounter.Value != updateInterval) {
    68         updateCounter.Value++;
    69         return base.Apply();
    70       }
    71       updateCounter.Value = 1;
     68      if (updateCounter.Value != updateInterval) return base.Apply();
     69      updateCounter.Value = 0;
    7270
    7371      if (PopulationGraph == null)
    7472        return base.Apply();
    75 
    7673      double selectionRatio = 1;
    7774
Note: See TracChangeset for help on using the changeset viewer.