olragon/binpackingjs

[Feature] Disable multiple bin packing

amitrajitbose opened this issue · 3 comments

Really nice work on implementing this. I am trying to disable multiple bin packing, rather I want to use a single bin for packing all the items.
Is there any undocumented way for the library to support single bin packing for 3D packing instead of multiple bin packing? @olragon
If not, do you have any idea how to tweak this setting?

@amitrajitbose

  • implement custom heuristics and feed it to Bin
  • the simplest and dumbest way is brute force, try to pack all items with single bin then compare

@olragon
What about 3D packing? How do we add a custom heuristic for it. The constructor does not take any such argument.

@amitrajitbose
You can subclass Packer