Changeset 5367 for trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Manipulators/ReplaceBranchManipulation.cs
- Timestamp:
- 01/24/11 19:04:27 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Manipulators/ReplaceBranchManipulation.cs
r5015 r5367 61 61 where manipulationPoint.Node.Grammar.GetMinExpressionLength(symbol) <= maxSize 62 62 select symbol; 63 if (allowedSymbols.Count() <= 1) return;63 if (allowedSymbols.Count() == 0) return; 64 64 65 65 var seedSymbol = SelectRandomSymbol(random, allowedSymbols); // replace the old node with the new node
Note: See TracChangeset
for help on using the changeset viewer.