Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Packing Algorithm's


Guest

Recommended Posts

Hey everyone,

 

I recently installed the Eshipper contrib which works great, however, I was wondering if anyone had (or seen) any different packing algorithms other then those that come with that contrib (which is a "pack on top" algorithm that just places the items on top of each other to get an estimated size.)

 

What i'm trying to do is take my boxes (2 different sizes, small,large) for demonstration purposes, say 6x6x8" and 12x12x8" and have the items placed into the box which ever way they can be (upright, side ways, flat, etc), to amount to the smallest box available from the present box sizes.

 

This sounds like a complex algorithm to me, specially when i have no experience writing one. So some help, or even pointing me in a direction to start, would be great.

 

If anyone can help out let me know!

 

Thanks

 

Ben C.

aka RCK

Link to comment
Share on other sites

This sounds like a complex algorithm to me, specially when i have no experience writing one. So some help, or even pointing me in a direction to start, would be great.

It is. The UPSXML contribution contains a (additional) packing class that can be used by other shipping modules too (though as far as I know there isn't one).

Link to comment
Share on other sites

Yes, it would be quite complex. You could take a rough swag at which box to use by adding up the volumes of the items and the ordered dimensions (largest-to-smallest) of each item, compared to the box dimensions. That would give you a minimum box size, but it's far harder to determine if that box is sufficient. For that, you need to try all sorts of (reasonable) packing orders and orientations. I'm sure it's been done by someone -- have you tried googling for shipping packing order and similar? Don't forget to allow some extra room for padding around fragile items, putting delicate items on top, and avoiding items next to each other that could damage each other. Let's not even think about irregularly shaped objects (anything other than a rectangular volume). Watch the weight limit on the box itself (you don't want the box to fail in transit), and allow some space under the top so that when someone slices open the tape with a boxcutter knife, it doesn't nick the merchandise. Have fun!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...