Changeset 5015 for trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Manipulators
- Timestamp:
- 12/03/10 15:17:25 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Manipulators/ReplaceBranchManipulation.cs
r5014 r5015 57 57 int maxHeight = maxTreeHeight - symbolicExpressionTree.Height + manipulationPoint.Node.GetHeight(); 58 58 // find possible symbols for the node (also considering the existing branches below it) 59 var allowedSymbols = from symbol in manipulationPoint.Parent.GetAllowedSymbols(manipulationPoint.Index, maxHeight) 59 var allowedSymbols = from symbol in manipulationPoint.Parent.GetAllowedSymbols(manipulationPoint.Index) 60 where manipulationPoint.Node.Grammar.GetMinExpressionDepth(symbol) <= maxHeight 61 where manipulationPoint.Node.Grammar.GetMinExpressionLength(symbol) <= maxSize 60 62 select symbol; 61 63 if (allowedSymbols.Count() <= 1) return;
Note: See TracChangeset
for help on using the changeset viewer.