Changes between Initial Version and Version 1 of Ticket #2106, comment 6
- Timestamp:
- 09/11/13 17:14:58 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #2106, comment 6
initial v1 1 1 The 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). 2 2 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.3 I 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. 4 4 5 5 I still can't explain this though.