Changeset 3338 for trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/SymbolicExpressionTreeCrossover.cs
- Timestamp:
- 04/13/10 20:44:31 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/SymbolicExpressionTreeCrossover.cs
r3294 r3338 67 67 68 68 IRandom random = RandomParameter.ActualValue; 69 ISymbolicExpressionGrammar grammar = SymbolicExpressionGrammarParameter.ActualValue;70 69 71 70 // randomly swap parents to remove a possible bias from selection (e.g. when using gender-specific selection) … … 77 76 78 77 bool success; 79 SymbolicExpressionTree result = Cross(random, grammar,parent0, parent1,78 SymbolicExpressionTree result = Cross(random, parent0, parent1, 80 79 MaxTreeSizeParameter.ActualValue, MaxTreeHeightParameter.ActualValue, out success); 81 80 … … 89 88 } 90 89 91 protected abstract SymbolicExpressionTree Cross(IRandom random, ISymbolicExpressionGrammar grammar,90 protected abstract SymbolicExpressionTree Cross(IRandom random, 92 91 SymbolicExpressionTree parent0, SymbolicExpressionTree parent1, 93 92 IntValue maxTreeSize, IntValue maxTreeHeight, out bool success);
Note: See TracChangeset
for help on using the changeset viewer.