Hybrid Genetic and Spotted Hyena Optimizer for Flow Shop Scheduling Problem
Abstract
:1. Introduction
- -
- Development of a Hybrid Algorithm: We propose a new hybrid algorithm that effectively integrates the exploration capabilities of SHO and the exploitation capabilities of GA. This combination ensures a more balanced and efficient search process, allowing the algorithm to find near-optimal solutions for the FSSP.
- -
- Adaptation of SHO and GA to FSSP: We adapt the SHO and GA methods to the specific requirements of FSSP, including encoding schemes, objective function evaluation and constraint handling. This adaptation ensures that the hybrid algorithm is well-suited to address the challenges posed by the FSSP.
- -
- Comprehensive Performance Evaluation: We perform a thorough performance evaluation of the proposed hybrid algorithm using a set of benchmark instances from the literature. The results are compared with those obtained by state-of-the-art algorithms, demonstrating the effectiveness of our hybrid approach in terms of solution quality and computational efficiency.
- -
- Hybrid Algorithm Behavior Analysis: We provide an in-depth analysis of the behavior of the hybrid algorithm, discussing the roles of the SHO and GA components and their interactions during the search process. This analysis helps to understand the factors contributing to the success of the algorithm in solving the FSSP and offers insights into potential improvements or adaptations to other combinatorial optimization problems.
2. Related Works
- Tang et al., (2016) [12] proposed an energy-efficient dynamic scheduling approach for a flexible flow shop using an improved particle swarm optimization. The algorithm addresses the dynamic scheduling problem while minimizing energy consumption and makespan.
- C. Zhang et al., (2021) [7] presented a discrete whale swarm algorithm for a hybrid flow-shop scheduling problem with limited buffers, considering practical constraints on buffer area resources and alternative process routes. The algorithm’s effectiveness was validated on three groups of instances and a real-world industrial case.
- Li et al., (2022) [13] examined the distributed assembly mixed no-idle permutation flow-shop scheduling problem (DAMNIPFSP) with a focus on minimizing total tardiness. The researchers developed a mixed-integer linear programming model and proposed a Referenced Iterated Greedy (RIG) algorithm, incorporating novel destruction and reconstruction methods as well as local search methods based on a reference. Experimental results demonstrated the effectiveness of the RIG algorithm, positioning it as a state-of-the-art solution for DAMNIPFSP with the total tardiness criterion.
- Mahmud et al., (2022) [14] introduced a bi-objective integrated supply chain scheduling model and developed two new meta-heuristic algorithms based on multi-objective particle swarm optimization (MOPSO) to solve the strongly NP-hard flexible job shop problem.
- Gümüşçü et al., (2022) [15] investigated the impact of local search strategies on chaotic hybrid firefly particle swarm optimization algorithm in flow-shop scheduling, comparing the results of the solutions obtained using different local search strategies.
- Vali et al., (2022) [16] presented a flexible job shop scheduling problem to optimize patient flow and minimize the total carbon footprint. They developed a metaheuristic optimization algorithm called Chaotic Salp Swarm Algorithm Enhanced with Opposition-based Learning and Sine Cosine (CSSAOS) to solve this NP-hard problem
- Hayat et al., (2023) [17] explored the enhancement of Particle Swarm Optimization (PSO) in tackling Permutation Flow-Shop Scheduling Problems (PFSPs) by hybridizing it with Variable Neighborhood Search (VNS) and Simulated Annealing (SA). The authors compared the performance of the developed hybrid PSO (HPSO) algorithm with 120 distinct Taillard instances, demonstrating its robustness and significantly improved makespan optimization compared to other hybrid metaheuristics.
- Sun et al., (2023) [18] investigated production scheduling technology for knitting workshops utilizing an improved genetic algorithm (IGA) with tabu search. The research, conducted at the Key Laboratory of Modern Textile Machinery & Technology of Zhejiang Province, Zhejiang Sci-Tech University and the School of Automation, Zhejiang Institute of Mechanical & Electrical Engineering aimed to enhance production efficiency and reduce costs. Their proposed IGA demonstrated faster convergence and better search capabilities compared to traditional genetic algorithms, offering valuable insights for advancing intelligent development in knitting production.
3. Flow Shop Scheduling Problems (FSSPs)
- Reduced production lead time: By optimizing the job sequence and minimizing the idle time of machines, flow shop scheduling can significantly reduce the total production time.
- Improved resource utilization: Efficient scheduling ensures that machines are utilized optimally, reducing idle time and maximizing production throughput.
- Enhanced customer satisfaction: Timely delivery of products and shorter lead times can increase customer satisfaction and help to maintain a competitive edge in the market.
- Lower inventory costs: By reducing work-in-process inventory and minimizing production time, flow shop scheduling can help lower inventory holding costs.
- Increased competitiveness: Effective flow shop scheduling allows companies to be more agile and responsive to market demands, thus enhancing their competitive position.
- Constraint (2) minimizes the finish time of the operation on machine m + 1 (the makespan).
- Constraint (3) ensures that precedence relationships between operations are maintained.
- Constraint (4) states that each machine can process only one operation at a time.
- Constraint (5) ensures that the finish times are positive.
4. Methodology
- Encircling prey:
- Hunting:
- Attacking prey:
- Searching for prey:
Algorithm 1 Spotted Hyena Optimizer (SHO) |
1: procedure SHO 2: Input: Spotted hyenas population Pi (i = 1, 2, ..., n) 3: Output: The optimal search agent 4: Initialize parameters h, B, E, and N 5: Evaluate the fitness of each search agent 6: Ph ← Identify the best search agent 7: Ch ← Form a group or cluster of all distant optimal solutions 8: while x < MaxIteration do 9: for each search agent do 10: Update the current agent’s position using Equation (10) 11: end for 12: Update h, B, E, and N 13: Ensure search agents stay within the given search space and adjust if necessary 14: Compute the fitness of each search agent 15: Update Ph if a better solution is found compared to the previous optimal solution 16: Modify group Ch based on Ph 17: x ← x + 1 18: end while 19: return Ph 20: end procedure |
- Dh = |B · P_prey (x) − P(x)|: The subtraction operation between two rat positions is adapted to a list of swaps to be performed on a job sequence P(t) to obtain the best sequence list Pbest(t).
- E · Dh: This operation, involving a real number between [0, 1] and a list of swaps, is redefined to manipulate and decrease the number of swaps generated by the previous equation.
- P_prey (x) − E · Dh: This operation determines the final number of potential swaps to be applied to a job sequence.
- An illustrative example of these modifications is provided below:
- P_prey (x):
- P(x):
- Dh =|P_prey (x) − P(x)|: List of swaps to be performed on a sequence of jobs P(x) to obtain the first sequence list
- P_prey (x) = [ [J5,J1},{J3,J2}]
- E = 0.5
- E · Dh= ½ [J5,J1},{J3,J2}] = {J5,J1}
- p_prey (x)- E · Dh =
- Parent 1: [1, 2, 3, 4, 5] =
- A random binary mask: [0, 1, 0, 1, 0]
- Parent 2: [5, 4, 3, 2, 1] =
- Offspring 1: [1, 4, 3, 2, 5] =
- Offspring 2: [5, 2, 3, 4, 1] =
- Offspring 1: [1, 4, 3, 2, 5] =
- Randomly select two genes to mutate 1 and 3 (swap tasks 1 and 3):
- Mutated offspring 1: [1, 4, 2, 2, 5] =
Algorithm 2 Discrete Hybrid Spotted Hyena Optimizer with Uniform Crocgover |
1: procedure HYBRID SHO(2) 2: Input: Spotted hyenas population Pi (i = 1, 2, ..., n) 3: Output: The optimal search agent 4: Initialize parameters h, B, E, and N 5: Evaluate the fitness of each search agent 6: Ph ← Identify the best search agent 7: Ch ← Form a group or cluster of all distant optimal solutions 8: while x < MaxIteration do 9: for each search agent do 10: Update the current agent’s position using Equation (7) 11: end for 12: Perform Uniform Crossover on selected parent individuals to create offspring 13: Apply mutation operators to offspring (inversion) 14: Replace some individuals in the population with the newly created offspring 15: Update h, B, E, and N 16: Ensure search agents stay within the given search space and adjust if necessary 17: Compute the fitness of each search agent 18: if a better solution is found compared to the previous optimal solution then 19: Update Ph 20: end if 21: Modify group Ch based on Ph 22: x ← x + 1 23: end while 24: return Ph 25: end procedure |
5. Experimental Outcomes
- -
- Objective Function Value (Best): For all instances, GA-SHOA consistently attains the most optimal or near-optimal solution. This highlights GA-SHOA’s superior ability to find the most optimal or best solutions compared to the other algorithms.
- -
- Standard Deviation (STD): GA-SHOA exhibits notably lower standard deviation values compared to other methods. This suggests that GA-SHOA’s results are more reliable and exhibit less variation. A low standard deviation implies that the values are close to the mean or expected value, whereas a high standard deviation implies a wider spread of values. In an optimization context, a lower standard deviation is favorable as it indicates consistent solution quality near the optimal.
- -
- Computation Time: GA-SHOA also outshines other methods in terms of computational efficiency, showcasing faster computation times. For instance, in the case of REC01, GA-SHOA takes a mere 0.042 units of time, while other methods, such as CLS-BFO (0.247 units), IHSA (7.750 units) and PSO (6.042 units), require significantly more time.
6. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Grisales-Ramírez, E.; Osorio, G. Multi-Objective Combinatorial Optimization Using the Cell Mapping Algorithm for Mobile Robots Trajectory Planning. Electronics 2023, 12, 2105. [Google Scholar] [CrossRef]
- Tsai, C.-H.; Lin, Y.-D.; Yang, C.-H.; Wang, C.-K.; Chiang, L.-C.; Chiang, P.-J. A Biogeography-Based Optimization with a Greedy Randomized Adaptive Search Procedure and the 2-Opt Algorithm for the Traveling Salesman Problem. Sustainability 2023, 15, 5111. [Google Scholar] [CrossRef]
- Bhongade, A.S.; Khodke, P.M.; Rehman, A.U.; Nikam, M.D.; Patil, P.D.; Suryavanshi, P. Managing Disruptions in a Flow-Shop Manufacturing System. Mathematics 2023, 11, 1731. [Google Scholar] [CrossRef]
- Cao, L.; Chen, H.; Chen, Y.; Yue, Y.; Zhang, X. Bio-Inspired Swarm Intelligence Optimization Algorithm-Aided Hybrid TDOA/AOA-Based Localization. Biomimetics 2023, 8, 186. [Google Scholar] [CrossRef] [PubMed]
- Kennedy, J.; Eberhart, R. Particle swarm optimization. In Proceedings of the ICNN’95—International Conference on Neural Networks, Perth, WA, Australia, 27 November–1 December 1995; IEEE: Piscataway, NJ, USA, 1995; Volume 4, pp. 1942–1948. [Google Scholar] [CrossRef]
- Kulesz, B.; Sikora, A.; Zielonka, A. The Application of Ant Colony Algorithms to Improving the Operation of Traction Rectifier Transformers. Computers 2019, 8, 28. [Google Scholar] [CrossRef]
- Zhang, C.; Tan, J.; Peng, K.; Gao, L.; Shen, W.; Lian, K. A discrete whale swarm algorithm for hybrid flow-shop scheduling problem with limited buffers. Robot. Comput.-Integr. Manuf. 2021, 68, 102081. [Google Scholar] [CrossRef]
- Mzili, T.; Riffi, M.E.; Mzili, I.; Dhiman, G. A novel discrete Rat swarm optimization (DRSO) algorithm for solving the traveling salesman problem. Decis. Mak. Appl. Manag. Eng. 2022, 5, 287–299. [Google Scholar] [CrossRef]
- Zhang, J.; Zhang, C.; Liang, S. The circular discrete particle swarm optimization algorithm for flow shop scheduling problem. Expert Syst. Appl. 2010, 37, 5827–5834. [Google Scholar] [CrossRef]
- Dhiman, G.; Kumar, V. Multi-objective spotted hyena optimizer: A Multi-objective optimization algorithm for engineering problems. Knowl.-Based Syst. 2018, 150, 175–197. [Google Scholar] [CrossRef]
- Keser, M.; Stupp, S.I. Genetic algorithms in computational materials science and engineering: Simulation and design of self-assembling materials. Comput. Methods Appl. Mech. Eng. 2000, 186, 373–385. [Google Scholar] [CrossRef]
- Tang, D.; Dai, M.; Salido, M.A.; Giret, A. Energy-efficient dynamic scheduling for a flexible flow shop using an improved particle swarm optimization. Comput. Ind. 2016, 81, 82–95. [Google Scholar] [CrossRef]
- Li, Y.-Z.; Pan, Q.-K.; Ruiz, R.; Sang, H.-Y. A referenced iterated greedy algorithm for the distributed assembly mixed no-idle permutation flowshop scheduling problem with the total tardiness criterion. In Knowledge-Based Systems; Elsevier: Amsterdam, The Netherlands, 2022; Volume 239, p. 108036. [Google Scholar] [CrossRef]
- Mahmud, S.; Chakrabortty, R.K.; Abbasi, A.; Ryan, M.J. Swarm intelligent based metaheuristics for a bi-objective flexible job shop integrated supply chain scheduling problems. Appl. Soft Comput. 2022, 121, 108794. [Google Scholar] [CrossRef]
- Gümüşçü, A.; Kaya, S.; Tenekeci, M.E.; Karaçizmeli, İ.H.; Aydilek, İ.B. The impact of local search strategies on chaotic hybrid firefly particle swarm optimization algorithm in flow-shop scheduling. J. King Saud Univ.—Comput. Inf. Sci. 2022, 34, 6432–6440. [Google Scholar] [CrossRef]
- Vali, M.; Salimifard, K.; Gandomi, A.H.; Chaussalet, T.J. Application of job shop scheduling approach in green patient flow optimization using a hybrid swarm intelligence. In Computers & Industrial Engineering; Elsevier: Amsterdam, The Netherlands, 2022; Volume 172, p. 108603. [Google Scholar] [CrossRef]
- Hayat, I.; Tariq, A.; Shahzad, W.; Masud, M.; Ahmed, S.; Ali, M.U.; Zafar, A. Hybridization of Particle Swarm Optimization with Variable Neighborhood Search and Simulated Annealing for Improved Handling of the Permutation Flow-Shop Scheduling Problem. Systems 2023, 11, 221. [Google Scholar] [CrossRef]
- Sun, L.; Shi, W.; Wang, J.; Mao, H.; Tu, J.; Wang, L. Research on Production Scheduling Technology in Knitting Workshop Based on Improved Genetic Algorithm. Appl. Sci. 2023, 13, 5701. [Google Scholar] [CrossRef]
- Chaudhry, I.A.; Elbadawi, I.A.; Usman, M.; Chughtai, M.T. Minimising Total Flowtime in a No-Wait Flow Shop (NWFS) using Genetic Algorithms. Ing. E Investig. 2018, 38, 68–79. [Google Scholar] [CrossRef]
- Kurdı, M. Application of Social Spider Optimization for Permutation Flow Shop Scheduling Problem. J. Soft Comput. Artif. Intell. 2021, 2, 85–97. Available online: https://dergipark.org.tr/en/pub/jscai/issue/66233/1013405 (accessed on 20 April 2023).
Algorithm | Approach | Operators | Population Size | Selection |
---|---|---|---|---|
GA-SHOA | Hybrid | Uniform Crossover, Mutation | 50–100 | Roulette Wheel |
SSO | Nature-inspired | Randomization, Clustering | 20–50 | Roulette Wheel |
SCE-OB | Evolutionary | Crossover, Mutation | 50–200 | Rank-based |
CLS-BFO | Metaheuristic | Local search, randomization | 50–100 | Roulette Wheel |
ACGA | Hybrid | Adaptive Crossover, Mutation | 50–100 | Rank-based |
Parameter | Value |
---|---|
The population of rat size: N | 100 |
B | A random value between [0, 1] |
E | A random value between [0, 1] |
Nb iteration | 400 |
GA-SHOA | CLS-BFO | IHSA | PSO | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
INSTANCE | N × M | BEST | STD | TIME | BEST | STD | TIME | BEST | STD | TIME | BEST | STD | TIME |
REC01 | 20 × 5 | 1245 | 0.578 | 0.042 | 1249 | 1.169 | 0.247 | 17,874 | 17.610 | 7.750 | 19,556 | 17.610 | 6.042 |
REC03 | 20 × 5 | 1109 | 0.718 | 0.063 | 1111 | 0.663 | 0.020 | 15,098 | 22.059 | 8.737 | 17,417 | 22.059 | 9.833 |
REC05 | 20 × 5 | 1242 | 1.211 | 0.087 | 1245 | 2.093 | 0.311 | 17,793 | 23.228 | 9.267 | 19,210 | 23.228 | 6.836 |
REC07 | 20 × 10 | 1566 | 0.644 | 0.118 | 1584 | 1.360 | 0.044 | 25,647 | 7.216 | 6.358 | 28,407 | 7.216 | 6.606 |
REC09 | 20 × 10 | 1537 | 0.856 | 0.032 | 1545 | 2.188 | 0.165 | 24,347 | 10.577 | 6.544 | 26,796 | 10.577 | 6.325 |
REC11 | 20 × 10 | 1431 | 0.307 | 0.036 | 1449 | 0.862 | 0.289 | 22,706 | 21.974 | 5.735 | 25,362 | 21.974 | 9.049 |
REC13 | 20 × 15 | 1930 | 0.609 | 0.066 | 1968 | 2.078 | 0.313 | 33,136 | 18.934 | 9.706 | 36,669 | 18.934 | 8.751 |
REC15 | 20 × 15 | 1950 | 0.972 | 0.017 | 1993 | 2.726 | 0.314 | 33,066 | 14.728 | 7.601 | 35,905 | 14.728 | 7.944 |
REC17 | 20 × 15 | 1902 | 0.071 | 0.101 | 1954 | 2.351 | 0.227 | 31,901 | 23.157 | 8.210 | 35,215 | 23.157 | 6.424 |
REC19 | 30 × 10 | 2093 | 0.109 | 0.010 | 2139 | 1.216 | 0.231 | 51,080 | 10.903 | 6.803 | 59,231 | 10.903 | 6.288 |
REC21 | 30 × 10 | 2017 | 0.792 | 0.090 | 2059 | 2.127 | 0.141 | 48,935 | 21.157 | 5.557 | 57,782 | 21.157 | 7.751 |
REC23 | 30 × 10 | 2011 | 1.296 | 0.103 | 2073 | 2.509 | 0.320 | 47,921 | 15.415 | 6.105 | 56,316 | 15.415 | 6.887 |
DEO | SSO | GA | AGGA | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
INSTANCE | N × M | BEST | STD | TIME | BEST | STD | TIME | BEST | STD | TIME | BEST | STD | TIME |
REC01 | 20 × 5 | 19,938 | 11.476 | 7.102 | 1247 | 1.234 | 0.181 | 17,187 | N/A | 9.720 | 1249 | 1.234 | 0.290 |
REC03 | 20 × 5 | 17,869 | 10.445 | 7.798 | 1109 | 2.219 | 0.274 | 14,682 | N/A | 11.747 | 1109 | 2.219 | 0.286 |
REC05 | 20 × 5 | 19,055 | 5.777 | 9.814 | 1245 | 1.636 | 0.122 | 17,142 | N/A | 7.513 | 1245 | 1.636 | 0.239 |
REC07 | 20 × 10 | 28,841 | 15.712 | 8.838 | 1566 | 2.177 | 0.143 | 25,105 | N/A | 8.552 | 1566 | 2.177 | 0.212 |
REC09 | 20 × 10 | 29,254 | 6.445 | 8.888 | 1537 | 2.496 | 0.271 | 23,861 | N/A | 8.545 | 1537 | 2.496 | 0.164 |
REC11 | 20 × 10 | 25,657 | 17.079 | 8.324 | 1431 | 1.088 | 0.210 | 22,218 | N/A | 10.031 | 1431 | 1.088 | 0.261 |
REC13 | 20 × 15 | 35,091 | 12.657 | 8.536 | 1935 | 0.730 | 0.321 | 32,524 | N/A | 8.133 | 1935 | 0.730 | 0.310 |
REC15 | 20 × 15 | 35,035 | 15.043 | 9.590 | 1968 | 0.559 | 0.123 | 32,218 | N/A | 7.570 | 1950 | 0.559 | 0.137 |
REC17 | 20 × 15 | 35,563 | 16.389 | 9.784 | 1923 | 1.184 | 0.239 | 31,528 | N/A | 11.809 | 1911 | 1.184 | 0.194 |
REC19 | 30 × 10 | 62,458 | 5.965 | 8.382 | 2117 | 2.277 | 0.142 | 50,395 | N/A | 9.632 | 2099 | 2.277 | 0.191 |
REC21 | 30 × 10 | 60,206 | 6.728 | 7.713 | 2017 | 1.004 | 0.141 | 47,733 | N/A | 9.056 | 2046 | 1.004 | 0.177 |
REC23 | 30 × 10 | 57,992 | 16.926 | 7.990 | 2030 | 0.933 | 0.211 | 45,935 | N/A | 8.471 | 2021 | 0.933 | 0.276 |
Source of Variation | SS | df | MS | F | p-Value |
---|---|---|---|---|---|
Between Algorithms | 4.20 × 107 | 7 | 6.00 × 106 | 373.13 | 2.20 × 10−16 |
Within Algorithms | 1.44 × 106 | 56 | 2.58 × 104 | ||
Total | 4.34 × 107 | 63 |
Model | Difference in Means | Lower Bound | Upper Bound | p-Value |
---|---|---|---|---|
GA-SHOA-AGGA | −0.2 | −170.15 | 169.75 | 1.0000 |
GA-SHOA-CLS-BFO | −21.08 | −191.03 | 148.87 | 0.8737 |
GA-SHOA-DEO | 370.17 | 200.22 | 540.12 | 0.0003 |
GA-SHOA-GA | −397.25 | −567.20 | −227.30 | 0.0000 |
GA-SHOA-IHSA | 18,823.83 | 18,553.88 | 19,093.78 | 0.0000 |
GA-SHOA-PSO | 18,409.50 | 18,139.55 | 18,679.45 | 0.0000 |
GA-SHOA-SSO | −0.8 | −170.75 | 169.15 | 1.0000 |
Comparison | W | p-Value | Significantly (p < 0.05)? |
---|---|---|---|
GA-SHOA-GA-SHOA | 64.0 | 0.586 | No |
GA-SHOA-CLS-BFO | 45.0 | 0.014 | Yes |
GA-SHOA-IHSA | 0.0 | <0.0001 | Yes |
GA-SHOA-PSO | 0.0 | 0.0003 | Yes |
GA-SHOA-DEO | 19.0 | 0.009 | Yes |
GA-SHOA-SSO | 64.0 | 0.586 | No |
GA-SHOA-GA | 7.0 | <0.0001 | Yes |
GA-SHOA-AGGA | 45.0 | 0.014 | Yes |
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. |
© 2023 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
Mzili, T.; Mzili, I.; Riffi, M.E.; Dhiman, G. Hybrid Genetic and Spotted Hyena Optimizer for Flow Shop Scheduling Problem. Algorithms 2023, 16, 265. https://doi.org/10.3390/a16060265
Mzili T, Mzili I, Riffi ME, Dhiman G. Hybrid Genetic and Spotted Hyena Optimizer for Flow Shop Scheduling Problem. Algorithms. 2023; 16(6):265. https://doi.org/10.3390/a16060265
Chicago/Turabian StyleMzili, Toufik, Ilyass Mzili, Mohammed Essaid Riffi, and Gaurav Dhiman. 2023. "Hybrid Genetic and Spotted Hyena Optimizer for Flow Shop Scheduling Problem" Algorithms 16, no. 6: 265. https://doi.org/10.3390/a16060265
APA StyleMzili, T., Mzili, I., Riffi, M. E., & Dhiman, G. (2023). Hybrid Genetic and Spotted Hyena Optimizer for Flow Shop Scheduling Problem. Algorithms, 16(6), 265. https://doi.org/10.3390/a16060265