Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/08/17 11:57:42 (7 years ago)
Author:
pkimmesw
Message:

#2665 Storable problem data, Renamings due to typos, Removed GP from class names

File:
1 edited

Legend:

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

    r14727 r14733  
    3636
    3737    static async Task EvaluateStepwise(string code) {
    38       var interpreter = new PushGpInterpreter(new PushGpConfiguration {
     38      var interpreter = new PushGpInterpreter(new PushConfiguration {
    3939        TopLevelPushCode = false
    4040      });
     
    9090
    9191    static void PerformanceTestInterpreter() {
    92       var program = PushGPParser.Parse("( 5 INTEGER.DUP INTEGER.+ )");
     92      var program = PushParser.Parse("( 5 INTEGER.DUP INTEGER.+ )");
    9393
    9494      var interpreter = new PushGpInterpreter();
     
    106106
    107107    static void PerformanceParallelTestInterpreter() {
    108       var program = PushGPParser.Parse("( 5 INTEGER.DUP INTEGER.+ )");
     108      var program = PushParser.Parse("( 5 INTEGER.DUP INTEGER.+ )");
    109109      //var program = new ExecExpandExpression(new Expression[]
    110110      //{
     
    117117      var iterations = 100;
    118118      var amount = 600000;
    119       var pool = new PushGpInterpreterPool(iterations);
     119      var pool = new PushInterpreterPool(iterations);
    120120
    121121      sw.Start();
     
    152152      var execCounters = new int[parallelism];
    153153
    154       var config = new PushGpConfiguration {
     154      var config = new PushConfiguration {
    155155        EvalPushLimit = 4096,
    156156        //IsCodeStackEnabled = false,
     
    162162      };
    163163
    164       var pool = new PushGpInterpreterPool(config);
     164      var pool = new PushInterpreterPool(config);
    165165
    166166      sw.Start();
     
    185185
    186186    static void TestPool() {
    187       var pool = new PushGpInterpreterPool();
     187      var pool = new PushInterpreterPool();
    188188      var normal = new PushGpInterpreter();
    189189      int id;
     
    217217      Console.WriteLine(sw.Elapsed);
    218218
    219       var pool = new PushGpInterpreterPool();
     219      var pool = new PushInterpreterPool();
    220220      sw.Restart();
    221221      for (var i = 0; i < iterations; i++) {
     
    231231    static void TestSimplifier() {
    232232      var interpreter = new PushGpInterpreter();
    233       var program = PushGPParser.Parse("( 5 INTEGER.DUP FLOAT.+ INTEGER.+ )") as ExecExpandExpression;
     233      var program = PushParser.Parse("( 5 INTEGER.DUP FLOAT.+ INTEGER.+ )") as ExecExpandExpression;
    234234      var simplifier = new RandomSimplifier() { Trys = 10 };
    235235      var random = new FastRandom(1337);
Note: See TracChangeset for help on using the changeset viewer.