- Apr 10, 2005
- 2,131
- 21
- 81
Allright, here's the situation. I have pieces of a raw material, each a fixed length. I have a collection of piece lengths and the amount of each piece I need. A piece or pieces gets cut from a blank, and any leftover that can't fit another piece is waste.
How do I calculate the combinations needed to minimize waste?
Example: My blanks are 144 inches long. I need 14 pieces at 72 inches, 7 at 68, 3 at 30. What do I cut out of each blank?
I fully expect that this has to have been covered before somewhere, since I know bucketloads of industries encounter this sort of problem. I figure there's no need to reinvent the wheel here. Anyone have ideas, or a name for this type of algorithm so I have somewhere to start looking?
Edit: Oh look. Bin Packing Problem. Efficient Optimal, apparently, isn't going to happen. Close to optimal, apparently how close to optimal you're going to get is determined by how much time you're willing to spend.
How do I calculate the combinations needed to minimize waste?
Example: My blanks are 144 inches long. I need 14 pieces at 72 inches, 7 at 68, 3 at 30. What do I cut out of each blank?
I fully expect that this has to have been covered before somewhere, since I know bucketloads of industries encounter this sort of problem. I figure there's no need to reinvent the wheel here. Anyone have ideas, or a name for this type of algorithm so I have somewhere to start looking?
Edit: Oh look. Bin Packing Problem. Efficient Optimal, apparently, isn't going to happen. Close to optimal, apparently how close to optimal you're going to get is determined by how much time you're willing to spend.
