Crossover Operator Inspired by the Selection Operator for an Evolutionary Task Sequencing Algorithm
<p>Flow diagram of the used evolutionary algorithm.</p> "> Figure 2
<p>The chromosome encodes the task sequence. Each task is described by a set of parameters, <math display="inline"><semantics> <mover> <mi mathvariant="bold">P</mi> <mo>¯</mo> </mover> </semantics></math>. Each node is connected to two neighbors by a connection, the length of which represents the cost <span class="html-italic">C</span> of the transition between tasks and is a function of the parameters of the adjacent tasks. During optimization, the chromosome forms a cyclic graph with no indication of the start of the sequence.</p> "> Figure 3
<p>Example of a chromosome in the form of a ring (cycle) graph for 12 tasks.</p> "> Figure 4
<p>The operation of selecting a sequence fragment to be transferred from the donor and a fragment to be removed from the recipient. Green items indicate selected sequence fragments. Yellow items are repeated in both fragments and do not require repair. Blue items are genes that will cause task duplication in the recipient. Red items represent tasks removed from the recipient and the lack of these tasks in the recipient’s chromosome.</p> "> Figure 5
<p>Creating offspring. Light blue items represent new genes inserted into the recipient chromosome. Dark red items are old recipient genes that cause erroneous duplication of tasks.</p> "> Figure 6
<p>Repairing the child. In place of each duplicate task in the recipient (green items), the task removed from the recipient chromosome at the stage of inserting the donor fragment is inserted (red items).</p> "> Figure 7
<p>Flow diagram of the proposed crossover operator. This crossover subalgorithm is implemented in each generation of the evolutionary algorithm.</p> "> Figure 8
<p>Preliminary impact analysis of metaparameter <span class="html-italic">a</span> on the effectiveness of the new crossover method (the criterion value of the best individual) for sequencing 100 tasks to determine its optimal value. The determined value (red dot) for the minimum was used in the main comparative analysis of the new operator and the existing operators.</p> "> Figure 9
<p>Preliminary impact analysis of exchanged sequence fragment length on the effectiveness of the new crossover method (the criterion value of the best individual) for sequencing 100 tasks to determine its optimal value for different cost definitions: Euclidean (<b>A</b>), Euclidean<sup>2</sup> (<b>B</b>), and Manhattan (<b>C</b>). The determined value (red dot) for the minimum was used in the main comparative analysis of the new operator and the existing operators.</p> "> Figure 10
<p>Influence of the number of sequencing tasks on the optimal exchanged sequence fragment length for different cost definitions: Euclidean (<b>A</b>), Euclidean<sup>2</sup> (<b>B</b>), and Manhattan (<b>C</b>). The red lines represent the mean values used as metaparameter values in further studies.</p> "> Figure 11
<p>Effectiveness of the crossover operator for the 250-task problem. The mean criterion value (three definitions of cost: Euclidean, Euclidean<sup>2</sup>, and Manhattan) of the best individual achieved after 1000 generations.</p> "> Figure 12
<p>Effectiveness of the crossover operator for the 500-task problem. The mean criterion value (three definitions of cost: Euclidean, Euclidean<sup>2</sup>, and Manhattan) of the best individual achieved after 1000 generations.</p> "> Figure 13
<p>Effectiveness of the crossover operator for the 1000-task problem. The mean criterion value (three definitions of cost: Euclidean, Euclidean<sup>2</sup>, and Manhattan) of the best individual achieved after 1000 generations.</p> "> Figure 14
<p>Effectiveness of the crossover operator for the 250-task problem with normally distributed parameters. The mean criterion value (three definitions of cost: Euclidean, Euclidean<sup>2</sup>, and Manhattan) of the best individual achieved after 1000 generations.</p> "> Figure 15
<p>Effectiveness of the crossover operator for the 250-task problem with discrete parameters (three levels of values). The mean criterion value (three definitions of cost: Euclidean, Euclidean<sup>2</sup>, and Manhattan) of the best individual achieved after 1000 generations.</p> "> Figure 16
<p>Effectiveness of the crossover operator for the 250-task problem with discrete parameters (four levels of values). The mean criterion value (three definitions of cost: Euclidean, Euclidean<sup>2</sup>, and Manhattan) of the best individual achieved after 1000 generations.</p> "> Figure 17
<p>Effectiveness of the crossover operator for the 250-task problem with discrete parameters (five levels of values). The mean criterion value (three definitions of cost: Euclidean, Euclidean<sup>2</sup>, and Manhattan) of the best individual achieved after 1000 generations.</p> "> Figure 18
<p>Comparison of execution time of 200 generations for the 500-task problem.</p> "> Figure 19
<p>Change in the criterion value over time for the 500-task problem (cost based on Euclidean distance) over 1000 generations.</p> "> Figure 20
<p>Change in the criterion value over time for the 500-task problem (cost based on Euclidean<sup>2</sup> distance) over 1000 generations.</p> "> Figure 21
<p>Change in the criterion value over time for the 500-task problem (cost based on Manhattan distance) over 1000 generations.</p> "> Figure 22
<p>Influence of the population size on the effectiveness of the crossover operators for the 500-task problem (cost based on Euclidean distance) over 1000 generations.</p> ">
Abstract
:1. Introduction
2. Modified Evolutionary Algorithm for Task Sequencing
2.1. Selection Operator
2.2. Sequence Encoding
2.3. New Crossover Operator
- Two individuals are selected randomly from the population for the crossover operation. One acts as a donor of a sequence fragment, and the other acts as a recipient of a sequence fragment.
- For the donor individual in the randomly selected pair, all fragments of the task sequence are evaluated with a length constituting a metaparameter of the algorithm. The evaluation is based on the total cost of connections between tasks within a sequence fragment:
- Having the cost of each fragment of the sequence, we can select the fragment transferred from the donor to the recipient using a method analogous to the proportional selection operator:The coefficient a allows you to control the strength of selection. The value 0 means a completely random selection of a fragment of the sequence, which is analogous to solutions known in the literature [15,22,23]. Increasing the value of the coefficient a increases the deterministic impact of the internal cost of a sequence fragment. Further increasing the value of the coefficient a towards infinity brings us to a completely deterministic selection of the best fragment (with the lowest cost). The coefficient a is the next metaparameter of the discussed algorithm. The probabilities determined according to the Equation (1) are finally scaled to a sum equal to 1.
- On the recipient side, for the same length of a sequence fragment, the cost of internal connections in each fragment is determined based on Equation (2).
- Then, a fragment is cut out from the recipient’s chromosome (sequence), and a fragment taken from the donor will be inserted in its place. The probability of selecting such a fragment can be determined by the proportional (4) method. As you can see, the determined probabilities are complements to probabilities (3).
- Division of genes (tasks) deleted from parent 2 (recipient) into two groups (Figure 4). During this stage, we compare the genes in both fragments obtained in the previous stages in order to determine the genes that will be duplicated in the child (recipient after modification). The item marked in yellow will not be replicated in the recipient because it is present in both the fragment taken from the donor and the fragment removed from the recipient. However, genes marked in red will be retained in memory as missing in the recipient. Genes marked in blue will cause duplicates to appear in the recipient because they were not present in the fragment removed from the recipient.
- At this stage, we insert the fragment obtained from the donor in the first stage into the free place in the recipient that was created after cutting the chain (Figure 5). After this operation, the new chromosome is usually damaged because it contains duplicated genes (marked in red in the individual in Figure 5). In addition, the child is missing certain genes that were cut out from the recipient when the fragment was removed.
- The final step of the crossover operator involves repairing the resulting chromosome (Figure 6). Following the clockwise direction from the first gene located after the fragment is inserted into the recipient, the duplicate genes are replaced with subsequent missing genes (due to the removal of the recipient fragment).
3. Experiment and Results Discussion
3.1. Optimization of Algorithm Metaparameters
3.2. Comparative Analysis
4. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Bagchi, T.P.; Gupta, J.N.; Sriskandarajah, C. A review of TSP based approaches for flowshop scheduling. Eur. J. Oper. Res. 2006, 169, 816–854. [Google Scholar] [CrossRef]
- Funke, S.; Laue, S.; Naujoks, R.; Lotker, Z. Power assignment problems in wireless communication: Covering points by disks, reaching few receivers quickly, and energy-efficient travelling salesman tours. In Proceedings of the Distributed Computing in Sensor Systems: 4th IEEE International Conference, DCOSS 2008, Santorini Island, Greece, 11–14 June 2008; pp. 282–295. [Google Scholar]
- Toaza, B.; Esztergár-Kiss, D. A review of metaheuristic algorithms for solving TSP-based scheduling optimization problems Image 1. Appl. Soft Comput. 2023, 148, 110908. [Google Scholar] [CrossRef]
- Emambocus, B.A.S.; Jasser, M.B.; Amphawan, A.; Mohamed, A.W. An Optimized Discrete Dragonfly Algorithm Tackling the Low Exploitation Problem for Solving TSP. Mathematics 2022, 10, 3647. [Google Scholar] [CrossRef]
- Wang, Y.; Han, Z. Ant colony optimization for traveling salesman problem based on parameters optimization. Appl. Soft Comput. 2021, 107, 107439. [Google Scholar] [CrossRef]
- Yang, X.S. A New Metaheuristic Bat-Inspired Algorithm. In Nature Inspired Cooperative Strategies for Optimization (NICSO 2010); Springer: Berlin/Heidelberg, Germany, 2010; pp. 65–74. [Google Scholar] [CrossRef]
- Gendreau, M.; Hertz, A.; Laporte, G. New insertion and postoptimization procedures for the traveling salesman problem. Oper. Res. 1992, 40, 1086–1094. [Google Scholar] [CrossRef]
- França, P.M.; Gendreau, M.; Laporte, G.; Müller, F.M. The m-traveling salesman problem with minmax objective. Transp. Sci. 1995, 29, 267–275. [Google Scholar] [CrossRef]
- França, P.M.; Gendreau, M.; Laporte, G.; Müller, F.M. A tabu search heuristic for the multiprocessor scheduling problem with sequence dependent setup times. Int. J. Prod. Econ. 1996, 43, 79–89. [Google Scholar] [CrossRef]
- Qamar, M.S.; Tu, S.; Ali, F.; Armghan, A.; Munir, M.F.; Alenezi, F.; Muhammad, F.; Ali, A.; Alnaim, N. Improvement of Traveling Salesman Problem Solution Using Hybrid Algorithm Based on Best-Worst Ant System and Particle Swarm Optimization. Appl. Sci. 2021, 11, 4780. [Google Scholar] [CrossRef]
- Stodola, P.; Michenka, K.; Nohel, J.; Rybanský, M. Hybrid Algorithm Based on Ant Colony Optimization and Simulated Annealing Applied to the Dynamic Traveling Salesman Problem. Entropy 2020, 22, 884. [Google Scholar] [CrossRef]
- Mavrovouniotis, M.; Müller, F.M.; Yang, S. Ant colony optimization with local search for dynamic traveling salesman problems. IEEE Trans. Cybern. 2016, 47, 1743–1756. [Google Scholar] [CrossRef]
- Malik, A. A study of genetic algorithm and crossover techniques. Int. J. Comput. Sci. Mob. Comput. 2019, 8, 335–344. [Google Scholar]
- Syswerda, G. Uniform crossover in genetic algorithms. In Proceedings of the ICGA, Fairfax, VA, USA, 4–7 June 1989; Volume 3, pp. 2–9. [Google Scholar]
- Ishola, K.; James, O. Cost Reduction of Traveling Salesman Problem with an Enhanced Genetic Algorithm. Int. J. Res. Sci. Innov. 2020, 7, 110–117. [Google Scholar]
- Cavus, M.; Allahham, A. Enhanced Microgrid Control through Genetic Predictive Control: Integrating Genetic Algorithms with Model Predictive Control for Improved Non-Linearity and Non-Convexity Handling. ENERGIES 2024, 17, 4458. [Google Scholar] [CrossRef]
- De Jong, K.A. An Analysis of the Behavior of a Class of Genetic Adaptive Systems; University of Michigan: Ann Arbor, MI, USA, 1975. [Google Scholar]
- Edmondson, L.V. Genetic Algorithms with 3-Parent Crossover; University of Missouri: Rolla, MO, USA, 1993. [Google Scholar]
- Zbigniew, M. Genetic algorithms+ data structures= evolution programs. Comput. Stat. 1996, 24, 372–373. [Google Scholar]
- Kora, P.; Yadlapalli, P. Crossover operators in genetic algorithms: A review. Int. J. Comput. Appl. 2017, 162, 34–36. [Google Scholar] [CrossRef]
- Satyananda, D. Modification of Crossover Operator on GA Application for TSP. In Proceedings of the International Conference on Research, Implementation and Education of Mathematics and Sciences, Yogyakarta, Indonesia, 14–15 September 2015. [Google Scholar]
- Goldberg, D.E.; Lingle, R. Alleles, Loci and the Traveling Salesman Problem. In Proceedings of the 1st International Conference on Genetic Algorithms, Pittsburg, PA, USA, 24–26 July 1985; pp. 154–159. [Google Scholar]
- Davis, L. Job Shop Scheduling with Genetic Algorithms. In Proceedings of the 1st International Conference on Genetic Algorithms, Pittsburg, PA, USA, 24–26 July 1985; pp. 136–140. [Google Scholar]
- Oliver, I.M.; Smith, D.J.; Holland, J.R.C. A study of permutation crossover operators on the traveling salesman problem. In Proceedings of the Second International Conference on Genetic Algorithms on Genetic Algorithms and Their Application, Cambridge, MA, USA, 28–31 July 1987; pp. 224–230. [Google Scholar]
- Whitley, D.; Starkweather, T.; Shaner, D. The Traveling salesman and Sequence Scheduling: Quality Solutions Using Genetic Edge Recombination. In Handbook of Genetic Algorithms; Van Nostrand Reinhold: New York, USA, 1991; pp. 350–372. [Google Scholar]
- Radcliffe, N.J.; Surry, P.D. Fitness variance of formae and performance prediction. In Foundations of Genetic Algorithms; Elsevier: Amsterdam, The Netherlands, 1995; Volume 3, pp. 51–72. [Google Scholar]
- Poon, P.W.; Carter, J.N. Genetic algorithm crossover operators for ordering applications. Comput. Oper. Res. 1995, 22, 135–147. [Google Scholar] [CrossRef]
- Aşveren, T.; Molitor, P. New crossover methods for sequencing problems. In Proceedings of the International Conference on Parallel Problem Solving from Nature, Berlin, Germany, 22–26 September 1996; pp. 287–299. [Google Scholar]
- Moon, C.; Kim, J.; Choi, G.; Seo, Y. An efficient genetic algorithm for the traveling salesman problem with precedence constraints. Eur. J. Oper. Res. 2002, 140, 606–617. [Google Scholar] [CrossRef]
- Choi, I.C.; Kim, S.I.; Kim, H.S. A genetic algorithm with a mixed region search for the asymmetric traveling salesman problem. Comput. Oper. Res. 2003, 30, 773–786. [Google Scholar] [CrossRef]
- Cicirello, V.A. Non-wrapping order crossover: An order preserving crossover operator that respects absolute position. In Proceedings of the 8th Annual Conference on Genetic and Evolutionary Computation, Seattle, DC, USA, 8–12 July 2006; pp. 1125–1132. [Google Scholar]
- Yuan, S.; Skinner, B.; Huang, S.; Liu, D. A new crossover approach for solving the multiple travelling salesmen problem using genetic algorithms. Eur. J. Oper. Res. 2013, 228, 72–82. [Google Scholar] [CrossRef]
- Hussain, A.; Muhammad, Y.S.; Sajid, M.N.; Hussain, I.; Shoukry, A.M.; Gani, S. Genetic algorithm for traveling salesman problem with modified cycle crossover operator. Comput. Intell. Neurosci. 2017, 2017, 7430125. [Google Scholar] [CrossRef]
- Hussain, A.; Muhammad, Y.S.; Sajid, M.N. A simulated study of genetic algorithm with a new crossover operator using traveling salesman problem. J. Math. 2019, 51, 61. [Google Scholar]
- Koohestani, B. A crossover operator for improving the efficiency of permutation-based genetic algorithms. Expert Syst. Appl. 2020, 151, 113381. [Google Scholar] [CrossRef]
- Iqbal, Z.; Bashir, N.; Hussain, A.; Cheema, S.A. A novel completely mapped crossover operator for genetic algorithm to facilitate the traveling salesman problem. Comput. Math. Methods 2020, 2, e1122. [Google Scholar] [CrossRef]
- Grefenstette, J.J. Incorporating problem specific knowledge in genetic algorithms. In Genetic Algorithms and Simulated Annealing; Stanford University: Stanford, CA, USA, 1987; pp. 42–60. [Google Scholar]
- Jog, P.; Suh, J.Y.; Gucht, D.V. The Effects of Population Size, Heuristic Crossover and Local Improvement on a Genetic Algorithm for the Traveling Salesman Problem. In Proceedings of the 3rd International Conference on Genetic Algorithms, Fairfax, VA, USA, 4–7 June 1989; pp. 110–115. [Google Scholar]
- Julstrom, B.A. Very greedy crossover in a genetic algorithm for the traveling salesman problem. In Proceedings of the 1995 ACM Symposium on Applied Computing, Nashville, TN, USA, 26–28 February 1995; pp. 324–328. [Google Scholar]
- Ahmed, Z.H. Genetic algorithm for the traveling salesman problem using sequential constructive crossover operator. Int. J. Biom. Bioinform. (IJBB) 2010, 3, 96. [Google Scholar] [CrossRef]
- Paul, P.V.; Ramalingam, A.; Baskaran, R.; Dhavachelvan, P.; Vivekanandan, K.; Subramanian, R. A new population seeding technique for permutation-coded Genetic Algorithm: Service transfer approach. J. Comput. Sci. 2014, 5, 277–297. [Google Scholar] [CrossRef]
- Victer Paul, P.; Ganeshkumar, C.; Dhavachelvan, P.; Baskaran, R. A novel ODV crossover operator-based genetic algorithms for traveling salesman problem. Soft Comput. 2020, 24, 12855–12885. [Google Scholar] [CrossRef]
- Ting, C.K. Multi-parent extension of edge recombination. In Proceedings of the 9th Annual Conference on Genetic and Evolutionary Computation, London, UK, 7–11 July 2007; p. 1535. [Google Scholar]
- Akter, S.; Nahar, N.; ShahadatHossain, M.; Andersson, K. A new crossover technique to improve genetic algorithm and its application to TSP. In Proceedings of the 2019 International Conference on Electrical, Computer and Communication Engineering (ECCE), Cox’s Bazar, Bangladesh, 7–9 February 2019; pp. 1–6. [Google Scholar]
- Ciepliński, P.; Golak, S.; Wieczorek, T. Analysis of modification of the evolutionary algorithm for sequencing production tasks. Comput. Methods Mater. Sci. 2022, 22, 3. [Google Scholar]
- Dou, X.A.; Yang, Q.; Gao, X.D.; Lu, Z.Y.; Zhang, J. A Comparative Study on Crossover Operators of Genetic Algorithm for Traveling Salesman Problem. In Proceedings of the 15th International Conference on Advanced Computational Intelligence (ICACI), Seoul, Republic of Korea, 6–9 May 2023; pp. 1–8. [Google Scholar]
- Ahmed, Z.H.; Al-Otaibi, N.; Al-Tameem, A.; Saudagar, A.K.J. Genetic Crossover Operators for the Capacitated Vehicle Routing Problem. Comput. Mater. Contin. 2023, 75, 1575–1605. [Google Scholar]
Crossover Method | Cost Definition | Mean | |
---|---|---|---|
PMX | Euclidean | ||
OX | Euclidean | ||
Single-Point Crossover | Euclidean | ||
SCX | Euclidean | ||
New method | Euclidean | ||
PMX | Euclidean2 | ||
OX | Euclidean2 | ||
Single-Point Crossover | Euclidean2 | ||
SCX | Euclidean2 | ||
New method | Euclidean2 | ||
PMX | Manhattan | ||
OX | Manhattan | ||
Single-Point Crossover | Manhattan | ||
SCX | Manhattan | ||
New method | Manhattan |
Crossover Method | Cost Definition | Mean | |
---|---|---|---|
PMX | Euclidean | ||
OX | Euclidean | ||
Single-Point Crossover | Euclidean | ||
SCX | Euclidean | ||
New method | Euclidean | ||
PMX | Euclidean2 | ||
OX | Euclidean2 | ||
Single-Point Crossover | Euclidean2 | ||
SCX | Euclidean2 | ||
New method | Euclidean2 | ||
PMX | Manhattan | ||
OX | Manhattan | ||
Single-Point Crossover | Manhattan | ||
SCX | Manhattan | ||
New method | Manhattan |
Crossover Method | Cost Definition | Mean | |
---|---|---|---|
PMX | Euclidean | ||
OX | Euclidean | ||
Single-Point Crossover | Euclidean | ||
SCX | Euclidean | ||
New method | Euclidean | ||
PMX | Euclidean2 | ||
OX | Euclidean2 | ||
Single-Point Crossover | Euclidean2 | ||
SCX | Euclidean2 | ||
New method | Euclidean2 | ||
PMX | Manhattan | ||
OX | Manhattan | ||
Single-Point Crossover | Manhattan | ||
SCX | Manhattan | ||
New method | Manhattan |
Crossover Method | Cost Definition | F-Test (p) | t-Test (p) | Reduction |
---|---|---|---|---|
PMX | Euclidean | |||
OX | Euclidean | |||
Single-Point Crossover | Euclidean | |||
SCX | Euclidean | |||
PMX | Euclidean2 | |||
OX | Euclidean2 | |||
Single-Point Crossover | Euclidean2 | |||
SCX | Euclidean2 | |||
PMX | Manhattan | |||
OX | Manhattan | |||
Single-Point Crossover | Manhattan | |||
SCX | Manhattan |
Crossover Method | Cost Definition | F-Test (p) | t-Test (p) | Reduction |
---|---|---|---|---|
PMX | Euclidean | |||
OX | Euclidean | |||
Single-Point Crossover | Euclidean | |||
SCX | Euclidean | |||
PMX | Euclidean2 | |||
OX | Euclidean2 | |||
Single-Point Crossover | Euclidean2 | |||
SCX | Euclidean2 | |||
PMX | Manhattan | |||
OX | Manhattan | |||
Single-Point Crossover | Manhattan | |||
SCX | Manhattan |
Crossover Method | Cost Definition | F-Test (p) | t-Test (p) | Reduction |
---|---|---|---|---|
PMX | Euclidean | |||
OX | Euclidean | |||
Single-Point Crossover | Euclidean | |||
SCX | Euclidean | |||
PMX | Euclidean2 | |||
OX | Euclidean2 | |||
Single-Point Crossover | Euclidean2 | |||
SCX | Euclidean2 | |||
PMX | Manhattan | |||
OX | Manhattan | |||
Single-Point Crossover | Manhattan | |||
SCX | Manhattan |
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. |
© 2024 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
Ciepliński, P.; Golak, S. Crossover Operator Inspired by the Selection Operator for an Evolutionary Task Sequencing Algorithm. Appl. Sci. 2024, 14, 11786. https://doi.org/10.3390/app142411786
Ciepliński P, Golak S. Crossover Operator Inspired by the Selection Operator for an Evolutionary Task Sequencing Algorithm. Applied Sciences. 2024; 14(24):11786. https://doi.org/10.3390/app142411786
Chicago/Turabian StyleCiepliński, Piotr, and Sławomir Golak. 2024. "Crossover Operator Inspired by the Selection Operator for an Evolutionary Task Sequencing Algorithm" Applied Sciences 14, no. 24: 11786. https://doi.org/10.3390/app142411786
APA StyleCiepliński, P., & Golak, S. (2024). Crossover Operator Inspired by the Selection Operator for an Evolutionary Task Sequencing Algorithm. Applied Sciences, 14(24), 11786. https://doi.org/10.3390/app142411786