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)

File:
1 edited

Legend:

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

    r6476 r7172  
    9797    [Storable]
    9898    private ParticleSwarmOptimizationMainLoop mainLoop;
    99    
     99
    100100    public override Type ProblemType {
    101101      get { return typeof(ISingleObjectiveHeuristicOptimizationProblem); }
     
    317317      if (Problem != null) {
    318318        foreach (IAnalyzer analyzer in Problem.Operators.OfType<IAnalyzer>())
    319           Analyzer.Operators.Add(analyzer);
    320       }
    321       Analyzer.Operators.Add(qualityAnalyzer);
     319          Analyzer.Operators.Add(analyzer, analyzer.EnabledByDefault);
     320      }
     321      Analyzer.Operators.Add(qualityAnalyzer, qualityAnalyzer.EnabledByDefault);
    322322    }
    323323
Note: See TracChangeset for help on using the changeset viewer.