Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/19/10 02:15:10 (14 years ago)
Author:
swagner
Message:

Operator architecture refactoring (#95)

  • worked on operators and SGA
  • improved performance
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Permutation/3.3/CyclicCrossover.cs

    r2829 r2830  
    5454      if (parent1.Length != parent2.Length) throw new ArgumentException("CyclicCrossover: The parent permutations are of unequal length");
    5555      int length = parent1.Length;
    56       Permutation result = new Permutation(length);
     56      int[] result = new int[length];
    5757      bool[] indexCopied = new bool[length];
    5858      int[] invParent1 = new int[length];
     
    8989      } while (j < length);
    9090
    91       return result;
     91      return new Permutation(result);
    9292    }
    9393
Note: See TracChangeset for help on using the changeset viewer.