- Timestamp:
- 02/19/10 02:15:10 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Permutation/3.3/CyclicCrossover.cs
r2829 r2830 54 54 if (parent1.Length != parent2.Length) throw new ArgumentException("CyclicCrossover: The parent permutations are of unequal length"); 55 55 int length = parent1.Length; 56 Permutation result = new Permutation(length);56 int[] result = new int[length]; 57 57 bool[] indexCopied = new bool[length]; 58 58 int[] invParent1 = new int[length]; … … 89 89 } while (j < length); 90 90 91 return result;91 return new Permutation(result); 92 92 } 93 93
Note: See TracChangeset
for help on using the changeset viewer.