- Timestamp:
- 12/20/11 11:45:18 (13 years ago)
- Location:
- branches/HeuristicLab.TimeSeries
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.TimeSeries
-
branches/HeuristicLab.TimeSeries/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/GeneticAlgorithm.cs
r6439 r7213 33 33 using HeuristicLab.PluginInfrastructure; 34 34 using HeuristicLab.Random; 35 using System.Collections.Generic;36 35 37 36 namespace HeuristicLab.Algorithms.GeneticAlgorithm { … … 377 376 foreach (IScopeTreeLookupParameter param in analyzer.Parameters.OfType<IScopeTreeLookupParameter>()) 378 377 param.Depth = 1; 379 Analyzer.Operators.Add(analyzer );378 Analyzer.Operators.Add(analyzer, analyzer.EnabledByDefault); 380 379 } 381 380 } 382 Analyzer.Operators.Add(qualityAnalyzer );381 Analyzer.Operators.Add(qualityAnalyzer, qualityAnalyzer.EnabledByDefault); 383 382 } 384 383 private GeneticAlgorithmMainLoop FindMainLoop(IOperator start) { -
branches/HeuristicLab.TimeSeries/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/IslandGeneticAlgorithm.cs
r6476 r7213 509 509 IslandAnalyzer.Operators.Clear(); 510 510 Analyzer.Operators.Clear(); 511 IslandAnalyzer.Operators.Add(islandQualityAnalyzer );511 IslandAnalyzer.Operators.Add(islandQualityAnalyzer, islandQualityAnalyzer.EnabledByDefault); 512 512 if (Problem != null) { 513 513 foreach (IAnalyzer analyzer in Problem.Operators.OfType<IAnalyzer>()) { 514 514 foreach (IScopeTreeLookupParameter param in analyzer.Parameters.OfType<IScopeTreeLookupParameter>()) 515 515 param.Depth = 2; 516 Analyzer.Operators.Add(analyzer );516 Analyzer.Operators.Add(analyzer, analyzer.EnabledByDefault); 517 517 } 518 518 } 519 Analyzer.Operators.Add(qualityAnalyzer );519 Analyzer.Operators.Add(qualityAnalyzer, qualityAnalyzer.EnabledByDefault); 520 520 } 521 521 private IslandGeneticAlgorithmMainLoop FindMainLoop(IOperator start) {
Note: See TracChangeset
for help on using the changeset viewer.