Changeset 11928 for branches/HeuristicLab.EvolutionTracking
- Timestamp:
- 02/06/15 02:43:43 (10 years ago)
- Location:
- branches/HeuristicLab.EvolutionTracking
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/Fragment.cs
r11852 r11928 28 28 Index2 = original.Index2; 29 29 } 30 30 31 public override IDeepCloneable Clone(Cloner cloner) { 31 32 return new Fragment(this, cloner); 32 33 } 34 33 35 public Fragment() { } 34 36 } … … 42 44 } 43 45 44 protected Fragment(Fragment original, Cloner cloner) 46 public override IDeepCloneable Clone(Cloner cloner) { 47 return new Fragment<T>(this, cloner); 48 } 49 50 protected Fragment(Fragment<T> original, Cloner cloner) 45 51 : base(original, cloner) { 46 52 } 47 53 48 54 [StorableConstructor] 49 pr ivateFragment(bool deserializable) : base(deserializable) { }55 protected Fragment(bool deserializable) : base(deserializable) { } 50 56 51 57 public Fragment() { } -
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SymbolicDataAnalysisProblem.cs
r11926 r11928 235 235 Operators.Add(new SymbolicExpressionTreeLengthAnalyzer()); 236 236 Operators.Add(new SingleObjectivePopulationDiversityAnalyzer()); 237 Operators.Add(new SymbolicDataAnalysisPhenotypicDiversityAnalyzer()); 238 Operators.Add(new SymbolicDataAnalysisBottomUpDiversityAnalyzer()); 239 Operators.Add(new SymbolicDataAnalysisGenealogyAnalyzer()); 237 240 ParameterizeOperators(); 238 241 } … … 361 364 op.SimilarityCalculator = new SymbolicExpressionTreeBottomUpSimilarityCalculator(); 362 365 } 366 // add tracking analyzer 367 foreach (var op in operators.OfType<SymbolicDataAnalysisGenealogyAnalyzer>()) { 368 op.BeforeCrossoverOperatorParameter.ActualValue = new SymbolicDataAnalysisExpressionBeforeCrossoverOperator(); 369 op.AfterCrossoverOperatorParameter.ActualValue = new SymbolicDataAnalysisExpressionAfterCrossoverOperator(); 370 op.BeforeManipulatorOperatorParameter.ActualValue = new SymbolicDataAnalysisExpressionBeforeManipulatorOperator(); 371 op.AfterManipulatorOperatorParameter.ActualValue = new SymbolicDataAnalysisExpressionAfterManipulatorOperator(); 372 // get crossover parameter names 373 var crossover = operators.OfType<ISymbolicExpressionTreeCrossover>().FirstOrDefault(); 374 if (crossover != null) { 375 op.BeforeCrossoverOperator.ParentsParameter.ActualName = crossover.ParentsParameter.Name; 376 op.AfterCrossoverOperator.ParentsParameter.ActualName = crossover.ParentsParameter.Name; 377 op.BeforeCrossoverOperator.ChildParameter.ActualName = crossover.ChildParameter.Name; 378 op.AfterCrossoverOperator.ChildParameter.ActualName = crossover.ChildParameter.Name; 379 } 380 // get manipulator parameter names 381 var manipulator = operators.OfType<ISymbolicExpressionTreeManipulator>().FirstOrDefault(); 382 if (manipulator != null) { 383 op.BeforeManipulatorOperator.ChildParameter.ActualName = manipulator.SymbolicExpressionTreeParameter.Name; 384 op.AfterManipulatorOperator.ChildParameter.ActualName = manipulator.SymbolicExpressionTreeParameter.Name; 385 } 386 var creator = operators.OfType<ISymbolicExpressionTreeCreator>().FirstOrDefault(); 387 if (creator != null) { 388 op.PopulationParameter.ActualName = creator.SymbolicExpressionTreeParameter.ActualName; 389 } 390 } 363 391 } 364 392
Note: See TracChangeset
for help on using the changeset viewer.