Changeset 15471 for branches/2817-BinPackingSpeedup/HeuristicLab.Problems.BinPacking/3.3/3D/Packer/BinPackerFreeVolumeBestFit.cs
- Timestamp:
- 11/14/17 15:31:22 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2817-BinPackingSpeedup/HeuristicLab.Problems.BinPacking/3.3/3D/Packer/BinPackerFreeVolumeBestFit.cs
r15462 r15471 36 36 public BinPackerFreeVolumeBestFit() : base() { } 37 37 38 /// <summary> 39 /// Packs all items by using a free volume best fit strategy. 40 /// If there is no bin packing item, a new one will be created an the current item will be packed into it. 41 /// If there exists at least on bin packing item in the packing list they are being sortet by their free volume ascending. 42 /// The current item will be packed into the bin packing with the fewest free volume and enought space for placing it. 43 /// If an item could not be placed in any bin packing, a new one will be created for the item. 44 /// </summary> 45 /// <param name="sortedItems"></param> 46 /// <param name="binShape"></param> 47 /// <param name="items"></param> 48 /// <param name="useStackingConstraints"></param> 49 /// <returns>Returns a collection of bin packing 3d objects. Each object represents a bin and the packed items</returns> 38 50 public override IList<BinPacking3D> PackItems(Permutation sortedItems, PackingShape binShape, IList<PackingItem> items, bool useStackingConstraints) { 39 51 IList<BinPacking3D> packingList = new List<BinPacking3D>(); 40 52 IList<int> remainingIds = new List<int>(sortedItems); 41 42 53 43 54 foreach (int remainingId in remainingIds) {
Note: See TracChangeset
for help on using the changeset viewer.