Changes between Initial Version and Version 1 of Ticket #2106, comment 6


Ignore:
Timestamp:
09/11/13 17:14:58 (8 years ago)
Author:
abeham
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2106, comment 6

    initial v1  
    11The problem is likely to be that the Tabu Search uses the SubScopeSorter which uses Array.Sort - an unstable sort and the GA uses OrderBy - a stable sort (by MSDN).
    22
    3 I created a patch that wraps the `Comparison<T>` into Comparer and replaced `list.Sort` with `list = list.OrderBy(x => x, new TempComparer(comparison)).ToList()`. I see that it returns 1473 as BestQuality in the tests (with or without testsettings enabled) and in the Optimizer.
     3I created a patch that wraps the `Comparison<T>` into a TempComparer and replaced `list.Sort` with `list = list.OrderBy(x => x, new TempComparer(comparison)).ToList()`. I see that it returns 1473 as BestQuality in the tests (with or without testsettings enabled) and in the Optimizer.
    44
    55I still can't explain this though.