Changeset 7172 for trunk/sources/HeuristicLab.Algorithms.GeneticAlgorithm
- Timestamp:
- 12/12/11 03:39:04 (13 years ago)
- 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 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) { -
trunk/sources/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/IslandGeneticAlgorithm.cs
r6476 r7172 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.