Changeset 13876 for branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Tracking/SchemaDiversification/UpdateQualityOperator.cs
- Timestamp:
- 06/06/16 19:37:20 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Tracking/SchemaDiversification/UpdateQualityOperator.cs
r13527 r13876 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2016 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 76 76 public override IOperation Apply() { 77 77 var tree = SymbolicExpressionTreeParameter.ActualValue; 78 FixParentLinks(tree); 78 79 var problemData = ProblemDataParameter.ActualValue; 79 80 var estimationLimits = EstimationLimitsParameter.ActualValue; … … 123 124 return base.Apply(); 124 125 } 126 127 private static void FixParentLinks(ISymbolicExpressionTree tree) { 128 foreach (var node in tree.IterateNodesPrefix().Where(x => x.SubtreeCount > 0)) { 129 foreach (var s in node.Subtrees) { 130 if (s.Parent != node) 131 s.Parent = node; 132 } 133 } 134 } 125 135 } 126 136 }
Note: See TracChangeset
for help on using the changeset viewer.