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/PartiallyMatchedCrossover.cs

    r2829 r2830  
    5757      if (parent1.Length < 4) throw new ArgumentException("PartiallyMatchedCrossover: The parent permutation must be at least of size 4");
    5858      int length = parent1.Length;
    59       Permutation result = new Permutation(length); ;
     59      int[] result = new int[length];
    6060      int[] invResult = new int[length];
    6161
     
    8585      }
    8686
    87       return result;
     87      return new Permutation(result);
    8888    }
    8989
Note: See TracChangeset for help on using the changeset viewer.