Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/11/10 02:23:25 (15 years ago)
Author:
abeham
Message:

Updated tabu search and added an engine for the berlin52 TSP #840
Also added a BestQualityMemorizer operator in HeuristicLab.Analysis-3.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.Permutation/3.3/Manipulators/InversionManipulator.cs

    r2994 r2997  
    4747      } while (breakPoint2 == breakPoint1);
    4848      if (breakPoint2 < breakPoint1) { int h = breakPoint1; breakPoint1 = breakPoint2; breakPoint2 = h; }
     49      Apply(permutation, breakPoint1, breakPoint2);
     50    }
    4951
     52    public static void Apply(Permutation permutation, int breakPoint1, int breakPoint2) {
    5053      for (int i = 0; i <= (breakPoint2 - breakPoint1) / 2; i++) {  // invert permutation between breakpoints
    5154        int temp = permutation[breakPoint1 + i];
Note: See TracChangeset for help on using the changeset viewer.