A Two-Stage Allocation–Transportation Framework with Improved Holistic Swarm Optimization for Port Cargo Transportation Planning
Abstract
1. Introduction
- To balance storage safety and transportation cost for the cargo in ports, this paper proposes a two-stage allocation–transportation planning method. In this method, warehouses are partitioned into zones using a clustering approach and a route planning strategy is designed, which achieves a balance between storage safety and transportation cost.
- An Improved Holistic Swarm Optimization algorithm is proposed which effectively integrates the greedy search algorithm, ACO, adaptive swap/reversal operations, and adaptive simulated annealing strategy. It achieves high convergence speed while reducing the total vehicle travel distance.
- In multiple sets of experiments on the port cargo transportation problem, IHSO outperforms the comparison algorithms in both solution quality and convergence speed.
2. Port Cargo Allocation and Transportation Path Planning Problem
2.1. Port Cargo Allocation Rules
2.1.1. Zone Partitioning
2.1.2. Cargo Allocation
- Warehouse selection: If both and are non-empty, this paper randomly selects a warehouse from each area to participate in allocation. This ensures that the same cargo is stored dispersedly across different zones. In addition, if only one zone has available warehouses, at most two warehouses are randomly selected from that zone.
- Allocation quantity calculation: The total remaining capacity of the selected warehouses iswhere and denote the remaining capacity of the selected warehouses.
- 3.
- Cargo allocation: If only one warehouse is selected, that warehouse receives the entire allocation quantity . If two warehouses are selected, the cargo is allocated in proportion to their remaining capacities. Proportional distribution ensures balanced cargo distribution. It avoids the situation in which the larger warehouses are underutilized while the smaller one is full. This improves the overall warehouse utilization rate. The allocation quantities for the two warehouses arewhere and denote the quantity of cargo allocated to each selected warehouse, respectively.
- 4.
- Allocation matrix, warehouse and cargo status updating: After allocation, the allocation matrix is updated as follows:where denotes the quantity of cargo received by warehouse .
- 5.
- Termination condition: The allocation process is terminated when all warehouses are full or all cargo has been allocated. Finally, the output is the allocation matrix .
2.2. Mathematical Model of the Port Cargo Transportation Problem
3. Improved Holistic Swarm Optimization
3.1. Holistic Swarm Optimization
- Initialization: Each search individual is randomly generated at an initial position . Then, this paper sets the maximum number of iterations to be , and the initial mutation rate and step to be and . Finally, the final mutation rate, step, the initial temperature and the cooling rate are set to be , , and , respectively.
- Fitness evaluation: Evaluate the fitness of each search individual.
- Adaptive simulated annealing strategy: When the new fitness value outperforms the old one, the new value directly replaces the old one. When the new value is inferior, the algorithm still accepts it if the probability is greater than a uniformly distributed random number. The probability is formulated aswhere denotes the difference between the new and old fitness values, and denotes the current iteration number.
- Update the best solution and compute the displacement coefficient: the root mean square of all individual fitness values is calculated, denoted as . Its mathematical expression is
- 5.
- Population individual update: Each individual is updated to approach high-quality individuals and moves away from inferior individuals. The population individual update rule iswhere is a constant parameter and is a random value; is the displacement coefficient.
- 6.
- Adaptive mutation: The mutation rate and step size gradually change linearly from and to and as iterations increase. If adaptive mutation is triggered, a random perturbation based on a normal distribution is added to the individual . This produces a new individual .
- 7.
- Termination check: Repeat steps 2 through 7 until the maximum number of iterations is reached.
3.2. Ant Colony Optimization
3.3. Greedy Search Algorithm
3.4. Swap Operation and Reversal Operation
3.5. The Proposed Improved Holistic Swarm Optimization
- Initialization: The initial population is composed of individuals generated by the greedy search algorithm and randomly generated method. In this paper, the maximum number of iterations, the initial operation rate and final operation are set to be , and , and the initial temperature and cooling rate are set to be and . Meanwhile, the pheromone importance factor, the heuristic importance factor, the pheromone evaporation factor and the pheromone increment constant are set to be , , and , respectively.
- Adaptive swap/reversal operation: If the probability is greater than the random number drawn from a uniform distribution, this algorithm randomly selects the swap operation and reversal operation with equal probability and executes the chosen operation. The mathematical expression for the probability is:
- Adaptive simulated annealing strategy: If the new solution is better than the old solution, the new solution directly replaces the old solution; if the new solution is worse than the old solution, the old solution is accepted with probability . The mathematical expression of the probability iswhere denotes the new solution and denotes the old solution.
- Elitist ant pheromone, the minimum path cost, and optimal transportation path update:where denotes the total length of the route traversed by ant , and denotes the set of elite ants.
- Construction of access sequence based on ACO: Ants depart from the port and progressively select the next node based on pheromone concentration and heuristic information, until all warehouses have been visited. The probability of ant moving from node to node iswhere denotes the set of nodes currently selectable by ant , denotes the pheromone concentration from node to node at time , and denotes the heuristic information from node to node at time . The mathematical expression for iswhere denotes the distance from node to node .
- Termination check: Repeat steps 2 through 6 until the maximum number of iterations is reached.
| Algorithm 1: Improved Holistic Swarm Optimization |
| Input: , , , , and ) |
| Output: Global best solution and corresponding routes |
| Phase 1: Population Initialization |
Phase 2: Route Optimization
|
4. Application of the Improved Holistic Swarm Optimization Algorithm to the Port Cargo Transportation Problem
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Yu, H.; Gong, Y.; Liu, J. A Systematic Literature Review on Port Competitiveness. Int. J. Logist. Res. Appl. 2025, 28, 720–744. [Google Scholar] [CrossRef] [Scilit]
- Iefimova, G.; Pashchenko, O.; Mykhailov, M. Ports’ Contribution to the Financial and Economic Security of Logistics Systems. Eur. Sci. J. Econ. Financ. Innov. 2025, 2, 93–103. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Hausman, W.H.; Schwarz, L.B.; Graves, S.C. Optimal Storage Assignment in Automatic Warehousing Systems. Manag. Sci. 1976, 22, 629–638. [Google Scholar] [CrossRef] [Scilit]
- De Koster, R.; Le-Duc, T.; Roodbergen, K.J. Design and Control of Warehouse Order Picking: A Literature Review. Eur. J. Oper. Res. 2007, 182, 481–501. [Google Scholar] [CrossRef] [Scilit]
- Yin, R.; Lu, P. A Cluster-First Route-Second Constructive Heuristic Method for Emergency Logistics Scheduling in Urban Transport Networks. Sustainability 2022, 14, 2301. [Google Scholar] [CrossRef] [Scilit]
- Liu, L.; Wang, J.; Liang, Y. A Two-Stage Clustering–Evolutionary Framework with Adaptive Search Control for the Vehicle Routing Problem with Time Windows. J. Oper. Strateg. Anal. 2025, 3, 251–263. [Google Scholar] [CrossRef] [Scilit]
- Braekers, K.; Ramaekers, K.; Van Nieuwenhuyse, I. The Vehicle Routing Problem: State of the Art Classification and Review. Comput. Ind. Eng. 2016, 99, 300–313. [Google Scholar] [CrossRef] [Scilit]
- Baldacci, R.; Toth, P.; Vigo, D. Recent Advances in Vehicle Routing Exact Algorithms. 4OR 2007, 5, 269–298. [Google Scholar] [CrossRef] [Scilit]
- Bolufé-Röhler, A.; Tamayo-Vera, D. Machine Learning for Enhancing Metaheuristics in Global Optimization: A Comprehensive Review. Mathematics 2025, 13, 2909. [Google Scholar] [CrossRef] [Scilit]
- Chakraborty, A.; Kar, A.K. Swarm Intelligence: A Review of Algorithms. In Nature-Inspired Computing and Optimization; Patnaik, S., Yang, X.-S., Nakamatsu, K., Eds.; Modeling and Optimization in Science and Technologies; Springer International Publishing: Cham, Switzerland, 2017; Volume 10, pp. 475–494. [Google Scholar]
- Singh, V.P.; Sharma, K.; Chakraborty, D. A Branch-and-Bound-Based Solution Method for Solving Vehicle Routing Problem with Fuzzy Stochastic Demands. Sādhanā 2021, 46, 195. [Google Scholar] [CrossRef] [Scilit]
- Babaki, B.; Jena, S.D.; Charlin, L. Neural Column Generation for Capacitated Vehicle Routing. In Proceedings of the AAAI 2022 Workshop on Machine Learning for Operations Research, Virtual, 1 March 2022. [Google Scholar]
- Dalmeijer, K.; Spliet, R. A Branch-and-Cut Algorithm for the Time Window Assignment Vehicle Routing Problem. Comput. Oper. Res. 2018, 89, 140–152. [Google Scholar] [CrossRef] [Scilit]
- Alkhalifa, R.; Alkhomayes, F.; Almazroua, B.; Alhaidan, D.; Alothman, M.; Almuhaidib, J. A Comparative Review of Parallel Exact, Heuristic, Metaheuristic, and Hybrid Optimization Techniques for the Traveling Salesman Problem. arXiv 2025, arXiv:2505.18278. [Google Scholar]
- Fakhravar, H. Combining Heuristics and Exact Algorithms: A Review. arXiv 2022, arXiv:2202.02799. [Google Scholar]
- Duan, S.; Jiang, S.; Dai, H.; Wang, L.; He, Z. The Applications of Hybrid Approach Combining Exact Method and Evolutionary Algorithm in Combinatorial Optimization. J. Comput. Des. Eng. 2023, 10, 934–946. [Google Scholar] [CrossRef] [Scilit]
- Bai, Y.; Xing, X.; Wang, J. An Improved Graph Attention Network Combined with Reinforcement Learning for Capacitated Vehicle Routing Problem. Appl. Intell. 2025, 55, 1052. [Google Scholar] [CrossRef] [Scilit]
- Duan, L.; Zhan, Y.; Hu, H.; Gong, Y.; Wei, J.; Zhang, X.; Xu, Y. Efficiently Solving the Practical Vehicle Routing Problem: A Novel Joint Learning Approach. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, Virtual, 23 August 2020; ACM: San Jose, CA, USA, 2020; pp. 3054–3063. [Google Scholar]
- Cao, L.; Wang, M.; Xiong, X. A Large Language Model-Enhanced Q-Learning for Capacitated Vehicle Routing Problem with Time Windows. arXiv 2025, arXiv:2505.06178. [Google Scholar]
- Ye, Z.; Gao, W.; Hu, Q.; Sun, P.; Wang, X.; Luo, Y.; Zhang, T.; Wen, Y. Deep Learning Workload Scheduling in GPU Datacenters: A Survey. ACM Comput. Surv. 2024, 56, 1–38. [Google Scholar] [CrossRef] [Scilit]
- Ghimire, D.; Kil, D.; Kim, S. A Survey on Efficient Convolutional Neural Networks and Hardware Acceleration. Electronics 2022, 11, 945. [Google Scholar] [CrossRef] [Scilit]
- Justus, D.; Brennan, J.; Bonner, S.; McGough, A.S. Predicting the Computational Cost of Deep Learning Models. In Proceedings of the 2018 IEEE International Conference on Big Data (Big Data), Seattle, WA, USA, 10–13 December 2018; IEEE: Seattle, WA, USA, 2018; pp. 3873–3882. [Google Scholar]
- Alweshah, M.; Almiani, M.; Almansour, N.; Al Khalaileh, S.; Aldabbas, H.; Alomoush, W.; Alshareef, A. Vehicle Routing Problems Based on Harris Hawks Optimization. J. Big Data 2022, 9, 42. [Google Scholar] [CrossRef] [Scilit]
- Eido, W.M.; Ibrahim, I.M. Ant Colony Optimization (ACO) for Traveling Salesman Problem: A Review. Asian J. Res. Com. Sci. 2025, 18, 20–45. [Google Scholar] [CrossRef] [Scilit]
- Diastivena, D.; Wahyuningsih, S.; Satyananda, D. Grey Wolf Optimizer Algorithm for Solving the Multi Depot Vehicle Routing Problem and Its Implementation. J. Phys. Conf. Ser. 2021, 1872, 012001. [Google Scholar] [CrossRef] [Scilit]
- Jamil, A.; Abdallah, B.N.; Leksono, V.A. Firefly Algorithm for Multi-Type Vehicle Routing Problem. J. Phys. Conf. Ser. 2021, 1726, 012006. [Google Scholar] [CrossRef] [Scilit]
- Kao, Y.; Chen, M.-H.; Huang, Y.-T. A Hybrid Algorithm Based on ACO and PSO for Capacitated Vehicle Routing Problems. Math. Probl. Eng. 2012, 2012, 726564. [Google Scholar] [CrossRef] [Scilit]
- Pham, V.H.S.; Nguyen, V.N.; Dang, N.T.N. Novel Hybrid Swarm Intelligence Algorithm for Solving the Capacitated Vehicle Routing Problem Efficiently. Evol. Intel. 2025, 18, 61. [Google Scholar] [CrossRef] [Scilit]
- Zhou, Y.; Xie, J.; Zheng, H. A Hybrid Bat Algorithm with Path Relinking for Capacitated Vehicle Routing Problem. Math. Probl. Eng. 2013, 2013, 392789. [Google Scholar] [CrossRef] [Scilit]
- Farek, L.; Benaidja, A. Octopus Camouflage Optimization: A Population-State-Aware Metaheuristic. Knowl.-Based Syst. 2026, 350, 116583. [Google Scholar] [CrossRef] [Scilit]
- Tian, A.-Q.; Liu, F.-F.; Lv, H.-X. Snow Geese Algorithm: A Novel Migration-Inspired Meta-Heuristic Algorithm for Constrained Engineering Optimization Problems. Appl. Math. Model. 2024, 126, 327–347. [Google Scholar] [CrossRef] [Scilit]
- Deng, B. Baboon Optimization Algorithm: A Novel Nature-Inspired Metaheuristic Algorithm for Optimization Problems. Ain Shams Eng. J. 2026, 17, 104178. [Google Scholar] [CrossRef] [Scilit]
- Akbari, E.; Rahimnejad, A.; Gadsden, S.A. Holistic Swarm Optimization: A Novel Metaphor-Less Algorithm Guided by Whole Population Information for Addressing Exploration-Exploitation Dilemma. Comput. Methods Appl. Mech. Eng. 2025, 445, 118208. [Google Scholar] [CrossRef] [Scilit]
- Hien, V.Q.; Dao, T.C.; Binh, H.T.T. A Greedy Search Based Evolutionary Algorithm for Electric Vehicle Routing Problem. Appl. Intell. 2023, 53, 2908–2922. [Google Scholar] [CrossRef] [Scilit]
- Alimoradi, A. Bi Objective Multi Depot Location Routing Problem with Time Window for EVs. Master’s Thesis, Ontario Tech University, Oshawa, ON, Canada, 2025. [Google Scholar]
- Rahaman, S.H.; Maiti, M.K. A Hybridization of Grey Wolf Optimizer and Genetic Algorithm for the Traveling Salesman Problems. Soft Comput. 2024, 28, 13127–13148. [Google Scholar] [CrossRef] [Scilit]
- Tao, S. An Improved Genetic Algorithm for Solving TSP. J. Phys. Conf. Ser. 2021, 1952, 042067. [Google Scholar] [CrossRef] [Scilit]
- Stodola, P.; Mazal, J.; Podhorec, M.; Litvaj, O. Using the Ant Colony Optimization Algorithm for the Capacitated Vehicle Routing Problem. In Proceedings of the 16th International Conference on Mechatronics-Mechatronika 2014, Brno, Czech Republic, 3–5 December 2014; IEEE: Brno, Czech Republic, 2014; pp. 503–510. [Google Scholar]
- Filipec, M.; Skrlec, D.; Krajcar, S. An Efficient Implementation of Genetic Algorithms for Constrained Vehicle Routing Problem. In Proceedings of the SMC’98 Conference Proceedings. 1998 IEEE International Conference on Systems, Man, and Cybernetics (Cat. No.98CH36218), San Diego, CA, USA, 14 October 1998; IEEE: San Diego, CA, USA, 1998; Volume 3, pp. 2231–2236. [Google Scholar]
- Chen, A.; Yang, G.; Wu, Z. Hybrid Discrete Particle Swarm Optimization Algorithm for Capacitated Vehicle Routing Problem. J. Zhejiang Univ.-Sci. A 2006, 7, 607–614. [Google Scholar] [CrossRef] [Scilit]
- Osman, I.H. Metastrategy Simulated Annealing and Tabu Search Algorithms for the Vehicle Routing Problem. Ann. Oper. Res. 1993, 41, 421–451. [Google Scholar] [CrossRef] [Scilit]
- Tian, A.-Q.; Liu, F.-F.; Wang, X.-Y. Surrogate-Assisted Rezone-Enhanced Multi-Objective Adaptive Evolutionary Algorithm for Truck–UAV Collaborative Delivery Route Optimization. J. Superintelligence 2026, 1, 3. [Google Scholar] [CrossRef] [Scilit]
- Tian, A.-Q.; Liu, F.-F.; Ni, S.-Q.; Pan, J.-S. K-DPSA: A Hierarchical Surrogate-Assisted Evolutionary Algorithm for Expensive Constrained Multi-Objective Optimization with Application to UAV Path Planning. Swarm Evol. Comput. 2026, 107, 102490. [Google Scholar] [CrossRef] [Scilit]
- Xu, B.; Rang, G.; Xie, R.; Li, W.; Gong, D.; Fan, Z.; Yang, S.; He, J. A Prediction Approach Based on Long Short-Term Memory Networks for Dynamic Multiobjective Optimization. Expert Syst. Appl. 2025, 283, 127792. [Google Scholar] [CrossRef] [Scilit]
- Xu, B.; Zheng, Y.; Li, W.; Gao, X.; Gong, D.; He, J.; Fan, Z. Handling Multiobjective Optimization Problems With Complex Constraints: A Constraints Grouping-Based Approach. IEEE Trans. Syst. Man. Cybern. Syst. 2025, 55, 3866–3880. [Google Scholar] [CrossRef] [Scilit]






