Changeset 10347 for branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SymbolicDataAnalysisProblem.cs
- Timestamp:
- 01/16/14 16:37:56 (11 years ago)
- Location:
- branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic merged: 10346
- Property svn:mergeinfo changed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SymbolicDataAnalysisProblem.cs
r10293 r10347 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; … … 355 356 // add tracking analyzer 356 357 foreach (var op in operators.OfType<SymbolicDataAnalysisGenealogyAnalyzer>()) { 358 // op.BeforeCrossoverOperator = new SymbolicDataAnalysExpressionBeforeCrossoverOperator(); 359 // op.AfterCrossoverOperator = new SymbolicDataAnalysExpressionAfterCrossoverOperator(); 360 op.BeforeCrossoverOperator = new BeforeCrossoverOperator<ISymbolicExpressionTree>(); 361 op.AfterCrossoverOperator = new AfterCrossoverOperator<ISymbolicExpressionTree>(); 362 op.BeforeManipulatorOperator = new BeforeManipulatorOperator<ISymbolicExpressionTree>(); 363 op.AfterManipulatorOperator = new AfterManipulatorOperator<ISymbolicExpressionTree>(); 357 364 // get crossover parameter names 358 var crossover = operators.OfType<ISymbolicExpressionTreeCrossover>().First(); 359 op.CrossoverParentsParameterName = crossover.ParentsParameter.Name; 360 op.CrossoverChildParameterName = crossover.ChildParameter.Name; 365 var crossover = operators.OfType<ISymbolicExpressionTreeCrossover>().FirstOrDefault(); 366 if (crossover != null) { 367 op.CrossoverParentsParameterName = crossover.ParentsParameter.Name; 368 op.CrossoverChildParameterName = crossover.ChildParameter.Name; 369 } 361 370 // get munipulator parameter names 362 var manipulator = operators.OfType<ISymbolicExpressionTreeManipulator>().First(); 363 op.ManipulatorChildParameterName = manipulator.SymbolicExpressionTreeParameter.Name; 371 var manipulator = operators.OfType<ISymbolicExpressionTreeManipulator>().FirstOrDefault(); 372 if (manipulator != null) { 373 op.ManipulatorChildParameterName = manipulator.SymbolicExpressionTreeParameter.Name; 374 } 364 375 } 365 376 }
Note: See TracChangeset
for help on using the changeset viewer.