Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/12/11 03:39:04 (13 years ago)
Author:
swagner
Message:

Disabled run-time intensive analyzers by default (#1584)

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

Legend:

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

    r6439 r7172  
    3333using HeuristicLab.PluginInfrastructure;
    3434using HeuristicLab.Random;
    35 using System.Collections.Generic;
    3635
    3736namespace HeuristicLab.Algorithms.GeneticAlgorithm {
     
    377376          foreach (IScopeTreeLookupParameter param in analyzer.Parameters.OfType<IScopeTreeLookupParameter>())
    378377            param.Depth = 1;
    379           Analyzer.Operators.Add(analyzer);
     378          Analyzer.Operators.Add(analyzer, analyzer.EnabledByDefault);
    380379        }
    381380      }
    382       Analyzer.Operators.Add(qualityAnalyzer);
     381      Analyzer.Operators.Add(qualityAnalyzer, qualityAnalyzer.EnabledByDefault);
    383382    }
    384383    private GeneticAlgorithmMainLoop FindMainLoop(IOperator start) {
  • trunk/sources/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/IslandGeneticAlgorithm.cs

    r6476 r7172  
    509509      IslandAnalyzer.Operators.Clear();
    510510      Analyzer.Operators.Clear();
    511       IslandAnalyzer.Operators.Add(islandQualityAnalyzer);
     511      IslandAnalyzer.Operators.Add(islandQualityAnalyzer, islandQualityAnalyzer.EnabledByDefault);
    512512      if (Problem != null) {
    513513        foreach (IAnalyzer analyzer in Problem.Operators.OfType<IAnalyzer>()) {
    514514          foreach (IScopeTreeLookupParameter param in analyzer.Parameters.OfType<IScopeTreeLookupParameter>())
    515515            param.Depth = 2;
    516           Analyzer.Operators.Add(analyzer);
     516          Analyzer.Operators.Add(analyzer, analyzer.EnabledByDefault);
    517517        }
    518518      }
    519       Analyzer.Operators.Add(qualityAnalyzer);
     519      Analyzer.Operators.Add(qualityAnalyzer, qualityAnalyzer.EnabledByDefault);
    520520    }
    521521    private IslandGeneticAlgorithmMainLoop FindMainLoop(IOperator start) {
Note: See TracChangeset for help on using the changeset viewer.