Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/22/15 14:27:37 (9 years ago)
Author:
bburlacu
Message:

#1772: Merge trunk changes. Remove dead code from the genealogy analyzer.

Location:
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic

  • branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SymbolicDataAnalysisProblem.cs

    r12155 r12891  
    300300
    301301    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();
    303304
    304305      foreach (var op in operators.OfType<ISymbolicExpressionTreeGrammarBasedOperator>()) {
     
    322323      foreach (var op in operators.OfType<ISymbolicExpressionTreeCrossover>()) {
    323324        op.ParentsParameter.ActualName = SolutionCreator.SymbolicExpressionTreeParameter.ActualName;
    324         op.ChildParameter.ActualName = SolutionCreator.SymbolicExpressionTreeParameter.ActualName;
     325        op.SymbolicExpressionTreeParameter.ActualName = SolutionCreator.SymbolicExpressionTreeParameter.ActualName;
    325326      }
    326327      foreach (var op in operators.OfType<ISymbolicExpressionTreeManipulator>()) {
     
    357358        op.BeforeCrossoverOperatorParameter.ActualValue = new SymbolicDataAnalysisExpressionBeforeCrossoverOperator();
    358359        op.AfterCrossoverOperatorParameter.ActualValue = new SymbolicDataAnalysisExpressionAfterCrossoverOperator();
    359         op.BeforeManipulatorOperatorParameter.ActualValue = new SymbolicDataAnalysisExpressionBeforeManipulatorOperator();
     360        op.BeforeManipulatorOperatorParameter.ActualValue =
     361          new SymbolicDataAnalysisExpressionBeforeManipulatorOperator();
    360362        op.AfterManipulatorOperatorParameter.ActualValue = new SymbolicDataAnalysisExpressionAfterManipulatorOperator();
    361363        // get crossover parameter names
     
    364366          op.BeforeCrossoverOperator.ParentsParameter.ActualName = crossover.ParentsParameter.Name;
    365367          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 names
    370         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          }
    378380        }
    379381      }
Note: See TracChangeset for help on using the changeset viewer.