Changeset 15646 for branches/2817-BinPackingSpeedup/HeuristicLab.Problems.BinPacking/3.3/3D/Sorting/PermutationPackingItemSorter.cs
- Timestamp:
- 01/24/18 13:17:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2817-BinPackingSpeedup/HeuristicLab.Problems.BinPacking/3.3/3D/Sorting/PermutationPackingItemSorter.cs
r15617 r15646 136 136 return new Permutation(PermutationTypes.Absolute, 137 137 items.Select((v, i) => new { Index = i, Item = v }) 138 .OrderByDescending(x => x.Item.Material) 138 ./*OrderByDescending(x => x.Item.IsStackabel ? 1 : 0) 139 .*/OrderByDescending(x => x.Item.Material) 139 140 .ThenByDescending(x => x.Item.Depth * x.Item.Width * x.Item.Height) 140 141 .ThenByDescending(x => x.Item.Height) … … 150 151 return new Permutation(PermutationTypes.Absolute, 151 152 items.Select((v, i) => new { Index = i, Item = v }) 152 .OrderByDescending(x => x.Item.Material) 153 ./*OrderByDescending(x => x.Item.IsStackabel ? 1 : 0) 154 .*/OrderByDescending(x => x.Item.Material) 153 155 .ThenByDescending(x => x.Item.Height) 154 156 .ThenByDescending(x => x.Item.Depth * x.Item.Width * x.Item.Height) … … 164 166 return new Permutation(PermutationTypes.Absolute, 165 167 items.Select((v, i) => new { Index = i, Item = v }) 166 .OrderByDescending(x => x.Item.Material) 168 ./*OrderByDescending(x => x.Item.IsStackabel ? 1 : 0) 169 .*/OrderByDescending(x => x.Item.Material) 167 170 .ThenByDescending(x => x.Item.Depth * x.Item.Width) 168 171 .ThenByDescending(x => x.Item.Height) … … 178 181 return new Permutation(PermutationTypes.Absolute, 179 182 items.Select((v, i) => new { Index = i, Item = v }) 180 .OrderByDescending(x => x.Item.Material) 183 ./*OrderByDescending(x => x.Item.IsStackabel ? 1 : 0) 184 .*/OrderByDescending(x => x.Item.Material) 181 185 .ThenByDescending(x => x.Item.Height) 182 186 .ThenByDescending(x => x.Item.Depth * x.Item.Width)
Note: See TracChangeset
for help on using the changeset viewer.