Changeset 5367 for trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Manipulators
- Timestamp:
- 01/24/11 19:04:27 (13 years ago)
- Location:
- trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Manipulators
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Manipulators/ChangeNodeTypeManipulation.cs
r4722 r5367 59 59 select symbol; 60 60 61 if (allowedSymbols.Count() <= 1) {61 if (allowedSymbols.Count() == 0) { 62 62 success = false; 63 63 return; … … 72 72 where disallowedSubtrees.Count() == 0 73 73 select symbol; 74 if (constrainedSymbols.Count() <= 1) {74 if (constrainedSymbols.Count() == 0) { 75 75 success = false; 76 76 return; -
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.