Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/29/14 20:03:15 (10 years ago)
Author:
bburlacu
Message:

#1772: Merged latest changes (directed graph and bottom up distance calculator) from the BottomUpDistance branch.

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

    r11208 r11232  
    2323using System.Drawing;
    2424using System.Linq;
     25using HeuristicLab.Analysis;
    2526using HeuristicLab.Common;
    2627using HeuristicLab.Common.Resources;
     
    2930using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
    3031using HeuristicLab.Optimization;
     32using HeuristicLab.Optimization.Operators;
    3133using HeuristicLab.Parameters;
    3234using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    3335using HeuristicLab.PluginInfrastructure;
    34 using HeuristicLab.Problems.DataAnalysis.Symbolic.Analyzers;
    3536using HeuristicLab.Problems.Instances;
    36 
    3737
    3838namespace HeuristicLab.Problems.DataAnalysis.Symbolic {
     
    233233      Operators.Add(new MinAverageMaxSymbolicExpressionTreeLengthAnalyzer());
    234234      Operators.Add(new SymbolicExpressionTreeLengthAnalyzer());
    235       Operators.Add(new SymbolicDataAnalysisGenealogyAnalyzer());
     235      Operators.Add(new SingleObjectivePopulationDiversityAnalyzer());
     236      Operators.Add(new BottomUpSimilarityCalculator());
    236237      ParameterizeOperators();
    237238    }
     
    353354        op.EvaluatorParameter.ActualName = EvaluatorParameter.Name;
    354355      }
    355       // add tracking analyzer
    356       foreach (var op in operators.OfType<SymbolicDataAnalysisGenealogyAnalyzer>()) {
    357         op.BeforeCrossoverOperatorParameter.ActualValue = new SymbolicDataAnalysisExpressionBeforeCrossoverOperator();
    358         op.AfterCrossoverOperatorParameter.ActualValue = new SymbolicDataAnalysisExpressionAfterCrossoverOperator();
    359         op.BeforeManipulatorOperatorParameter.ActualValue = new SymbolicDataAnalysisExpressionBeforeManipulatorOperator();
    360         op.AfterManipulatorOperatorParameter.ActualValue = new SymbolicDataAnalysisExpressionAfterManipulatorOperator();
    361         // get crossover parameter names
    362         var crossover = operators.OfType<ISymbolicExpressionTreeCrossover>().FirstOrDefault();
    363         if (crossover != null) {
    364           op.BeforeCrossoverOperator.ParentsParameter.ActualName = crossover.ParentsParameter.Name;
    365           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;
    378         }
     356      foreach (var op in operators.OfType<SingleObjectiveSolutionSimilarityCalculator>()) {
     357        op.QualityVariableName = "Quality";
     358        op.SolutionVariableName = SolutionCreator.SymbolicExpressionTreeParameter.ActualName;
     359      }
     360      foreach (var op in operators.OfType<SingleObjectivePopulationDiversityAnalyzer>()) {
     361        op.SimilarityCalculator = operators.OfType<BottomUpSimilarityCalculator>().SingleOrDefault();
    379362      }
    380363    }
Note: See TracChangeset for help on using the changeset viewer.