Free cookie consent management tool by TermsFeed Policy Generator

Changeset 5918


Ignore:
Timestamp:
03/31/11 19:39:25 (14 years ago)
Author:
gkronber
Message:

#1418 minor changes in all architecture altering operators unit test.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Tests/AllArchitectureAlteringOperatorsTest.cs

    r5917 r5918  
    9090            newTrees.Add(selectedTree);
    9191          } else {
     92            stopwatch.Start();
    9293            // crossover
    9394            SymbolicExpressionTree par0 = null;
     
    9899            } while (par0.Length > MAX_TREE_LENGTH || par1.Length > MAX_TREE_LENGTH);
    99100            var newTree = SubtreeCrossover.Cross(random, par0, par1, 0.9, MAX_TREE_LENGTH, MAX_TREE_DEPTH);
     101            stopwatch.Stop();
    100102            Util.IsValid(newTree);
    101103            newTrees.Add(newTree);
     
    115117        );
    116118
    117       Assert.IsTrue(failedEvents * 100.0 / (POPULATION_SIZE * N_ITERATIONS / 2.0) < 25.0); // 75% of architecture operations must succeed
     119      Assert.IsTrue(failedEvents * 100.0 / (POPULATION_SIZE * N_ITERATIONS / 2.0) < 75.0); // 25% of architecture operations must succeed
    118120      Assert.IsTrue(Math.Round(1000.0 / (msPerOperation)) > 1000); // must achieve more than 1000 ops per second
    119121    }
Note: See TracChangeset for help on using the changeset viewer.