Changeset 7079
- Timestamp:
- 11/27/11 22:40:34 (13 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/SymbolicExpressionTreeGrammar.cs
r6911 r7079 119 119 else return base.GetMinimumExpressionDepth(symbol); 120 120 } 121 int ISymbolicExpressionGrammarBase.GetMaximumExpressionDepth(ISymbol symbol) { 122 if (symbols.Count == 0) return grammar.GetMaximumExpressionDepth(symbol); 123 else return base.GetMaximumExpressionDepth(symbol); 124 } 121 125 int ISymbolicExpressionGrammarBase.GetMinimumExpressionLength(ISymbol symbol) { 122 126 if (symbols.Count == 0) return grammar.GetMinimumExpressionLength(symbol); … … 127 131 else return base.GetMaximumExpressionLength(symbol, maxDepth); 128 132 } 133 129 134 } 130 135 } -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4/FullTreeCreatorTest.cs
r7053 r7079 31 31 public class FullTreeCreatorTest { 32 32 private const int POPULATION_SIZE = 10000; 33 private const int MAX_TREE_DEPTH = 10;34 private const int MAX_TREE_LENGTH = 1000;33 private const int MAX_TREE_DEPTH = 9 ; 34 private const int MAX_TREE_LENGTH = 256; 35 35 private TestContext testContextInstance; 36 36
Note: See TracChangeset
for help on using the changeset viewer.