You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have gone through this case, and it's obvious that the Items could be just over each other but the algorithm is putting 3 of them in UnfittedItems, here is the case:
This is the bin and the items:
new Bin('medium-bin-identifier', 26.5, 19.5, 20, 25)
new Item('item-id-10', 24, 17, 4, 1.5),
new Item('item-id-11', 24, 17, 2, 1.1),
new Item('item-id-12', 24, 17, 2.6, 0.8),
new Item('item-id-13', 24, 17, 2.6, 0.8),
new Item('item-id-14', 24, 17, 2.6, 0.8),
new Item('item-id-15', 24, 17, 2.6, 0.8)
And when I try to pack them inside the bin either with looping through the items and using the $packager->packItemToBin($item,$bin)
or directly using $packager->withFirstFit()->pack()
Only the items 10, 11, 12 fit. The 13 14 15 don't fit
When it's obvious that all the items have the same length and height which are less than the bin length and height, and the total breadth is less than the bin breadth. And the total weight is less than the bin max weight.
So the algorithm start stacking the books successfully until it reaches the 13th item, it fails to add it, but this is false.
I have gone through this case, and it's obvious that the Items could be just over each other but the algorithm is putting 3 of them in UnfittedItems, here is the case:
This is the bin and the items:
And when I try to pack them inside the bin either with looping through the items and using the
$packager->packItemToBin($item,$bin)
or directly using
$packager->withFirstFit()->pack()
Only the items 10, 11, 12 fit. The 13 14 15 don't fit
When it's obvious that all the items have the same length and height which are less than the bin length and height, and the total breadth is less than the bin breadth. And the total weight is less than the bin max weight.
So the algorithm start stacking the books successfully until it reaches the 13th item, it fails to add it, but this is false.
This is the result:
The text was updated successfully, but these errors were encountered: