Changeset 14798
- Timestamp:
- 03/30/17 16:47:03 (8 years ago)
- Location:
- stable
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 14221,14223-14224
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding merged: 14221,14223-14224
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Crossovers/SubtreeCrossover.cs
r14199 r14798 111 111 } else { 112 112 var selectedBranch = SelectRandomBranch(random, allowedBranches, internalCrossoverPointProbability); 113 if (selectedBranch != null) 114 selectedBranch = (ISymbolicExpressionTreeNode)selectedBranch.Clone(); 113 115 114 116 if (crossoverPoint0.Child != null) { -
stable/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/SymbolicExpressionTreeNode.cs
r14186 r14798 43 43 } 44 44 45 // parent relation is not persisted or cloned (will be set on AddSubtree or RemoveSubtree)45 [Storable] 46 46 private ISymbolicExpressionTreeNode parent; 47 47 public ISymbolicExpressionTreeNode Parent { … … 87 87 if (subtrees != null) { 88 88 foreach (var subtree in subtrees) 89 subtree.Parent = this; 89 if (subtree.Parent == null) 90 subtree.Parent = this; 90 91 } 91 92 }
Note: See TracChangeset
for help on using the changeset viewer.