- Timestamp:
- 03/31/11 19:39:25 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Tests/AllArchitectureAlteringOperatorsTest.cs
r5917 r5918 90 90 newTrees.Add(selectedTree); 91 91 } else { 92 stopwatch.Start(); 92 93 // crossover 93 94 SymbolicExpressionTree par0 = null; … … 98 99 } while (par0.Length > MAX_TREE_LENGTH || par1.Length > MAX_TREE_LENGTH); 99 100 var newTree = SubtreeCrossover.Cross(random, par0, par1, 0.9, MAX_TREE_LENGTH, MAX_TREE_DEPTH); 101 stopwatch.Stop(); 100 102 Util.IsValid(newTree); 101 103 newTrees.Add(newTree); … … 115 117 ); 116 118 117 Assert.IsTrue(failedEvents * 100.0 / (POPULATION_SIZE * N_ITERATIONS / 2.0) < 25.0); // 75% of architecture operations must succeed119 Assert.IsTrue(failedEvents * 100.0 / (POPULATION_SIZE * N_ITERATIONS / 2.0) < 75.0); // 25% of architecture operations must succeed 118 120 Assert.IsTrue(Math.Round(1000.0 / (msPerOperation)) > 1000); // must achieve more than 1000 ops per second 119 121 }
Note: See TracChangeset
for help on using the changeset viewer.