Changeset 7001 for trunk/sources
- Timestamp:
- 11/16/11 15:14:21 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/SymbolicExpressionGrammarBase.cs
r6911 r7001 134 134 foreach (var s in symbol.Flatten()) { 135 135 symbols.Add(s.Name, s); 136 symbolSubtreeCount.Add(s.Name, Tuple.Create(s.MinimumArity, s.MaximumArity)); 136 int maxSubTreeCount = Math.Min(s.MinimumArity + 1, s.MaximumArity); 137 symbolSubtreeCount.Add(s.Name, Tuple.Create(s.MinimumArity, maxSubTreeCount)); 137 138 } 138 139 ClearCaches();
Note: See TracChangeset
for help on using the changeset viewer.