- Timestamp:
- 08/01/10 15:24:29 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Crossovers/SymbolicExpressionTreeCrossover.cs
r4068 r4123 66 66 IRandom random = RandomParameter.ActualValue; 67 67 68 // randomly swap parents to remove a possible bias from selection (e.g. when using gender-specific selection)69 if (random.NextDouble() < 0.5) {70 var tmp = parent0;71 parent0 = parent1;72 parent1 = tmp;73 }74 75 68 bool success; 76 69 SymbolicExpressionTree result = Cross(random, parent0, parent1,
Note: See TracChangeset
for help on using the changeset viewer.