Changeset 11272
- Timestamp:
- 08/05/14 20:59:25 (10 years ago)
- Location:
- branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Analyzers/SymbolicDataAnalysisBottomUpDiversityAnalyzer.cs
r11271 r11272 11 11 12 12 public SymbolicDataAnalysisBottomUpDiversityAnalyzer() { 13 SimilarityCalculator = new BottomUpSimilarityCalculator ();13 SimilarityCalculator = new BottomUpSimilarityCalculator { SolutionVariableName = "SymbolicExpressionTree" }; 14 14 } 15 15 } -
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Analyzers/SymbolicDataAnalysisPhenotypicDiversityAnalyzer.cs
r11271 r11272 37 37 38 38 public SymbolicDataAnalysisPhenotypicDiversityAnalyzer() { 39 SimilarityCalculator = new PhenotypicSimilarityCalculator ();39 SimilarityCalculator = new PhenotypicSimilarityCalculator { SolutionVariableName = "SymbolicExpressionTree" }; 40 40 41 41 Parameters.Add(new ScopeTreeLookupParameter<ISymbolicExpressionTree>(SymbolicExpressionTreeParameterName, "The symbolic expression trees.")); -
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SymbolicDataAnalysisProblem.cs
r11233 r11272 23 23 using System.Drawing; 24 24 using System.Linq; 25 using HeuristicLab.Analysis;26 25 using HeuristicLab.Common; 27 26 using HeuristicLab.Common.Resources; … … 34 33 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 35 34 using HeuristicLab.PluginInfrastructure; 35 using HeuristicLab.Problems.DataAnalysis.Symbolic.Analyzers; 36 36 using HeuristicLab.Problems.Instances; 37 37 … … 233 233 Operators.Add(new MinAverageMaxSymbolicExpressionTreeLengthAnalyzer()); 234 234 Operators.Add(new SymbolicExpressionTreeLengthAnalyzer()); 235 Operators.Add(new S ingleObjectivePopulationDiversityAnalyzer());236 Operators.Add(new BottomUpSimilarityCalculator());235 Operators.Add(new SymbolicDataAnalysisPhenotypicDiversityAnalyzer()); 236 Operators.Add(new SymbolicDataAnalysisBottomUpDiversityAnalyzer()); 237 237 Operators.Add(new SymbolicDataAnalysisGenealogyAnalyzer()); 238 238 ParameterizeOperators(); … … 358 358 op.QualityVariableName = "Quality"; 359 359 op.SolutionVariableName = SolutionCreator.SymbolicExpressionTreeParameter.ActualName; 360 }361 foreach (var op in operators.OfType<SingleObjectivePopulationDiversityAnalyzer>()) {362 op.SimilarityCalculator = operators.OfType<BottomUpSimilarityCalculator>().SingleOrDefault();363 360 } 364 361 // add tracking analyzer
Note: See TracChangeset
for help on using the changeset viewer.