Ship Scheduling Algorithm Based on Markov-Modulated Fluid Priority Queues
Abstract
1. Introduction
2. Materials and Methods
3. Problem Modeling and Algorithm Modeling
3.1. Problem Description
3.2. Algorithm Modeling and Parameter Setting
3.3. Construction of SSA-BMMFPQ
3.4. Queue Length Analysis
3.5. Waiting Time Analysis
Algorithm 1. SSA-BMMFPQ Design Pseudocode |
BEGIN |
Determine_CTMC_model(Q,R1,R2,R3) |
Build_system_parameters () |
K = 3 |
d = 4 |
R_plus=array(K) |
π=solve(πQ==0,sum(π)==1) |
for k from 1 to K |
R_plus[k]=sum(R(l) for l from k to K) |
end |
END Build_system_parameters |
Analyze_workload(R_plus,Q,d) |
for k from 1 to K |
C=R_plus[k]/d-I |
(kappa[k],K_matrix[k],A_matrix[k])=Solve_steady_density(C,Q) |
alpha[k] = kappa[k] * A_matrix[k] * inv(-K_matrix[k]) |
end |
END Analyze_workload |
Analyze_queue_length() |
for k from 1 to K |
fX_star=Compute_departure_lst(kappa[k],Q,R_plus[k],d) |
mean_X[k]=-Derivative(fX_star,s) |
Phi_n=Compute_erlang_approx(n,k) |
lambda_k=π*R^(k+)*Ones_vector() |
fY_star[k]=Solve_lst_equation(fX_star,s*R_plus[k]-Q,lambda_k*s) |
mean_Y[k]=-Derivative(fY_star[k],s) |
end |
END Analyze_queue_length |
Analyze_waiting_time() |
for k form 1 to K |
fT_star=Compute_waiting_lst(kappa[k],Q,R_plus[k],d) |
mean_T[k]=-Derivative(fT_star) |
FT_n[k]=alpha_k*Ones_vector()+kappa_k*Phi_n*Ones_vector() |
end |
END Analyze_waiting_time |
Generate_optimization_strategy() |
if mean_T[K]>threshold_urgent then |
d=High(d) |
else if mean_Y[1]>queue_threshold_Llow then |
update_Q_matrix(Q) |
end |
END Generate_optimization_strategy |
END |
4. Experiments and Simulations
4.1. Experimental Parameter Setting
4.2. Analysis of Experimental Results
4.2.1. Cumulative Distribution Function (CDF) of Waiting Time for Different Priority Tasks
4.2.2. Influence of Anchorage Utilization Rate and Scale of Number of Ships on Computational Execution Time
4.2.3. Comparison of Scheduling Strategies
4.2.4. Comparison of Fixed and Dynamic Service Rates
4.2.5. Normal Priority Scheduling Versus Weighted Multi-Priority Scheduling
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Elmi, Z.; Li, B.; Liang, B.; Lau, Y.-Y.; Borowska-Stefańska, M.; Wiśniewski, S.; Dulebenets, M.A. An epsilon-constraint-based exact multi-objective optimization approach for the ship schedule recovery problem in liner shipping. Comput. Ind. Eng. 2023, 183, 109472. [Google Scholar] [CrossRef]
- Liu, S.; Zhang, Y.; Guo, W.; Tian, H.; Tang, K. Ship scheduling problem based on channel-lock coordination in flood season. Expert Syst. Appl. 2024, 254, 124393. [Google Scholar] [CrossRef]
- Yang, A.; Cao, Y.; Chen, K.; Zeng, Q.; Chen, Z.; Wang, Y. An optimization model for tramp ship scheduling considering time window and seaport operation delay factors. J. Adv. Transp. 2021, 2021, 6650097. [Google Scholar] [CrossRef]
- Elmi, Z.; Singh, P.; Meriga, V.K.; Goniewicz, K.; Borowska-Stefańska, M.; Wiśniewski, S.; Dulebenets, M.A. Uncertainties in liner shipping and ship schedule recovery: A state-of-the-art review. J. Mar. Sci. Eng. 2022, 10, 563. [Google Scholar] [CrossRef]
- Jia, S.; Meng, Q.; Kuang, H. Equitable vessel traffic scheduling in a seaport. Transp. Sci. 2022, 56, 162–181. [Google Scholar] [CrossRef]
- Lauri, M.; Hsu, D.; Pajarinen, J. Partially observable Markov decision processes in robotics: A survey. IEEE Trans. Robot. 2022, 39, 21–40. [Google Scholar] [CrossRef]
- Roy, A.; Borkar, V.; Karandikar, A.; Chaporkar, P. Online reinforcement learning of optimal threshold policies for Markov decision processes. IEEE Trans. Autom. Control 2021, 67, 3722–3729. [Google Scholar] [CrossRef]
- Lu, J.; Han, L.; Wei, Q.; Wang, X.; Dai, X.; Wang, F.-Y. Event-triggered deep reinforcement learning using parallel control: A case study in autonomous driving. IEEE Trans. Intell. Veh. 2023, 8, 2821–2831. [Google Scholar] [CrossRef]
- Chu, N.H.; Hoang, D.T.; Nguyen, D.N.; Phan, K.T.; Dutkiewicz, E.; Niyato, D.; Shu, T. Metaslicing: A novel resource allocation framework for metaverse. IEEE Trans. Mob. Comput. 2023, 23, 4145–4162. [Google Scholar] [CrossRef]
- Lin, L.; Cao, J.; Lam, J.; Rutkowski, L.; Dimirovski, G.M.; Zhu, S. A bisimulation-based foundation for scale reductions of continuous-time Markov chains. IEEE Trans. Autom. Control 2024, 69, 5743–5758. [Google Scholar] [CrossRef]
- Ghosh, D.; Pandey, M.; Gautam, C.; Vidyarthi, A.; Sharma, R.; Draheim, D. Utilizing Continuous Time Markov Chain for analyzing video-on-demand streaming in multimedia systems. Expert Syst. Appl. 2023, 223, 119857. [Google Scholar] [CrossRef]
- Yang, B.; Tang, G.C. Stochastic optimization model for container shipping of sea carriage. J. Transp. Syst. Eng. Inf. Technol. 2010, 10, 58–63. [Google Scholar]
- Garau-Luis, J.J.; Torrens, S.A.; Vila, G.C.; Pachler, N.; Crawley, E.F.; Cameron, B.G. Frequency plan design for multibeam satellite constellations using integer linear programming. IEEE Trans. Wirel. Commun. 2023, 23, 3312–3327. [Google Scholar] [CrossRef]
- Cho, J.; Papavasiliou, A. Exact mixed-integer programming approach for chance-constrained multi-area reserve sizing. IEEE Trans. Power Syst. 2023, 39, 3310–3323. [Google Scholar] [CrossRef]
- Oyatoye, E.O.; Adebiyi, S.O.; Okoyee, J.C.; Amole, B.B. Application of Queueing Theory to Port Congestion Problem in Nigeria; European Journal of Business and Management: London, UK, 2011. [Google Scholar]
- Hu, L.; Chen, Z.; Dong, Y.; Jia, Y.; Liang, L.; Wang, M. Status update in IoT networks: Age-of-information violation probability and optimal update rate. IEEE Internet Things J. 2021, 8, 11329–11344. [Google Scholar] [CrossRef]
- Shi, B.; Zheng, F.-C.; She, C.; Luo, J.; Burr, A.G. Risk-resistant resource allocation for eMBB and URLLC coexistence under M/G/1 queueing model. IEEE Trans. Veh. Technol. 2022, 71, 6279–6290. [Google Scholar] [CrossRef]
- Moltafet, M.; Leinonen, M.; Codreanu, M. Moment generating function of age of information in multisource M/G/1/1 queueing systems. IEEE Trans. Commun. 2022, 70, 6503–6516. [Google Scholar] [CrossRef]
- Cao, Z.; Lin, C.; Zhou, M.; Wen, X. Learning-based genetic algorithm to schedule an extended flexible job shop. IEEE Trans. Cybern. 2024, 54, 6909–6920. [Google Scholar] [CrossRef]
- Yu, Z.; Si, Z.; Li, X.; Wang, D.; Song, H. A novel hybrid particle swarm optimization algorithm for path planning of UAVs. IEEE Internet Things J. 2022, 9, 22547–22558. [Google Scholar] [CrossRef]
- İlhan, İ.L.H.A.N. An improved simulated annealing algorithm with crossover operator for capacitated vehicle routing problem. Swarm Evol. Comput. 2021, 64, 100911. [Google Scholar] [CrossRef]
- Nov, Y.; Weiss, G.; Zhang, H. Fluid models of parallel service systems under FCFS. Oper. Res. 2022, 70, 1182–1218. [Google Scholar] [CrossRef]
- Abbou, A.N.N.; Taleb, T.; Song, J. A software-defined queuing framework for QoS provisioning in 5G and beyond mobile systems. IEEE Netw. 2021, 35, 168–173. [Google Scholar] [CrossRef]
- Hamdi, R.; Baccour, E.; Erbad, A.; Qaraqe, M.; Hamdi, M. LoRa-RL: Deep reinforcement learning for resource management in hybrid energy LoRa wireless networks. IEEE Internet Things J. 2021, 9, 6458–6476. [Google Scholar] [CrossRef]
- Borisov, V.; Leemann, T.; Seßler, K.; Haug, J.; Pawelczyk, M.; Kasneci, G. Deep neural networks and tabular data: A survey. IEEE Trans. Neural Netw. Learn. Syst. 2022, 35, 7499–7519. [Google Scholar] [CrossRef]
- Legaard, C.M.; Schranz, T.; Schweiger, G.; Drgoňa, J.; Falay, B.; Gomes, C.; Iosifidis, A.; Abkar, M.; Larsen, P.G. Constructing neural network based models for simulating dynamical systems. ACM Comput. Surv. 2023, 55, 1–34. [Google Scholar] [CrossRef]
- Horváth, G. Waiting time and queue length analysis of Markov-modulated fluid priority queues. Queueing Syst. 2020, 95, 69–95. [Google Scholar] [CrossRef]
Reference | Merits | Insufficiencies |
---|---|---|
[12,13,14,15] | Construct a theoretical optimization framework to adapt to different service time distributions | Poor resistance to randomness, complex multi-priority calculation, and low dynamic scene efficiency |
[16,17,18,19,20] | Small and medium-sized scenarios are optimized and feasible, with high flexibility | No convergence proof, easy to fall into local optima, hard constraint modeling is weak, difficult to migrate |
[21,22,23] | Provide a theoretical and technical reference for throughput optimization and traffic equalization | Insufficient adaptation of complex priorities, weak generalization of burst scenarios, sensitive parameters |
[24,25,26] | Dynamic prediction of state and behavior | Data privacy constraints, unexplainable decisions, reliance on stationary assumptions, lack of priority modeling |
Parameter Symbol | Meaning |
---|---|
Set of priority classes for ships | |
CTMC that describes the state of the anchorage | |
State space of the anchorage, which contains n different states | |
Indices of ship priorities, where | |
is the generation matrix of the CTMC | |
Arrival rate of ships of the -th category when the anchorage state is | |
Used in summation notation to traverse priority categories | |
Diagonal matrix composed of the arrival rates of ships of the -th category under different anchorage states, | |
Rate at which the anchorage serves ships | |
Queue length of ships of type at time t (comparing the number of ships to the quantity of a fluid) | |
Steady-state probability vector of the CTMC, which satisfies | |
Average arrival rate of class ships in steady state | |
Net rate matrix | |
Probability mass vector of the queue length being 0, where | |
Queue length at the departure time of ships of type | |
Queue length of ships of type at any time | |
Laplace–Stieltjes transform (LST) of the queue length at the departure time of ships of type | |
Initial phase distribution vector related to ships of the -th category in MMFPQ, , which is used to calculate waiting-time-related indicators | |
Matrix related to LST that describes the cumulative rewards during the busy period, which is used to derive indicators such as the LST of the waiting time | |
m-th derivative matrix of as , which is used to calculate the m-th moment of the waiting time | |
Probability mass of zero queue length (the probability that the system is idle when a ship arrives) | |
Erlangization approximate distribution of the queue length at the departure time | |
Actual length of the ship queue in the anchorage (such as the number of ships or fluid level) | |
Probability density function of the queue length at a random time | |
Erlangization approximate distribution of the queue length at a random time | |
Transform variable connecting the queue distributions at random times and the departure time | |
Joint density function of the workload and the background process state at time t, and its element ; is no lower than at time t | |
Row vector of the joint probabilities that the system workload is 0 and the background process state is i, , where | |
LST of the waiting time of ships of the -th category, which is used to analyze the characteristics of the waiting time in the frequency domain | |
m-th moment of the waiting time of ships of the -th category, which reflects the statistical characteristics of the waiting time, such as the mean value (when m = 1) and the variance (related to the moment when m = 2) | |
n-th-order approximation of the distribution function of the waiting time of ships of the -th category, which is used to approximate the distribution of the waiting time in the time domain |
Parameter Category | Value | Implication |
---|---|---|
Service rate | Number of ships served by anchorage | |
Arrival rate matrix of the first type of ships | The arrival rate of Class 1 ships is such that the first 1 indicates that, in the first condition, Class 1 ships arrive at 1 ship per hour; 2 indicates that, in the third condition, Class 1 ships arrive at 2 ships per hour, etc. | |
Arrival rate matrix of the second type of ships | As above | |
Arrival rate matrix of the third type of ships | As above | |
Anchorage state transition matrix | is a 4-times-4 square matrix, which means the system has 4 states. For example, , and the absolute value of it indicates that the average number of times that the system leaves state 1 per unit time is 8 times |
Time/h | LP/1h | GA/h | RL/h | M/G/1/1/h | SSA-MMFPQ/h |
---|---|---|---|---|---|
2.0 | 1.1469 | 1.3549 | 1.4283 | 1.1009 | 0.0000 |
3.0 | 1.3231 | 1.3119 | 1.8670 | 1.8262 | 0.1007 |
4.0 | 1.1448 | 1.2538 | 0.8210 | 1.4036 | 0.0649 |
5.0 | 1.7354 | 1.3376 | 1.2456 | 1.2988 | 0.0427 |
6.0 | 1.5107 | 1.1619 | 1.2848 | 2.3041 | 0.0283 |
7.0 | 1.5774 | 1.5647 | 1.5394 | 2.4390 | 0.0189 |
8.0 | 2.1336 | 1.6988 | 1.1943 | 1.1182 | 0.0127 |
9.0 | 1.2751 | 1.5072 | 1.3714 | 2.1005 | 0.0085 |
10.0 | 1.7618 | 1.3114 | 1.3985 | 1.8837 | 0.0058 |
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. |
© 2025 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 (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Deng, J.; Lv, S.; Li, Y.; Luo, L.; Su, Y.; Wang, X.; Liu, X. Ship Scheduling Algorithm Based on Markov-Modulated Fluid Priority Queues. Algorithms 2025, 18, 421. https://doi.org/10.3390/a18070421
Deng J, Lv S, Li Y, Luo L, Su Y, Wang X, Liu X. Ship Scheduling Algorithm Based on Markov-Modulated Fluid Priority Queues. Algorithms. 2025; 18(7):421. https://doi.org/10.3390/a18070421
Chicago/Turabian StyleDeng, Jianzhi, Shuilian Lv, Yun Li, Liping Luo, Yishan Su, Xiaolin Wang, and Xinzhi Liu. 2025. "Ship Scheduling Algorithm Based on Markov-Modulated Fluid Priority Queues" Algorithms 18, no. 7: 421. https://doi.org/10.3390/a18070421
APA StyleDeng, J., Lv, S., Li, Y., Luo, L., Su, Y., Wang, X., & Liu, X. (2025). Ship Scheduling Algorithm Based on Markov-Modulated Fluid Priority Queues. Algorithms, 18(7), 421. https://doi.org/10.3390/a18070421