Changeset 12509 for trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Crossovers
- Timestamp:
- 06/25/15 13:46:24 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Crossovers/SubtreeCrossover.cs
r12422 r12509 135 135 parent0.Root.ForEachNodePostfix((n) => { 136 136 if (n.SubtreeCount > 0 && n != parent0.Root) { 137 foreach (var child in n.Subtrees) { 137 //avoid linq to reduce memory pressure 138 for (int i = 0; i < n.SubtreeCount; i++) { 139 var child = n.GetSubtree(i); 138 140 if (child.GetLength() <= maxBranchLength && 139 141 child.GetDepth() <= maxBranchDepth) {
Note: See TracChangeset
for help on using the changeset viewer.