So I have been given the task to create a shipping module for a webshop system. It may be a bit overkill, but I would really like to create one that can figure out how to pack parcels in the most optimized way. Having learned programming simply by doing it, this is an area where I have no knowledge - yet! Anyways I can just give short description of the actual problem.
So when users by stuff at webshops they will have x products in their cart with possibly varying sizes and weight. So I want to give that list of products to the function and let it figure out how these products should be packed in parcel(s).
- max length of parcel: 100
- max width of parcel: 50
- max height of parcel: 50
- max weight of parcel: 20
Every product has a weight, length, width and height as well.
Since parcels and products is basically boxes, I'm guessing this would be rather complex, as there are different ways of putting the products inside the parcel. My goal is not to make the perfect packaging function, but I would like to do something better than just putting products inside the parcel until a limit has been reached.
Now, I don't expect you guys to make this for me, but what I would like to ask is three things.
- Where can I find good online resources that will teach me the basics needed?
- Are there some native python tools that would be good to use?
- Some pointers of what I need to be aware of, pitfalls ect
Like I said, I don't plan for this to be perfect and 100% optimized, but I would like to end up with something that will come close. I would hate if users feel that the sending fee will be a lot higher than it actual is.