Changeset 12891 for branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SymbolicDataAnalysisProblem.cs
- Timestamp:
- 08/22/15 14:27:37 (9 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
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SymbolicDataAnalysisProblem.cs
r12155 r12891 300 300 301 301 protected virtual void ParameterizeOperators() { 302 var operators = Parameters.OfType<IValueParameter>().Select(p => p.Value).OfType<IOperator>().Union(Operators).ToList(); 302 var operators = 303 Parameters.OfType<IValueParameter>().Select(p => p.Value).OfType<IOperator>().Union(Operators).ToList(); 303 304 304 305 foreach (var op in operators.OfType<ISymbolicExpressionTreeGrammarBasedOperator>()) { … … 322 323 foreach (var op in operators.OfType<ISymbolicExpressionTreeCrossover>()) { 323 324 op.ParentsParameter.ActualName = SolutionCreator.SymbolicExpressionTreeParameter.ActualName; 324 op. ChildParameter.ActualName = SolutionCreator.SymbolicExpressionTreeParameter.ActualName;325 op.SymbolicExpressionTreeParameter.ActualName = SolutionCreator.SymbolicExpressionTreeParameter.ActualName; 325 326 } 326 327 foreach (var op in operators.OfType<ISymbolicExpressionTreeManipulator>()) { … … 357 358 op.BeforeCrossoverOperatorParameter.ActualValue = new SymbolicDataAnalysisExpressionBeforeCrossoverOperator(); 358 359 op.AfterCrossoverOperatorParameter.ActualValue = new SymbolicDataAnalysisExpressionAfterCrossoverOperator(); 359 op.BeforeManipulatorOperatorParameter.ActualValue = new SymbolicDataAnalysisExpressionBeforeManipulatorOperator(); 360 op.BeforeManipulatorOperatorParameter.ActualValue = 361 new SymbolicDataAnalysisExpressionBeforeManipulatorOperator(); 360 362 op.AfterManipulatorOperatorParameter.ActualValue = new SymbolicDataAnalysisExpressionAfterManipulatorOperator(); 361 363 // get crossover parameter names … … 364 366 op.BeforeCrossoverOperator.ParentsParameter.ActualName = crossover.ParentsParameter.Name; 365 367 op.AfterCrossoverOperator.ParentsParameter.ActualName = crossover.ParentsParameter.Name; 366 op.BeforeCrossoverOperator.ChildParameter.ActualName = crossover. ChildParameter.Name;367 op.AfterCrossoverOperator.ChildParameter.ActualName = crossover. ChildParameter.Name;368 }369 // get manipulator parameter names370 var manipulator = operators.OfType<ISymbolicExpressionTreeManipulator>().FirstOrDefault();371 if (manipulator != null) {372 op.BeforeManipulatorOperator.ChildParameter.ActualName = manipulator.SymbolicExpressionTreeParameter.Name;373 op.AfterManipulatorOperator.ChildParameter.ActualName = manipulator.SymbolicExpressionTreeParameter.Name;374 }375 var creator = operators.OfType<ISymbolicExpressionTreeCreator>().FirstOrDefault();376 if (creator != null) {377 op.PopulationParameter.ActualName = creator.SymbolicExpressionTreeParameter.ActualName;368 op.BeforeCrossoverOperator.ChildParameter.ActualName = crossover.SymbolicExpressionTreeParameter.Name; 369 op.AfterCrossoverOperator.ChildParameter.ActualName = crossover.SymbolicExpressionTreeParameter.Name; 370 // get manipulator parameter names 371 var manipulator = operators.OfType<ISymbolicExpressionTreeManipulator>().FirstOrDefault(); 372 if (manipulator != null) { 373 op.BeforeManipulatorOperator.ChildParameter.ActualName = manipulator.SymbolicExpressionTreeParameter.Name; 374 op.AfterManipulatorOperator.ChildParameter.ActualName = manipulator.SymbolicExpressionTreeParameter.Name; 375 } 376 var creator = operators.OfType<ISymbolicExpressionTreeCreator>().FirstOrDefault(); 377 if (creator != null) { 378 op.PopulationParameter.ActualName = creator.SymbolicExpressionTreeParameter.ActualName; 379 } 378 380 } 379 381 }
Note: See TracChangeset
for help on using the changeset viewer.