greedypacker
greedypacker copied to clipboard
How to incorporate constraints into the algorithm?
Hello!
Can you point me to the right direction on how to incorporate constraints into the algorithm? Specifically, each bin has a maximum weight, and the algorithm should pack the items taking into account that maximum weight.
Hi. Its been a while since I have worked on this code base. I suspect there is a way to modify the algorithms to take a predicate function (or list of predicate functions) to represent constraints on the bins. I'll need to review the implementation and think about how this could work, then I'll either attempt an implementation or create a Help Wanted
issue depending on the scope of changes required.