dvdoug / BoxPacker

4D bin packing / knapsack problem solver
MIT License
612 stars 156 forks source link

Bug in choosing best box (easy packing) #621

Open DavideWasTaken opened 1 week ago

DavideWasTaken commented 1 week ago

Hi, the algorithm works well and thanks for the beautiful repo! i notice in a simple packing, a error while choosing the best box.

BOX1:

Inner Width Inner Length Inner Depth

260 415 285

BOX2:

Inner Width Inner Length Inner Depth

250 425 150

item 1:

"QUANTITY": 2, "WEIGHT": 0.303, "LENGHT": 260, "WIDE": 198

item 2:

"QUANTITY": 2, "WEIGHT": 0.231, "LENGHT": 175, "WIDE": 122, "HEIGHT": 45

with beStrictAboutItemOrdering(true); it chooses the BOX2 (CORRECT) but it show this 3d image and the a item is floating in a lot of cases

with beStrictAboutItemOrdering(false); it chooses the BOX1 (WRONT) but this property works for the majority of my cases and 3d is good everytime

Thanks!!

dvdoug commented 1 week ago

Thanks for the report @DavideWasTaken I'll take a look

DavideWasTaken commented 8 hours ago

hi! do u have some news? thanks!!