At work we build large machines, these get deconstructed, placed i crates and shipped away to the client. Now we are just guessing how many trucks we need and how we lay the crates out to fit as many of them inside a truck.
But here you can see that the second option is better in space used (all pallets fit).
Now the real question. Is there a algorithme out there that can do this, even with irregular crates (meaning diffrent in size). Or do i need to invent one myself?
EDIT: Some more details:
The crates can vary in dimensions. But are always rectacles or squares.
The crate dimensions voor in the form of an Excel file where width height and lenght are defined.