Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/25/15 13:46:24 (9 years ago)
Author:
mkommend
Message:

#2276: Reintegrated branch for dataset refactoring.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Crossovers/SubtreeCrossover.cs

    r12422 r12509  
    135135      parent0.Root.ForEachNodePostfix((n) => {
    136136        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);
    138140            if (child.GetLength() <= maxBranchLength &&
    139141                child.GetDepth() <= maxBranchDepth) {
Note: See TracChangeset for help on using the changeset viewer.