Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/13/18 16:56:35 (7 years ago)
Author:
bburlacu
Message:

#2895: Add solution skeleton for PushGP with genealogy analysis.

Location:
branches/2895_PushGP_GenealogyAnalysis
Files:
1 added
19 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Tests/Interpreter/ExpressionTest.cs

    r15334 r15771  
    1 namespace HeuristicLab.Tests.Interpreter {
    2   using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Boolean;
    3   using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Float;
    4   using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.FloatVector;
    5   using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.IntegerVector;
    6   using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.StringVector;
     1using HeuristicLab.Problems.ProgramSynthesis;
     2using Microsoft.VisualStudio.TestTools.UnitTesting;
    73
    8   using Microsoft.VisualStudio.TestTools.UnitTesting;
    9   using Problems.ProgramSynthesis.Base.Erc;
    10   using Problems.ProgramSynthesis.Base.Erc.Char;
    11   using Problems.ProgramSynthesis.Base.Erc.Integer;
    12   using Problems.ProgramSynthesis.Base.Erc.String;
    13   using Problems.ProgramSynthesis.Push.Configuration;
    14   using Problems.ProgramSynthesis.Push.Interpreter;
    15 
     4namespace HeuristicLab.Tests.Interpreter {
    165  public class ExpressionTest {
    176    protected PushInterpreter interpreter;
  • branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Tests/Interpreter/Expressions/BooleanExpressionTests.cs

    r14908 r15771  
    1 namespace HeuristicLab.Tests.Interpreter.Expressions {
    2   using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions;
    3   using HeuristicLab.Problems.ProgramSynthesis.Push.Stack;
     1using HeuristicLab.Problems.ProgramSynthesis;
     2using Microsoft.VisualStudio.TestTools.UnitTesting;
    43
    5   using Microsoft.VisualStudio.TestTools.UnitTesting;
    6 
     4namespace HeuristicLab.Tests.Interpreter.Expressions {
    75  [TestClass]
    86  public class BooleanExpressionTests : CommonTests<bool> {
    9     protected override string TypeName
    10     {
    11       get
    12       {
     7    protected override string TypeName {
     8      get {
    139        return "BOOLEAN";
    1410      }
    1511    }
    1612
    17     protected override IPushStack<bool> Stack
    18     {
    19       get
    20       {
     13    protected override IPushStack<bool> Stack {
     14      get {
    2115        return interpreter.BooleanStack;
    2216      }
  • branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Tests/Interpreter/Expressions/BooleanVectorExpressionsTests.cs

    r15017 r15771  
    11using System.Collections.Generic;
    22using System.Linq;
     3using HeuristicLab.Problems.ProgramSynthesis;
    34
    45namespace HeuristicLab.Tests.Interpreter.Expressions {
    5   using HeuristicLab.Problems.ProgramSynthesis.Push.Stack;
    66
    77  using Microsoft.VisualStudio.TestTools.UnitTesting;
  • branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Tests/Interpreter/Expressions/CharExpressionTests.cs

    r15017 r15771  
    1 namespace HeuristicLab.Tests.Interpreter.Expressions {
    2   using System.Linq;
     1using System.Linq;
     2using HeuristicLab.Problems.ProgramSynthesis;
     3using Microsoft.VisualStudio.TestTools.UnitTesting;
    34
    4   using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions;
    5   using HeuristicLab.Problems.ProgramSynthesis.Push.Stack;
    6 
    7   using Microsoft.VisualStudio.TestTools.UnitTesting;
    8 
     5namespace HeuristicLab.Tests.Interpreter.Expressions {
    96  [TestClass]
    107  public class CharExpressionTests : CommonTests<char> {
  • branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Tests/Interpreter/Expressions/CodeExpressionTests.cs

    r15017 r15771  
    1 namespace HeuristicLab.Tests.Interpreter.Expressions {
    2   using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions;
    3   using HeuristicLab.Problems.ProgramSynthesis.Push.Parser;
    4   using HeuristicLab.Problems.ProgramSynthesis.Push.Stack;
    5   using Microsoft.VisualStudio.TestTools.UnitTesting;
    6 
     1using Microsoft.VisualStudio.TestTools.UnitTesting;
     2using HeuristicLab.Problems.ProgramSynthesis;
     3
     4namespace HeuristicLab.Tests.Interpreter.Expressions {
    75
    86  [TestClass]
    97  public class CodeExpressionTests : CommonTests<Expression> {
    10     protected override string TypeName
    11     {
    12       get
    13       {
     8    protected override string TypeName {
     9      get {
    1410        return "CODE";
    1511      }
    1612    }
    1713
    18     protected override IPushStack<Expression> Stack
    19     {
    20       get
    21       {
     14    protected override IPushStack<Expression> Stack {
     15      get {
    2216        return interpreter.CodeStack;
    2317      }
  • branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Tests/Interpreter/Expressions/CommonTests.cs

    r15273 r15771  
    1 namespace HeuristicLab.Tests.Interpreter.Expressions {
    2   using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions;
    3   using HeuristicLab.Problems.ProgramSynthesis.Push.Stack;
    4 
    5   using Microsoft.VisualStudio.TestTools.UnitTesting;
    6 
     1using HeuristicLab.Problems.ProgramSynthesis;
     2using Microsoft.VisualStudio.TestTools.UnitTesting;
     3
     4namespace HeuristicLab.Tests.Interpreter.Expressions {
    75  public abstract class CommonTests<T> : ExpressionTest {
    86    protected const string FullInstructionNameFormat = "{0}.{1}";
  • branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Tests/Interpreter/Expressions/ExampleTests.cs

    r15273 r15771  
    11namespace HeuristicLab.Tests.Interpreter.Expressions {
    2   using HeuristicLab.Problems.ProgramSynthesis.Push.Parser;
     2  using HeuristicLab.Problems.ProgramSynthesis;
    33
    44  using Microsoft.VisualStudio.TestTools.UnitTesting;
  • branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Tests/Interpreter/Expressions/ExecExpressionTests.cs

    r15017 r15771  
    1 namespace HeuristicLab.Tests.Interpreter.Expressions {
    2   using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions;
    3   using HeuristicLab.Problems.ProgramSynthesis.Push.Parser;
    4   using HeuristicLab.Problems.ProgramSynthesis.Push.Stack;
     1using Microsoft.VisualStudio.TestTools.UnitTesting;
     2using HeuristicLab.Problems.ProgramSynthesis;
    53
    6   using Microsoft.VisualStudio.TestTools.UnitTesting;
    7 
     4namespace HeuristicLab.Tests.Interpreter.Expressions {
    85  [TestClass]
    96  public class ExecExpressionTests : CommonTests<Expression> {
    10     protected override string TypeName
    11     {
    12       get
    13       {
     7    protected override string TypeName {
     8      get {
    149        return "EXEC";
    1510      }
    1611    }
    1712
    18     protected override IPushStack<Expression> Stack
    19     {
    20       get
    21       {
     13    protected override IPushStack<Expression> Stack {
     14      get {
    2215        return interpreter.ExecStack;
    2316      }
  • branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Tests/Interpreter/Expressions/FloatExpressionTests.cs

    r14908 r15771  
    1 namespace HeuristicLab.Tests.Interpreter.Expressions {
    2   using System;
    3 
    4   using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions;
    5   using HeuristicLab.Problems.ProgramSynthesis.Push.Stack;
    6 
    7   using Microsoft.VisualStudio.TestTools.UnitTesting;
    8 
     1using System;
     2using HeuristicLab.Problems.ProgramSynthesis;
     3using Microsoft.VisualStudio.TestTools.UnitTesting;
     4
     5namespace HeuristicLab.Tests.Interpreter.Expressions {
    96  [TestClass]
    107  public class FloatExpressionTests : CommonTests<double> {
    118    private const double delta = 0.00001;
    129
    13     protected override string TypeName
    14     {
    15       get
    16       {
     10    protected override string TypeName {
     11      get {
    1712        return "FLOAT";
    1813      }
    1914    }
    2015
    21     protected override IPushStack<double> Stack
    22     {
    23       get
    24       {
     16    protected override IPushStack<double> Stack {
     17      get {
    2518        return interpreter.FloatStack;
    2619      }
  • branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Tests/Interpreter/Expressions/FloatVectorExpressionTests.cs

    r15017 r15771  
    11using System.Collections.Generic;
    22using System.Linq;
     3using HeuristicLab.Problems.ProgramSynthesis;
     4using Microsoft.VisualStudio.TestTools.UnitTesting;
    35
    46namespace HeuristicLab.Tests.Interpreter.Expressions {
    5   using HeuristicLab.Problems.ProgramSynthesis.Push.Stack;
    6 
    7   using Microsoft.VisualStudio.TestTools.UnitTesting;
    8 
    97  [TestClass]
    108  public class FloatVectorExpressionTests : VectorExpressionTests<double> {
  • branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Tests/Interpreter/Expressions/IntegerExpressionTests.cs

    r15017 r15771  
    1 namespace HeuristicLab.Tests.Interpreter.Expressions {
    2   using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions;
    3   using HeuristicLab.Problems.ProgramSynthesis.Push.Stack;
    4 
    5   using Microsoft.VisualStudio.TestTools.UnitTesting;
    6 
     1using HeuristicLab.Problems.ProgramSynthesis;
     2using Microsoft.VisualStudio.TestTools.UnitTesting;
     3
     4namespace HeuristicLab.Tests.Interpreter.Expressions {
    75  [TestClass]
    86  public class IntegerExpressionTests : CommonTests<long> {
    9     protected override string TypeName
    10     {
    11       get
    12       {
     7    protected override string TypeName {
     8      get {
    139        return "INTEGER";
    1410      }
    1511    }
    1612
    17     protected override IPushStack<long> Stack
    18     {
    19       get
    20       {
     13    protected override IPushStack<long> Stack {
     14      get {
    2115        return interpreter.IntegerStack;
    2216      }
  • branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Tests/Interpreter/Expressions/IntegerVectorExpressionTests.cs

    r15017 r15771  
    11using System.Collections.Generic;
    22using System.Linq;
     3using HeuristicLab.Problems.ProgramSynthesis;
    34
    45namespace HeuristicLab.Tests.Interpreter.Expressions {
    5   using HeuristicLab.Problems.ProgramSynthesis.Push.Stack;
    66
    77  using Microsoft.VisualStudio.TestTools.UnitTesting;
  • branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Tests/Interpreter/Expressions/NameExpressionTests.cs

    r14952 r15771  
    1 namespace HeuristicLab.Tests.Interpreter.Expressions {
    2   using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions;
    3   using HeuristicLab.Problems.ProgramSynthesis.Push.Generators;
    4   using HeuristicLab.Problems.ProgramSynthesis.Push.Stack;
     1using HeuristicLab.Problems.ProgramSynthesis;
     2using Microsoft.VisualStudio.TestTools.UnitTesting;
    53
    6   using Microsoft.VisualStudio.TestTools.UnitTesting;
     4namespace HeuristicLab.Tests.Interpreter.Expressions {
    75
    86  [TestClass]
    97  public class NameExpressionTests : CommonTests<string> {
    10     protected override string TypeName
    11     {
    12       get
    13       {
     8    protected override string TypeName {
     9      get {
    1410        return "NAME";
    1511      }
    1612    }
    1713
    18     protected override IPushStack<string> Stack
    19     {
    20       get
    21       {
     14    protected override IPushStack<string> Stack {
     15      get {
    2216        return interpreter.NameStack;
    2317      }
  • branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Tests/Interpreter/Expressions/PrintExpressionTests.cs

    r15289 r15771  
    22  using System.Globalization;
    33
    4   using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions;
     4  using HeuristicLab.Problems.ProgramSynthesis;
    55
    66  using Microsoft.VisualStudio.TestTools.UnitTesting;
  • branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Tests/Interpreter/Expressions/PushProgramTests.cs

    r15017 r15771  
    1 namespace HeuristicLab.Tests.Interpreter.Expressions {
    2   using HeuristicLab.Problems.ProgramSynthesis.Push.Parser;
     1using HeuristicLab.Problems.ProgramSynthesis;
     2using Microsoft.VisualStudio.TestTools.UnitTesting;
    33
    4   using Microsoft.VisualStudio.TestTools.UnitTesting;
    5 
     4namespace HeuristicLab.Tests.Interpreter.Expressions {
    65  [TestClass]
    76  public class PushProgramTests : ExpressionTest {
  • branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Tests/Interpreter/Expressions/StandardTests.cs

    r15017 r15771  
    1 namespace HeuristicLab.Tests.Interpreter.Expressions {
    2   using System;
    3   using System.Collections.Generic;
    4   using System.Diagnostics;
    5   using System.Linq;
     1using System;
     2using System.Collections.Generic;
     3using System.Diagnostics;
     4using System.Linq;
     5using HeuristicLab.Problems.ProgramSynthesis;
     6using Microsoft.VisualStudio.TestTools.UnitTesting;
    67
    7   using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions;
    8   using HeuristicLab.Problems.ProgramSynthesis.Push.Parser;
    9 
    10   using Microsoft.VisualStudio.TestTools.UnitTesting;
    11 
     8namespace HeuristicLab.Tests.Interpreter.Expressions {
    129  [TestClass]
    1310  public class StandardTests {
  • branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Tests/Interpreter/Expressions/StringExpressionTests.cs

    r15017 r15771  
    11using System.Linq;
     2using HeuristicLab.Problems.ProgramSynthesis;
    23
    34namespace HeuristicLab.Tests.Interpreter.Expressions {
    4   using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions;
    5   using HeuristicLab.Problems.ProgramSynthesis.Push.Stack;
    65
    76  using Microsoft.VisualStudio.TestTools.UnitTesting;
  • branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Tests/Interpreter/Expressions/StringVectorExpressionTests.cs

    r15017 r15771  
    1 namespace HeuristicLab.Tests.Interpreter.Expressions {
    2   using System.Collections.Generic;
    3   using System.Linq;
     1using System.Collections.Generic;
     2using System.Linq;
     3using HeuristicLab.Problems.ProgramSynthesis;
     4using Microsoft.VisualStudio.TestTools.UnitTesting;
    45
    5   using HeuristicLab.Problems.ProgramSynthesis.Push.Stack;
    6 
    7   using Microsoft.VisualStudio.TestTools.UnitTesting;
    8 
     6namespace HeuristicLab.Tests.Interpreter.Expressions {
    97  [TestClass]
    108  public class StringVectorExpressionTests : VectorExpressionTests<string> {
  • branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Tests/Interpreter/Expressions/VectorExpressionTests.cs

    r15017 r15771  
    22  using System.Collections.Generic;
    33  using System.Linq;
    4 
    5   using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions;
    6   using HeuristicLab.Problems.ProgramSynthesis.Push.Stack;
    7 
     4  using HeuristicLab.Problems.ProgramSynthesis;
    85  using Microsoft.VisualStudio.TestTools.UnitTesting;
    96
Note: See TracChangeset for help on using the changeset viewer.