Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pack all items - many available boxes #33

Open
noptools opened this issue Jul 18, 2021 · 1 comment
Open

Pack all items - many available boxes #33

noptools opened this issue Jul 18, 2021 · 1 comment

Comments

@noptools
Copy link

David
Would you please suggest how one could modify the code so that rather than just packing only one box at a time, that it would have an infinite number of each of the specified containers, and find the 'optimal' (or very good ;) packing of all items, for the minimum total container volume.

@mjrichards91
Copy link

Pass all known items and boxes into the PackingService.Pack method and first find which container has the highest PercentContainerVolumePacked. You can then get all of the UnpackedItems from there and re-run the PackingService.Pack method with those UnpackedItems (again finding which container has the highest PercentContainerVolumePacked) until all items are packed. In the end, you would have the multiple boxes in which everything was packed in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants