Changeset 16386 for branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Tests/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4/SubtreeCrossoverTest.cs
- Timestamp:
- 12/15/18 12:07:16 (6 years ago)
- Location:
- branches/2925_AutoDiffForDynamicalModels
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2925_AutoDiffForDynamicalModels
- Property svn:mergeinfo changed
-
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Tests
- Property svn:mergeinfo changed
-
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Tests/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4/SubtreeCrossoverTest.cs
r15583 r16386 46 46 SubroutineCreater.CreateSubroutine(random, trees[i], 100, 10, 3, 3); 47 47 } 48 var children = new List<ISymbolicExpressionTree>(trees); 49 48 50 Stopwatch stopwatch = new Stopwatch(); 49 51 stopwatch.Start(); … … 52 54 var par0 = (ISymbolicExpressionTree)trees.SampleRandom(random).Clone(); 53 55 var par1 = (ISymbolicExpressionTree)trees.SampleRandom(random).Clone(); 54 SubtreeCrossover.Cross(random, par0, par1, 0.9, 100, 10);56 children[i] = SubtreeCrossover.Cross(random, par0, par1, 0.9, 100, 10); 55 57 } 58 trees = children; 56 59 } 57 60 stopwatch.Stop();
Note: See TracChangeset
for help on using the changeset viewer.