- Timestamp:
- 07/24/12 16:57:16 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.Knapsack/3.3/Improvers/KnapsackImprovementOperator.cs
r8319 r8320 118 118 int[] order = new int[ratio.Length]; 119 119 foreach (var x in ratio.Select((x, index) => new { Value = x, ValueIndex = index }) 120 .OrderBy (x => x.Value)120 .OrderByDescending(x => x.Value) 121 121 .Select((x, index) => new { ValueIndex = x.ValueIndex, ItemIndex = index })) { 122 122 order[x.ItemIndex] = x.ValueIndex;
Note: See TracChangeset
for help on using the changeset viewer.