Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/06/10 02:46:37 (15 years ago)
Author:
swagner
Message:

Worked on refactoring of algorithm analysis and tracing (#999)

  • adapted analyzers
Location:
trunk/sources/HeuristicLab.Algorithms.GeneticAlgorithm/3.3
Files:
2 edited

Legend:

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

    r3658 r3662  
    140140      get { return selectors; }
    141141    }
    142     private PopulationBestAverageWorstQualityAnalyzer qualityAnalyzer;
     142    private BestAverageWorstQualityAnalyzer qualityAnalyzer;
    143143    #endregion
    144144
     
    291291    }
    292292    private void InitializeAnalyzers() {
    293       qualityAnalyzer = new PopulationBestAverageWorstQualityAnalyzer();
     293      qualityAnalyzer = new BestAverageWorstQualityAnalyzer();
    294294      ParameterizeAnalyzers();
    295295    }
     
    312312        qualityAnalyzer.MaximizationParameter.ActualName = Problem.MaximizationParameter.Name;
    313313        qualityAnalyzer.QualityParameter.ActualName = Problem.Evaluator.QualityParameter.ActualName;
     314        qualityAnalyzer.QualityParameter.Depth = 1;
    314315        qualityAnalyzer.BestKnownQualityParameter.ActualName = Problem.BestKnownQualityParameter.Name;
    315316      }
     
    353354      Analyzer.Operators.Add(qualityAnalyzer);
    354355      if (Problem != null) {
    355         foreach (IAnalyzer analyzer in Problem.Operators.OfType<IAnalyzer>().OrderBy(x => x.Name))
     356        foreach (IAnalyzer analyzer in Problem.Operators.OfType<IAnalyzer>().OrderBy(x => x.Name)) {
    356357          Analyzer.Operators.Add(analyzer);
     358        }
    357359      }
    358360    }
  • trunk/sources/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/IslandGeneticAlgorithm.cs

    r3658 r3662  
    204204      get { return (IslandGeneticAlgorithmMainLoop)IslandProcessor.Successor; }
    205205    }
    206     private PopulationBestAverageWorstQualityAnalyzer islandQualityAnalyzer;
     206    private BestAverageWorstQualityAnalyzer islandQualityAnalyzer;
    207207    //private MultipopulationBestAverageWorstQualityAnalyzer qualityAnalyzer;
    208208    #endregion
     
    398398    }
    399399    private void InitializeAnalyzers() {
    400       islandQualityAnalyzer = new PopulationBestAverageWorstQualityAnalyzer();
     400      islandQualityAnalyzer = new BestAverageWorstQualityAnalyzer();
    401401      //qualityAnalyzer = new MultipopulationBestAverageWorstQualityAnalyzer();
    402402      ParameterizeAnalyzers();
Note: See TracChangeset for help on using the changeset viewer.