Hierarchical Contextual Thompson Sampling ALNS for the Multi-Port Container Stowage Planning Problem
Container stowage planning assigns each container a slot on a vessel. Top-only stack access and hatch covers force later-port containers into non-productive restows that lengthen port stay, while stability and crane workload conflict. We study the multi-port problem with load-layer precedence, which makes overstowage partly unavoidable. A compact type-aggregated mixed-integer linear model counts port-wise restow requirements exactly, including hatch requirements, and linearises stability moments and crane imbalance. Because a stack and a hatch requirement at the same port can be served by one temporary removal, this count is a conservative upper bound on physical moves. For realistic instances, we propose an adaptive large neighbourhood search (ALNS) governed by a hierarchical contextual Thompson-sampling bandit (HCTS–ALNS): destroy–repair operator pairs are selected with contextual posteriors shrunk towards a global posterior, and tempered sampling preserves exploration. On a new 30-instance benchmark covering five vessel classes, HCTS–ALNS is compared under identical CPU-time budgets with an exact constraint-programming solver, greedy randomised adaptive search, a genetic algorithm, simulated annealing and a canonical ALNS. It attains 32.02 equivalent restows, 1.9% below canonical ALNS and 18.5–40.4% below the three classical heuristics; these two differences are confirmed by paired Wilcoxon signed-rank tests, and exact solutions validate the model on small instances. In a controlled comparison that fixes the operator portfolio, initialisation, local search and time budget, however, a classical roulette-wheel controller attains a lower mean objective than the proposed controller, and the paired difference is not statistically significant; superiority of the hierarchical contextual controller is, therefore, not claimed. The ablation identifies arm-space dilution as the main limitation under short budgets, and hatch requirements account for roughly three quarters of all restow requirements.
Authors
- Jiao Mo (ORCID: https://orcid.org/0000-0002-8813-8201)
- Liang Zhao (ORCID: https://orcid.org/0000-0003-0656-9161)
- Xiao Yang
Institutions
- Ningbo University (CN)
- Ningbo University of Technology (CN)
- Zhejiang University (CN)
Publication Details
- Journal
- Algorithms
- Published
- 2026-12-03
- DOI
- https://doi.org/10.3390/a19121071
- Primary Topic
- Maritime Ports and Logistics
- Type
- article
- Field-Weighted Citation Impact
- 0.00