| Algorithm | Parameter |
|---|---|
| IHSO | = 0.1, = 0.6, = 0.99, = 5000, = 1, = 1, = 0.5, = 100 |
| Number of Warehouses | Performance | IHSO | HSO | ACO | GA | PSO | SA |
|---|---|---|---|---|---|---|---|
| 95 | Best | 28,322.77 | 34,380.44 | 28,471.85 | 29,136.99 | 32,499.31 | 34,351.04 |
| Ave | 28,537.01 | 34,933.70 | 28,779.01 | 29,842.45 | 33,954.82 | 35,124.39 | |
| Std | 77.27 | 360.81 | 116.18 | 385.36 | 675.79 | 370.60 | |
| 185 | Best | 53,030.02 | 67,930.58 | 53,503.88 | 56,461.58 | 63,839.88 | 65,927.75 |
| Ave | 53,327.65 | 69,398.41 | 53,963.31 | 57,775.74 | 65,797.37 | 67,453.79 | |
| Std | 130.05 | 518.40 | 184.68 | 577.91 | 777.26 | 566.38 | |
| 271 | Best | 74,966.17 | 99,734.63 | 76,560.10 | 82,763.48 | 93,664.76 | 96,857.33 |
| Ave | 75,375.77 | 101,462.63 | 77,245.30 | 84,255.01 | 95,824.02 | 98,027.91 | |
| Std | 200.83 | 571.03 | 209.94 | 919.93 | 1245.07 | 708.70 | |
| 374 | Best | 97,715.29 | 138,235.40 | 99,534.36 | 114,363.82 | 128,943.86 | 131,362.71 |
| Ave | 98,225.82 | 139,424.44 | 100,109.98 | 116,774.14 | 132,015.47 | 133,570.62 | |
| Std | 287.39 | 548.02 | 269.65 | 1066.87 | 1626.05 | 1154.13 | |
| 463 | Best | 124,504.80 | 174,895.13 | 126,841.15 | 146,538.49 | 163,583.20 | 165,384.83 |
| Ave | 125,314.46 | 176,075.12 | 127,428.94 | 148,344.69 | 167,431.96 | 168,096.62 | |
| Std | 374.18 | 460.60 | 276.23 | 814.31 | 1994.14 | 1396.01 | |
| 559 | Best | 155,989.07 | 211,870.63 | 158,330.22 | 180,987.21 | 201,605.49 | 201,510.41 |
| Ave | 156,617.60 | 213,549.13 | 158,997.39 | 182,872.47 | 204,976.35 | 204,390.34 | |
| Std | 354.91 | 568.93 | 332.67 | 1229.01 | 1558.49 | 1477.73 |
| Number of Warehouses | HSO | ACO | GA | PSO | SA |
|---|---|---|---|---|---|
| 95 | 9.5 × 10−7 | 1.91 × 10−6 | 9.5 × 10−7 | 9.5 × 10−7 | 9.5 × 10−7 |
| 185 | 9.5 × 10−7 | 9.5 × 10−7 | 9.5 × 10−7 | 9.5 × 10−7 | 9.5 × 10−7 |
| 271 | 9.5 × 10−7 | 9.5 × 10−7 | 9.5 × 10−7 | 9.5 × 10−7 | 9.5 × 10−7 |
| 374 | 9.5 × 10−7 | 9.5 × 10−7 | 9.5 × 10−7 | 9.5 × 10−7 | 9.5 × 10−7 |
| 463 | 9.5 × 10−7 | 9.5 × 10−7 | 9.5 × 10−7 | 9.5 × 10−7 | 9.5 × 10−7 |
| 559 | 9.5 × 10−7 | 9.5 × 10−7 | 9.5 × 10−7 | 9.5 × 10−7 | 9.5 × 10−7 |
| Instance | Performance | IHSO | HSO | ACO | GA | PSO | SA |
|---|---|---|---|---|---|---|---|
| X-n204-k19 | Best | 21,540.00 | 80,310.00 | 22,362.00 | 51,742.00 | 67,933.00 | 64,339.00 |
| Ave | 22,326.90 | 83,692.00 | 23,393.25 | 55,501.15 | 72,702.60 | 68,667.35 | |
| Std | 326.13 | 1431.18 | 462.32 | 1461.83 | 2013.80 | 1688.80 | |
| X-n308-k13 | Best | 33,749.00 | 143,624.00 | 35,616.00 | 96,356.00 | 122,556.00 | 106,915.00 |
| Ave | 34,660.95 | 149,264.40 | 36,360.85 | 99,997.70 | 129,901.90 | 111,123.25 | |
| Std | 337.29 | 1679.73 | 427.54 | 2548.96 | 3887.69 | 2518.34 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Lu, C.; Li, Y.; Yang, L.; Liu, T.; Wang, Y.; Cai, S. A Two-Stage Allocation–Transportation Framework with Improved Holistic Swarm Optimization for Port Cargo Transportation Planning. Biomimetics 2026, 11, 667. https://doi.org/10.3390/biomimetics11090667
Lu C, Li Y, Yang L, Liu T, Wang Y, Cai S. A Two-Stage Allocation–Transportation Framework with Improved Holistic Swarm Optimization for Port Cargo Transportation Planning. Biomimetics. 2026; 11(9):667. https://doi.org/10.3390/biomimetics11090667
Chicago/Turabian StyleLu, Cuihua, Yunsheng Li, Lin Yang, Tangying Liu, Yi Wang, and Shuxiang Cai. 2026. "A Two-Stage Allocation–Transportation Framework with Improved Holistic Swarm Optimization for Port Cargo Transportation Planning" Biomimetics 11, no. 9: 667. https://doi.org/10.3390/biomimetics11090667
APA StyleLu, C., Li, Y., Yang, L., Liu, T., Wang, Y., & Cai, S. (2026). A Two-Stage Allocation–Transportation Framework with Improved Holistic Swarm Optimization for Port Cargo Transportation Planning. Biomimetics, 11(9), 667. https://doi.org/10.3390/biomimetics11090667

