Changeset 3873 for branches/3.2/sources/HeuristicLab.GP.Operators/3.3/Manipulation/CutOutNodeManipulation.cs
- Timestamp:
- 05/31/10 08:31:29 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/sources/HeuristicLab.GP.Operators/3.3/Manipulation/CutOutNodeManipulation.cs
r2222 r3873 84 84 parent.InsertSubTree(childIndex, selectedChild); 85 85 Debug.Assert(gardener.IsValidTree(gpModel.FunctionTree)); 86 // recalculate the size and height of our tree87 gpModel.Size = gpModel.FunctionTree.GetSize();88 gpModel.Height = gpModel.FunctionTree.GetHeight();89 86 // don't need to schedule initialization operations 90 87 return null; … … 101 98 parent.InsertSubTree(childIndex, newFunctionTree); 102 99 Debug.Assert(gardener.IsValidTree(gpModel.FunctionTree)); 103 // recalculate size and height104 gpModel.Size = gpModel.FunctionTree.GetSize();105 gpModel.Height = gpModel.FunctionTree.GetHeight();106 100 // schedule an initialization operation for the new function-tree 107 101 return Util.CreateInitializationOperation(TreeGardener.GetAllSubTrees(newFunctionTree), scope);
Note: See TracChangeset
for help on using the changeset viewer.