Implementation of a Hybrid Simulated Annealing Algorithm for Solving the Three-Dimensional Boxing Problem MATLAB
For a mathematical modeling project, I needed to solve a three-dimensional container loading problem. After some searching, I chose the paper “A Hybrid Simulated Annealing Algorithm for Solving the Three-Dimensional Container Loading Problem” by Prof. Zhang Defu and others, published in the Chinese Journal of Computers, as the theoretical basis for my solution. The Paper’s Abstract This paper proposes a hybrid simulated annealing algorithm for efficiently solving the three-dimensional container loading problem (3D-CLP). The 3D-CLP requires loading a subset of a given set of boxes into a container so that the total volume of the loaded boxes is maximized. The hybrid simulated annealing algorithm in this paper is based on three important algorithms. (1) A composite block generation algorithm. Unlike traditional algorithms, the composite blocks proposed in this paper don’t contain only a single type of box, and can contain boxes of any type under certain constraints. (2) A basic heuristic algorithm, which is based on block loading and can generate a placement plan from a given loading sequence. (3) A simulated annealing algorithm. Built on composite block generation and the basic heuristic algorithm, it uses the loading sequence as the encoding of a feasible placement plan, and searches the encoding space with simulated annealing to find an approximately optimal solution to the problem. The algorithm is tested on 1,500 weakly and strongly heterogeneous container loading instances. The experimental results show that the fill rate of the hybrid simulated annealing algorithm is higher than that of the best known algorithms. ...