This is the solution by team alfnie to the Mathworks/Kaggle Packing Santa's Sleigh competition (http://www.kaggle.com/c/packing-santas-sleigh). This solution got 2nd position overall in the competition (and first among the submissions in Matlab)
It implements a simple layer-based approach to three-dimensional bin-packing with a twist on how individual layers are defined.
Inside it you may find useful some simple n-dimensional "largest empty rectangle" (MaxRect) implementation which may aid you in other bin-packing endeavors...
Alfonso Nieto-Castanon (2021). Packing Santa's Sleigh (https://www.mathworks.com/matlabcentral/fileexchange/45423-packing-santa-s-sleigh), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!