Changeset 10278 for branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SymbolicDataAnalysisProblem.cs
- Timestamp:
- 01/04/14 14:26:02 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SymbolicDataAnalysisProblem.cs
r9830 r10278 28 28 using HeuristicLab.Data; 29 29 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 30 using HeuristicLab.EvolutionTracking; 30 31 using HeuristicLab.Optimization; 31 32 using HeuristicLab.Parameters; … … 33 34 using HeuristicLab.PluginInfrastructure; 34 35 using HeuristicLab.Problems.Instances; 36 37 using TGraph = HeuristicLab.EvolutionTracking.IGenealogyGraph<HeuristicLab.EvolutionTracking.GenealogyGraphNode<HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.ISymbolicExpressionTree>, 38 HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.ISymbolicExpressionTree>; 39 using TVertex = HeuristicLab.EvolutionTracking.GenealogyGraphNode<HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.ISymbolicExpressionTree>; 35 40 36 41 namespace HeuristicLab.Problems.DataAnalysis.Symbolic { … … 231 236 Operators.Add(new MinAverageMaxSymbolicExpressionTreeLengthAnalyzer()); 232 237 Operators.Add(new SymbolicExpressionTreeLengthAnalyzer()); 238 Operators.Add(new GenealogyAnalyzer<TGraph, TVertex, ISymbolicExpressionTree>()); 233 239 ParameterizeOperators(); 234 240 } … … 350 356 op.EvaluatorParameter.ActualName = EvaluatorParameter.Name; 351 357 } 358 // add tracking analyzer 359 foreach (var op in operators.OfType<GenealogyAnalyzer<TGraph, TVertex, ISymbolicExpressionTree>>()) { 360 var crossover = operators.OfType<ISymbolicExpressionTreeCrossover>().First(); 361 op.CrossoverParentsParameterName = crossover.ParentsParameter.Name; 362 op.CrossoverChildParameterName = crossover.ChildParameter.Name; 363 var manipulator = operators.OfType<ISymbolicExpressionTreeManipulator>().First(); 364 op.ManipulatorChildParameterName = manipulator.SymbolicExpressionTreeParameter.Name; 365 var creator = operators.OfType<ISymbolicExpressionTreeCreator>().First(); 366 op.SolutionCreatorIndividualParameterName = creator.SymbolicExpressionTreeParameter.Name; 367 } 352 368 } 353 369
Note: See TracChangeset
for help on using the changeset viewer.