In order to improve the efficiency of ship loading and unloading, the optimization goal is to minimize the amount of box dumping on the entire track, and the water planning model that takes into account the stability of the aircraft. A Harmony-Inspired Genetic Algorithm (HIGA) is designed to solve the stowage problem, and parameters are introduced to determine whether the current optimal algorithm is local optimal or optimal, so as to call the harmony. Search for optimization algorithms, and dynamically update the maximum number of iterations of the algorithm. Time-consuming, and with the help of the local optimization of the harmonic search speed, the solution time is reduced by 21.75%, the average number of ships is reduced by 26.87%, and the solution efficiency and the optimal solution are improved. For the quality of container ships, look at the pre-allocation plan. Ready to provide a certain reference.