When I say box I am talking about shipping boxes.
I have a number of random sized, small items that I need to pack into as few boxes as possible. I need to know what box sizes are optimal.
- All items are rectangular prisms.
- It's easy to exclude a box size for an item which is too large to fit.
- I know the box sizes (they are the available box sizes which I have in-stock)
- Items can be positioned horizontally or vertically, not diagonal.
- As many boxes as required can be used. The goal is to use as few boxes as possible.
- Multiple box sizes may be used to optimally fit the varying-sized items.
What algorithm exists that allows me to calculate the box sizes I need to use for optimal space usage? To fit the most items into as few boxes as possible.
The available box sizes come from what I have available, in-stock. You can create a finite number of made up box sizes for example purposes.