Changeset 3535 for trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/ArchitectureAlteringOperators
- Timestamp:
- 04/26/10 16:16:49 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/ArchitectureAlteringOperators/SubroutineDeleter.cs
r3534 r3535 102 102 int maxHeight = Math.Max(minPossibleHeight, invocationCutPoint.ReplacedChild.GetHeight()); 103 103 replacementTree = selectedSymbol.CreateTreeNode(); 104 if (replacementTree.HasLocalParameters) 105 replacementTree.ResetLocalParameters(random); 104 106 invocationCutPoint.Parent.RemoveSubTree(invocationCutPoint.ReplacedChildIndex); 105 107 invocationCutPoint.Parent.InsertSubTree(invocationCutPoint.ReplacedChildIndex, replacementTree);
Note: See TracChangeset
for help on using the changeset viewer.