Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/16/10 00:56:44 (14 years ago)
Author:
swagner
Message:

Renamed solution encoding plugins (#909)

Location:
trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3

    • Property svn:ignore
      •  

        old new  
        22bin
        33obj
        4 HeuristicLabEncodingsPermutationPlugin.cs
         4HeuristicLabEncodingsPermutationEncodingPlugin.cs
  • trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Tests/OrderCrossover2Test.cs

    r2930 r3053  
    11using HeuristicLab.Core;
    22using Microsoft.VisualStudio.TestTools.UnitTesting;
    3 using HeuristicLab.Encodings.Permutation;
     3using HeuristicLab.Encodings.PermutationEncoding;
    44
    5 namespace HeuristicLab.Encodings.Permutation_33.Tests {
     5namespace HeuristicLab.Encodings.PermutationEncoding_33.Tests {
    66    /// <summary>
    77    ///This is a test class for OrderCrossover2Test and is intended
     
    6969      bool exceptionFired = false;
    7070      try {
    71         target.Cross(random, new ItemArray<Permutation.Permutation>(new Permutation.Permutation[] {
    72           new Permutation.Permutation(4), new Permutation.Permutation(4), new Permutation.Permutation(4)}));
     71        target.Cross(random, new ItemArray<Permutation>(new Permutation[] {
     72          new Permutation(4), new Permutation(4), new Permutation(4)}));
    7373      } catch (System.InvalidOperationException) {
    7474        exceptionFired = true;
     
    8383    public void OrderCrossover2ApplyTest() {
    8484      TestRandom random = new TestRandom();
    85       Permutation.Permutation parent1, parent2, expected, actual;
     85      Permutation parent1, parent2, expected, actual;
    8686      // The following test is based on an example from Affenzeller, M. et al. 2009. Genetic Algorithms and Genetic Programming - Modern Concepts and Practical Applications. CRC Press. p. 135.
    8787      random.Reset();
    8888      random.IntNumbers = new int[] { 5, 7 };
    89       parent1 = new Permutation.Permutation(new int[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 });
     89      parent1 = new Permutation(new int[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 });
    9090      Assert.IsTrue(parent1.Validate());
    91       parent2 = new Permutation.Permutation(new int[] { 2, 5, 6, 0, 9, 1, 3, 8, 4, 7 });
     91      parent2 = new Permutation(new int[] { 2, 5, 6, 0, 9, 1, 3, 8, 4, 7 });
    9292      Assert.IsTrue(parent2.Validate());
    93       expected = new Permutation.Permutation(new int[] { 2, 0, 9, 1, 3, 5, 6, 7, 8, 4 });
     93      expected = new Permutation(new int[] { 2, 0, 9, 1, 3, 5, 6, 7, 8, 4 });
    9494      Assert.IsTrue(expected.Validate());
    9595      actual = OrderCrossover2.Apply(random, parent1, parent2);
     
    101101      bool exceptionFired = false;
    102102      try {
    103         OrderCrossover.Apply(random, new Permutation.Permutation(8), new Permutation.Permutation(6));
     103        OrderCrossover.Apply(random, new Permutation(8), new Permutation(6));
    104104      } catch (System.ArgumentException) {
    105105        exceptionFired = true;
Note: See TracChangeset for help on using the changeset viewer.