Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/31/10 08:31:29 (14 years ago)
Author:
gkronber
Message:

Removed fields for tree size and tree height in GeneticProgrammingModel instead iterate through the tree to determine the size/height whenever it is needed. #1025 (Incorrect size/height values for trees)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/sources/HeuristicLab.GP.Operators/3.3/Manipulation/SubstituteSubTreeManipulation.cs

    r2222 r3873  
    7373
    7474        Debug.Assert(gardener.IsValidTree(gpModel.FunctionTree));
    75         // update the values of treeSize and treeHeight
    76         gpModel.Size = gpModel.FunctionTree.GetSize();
    77         gpModel.Height = gpModel.FunctionTree.GetHeight();
    7875        // the root hasn't changed so we don't need to update
    7976        // return a CompositeOperation that randomly initializes all nodes of the new subtree
Note: See TracChangeset for help on using the changeset viewer.