- Timestamp:
- 11/26/08 18:57:58 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.GP/Recombination/StandardCrossOver.cs
r832 r833 61 61 } else newTree = tree0; 62 62 63 // check if the new tree is valid and if the height of is still in the allowed bounds (we are not so strict for the max-size) 64 Debug.Assert(gardener.IsValidTree(newTree) && newTree.Height <= maxTreeHeight && newTree.Size <= maxTreeSize); 63 // check if the size and height of the new tree are still within the allowed bounds 64 Debug.Assert(newTree.Height <= maxTreeHeight); 65 Debug.Assert(newTree.Size <= maxTreeSize); 65 66 return newTree; 66 67 }
Note: See TracChangeset
for help on using the changeset viewer.