- Timestamp:
- 07/06/10 12:33:30 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Crossovers/SubtreeCrossover.cs
r3997 r3998 97 97 // check point type for the whole branch 98 98 branch.ForEachNodePostfix((n) => { 99 result &= n.SubTrees.Count >= parent.Grammar.GetMinSubtreeCount(n.Symbol); 100 result &= n.SubTrees.Count <= parent.Grammar.GetMaxSubtreeCount(n.Symbol); 101 result &= parent.Grammar.ContainsSymbol(n.Symbol); 99 result = 100 result && 101 n.SubTrees.Count >= parent.Grammar.GetMinSubtreeCount(n.Symbol) && 102 n.SubTrees.Count <= parent.Grammar.GetMaxSubtreeCount(n.Symbol) && 103 parent.Grammar.ContainsSymbol(n.Symbol); 102 104 }); 103 105 return result;
Note: See TracChangeset
for help on using the changeset viewer.