Changeset 16300


Ignore:
Timestamp:
11/14/18 15:27:42 (5 weeks ago)
Author:
bburlacu
Message:

#2963: Add README.txt and remove unsupported code from benchmarks.

Location:
misc/tools/HeuristicLab.Benchmarks/HeuristicLab.Benchmarks
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • misc/tools/HeuristicLab.Benchmarks/HeuristicLab.Benchmarks/Encodings.SymbolicExpressionTree/SubtreeCrossoverPerformance.cs

    r16299 r16300  
    3939    public void StandardCrossover() => TestCrossoverPerformance(StandardCrossover);
    4040
    41     [Benchmark]
    42     public void SimpleCrossoverRandom() => TestCrossoverPerformance(SimpleCrossoverRandom);
    43 
    44     [Benchmark]
    45     public void SimpleCrossoverProportional() => TestCrossoverPerformance(SimpleCrossoverProportional);
    46 
    4741    #region helper methods
    48     private void SimpleCrossoverRandom(IRandom random, ISymbolicExpressionTree par0, ISymbolicExpressionTree par1, double internalProb, int maxLength, int maxDepth)
    49       => SimpleCrossover.Cross(random, par0, par1, internalProb, maxLength, maxDepth, false, false);
    50 
    51 
    52     private void SimpleCrossoverProportional(IRandom random, ISymbolicExpressionTree par0, ISymbolicExpressionTree par1, double internalProb, int maxLength, int maxDepth)
    53       => SimpleCrossover.Cross(random, par0, par1, internalProb, maxLength, maxDepth, false, true);
    54 
    5542    private void StandardCrossover(IRandom random, ISymbolicExpressionTree par0, ISymbolicExpressionTree par1, double internalProb, int maxLength, int maxDepth)
    5643      => SubtreeCrossover.Cross(random, par0, par1, internalProb, maxLength, maxDepth);
  • misc/tools/HeuristicLab.Benchmarks/HeuristicLab.Benchmarks/Random/RandomPerformance.cs

    r16299 r16300  
    77  [MinColumn, MaxColumn, MeanColumn, MedianColumn]
    88  public class RandomPerformance {
    9     //private readonly IRandom jsfRandom = new JsfRandom(1234);
    109    private readonly IRandom mersenneTwister = new MersenneTwister(1234);
    1110    private readonly IRandom fastRandom = new FastRandom(1234);
     
    1413    public int N { get; set; }
    1514
    16     //[Benchmark] public double SimpleRandomInt() => IntPerformance(jsfRandom);
    1715    [Benchmark] public double FastRandomInt() => IntPerformance(fastRandom);
    1816    [Benchmark] public double MersenneTwisterInt() => IntPerformance(mersenneTwister);
    1917
    20     //[Benchmark] public double SimpleRandomDouble() => DoublePerformance(jsfRandom);
    2118    [Benchmark] public double FastRandomDouble() => DoublePerformance(fastRandom);
    2219    [Benchmark] public double MersenneTwisterDouble() => DoublePerformance(mersenneTwister);
Note: See TracChangeset for help on using the changeset viewer.