Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/29/16 11:10:58 (6 years ago)
Author:
bburlacu
Message:

#2647: Addressed the issue described above by adding the [Storable] attribute to the node parent member, and cloning the swapped subtree during crossover.

File:
1 edited

Legend:

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

    r14185 r14221  
    4444
    4545    // parent relation is not persisted or cloned (will be set on AddSubtree or RemoveSubtree)
     46    [Storable]
    4647    private ISymbolicExpressionTreeNode parent;
    4748    public ISymbolicExpressionTreeNode Parent {
     
    8788      if (subtrees != null) {
    8889        foreach (var subtree in subtrees)
    89           subtree.Parent = this;
     90          if (subtree.Parent != null)
     91            subtree.Parent = this;
    9092      }
    9193    }
Note: See TracChangeset for help on using the changeset viewer.