For the application I'm working on, I need something like a packaging algorithm implemented in Python, see here for more details . The main idea is that I have n objects of different sizes, which I need to fit into n bins, where the number of boxes is limited and the size of both objects and bins is fixed. Objects / boxes can be either 1d or 2d, interested in seeing both. (I think the 3D objects are probably larger than I need.)
I know that there are many algorithms that address this issue, such as Best Fit Decreasing and First Fit Decreasing, but I was hoping there might be an implementation in Python (or PHP / C ++ / Java, really I am not so picky). Any ideas?
source share