Changeset 3297 for trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Crossovers
- Timestamp:
- 04/10/10 11:26:26 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Crossovers/SubtreeCrossover.cs
r3294 r3297 74 74 select branch; 75 75 76 if (allowedBranches.Count() > 0) { 76 if (allowedBranches.Count() == 0) { 77 success = false; 78 return parent0; 79 } else { 77 80 var selectedBranch = SelectRandomBranch(random, allowedBranches, internalCrossoverPointProbability); 78 81 … … 84 87 return parent0; 85 88 } 86 87 success = false;88 return parent0;89 89 } 90 90
Note: See TracChangeset
for help on using the changeset viewer.