Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/18/17 01:15:25 (8 years ago)
Author:
pkimmesw
Message:

#2665 BenchmarkSuite, all examples, partially tested, VectorExpressions added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PushGP/HeuristicLab.PushGP/FeatureTests/Program.cs

    r14834 r14875  
    88  using System.Threading;
    99  using DirtyList;
     10
     11  using HeuristicLab.Problems.ProgramSynthesis.Base.Erc;
    1012  using HeuristicLab.Problems.ProgramSynthesis.Push.Configuration;
    1113  using HeuristicLab.Problems.ProgramSynthesis.Push.Data.Pool;
    12   using HeuristicLab.Problems.ProgramSynthesis.Push.Erc;
    1314  using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions;
    1415  using HeuristicLab.Problems.ProgramSynthesis.Push.Generators.CodeGenerator;
     
    3233      //Test3();
    3334
    34       TestCollectionPooling();
     35      //TestCollectionPooling();
    3536
    3637      //DirtyListTest();
     
    4546      //PerformanceParallelTestInterpreter();
    4647      //PerformanceTestLinearCodeGenerator();
    47       //TestRobustness();
     48      TestRobustness();
    4849      //TestPool();
    4950      //TestPoolPerformance();
     
    380381        ErcOptions = {
    381382          ErcProbability = 0.2,
    382           FloatErcOptions = new FloatErcOptions(-100.5, 100.5, 1000.5, 2000.5),
    383           IntegerErcOptions = new IntegerErcOptions(-10, 10, 100, 200),
     383          FloatErcOptions = new FloatErcOptions(-100.5, 100.5, new [] { 1000.5, 2000.5 }),
     384          IntegerErcOptions = new IntegerErcOptions(-10, 10, new [] { 100, 200 }),
    384385          StringErcOptions =
    385             new StringErcOptions { AllowSpace = true, SpaceProbability = 0.2 },
    386           BooleanErcOptions = new BooleanErcOptions(),
    387           CharErcOptions = new CharErcOptions(Convert.ToInt32('a'), Convert.ToInt32('Z'))
     386            new StringErcOptions
     387              {
     388                IsEnabled = true,
     389                AllowSpace = true,
     390                SpaceProbability = 0.2
     391              },
     392          BooleanErcOptions = new BooleanErcOptions(true, true),
     393          CharErcOptions = new CharErcOptions('a', 'Z')
    388394        }
    389395      };
     
    401407      var maxProgramSizeLimit = 1024;
    402408      var partitionSize = 100000;
    403       var execCounters = new int[parallelism];
     409      var execCounters = new long[parallelism];
    404410
    405411      var config = new PushConfiguration {
     
    408414      };
    409415
     416      config.DisableStack(StackTypes.Exec, true);
     417      config.DisableStack(StackTypes.Code, true);
     418      config.DisableStack(StackTypes.Float, true);
     419
    410420      config.DisableExpression<ExecYExpression>();
    411421
     
    422432
    423433            execCounters[i] += interpreter.ExecCounter;
    424             interpreter.Clear();
     434            interpreter.Reset();
    425435          }
    426436        }
Note: See TracChangeset for help on using the changeset viewer.