Changeset 16711 for branches/2936_GQAPIntegration/HeuristicLab.Tests/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4/SubtreeCrossoverTest.cs
- Timestamp:
- 03/25/19 17:18:21 (5 years ago)
- Location:
- branches/2936_GQAPIntegration/HeuristicLab.Tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2936_GQAPIntegration/HeuristicLab.Tests
- Property svn:mergeinfo changed
-
branches/2936_GQAPIntegration/HeuristicLab.Tests/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4/SubtreeCrossoverTest.cs
r15583 r16711 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 8Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 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.