applied sciences Article Job Shop Scheduling Problem Optimization by Means of Graph-Based Algorithm Jiri Stastny 1,2,* , Vladislav Skorpil 3, Zoltan Balogh 4and Richard Klein 1 Citation: Stastny, J.; Skorpil, V.; Balogh, Z.; Klein, R. Job Shop Scheduling Problem Optimization by Means of Graph-Based Algorithm. Appl. Sci. 2021,11, 1921. https:// doi.org/10.3390/app11041921 Academic Editor: Alexandre Carvalho Received: 11 January 2021 Accepted: 17 February 2021 Published: 22 February 2021 Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. Copyright: © 2021 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/). 1 Institute of Automation and Computer Science, Brno University of Technology, 616 69 Brno, Czech Republic;
[email protected] 2Department of Informatics, Mendel University in Brno, 613 00 Brno, Czech Republic 3Department of Telecommunications, Brno University of Technology, 616 00 Brno, Czech Republic; [email protected].cz 4Computer Science Department, Constantine the Philosopher University in Nitra, 949 74 Nitra, Slovakia; [email protected] *Correspondence: [email protected].cz Abstract: In this paper we introduce the draft of a new graph-based algorithm for optimization of scheduling problems. Our algorithm is based on the Generalized Lifelong Planning A* algorithm, which is usually used for path planning for mobile robots. It was tested on the Job Shop Scheduling Problem against a genetic algorithm’s classic implementation. The acquired results of these experiments were compared by each algorithm’s required time (to find the best solution) as well as makespan. The comparison of these results showed that the proposed algorithm exhibited a promising convergence rate toward an optimal solution. Job shop scheduling (or the job shop problem) is an optimization problem in informatics and operations research in which jobs are assigned to resources at particular times. The makespan is the total length of the schedule (when all jobs have finished processing). In most of the tested cases, our proposed algorithm managed to find a solution faster than the genetic algorithm; in five cases, the graph-based algorithm found a solution at the same time as the genetic algorithm. Our results also showed that the manner of priority calculation had a non-negligible impact on solutions, and that an appropriately chosen priority calculation could improve them. Keywords: Genetic algorithms; graph-based algorithm; Job Shop Scheduling Problem; optimization 1. Introduction Nowadays, graph-based algorithms are a popular tool for solving various optimization problems. However, most optimization methods are only used for solving one type of task. On the other hand, methods for optimization of several problems, in most cases, lack sufficient computing power. There are a wide variety of different algorithms available for the optimization of scheduling problems. One of the most well-known is the genetic algorithm (GA). In this article, we introduce the draft of a graph-based algorithm for scheduling optimization problems. The proposed algorithm aims to have the flexibility and scope of application of advanced optimization methods—such as genetic algorithms—and to retain most of the positive characteristics of advanced graph algorithms. We researched the literature carefully and paid great attention—though the references contained mainly general literature reviews. Our proposed algorithm appears unique; we could not find any other reference with comparable results for the given problem. There are many different methods, algorithms and modifications, some of which already contain some of the required properties. Their structure allows for further adaptation. Additionally, some algorithms are directly intended for further development into new algorithms. From various graph-based algorithms, the Forward Version of Generalized Appl. Sci. 2021,11, 1921. https://doi.org/10.3390/app11041921 https://www.mdpi.com/journal/applsci
Appl. Sci. 2021,11, 1921 2 of 16 Lifelong Planning A* (GLPA*) [ 1 ] —used for path planning in mobile robot navigation— was chosen. We then attempted to modify it for use in other types of optimization and tested it on various travelling salesman problems against the genetic algorithm (GA) [ 2 , 3 ]. The solution was based on a new algorithm, a hybrid between graph-based and genetic algorithms. An algorithm was designed and implemented that combines the advantages of graph-based and genetic algorithms. We chose the genetic algorithm for comparison because it was suited for this purpose and remains one of the most well-known algorithms for optimization in the planning area. The key parameters for the solution in the given area were makespan and calculation speed. Optimization according to other parameters would be possible; however, given the importance of the above two key parameters, it would not make sense. The task of developing new optimization procedures resulted from a general effort to optimize problem solving. Our proposed graph-based algorithm has been successfully tested on other problems (see references) and was more successful that the commonly-used genetic algorithm in solving the Job Scheduling. The motivation for the development of new algorithms was to obtain faster, more accurate results in the given area. In this paper, the term “performance” refers to the success of our algorithm according to the following parameters: makespan and calculation speed. Using those parameters, our new graph-based algorithm was compared with a genetic algorithm (for makespan differences, see conclusion; for calculation speed, see Table 1). These parameters were chosen because they are key, and because, according to references, measuring other parameters would have made little sense. For the industry, improvements in makespan and calculation speed are economically-driven (e.g., seeking a reduction in price). The graph-based algorithm had a better average deviation from best-known makespans than the GA. The average deviations of the best-known makespans from the best makespans were as follows: 5.19% for GA and 4.7% for α ; 5.05% for β and 5.08% for γ , for the developed (graph-based) algorithm. The average calculation speed of the proposed graph algorithm is two to three times higher than the GA. When researching the new graph-based algorithm, we proceeded through five steps: (1) analysis of graph-based algorithms, (2) analysis of genetic algorithms, (3) development and design of new algorithm, (4) verification of algorithm on job shop scheduling problem (JSSP), and (5) comparison with the genetic algorithm used in the given area. Let us take a look at our new algorithm’s performance on job shop scheduling problems.
Appl. Sci. 2021,11, 1921 3 of 16 Table 1. Comparison of algorithms on job shop scheduling problem (JSSP) by time and makespan. Jobs Machines Instance Best Known Makespan Time of Optimization Algorithm Used Makespan Time of Finding Best Makespan [mm:ss] Average Makespan Average Time of Finding Makespan [mm:ss] 10 5 la01 666 90 Graph-based α666 00:00.04 678.18 00:07.38 Graph-based β666 00:00.04 683.79 00:06.54 Graph-based γ666 00:00.03 682.54 00:03.83 Genetic 666 00:00.99 666.19 00:28.65 10 5 la02 655 90 Graph-based α672 00:00.03 728.8 00:17.91 Graph-based β709 00:00.02 773.09 00:06.95 Graph-based γ678 00:00.02 769.4 00:06.29 Genetic 655 00:04.44 686.67 00:50.59 10 5 la03 597 90 Graph-based α617 00:00.04 655.23 00:11.06 Graph-based β609 00:00.03 657.66 00:06.73 Graph-based γ617 00:00.03 666.61 00:03.55 Genetic 613 00:02.41 638.2 00:50.81 10 5 la04 590 90 Graph-based α604 00:00.04 634.17 00:09.94 Graph-based β595 00:00.04 641.77 00:09.34 Graph-based γ600 00:00.02 643.07 00:06.08 Genetic 595 00:01.32 612.89 00:48.42 10 5 la05 593 90 Graph-based α593 00:00.02 593 00:00.04 Graph-based β593 00:00.02 593.27 00:00.74 Graph-based γ593 00:00.02 593.24 00:00.11 Genetic 593 00:00.01 593 00:00.12
Appl. Sci. 2021,11, 1921 4 of 16 Table 1. Cont. Jobs Machines Instance Best Known Makespan Time of Optimization Algorithm Used Makespan Time of Finding Best Makespan [mm:ss] Average Makespan Average Time of Finding Makespan [mm:ss] 15 5 la06 926 120 Graph-based α926 00:00.06 926.1 00:01.22 Graph-based β926 00:00.06 926.59 00:02.22 Graph-based γ926 00:00.06 926.27 00:02.18 Genetic 926 00:00.04 926 00:03.41 15 5 la07 890 120 Graph-based α890 00:00.12 915.83 00:34.05 Graph-based β903 00:00.07 957.15 00:13.01 Graph-based γ903 00:00.08 957.43 00:08.24 Genetic 890 00:09.89 909.04 01:10.46 15 5 la08 863 120 Graph-based α863 00:00.08 869.58 00:18.09 Graph-based β863 00:00.07 886.27 00:09.32 Graph-based γ863 00:00.07 883.58 00:11.99 Genetic 863 00:00.12 864.28 00:45.89 15 5 la09 951 120 Graph-based α951 00:00.07 951 00:00.10 Graph-based β951 00:00.08 951.48 00:00.45 Graph-based γ951 00:00.06 951.28 00:01.40 Genetic 951 00:00.03 951 00:00.81 15 5 la10 958 120 Graph-based α958 00:00.07 958 00:00.10 Graph-based β958 00:00.10 958 00:00.15 Graph-based γ958 00:00.06 958 00:01.33 Genetic 958 00:00.03 958 00:00.27 20 5 la11 1222 150 Graph-based α1222 00:00.14 1222 00:00.82 Graph-based β1222 00:00.14 1224.72 00:07.29 Graph-based γ1222 00:00.13 1224.72 00:10.09 Genetic 1222 00:00.06 1222 00:08.97
Appl. Sci. 2021,11, 1921 5 of 16 Table 1. Cont. Jobs Machines Instance Best Known Makespan Time of Optimization Algorithm Used Makespan Time of Finding Best Makespan [mm:ss] Average Makespan Average Time of Finding Makespan [mm:ss] 20 5 la12 1039 150 Graph-based α1039 00:00.14 1039.3 00:00.75 Graph-based β1039 00:00.13 1040.11 00:03.03 Graph-based γ1039 00:00.13 1039.13 00:00.51 Genetic 1039 00:00.05 1039 00:09.49 20 5 la13 1150 150 Graph-based α1150 00:00.13 1150 00:00.18 Graph-based β1150 00:00.14 1150.25 00:02.55 Graph-based γ1150 00:00.13 1150 00:01.27 Genetic 1150 00:00.04 1150 00:03.73 20 5 la14 1292 150 Graph-based α1292 00:00.14 1292 00:00.16 Graph-based β1292 00:00.13 1292 00:00.17 Graph-based γ1292 00:00.13 1292 00:00.18 Genetic 1292 00:00.04 1292 00:00.06 20 5 la15 1207 150 Graph-based α1221 00:00.18 1284.92 00:53.47 Graph-based β1235 00:00.13 1341.45 00:38.72 Graph-based γ1246 00:00.14 1344.66 00:42.69 Genetic 1227 00:01.69 1270.59 01:33.41 10 10 la16 945 120 Graph-based α982 00:00.14 1057.65 00:31.06 Graph-based β994 00:00.13 1068.95 00:17.09 Graph-based γ982 00:00.19 1071.77 00:19.66 Genetic 979 00:01.57 1022.91 01:11.39 10 10 la17 784 120 Graph-based α793 00:00.17 835.65 00:23.33 Graph-based β793 00:00.17 841.72 00:14.33 Graph-based γ793 00:00.14 842.9 00:17.10 Genetic 795 00:00.13 832.96 00:55.36
Appl. Sci. 2021,11, 1921 6 of 16 Table 1. Cont. Jobs Machines Instance Best Known Makespan Time of Optimization Algorithm Used Makespan Time of Finding Best Makespan [mm:ss] Average Makespan Average Time of Finding Makespan [mm:ss] 10 10 la18 848 120 Graph-based α849 00:00.14 917.28 00:22.30 Graph-based β861 00:00.19 920.34 00:16.73 Graph-based γ861 00:00.13 921.51 00:20.68 Genetic 871 00:00.16 914.83 00:47.57 10 10 la19 842 120 Graph-based α877 00:00.13 934.03 00:21.21 Graph-based β889 00:00.13 951.43 00:15.39 Graph-based γ886 00:00.11 954.89 00:13.99 Genetic 875 00:02.52 925.92 01:02.01 10 10 la20 902 120 Graph-based α921 00:00.15 976.8 00:22.44 Graph-based β914 00:00.14 967.72 00:18.57 Graph-based γ907 00:00.12 960.93 00:23.14 Genetic 924 00:00.68 976.04 00:57.70 15 10 la21 1046 150 Graph-based α1144 00:01.46 1201.86 00:54.14 Graph-based β1122 00:00.51 1230.36 00:42.71 Graph-based γ1149 00:00.48 1230.86 00:46.21 Genetic 1140 00:06.32 1218.33 01:15.78 15 10 la22 927 150 Graph-based α999 00:00.50 1093.93 00:44.53 Graph-based β1051 00:00.53 1109.53 00:44.76 Graph-based γ1027 00:01.69 1113.67 00:38.11 Genetic 1029 00:08.06 1105.7 01:25.18 15 10 la23 1032 150 Graph-based α1068 00:00.43 1131.96 00:37.00 Graph-based β1076 00:00.35 1144.07 00:31.82 Graph-based γ1086 00:00.36 1141.74 00:33.06 Genetic 1046 00:01.64 1140.26 01:12.26
Appl. Sci. 2021,11, 1921 7 of 16 Table 1. Cont. Jobs Machines Instance Best Known Makespan Time of Optimization Algorithm Used Makespan Time of Finding Best Makespan [mm:ss] Average Makespan Average Time of Finding Makespan [mm:ss] 15 10 la24 935 150 Graph-based α1013 00:00.41 1070.53 00:55.55 Graph-based β1029 00:01.64 1075.82 00:40.20 Graph-based γ992 00:00.54 1082.89 00:37.05 Genetic 1024 00:01.16 1088.24 01:07.66 15 10 la25 977 150 Graph-based α1079 00:00.50 1125.75 00:38.39 Graph-based β1076 00:00.50 1150.38 00:44.80 Graph-based γ1083 00:00.54 1155.49 00:34.43 Genetic 1060 00:03.24 1155.14 01:17.27 20 10 la26 1218 180 Graph-based α1311 00:00.84 1395.86 01:06.53 Graph-based β1340 00:02.17 1405.4 01:27.17 Graph-based γ1328 00:04.80 1411.57 01:11.35 Genetic 1340 00:04.13 1428.12 01:36.13 20 10 la27 1235 180 Graph-based α1368 00:00.79 1459.38 01:00.30 Graph-based β1390 00:01.04 1486.95 01:24.53 Graph-based γ1379 00:01.06 1483.46 01:04.60 Genetic 1411 00:04.29 1485.78 01:38.00 20 10 la28 1216 180 Graph-based α1328 00:00.87 1399.72 01:04.58 Graph-based β1349 00:00.71 1437.18 00:53.57 Graph-based γ1348 00:00.90 1435.36 00:57.33 Genetic 1364 00:01.27 1431.87 01:28.75 20 10 la29 1157 180 Graph-based α1320 00:00.77 1401.5 00:58.80 Graph-based β1316 00:01.97 1402.03 01:13.52 Graph-based γ1326 00:00.76 1404.5 01:15.13 Genetic 1350 00:05.84 1435.2 01:26.83
Appl. Sci. 2021,11, 1921 8 of 16 Table 1. Cont. Jobs Machines Instance Best Known Makespan Time of Optimization Algorithm Used Makespan Time of Finding Best Makespan [mm:ss] Average Makespan Average Time of Finding Makespan [mm:ss] 20 10 la30 1355 180 Graph-based α1467 00:00.83 1549.21 00:43.81 Graph-based β1458 00:00.90 1560.17 00:47.64 Graph-based γ1481 00:00.80 1558.42 00:55.33 Genetic 1472 00:04.83 1544.5 01:47.72 20 10 la31 1784 180 Graph-based α1784 00:06.40 1837.23 02:10.06 Graph-based β1784 00:08.73 1841.66 02:39.27 Graph-based γ1784 00:14.42 1835.87 02:47.32 Genetic 1807 00:16.38 1898.83 02:18.27 30 10 la32 1850 240 Graph-based α1851 00:13.64 1914.26 02:41.29 Graph-based β1850 00:10.02 1917.62 02:39.39 Graph-based γ1850 00:10.87 1921.69 02:30.43 Genetic 1895 00:16.50 1993.32 02:05.09 30 10 la33 1719 240 Graph-based α1739 00:02.39 1796.38 02:08.04 Graph-based β1725 00:05.58 1817.67 02:44.53 Graph-based γ1744 00:02.56 1819.53 02:36.41 Genetic 1780 00:08.46 1845.43 02:12.57 30 10 la34 1721 240 Graph-based α1819 00:02.29 1878.34 01:51.83 Graph-based β1797 00:02.55 1889.43 02:11.28 Graph-based γ1819 00:02.33 1897.38 01:57.48 Genetic 1846 00:11.64 1909.86 02:04.97 30 10 la35 1888 240 Graph-based α1980 00:02.43 2115.15 02:32.74 Graph-based β2067 00:09.87 2197.11 02:20.97 Graph-based γ2078 00:06.73 2193.47 02:36.02 Genetic 2021 00:17.32 2143.59 02:48.95
Appl. Sci. 2021,11, 1921 9 of 16 Table 1. Cont. Jobs Machines Instance Best Known Makespan Time of Optimization Algorithm Used Makespan Time of Finding Best Makespan [mm:ss] Average Makespan Average Time of Finding Makespan [mm:ss] 15 15 la36 1268 180 Graph-based α1427 00:00.99 1494.55 00:51.76 Graph-based β1387 00:00.99 1511.63 00:48.84 Graph-based γ1419 00:01.07 1513.32 01:01.04 Genetic 1373 00:02.11 1482.9 01:30.90 15 15 la37 1397 180 Graph-based α1576 00:01.03 1667.02 01:16.16 Graph-based β1546 00:05.63 1664.63 01:20.99 Graph-based γ1565 00:04.33 1663.85 01:24.34 Genetic 1549 00:08.89 1681.12 01:48.09 15 15 la38 1196 180 Graph-based α1375 00:00.99 1448.17 00:52.06 Graph-based β1381 00:00.99 1446.89 01:02.95 Graph-based γ1378 00:01.15 1449.01 01:04.43 Genetic 1397 00:01.46 1469.16 01:19.78 15 15 la39 1233 180 Graph-based α1385 00:01.04 1455.54 01:00.09 Graph-based β1377 00:00.99 1452.02 01:21.56 Graph-based γ1371 00:01.57 1454.57 01:12.73 Genetic 1405 00:01.16 1475.14 01:20.90 15 15 la40 1222 180 Graph-based α1386 00:01.50 1446.41 01:16.11 Graph-based β1356 00:03.92 1435.03 01:25.09 Graph-based γ1364 00:05.21 1438.51 01:34.75 Genetic 1412 00:10.56 1484.72 01:40.72
Appl. Sci. 2021,11, 1921 16 of 16 22. Baptiste, P.; Flamini, M.; Sourd, F. Lagrangian bounds for just-in-time job shop scheduling. Comput. Oper. Res. 2008 ,35, 906–915. [CrossRef] 23. Chen, H.X.; Luh, P.B. An alternative framework to Lagrangian relaxation approach for job shop scheduling. Eur. J. Oper. Res. 2003,149, 499–512. [CrossRef] 24. Kaskavelis, C.A.; Caramanis, M.C. Efficient Lagrangian relaxation algorithms for industry size job-shop scheduling problems. IIE Trans. 1998,30, 1085–1097. [CrossRef] 25. Brucker, P.; Jurisch, B.; Sievers, B. A branch and bound algorithm for job shop scheduling problem. Discret. Appl. Math 1994,49, 105–127. [CrossRef] 26. Artigues, C.; Feillet, D. A branch and bound method for the job shop problem with sequence dependent setup times. Ann. Oper. Res. 2008,159, 135–159. [CrossRef] 27. Lorigeon, T. A dynamic programming algorithm for scheduling jobs in a two-machine open shop with an availability constraint. J. Oper. Res. Soc. 2002,53, 1239–1246. [CrossRef] 28. Potts, C.N.; Van Wassonhove, L.N. Dynamic programming and decomposition approaches for the single machine total tardiness problem. Eur. J. Oper. Res. 1987,32, 405–414. [CrossRef] 29. Kofjac, D.; Knaflic, A.; Kljajic, M. Development of a Web Application for Dynamic Production Scheduling in Small and Medium Enterprises. Organizacija 2010,43, 125–135. [CrossRef] 30. Koenig, S.; Likhachev, M.; Furcy, D. Lifelong Planning A*. Artif. Intell. J. 2004,155, 93–146. [CrossRef] 31. Koenig, S.; Likhachev, M.; Furcy, D. Speeding up the Parti-Game Algorithm. In Proceedings of the The Neural Information Processing Systems (NIPS), Whistler, BC, Canada, 9–14 December 2002; pp. 1563–1570. 32. Likhachev, M.; Koenig, S. A Generalized Framework for Lifelong Planning A* Search. In Proceedings of the International Conference on Automated Planning and Scheduling (ICAPS), Monterey, CA, USA, 5–10 June 2005; pp. 99–108. 33. Seda, M. Mathematical Models of Flow Shop and Job Shop Scheduling Problems. Int. J. Appl. Math. Comput. Sci. 2007 ,4, 241–246. 34. Taillard, E. Benchmarks for basic scheduling problems. Eur. J. Oper. Res. 1993,64, 278–285. [CrossRef] 35. Beasley, J.E. OR-Library: Distributing test problems by electronic mail. J. Oper. Res. Soc. 1990,41, 1069–1072. [CrossRef] 36. Lawrence, S. Resource Constrained Project Scheduling: An Experimental Investigation of Heuristic Scheduling Techniques; Technical Report, GSIA; Carnegie Mellon University: Pittsburgh, PA, USA, 1984.