greedypacker icon indicating copy to clipboard operation
greedypacker copied to clipboard

How to incorporate constraints into the algorithm?

Open ricardogffcouto opened this issue 5 years ago • 1 comments

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.

ricardogffcouto avatar Jan 25 '20 14:01 ricardogffcouto

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.

solomon-b avatar May 11 '20 16:05 solomon-b