Open Access
ARTICLE
Research on Flexible Job Shop Scheduling Based on Improved Two-Layer Optimization Algorithm
College of Mechanical and Electrical Engineering, Harbin Engineering University, Harbin, 150001, China
* Corresponding Author: Jiang Li. Email:
Computers, Materials & Continua 2024, 78(1), 811-843. https://doi.org/10.32604/cmc.2023.046040
Received 16 September 2023; Accepted 21 November 2023; Issue published 30 January 2024
Abstract
To improve the productivity, the resource utilization and reduce the production cost of flexible job shops, this paper designs an improved two-layer optimization algorithm for the dual-resource scheduling optimization problem of flexible job shop considering workpiece batching. Firstly, a mathematical model is established to minimize the maximum completion time. Secondly, an improved two-layer optimization algorithm is designed: the outer layer algorithm uses an improved PSO (Particle Swarm Optimization) to solve the workpiece batching problem, and the inner layer algorithm uses an improved GA (Genetic Algorithm) to solve the dual-resource scheduling problem. Then, a rescheduling method is designed to solve the task disturbance problem, represented by machine failures, occurring in the workshop production process. Finally, the superiority and effectiveness of the improved two-layer optimization algorithm are verified by two typical cases. The case results show that the improved two-layer optimization algorithm increases the average productivity by 7.44% compared to the ordinary two-layer optimization algorithm. By setting the different numbers of AGVs (Automated Guided Vehicles) and analyzing the impact on the production cycle of the whole order, this paper uses two indicators, the maximum completion time decreasing rate and the average AGV load time, to obtain the optimal number of AGVs, which saves the cost of production while ensuring the production efficiency. This research combines the solved problem with the real production process, which improves the productivity and reduces the production cost of the flexible job shop, and provides new ideas for the subsequent research.Keywords
With the increasing automatic level in the manufacturing industry and the constant changes in market demand, it is necessary to improve manufacturing flexibility and resource utilization, as well as reduce the production cycle to meet the gradually formed market demand characterized by multi-variety, small batch, product customization and short production cycle [1]. The production mode of manufacturing enterprises has also shifted from the traditional special line production to the flexible multi-variety and small batch mixed-flow production mode [2]. The flexible workshop, which combines the advantages of traditional production run and flexible production, can fit the product variety, differentiated mixed line production well, and it has become a mainstream mode that manufacturing enterprises use to deal with multi-variety and small batch mixed line production [3], especially in the military, aerospace, automotive fields.
In the flexible production mode, most parts are processed and transferred according to a certain batch size, except for some large or special equipment parts that need to be produced in a single piece [4]. AGVs are widely used in the production process of flexible workshops to complete the transfer task of parts in the production process because of their automation, high efficiency and flexibility [5]. The quality of the workpiece batching and the transfer efficiency of AGVs will have a great impact on the job shop scheduling. Therefore, the flexible job shop scheduling problem considering AGV transportation and workpiece batching constraints has certain theoretical significance and engineering application value.
Flexible Job Shop Scheduling Problem (FJSP) is an extension of the Job Shop Scheduling Problem (JSP), which breaks through the limitation of JSP that each process is machined only on one determined machine tool. For FJSP, each process can be machined on multiple optional machine tools [6], which is more in line with actual production needs. Research on FJSP has generally focused on solving the problem of machine optimal scheduling, i.e., choosing a reasonable processing machine for each process of each workpiece and formulating a reasonable processing sequence to optimize production [7,8]. However, most studies of FJSP scheduling optimization are mainly based on single-piece scheduling [9–11], ignoring the fact that the flow and transportation process of the workpieces among different processes and the machining and transshipment processes of most parts are carried out according to a certain batch in the flexible production mode, which is not in line with the actual production process.
In summary, although FJSP can solve sub-problems such as process sequencing and machine selection in a way that a certain batch of workpieces is regarded as a whole, the division of the batch in production has a greater impact on optimization objectives such as the completion time [12]. Therefore, the study of the workpiece batch scheduling problem of the flexible job shop is of great significance in guiding the actual production and improving the utilization of machine tools. This problem is more complex than the traditional FJSP, and the solution should not only consider process sequencing, machine selection but also consider batch division including the number of batches and the batch size of each sub-batch [13]. The job shop scheduling problem considering workpiece batching has received academic attention in recent years; however, the overall research is relatively scarce. Wang et al. [14] proposed the Hybrid Particle Swarm Algorithm to solve the batch scheduling problem in solar cell manufacturing, stating that machine allocation, batch determination and production sequencing for each batch were linked and needed to be jointly optimized. Low et al. [15] demonstrated that batch scheduling of workpieces could improve productivity and solved the common batch scheduling problem in production. Sun et al. [16] proposed the Genetic Algorithm for batch scheduling workpieces in equal quantities, which could optimize the batch division and the machining order of sub-batches simultaneously. Yan et al. [17] used the PSO and the improved PSO to solve the variable batch flow shop problem. And this result showed that the improved PSO increased the range, depth and speed of particle search; therefore, the optimal solution capability and stability of the improved PSO were better than the standard PSO and other methods. Although the above studies have achieved some results in batch division, they have neglected the link between the batch requirements of the product and the dual resource (machine tools and AGVs) constraints.
Integrating machine tools with AGVs for scheduling will speed up the material flow and improve the production management efficiency of the workshop. Therefore, more and more scholars are starting to integrate AGVs and machine tools for scheduling. In the research of dual-resource scheduling problems, most scholars use intelligent algorithms to solve them. Liu et al. [18] established a mathematical model of dual-resource scheduling containing machine tools and AGVs for the problem of segment AGV flexible job shop scheduling optimization. They designed an improved genetic algorithm to solve the problem and verified the superiority of the algorithm through a standard case. Zhu et al. [19] studied flexible job shop scheduling containing AGVs to minimize the maximum completion time. They proposed an improved genetic algorithm and compared it with two classical heuristic algorithms in experiments to verify the feasibility and effectiveness of the new algorithm. Sanches et al. [20] proposed to use an adaptive GA to solve the scheduling problem when considering the simultaneous use of machines and AGVs to minimize the manufacturing cycle time. They verified the computational results in larger scenarios and compared the adaptive GA with other methods, which obtained better results. However, the above studies only consider the static constraints of machine tools and AGVs, ignoring the fact that dynamic abnormal disturbance events will inevitably occur during the actual production process, such as equipment failures, emergency order insertion, delivery time changes and other uncertain disturbance factors [21], which affects the reliable and stable operation of the production system. And these uncertainties have a greater impact on the original production plan and even cause the scheduling program formulated in advance to be no longer effective. With the continuous application of IoT information technology in the production process, such as sensors, machine vision, etc., the relevant information in workshop production can be sensed in real-time by a series of intelligent workshop devices [22]. These technological means can summarize and analyze the real-time production data to help the enterprise to master the real-time production status of the workshop in order to prevent the impact of the dynamic abnormal disturbance events on the production in advance, so the study of the flexible job shop rescheduling is of great significance.
Therefore, this paper designs an improved two-layer optimization algorithm for the dual-resource scheduling optimization problem of flexible job shops considering workpiece batching to minimize the maximum completion time. The outer algorithm uses the improved PSO to solve the workpiece batching problem and uses the obtained workpiece batching scheme as an input to the inner algorithm. The inner layer algorithm uses an improved GA to solve the dual-resource scheduling problem. Moreover, a rescheduling method is designed for disturbance events during the production process. The effectiveness of the two-layer optimization algorithm is verified by a typical case. The impacts of different numbers of AGVs on the production process are analyzed, and the optimal number of AGVs is determined by the maximum completion time decreasing rate index.
The contributions of this paper to the dual resource scheduling optimization problem of flexible job shop considering workpiece batching are as follows:
1. For the dual-resource scheduling optimization problem of flexible job shop considering workpiece batching, a dual-resource scheduling optimization model considering workpiece batching is established to minimize the maximum completion time.
2. Combining the advantages of PSO and GA, this paper designs an improved two-layer optimization algorithm to solve the dual-resource scheduling problem considering workpiece batching. For the outer algorithm PSO, it is improved by using linearly decreasing inertia weights, time-varying acceleration factors, etc. For the inner algorithm GA, a three-layer coding method is designed, and the Hill-Climbing strategy, the hybrid selection strategy of roulette and tournament, adaptive crossover, adaptive variation and other improve methods are also added. The case results show that compared to the ordinary two-layer optimization algorithm, the improved two-layer optimization algorithm takes less time and has a higher average productivity in solving the dual-resource scheduling optimization problem for flexible job shop considering workpiece batching.
3. Due to the uncertainty of the scheduling environment, some abnormal events may occur in real industry production, which may cause the initial scheduling scheme to be unexecuted. This paper takes the failure of processing equipments as the disturbance event, and designs a rescheduling method. The simulation results of the test case show that a better result can be achieved, which is more in line with the real production process.
The other parts of the work are as follows:
Section 2 describes and analyzes the dual-resource scheduling optimization problem of flexible job shop considering workpieces batching and constructs a mathematical optimization model; Section 3 designs an improved two-layer optimization algorithm for solving the dual-resource scheduling optimization problem of flexible job shop considering workpieces batching; Section 4 verifies the validity of the algorithm through a typical case study, and gives a recommendation on the number of AGVs; Section 5 summarizes and discusses the research content of this paper.
2 Problem Description and Modeling
The dual-resource scheduling optimization problem of flexible job shop considering workpiece batching can be described as:
When a flexible job shop is performing a production task, there are n types of workpieces
Assumptions:
1. Each production sub-batch is transported and processed as a whole;
2. Different production sub-batches can be processed in parallel without being subject to the process sequence constraint;
3. Only one production sub-batch can be processed on one machine tool at the same time;
4. After the machine tool has started machining, the process cannot be interrupted unless there is a malfunction in that machine tool;
5. All machine tools have unlimited material buffer capacity, and only one AGV can be parked at a time;
6. The AGV travels at a constant speed, independent of its unloaded and loaded transportation status;
7. The AGV shall not be interrupted during the transfer of workpieces unless there is a conflict or malfunction;
8. The machining process does not take into account switching times for different workpieces in the same production sub-batch;
9. The installing material time and the removing material time of the machine tools are included in the corresponding machining time;
10. The installing material time and the removing material time of the AGVs are included in the corresponding transportation time;
11. In the initial state, the workpiece rough is in the warehouse, and the AGVs are parked at the outbound platform in the warehouse;
12. No consideration of the AGV power constraint.
To facilitate the establishment of the mathematical model, according to the above assumptions, the introduced parameter symbols and decision variables are defined in Table 1.
Decision variables:
where,
Objective function:
where,
Constraint conditions:
Eq. (6) represents the workpiece batch constraint, i.e., the number of workpieces in any production sub-batch should be less than or equal to the minimum value of both the AGV’s single maximum load capacity and the total number of workpieces in that category. And the number of workpieces in any production sub-batch should be greater than one. Eq. (7) indicates that the sum of workpieces in the different sub-batches after workpiece batching should be equal to the total number of workpieces of that type. Eq. (8) indicates that only one production sub-batch can be processed on one machine tool at the same time. Eq. (9) indicates that a process in any production sub-batch can only be machined on one machine tool at the same time. Eq. (10) indicates that one AGV can only transfer workpieces of one production sub-batch at the same time. Eq. (11) indicates that the workpieces of any production sub-batch can be only transferred by one AGV at the same time. Eq. (12) represents the process start time constraint, i.e., the start processing time of any process should be greater than or equal to the maximum value of both the end time of the AGV loaded transferring the process and the end time of the current machine tool processing the previous task. Eq. (13) represents the AGV loaded transfer start time constraint, i.e., the start time of any process of the AGV’s load transfer should be greater than or equal to the maximum value of both the unload end time of the AGV and the end time of the previous process. Eq. (14) represents the machine tool selection constraint, i.e., any process must choose a machine tool from the set of available machine tools. Eq. (15) represents the process constraints, i.e., any workpiece can be added to the next process only after its current process is completed. Eq. (16) indicates that the machine tool is not allowed to be interrupted during machining. Eq. (17) indicates that the AGV is not allowed to be interrupted during the transfer task. Eq. (18) represents the delivery period constraint, i.e., the maximum completion time cannot exceed the delivery period.
3 Design of Improved Two-Layer Optimization Algorithm
In this section, an improved two-layer optimization algorithm is designed to solve the dual-resource scheduling optimization problem of flexible job shop considering workpiece batching by combining the advantages of the PSO and the GA. The outer layer algorithm adopts the improved PSO to solve the workpiece batching problem, and the inner layer adopts the improved GA to solve the dual resource scheduling problem. The basic solution flowchart of the improved two-layer optimization algorithm is shown in Fig. 1.
3.1 Design of Outer Layer Batch Optimization Algorithm
The outer layer algorithm in this paper uses the PSO to solve the problem of workpiece batching. And the solved workpiece batching scheme is used as the input to the inner layer dual-resource scheduling algorithm to solve the dual-resource scheduling scheme under this batching scheme. Then the fitness of the dual-resource scheduling scheme solved by the inner layer algorithm is used as the fitness of the outer layer algorithm to evaluate the quality of that batching scheme.
Commonly used heuristic optimization algorithms include intelligent optimization algorithms such as the Simulated Annealing (SA), the GA, and the PSO. The principle of the PSO is simple and easy to implement, and fewer parameters need to be adjusted. The PSO also has fast convergence and high efficiency. The outer layer batch optimization algorithm is based on the PSO for solving, but the algorithm’s global search ability is relatively poor, and it is easy to fall into the local optimum [23,24]. Therefore, the PSO is improved as follows.
Each particle i in PSO algorithm contains a D-dimensional velocity vector
where,
This paper refers to the linearly decreasing inertia weights proposed by Shi et al. [25] to improve
where, K is the total number of evolutionary generations;
where,
In this paper, the workpiece batching method uses the equal batching principle under the relevant constraints of Eqs. (6)–(18). For workpieces of type a with a total production volume
The specific steps of the outer layer improved particle swarm algorithm for solving the workpiece batching scheme are as follows:
Step 1: Initialize the total number of evolutionary generations K and the population size N of the outer layer algorithm. Calculate the number of legal batches into which n types of workpieces can be divided.
Step 2: Set the current evolutionary generation t = 1, and randomly initialize the velocity
Step 3: Sequentially take the workpiece batching schemes
Step 4: Update the historical optimal solution
Step 5: Check whether the termination condition of the algorithm t = K is satisfied. If so, output the optimal workpiece batching schemes
Step 6: Within the legal search space, update
Step 7: The updated workpiece batching schemes
Step 8: Go to Step 4 and perform t++.
3.2 Design of Inner Lay Dual-Resource Scheduling Algorithm
The inner dual resource scheduling algorithm is based on the GA because it has strong global search ability, and the GA is easy to combine with other algorithms, which can solve nonlinear and discontinuous problems. However, the GA coding and decoding are more complex, slower convergence, and the GA is more dependent on the initial population [27,28]. Therefore, the dual resource scheduling scheme is solved by the improved GA in this section, as follows.
Each chromosome is encoded in three layers: the Order Select (OS) layer, the Machine Select (MS) layer, and the AGV Select (AS) layer.
The OS layer adopts decimal coding. The specific coding rule for each gene of the chromosome is in the form of “a.b”, where a indicates the workpiece number and b indicates the batch number. The times that a number appears on the chromosome indicates the total number of processes of the workpiece. The order in which the numbers appear indicates the corresponding processes. All processes of all workpieces from different batches are randomly combined into a complete OS layer chromosome. As shown in Fig. 3, if a chromosome sequence contains 12 genes
MS layer adopts integer coding mode, and the chromosome length of MS layer is the same as the OS layer. The numbers on each gene represent the machine tools of the corresponding process. MS layer coding mode is shown in Fig. 4: the three processes of the number “workpiece 1 batch 1” on the first three genes of the chromosome choose machine tool 2, machine tool 5, and machine tool 6, respectively. And so on, we can get the selected machine tools for all the processes of all the workpieces of different batches.
The AS layer uses integer coding, and each of its genes corresponds to the OS layer one by one. The AS layer coding is shown in Fig. 5. The number “2” on the gene
3.2.2 Population Initialization
To improve the quality of the initial population of the genetic algorithm and maintain the diversity of the population, this paper designs different initialization methods for the three-layer coding method. The OS layer chromosomes are first initialized through a completely random way, and then further optimized using the Hill-Climbing Algorithm, which effectively improve the quality of the initial solution and the convergence speed of the algorithm.
The MS layer chromosomes are initialized through a combination of a random selection strategy and a global selection strategy, where the random selection ensures the diversity of the population and improves the global search capability of the algorithm, and the global selection strategy ensures the load balancing of the machine tool.
The AS layer chromosomes are initialized by a random method firstly. However, the task allocation to AGVs during the scheduling process is based on the principles of first-come-first-served and load-balancing, which specifically means that when there is an idle state AGV waiting for a task to be allocated, the AGV closest to the task node is selected to perform the transported task; when there is no idle AGV waiting to be allocated, the task is batched to the AGV with the shortest cumulative load time.
The Roulette Selection Method allows lower fitness individuals to have some probability of being selected, maintaining population diversity to some extent. Tournament Selection is a method of choosing better-adapted individuals to the next generation based on random selection, thus increasing the probability of good genes being passed on in the population. This paper adopts a mixed selection strategy of the roulette selection and the tournament selection to choose half the size of the population individuals, respectively.
The OS layer chromosomes and the AS layer chromosomes use Precedence Operation Crossover (POX), as shown in the Fig. 6. The MS layer uses Multi-point Crossover (MPX), as shown in the Fig. 7.
Whether a chromosome crosses over is related to the size of the crossover probability
where,
Both the OS and AS layers of the chromosome use the reciprocal variation operation, as shown in Fig. 8. The gene position is randomly selected on the MS layer chromosome and its corresponding workpiece number and process number are determined, and then one other machine tool is randomly selected to replace the current machine tool from machine collection of this process, as shown in Fig. 9.
When setting the mutation probability
where,
The selection of parameters for the GA and the PSO algorithm has an impact on many factors, such as the accuracy and speed of the algorithm and relates to the quality of the results and system performance [30,31]. Therefore, it is necessary to analyze the parameters in the two-layer optimization algorithm.
Since the evolutionary generation K and population size N have a large impact on the solution performance of the improved two-layer optimization algorithm in this paper, these two parameters need to be adjusted according to the actual situation during the optimization process. The solution is unstable if K is too small, and the optimization process is very time-consuming if K is too large. The smaller N is easy to fall into the local optimum; the larger N can improve convergence and find the global optimal solution faster, but the computational amount of each iteration will also increase accordingly. Moreover, when N increases to a certain level, continuing to increase N will no longer have a significant effect. The following paper discusses the sensitivity of K and N.
3.3 Design of Rescheduling Method Based on Disturbance Events
The scheduling process in a manufacturing shop is full of uncertainties, such as machine failures, emergency order insertions, etc. [32]. By timely triggering rescheduling to generate a new scheduling program, the production plan is adjusted according to the new program to ensure the stability of production process. In this paper, the disturbance event takes machine failure as an example.
Rescheduling consists of two main aspects: one is the time of starting a new round of scheduling, and the other is the method used for the new round of scheduling. In the application case of this paper, the strategy of rescheduling is to start a new round of scheduling immediately when the disturbance event occurs. You et al. [33] introduced the sequential deviation and completion time deviation as the rescheduling evaluation indexes to choose from the two rescheduling methods-right-shift rescheduling and complete rescheduling. In terms of all aspects of the indexes, the performance of the scheme obtained from complete rescheduling is better. In this paper, the rescheduling method adopts the complete rescheduling method, i.e., in a new round of scheduling, all the current unfinished workpieces are included in the object set of this scheduling.
When a sudden equipment failure occurs, according to the state of each workpiece and each process in the set of processing objects, the object of rescheduling will be reestablished. According to the processing state, the workpieces and the working processes are divided into three categories: completed processes, processing processes and waiting for processing processes. The processes that are interrupted by equipment failures, as well as the processes of newly arrived workpieces are added to the set of waiting for processing processes. The rescheduling object is the set of processes that are being processed and those that are waiting to be processed, and the information about the idle moments of the equipment is updated at the same time.
Before the disturbance event occurs, the workpiece information and equipment information are known and will not be changed. The processing of the product is executed according to the initial scheduling plan until all workpieces have been processed. When a disturbance event occurs, a rescheduling operation is performed according to the processing status of each workpiece and the status of each piece of equipment. The rescheduling process is shown in Fig. 10.
This section initially compares the improved two-layer optimization algorithm with the ordinary two-layer optimization algorithm through a case in Section 4.1, and verifies the superiority of the improved two-layer optimization algorithm of this paper through the solution results. Then, a new case is added in Section 4.2, and the outputs of the two cases are obtained to mutually corroborate the effectiveness of the algorithm.
4.1 Algorithmic Superiority Verification
The production demand of a production case is 6 kinds of workpieces (J1–J6). The number of each kind of workpiece is shown in Table 2. The process flow data of each workpiece is shown in Table 3, where the data indicates the machining time of the process on the corresponding machine tools and the “—” indicates that the process cannot be processed on the corresponding machine tools. The distance between the workshop machine tools, the warehouses and the individual machines is shown in Fig. 11. There are 8 machine tools involved in this case (M1–M8), where: the blue nodes are machine tools; the yellow nodes are warehouses; the number between each node indicates the distance between the nodes. In addition, a total of 4 AGVs perform the workpiece transfer task: the transportation speed is 30 m/min, and the single load capacity is 10 workpiece.
4.1.2 Parameter Sensitivity Analysis
Since K and N have an enormous impact on the solution performance of the improved two-layer optimization algorithm in this paper, a sensitivity analysis of these two important parameters is conducted here. To analyze the parameter K, N is set to 50 and other parameters keep constant using the control variable method. The above case is solved by setting different K. Different values of K are calculated 10 times, and then, the average of the calculated results is analyzed. The results of the experimental statistics are shown in Fig. 12. The experimental results show that when K is set too small, the global optimal solution cannot be searched; when K is set to 100, the algorithm can search for the global optimal solution in the solution space, but continuing to increase K will only increase the computation time of the algorithm and will not search for a better solution. Therefore, the optimal K setting in this paper is 100.
To analyze the parameter N, K is set to 100 and other parameters keep constant using the control variable method. The above case is solved by setting different N. The experimental results are shown in Fig. 13. The experimental results show that the global search ability of the algorithm increases as N increases; However, when N exceeds 50, the global optimal solution searched remains stable as N continues to increase, only that the number of evolutionary generations of the algorithm decreases. Therefore, the optimal N in this paper is 50.
In the same configuration environment, the above case is solved by the improved two-layer optimization algorithm and the ordinary two-layer optimization algorithm, respectively.
The outer layer of the ordinary two-layer optimization algorithm uses the traditional PSO algorithm with particle updating just following Eqs. (19)–(20), whereas the improved PSO algorithm has particle updating using Eqs. (19)–(23) for each of the parameters. The inner layer algorithm of the ordinary optimization algorithm adopts the traditional GA algorithm, which uses a completely randomized method to generate the initial population for the OS, MS and AS layers in the initialization stage of the population. However, the improved two-layer algorithm in this paper designs different initialization methods for the three layers of coding methods, where the OS layer is initialized by a completely randomized method first and then further optimized by a hill-climbing algorithm, and the MS and AS layers are initialized by a combination of a random selection strategy and a global selection strategy. The ordinary optimization algorithm only uses roulette selection in the selection phase, and the improved two-layer algorithm uses a hybrid selection strategy of roulette selection and tournament selection to select individuals of half the population size separately. The crossover and variation of the ordinary optimization algorithm are randomized without using Eqs. (24) and (25), where: the
The solution results of the above two algorithms show that the minimum value of the optimal solution of the improved two-layer algorithm for 10 runs is 734 min, while the minimum value of the optimal solution of the ordinary two-layer optimization algorithm is 786 min, which is an increase in productivity of 6.62%. The average value of the optimal solution of the improved two-layer optimization algorithm is 754.7 min, while the average value of the optimal solution of the ordinary two-layer algorithm is 815.4 min, which is an increase in the average productivity of 7.44%. Since the ordinary two-layer optimization algorithm is easy to fall into the local optimal solution in the iteration process, its solution effect is relatively poor.
4.2 Algorithmic Effectiveness Verification
To prove the validity of the algorithm and the model, and to solve case 1 and case 2 simultaneously, the operation results of improved two-layer optimization algorithm in different cases are given to verify each other.
The production requirements for case 2 are shown in Table 4; the process flow data for each workpiece is shown in Table 5; the e-map still uses Fig. 10, and the number between each node indicates the distance between nodes. In this case, there are three AGV workpiece transfer tasks, all with a speed of 30 m/min and a single load capacity of 10 pieces.
With minimizing the maximum completion time as the objective function, the improved two-layer algorithm designed in this paper is used to solve case 1 and case 2, where the number of evolutionary generations is set to 100 and the population size is set to 50. The iterative curves of the algorithm are shown in Fig. 16. The batching information of the solution process is shown in Tables 6 and 7. The optimal workpiece batching scheme is shown in Tables 8 and 9. The optimal dual-resource scheduling scheme is shown in Figs. 17 and 18, where: the rectangles of different colors in the Gantt chart represent different workpieces; the numbers on top of the rectangle blocks indicate the batch number; the sequence of the same workpieces appearing in the same batch indicates the process order.
Fig. 19 shows the machine working time and AGV working time for case 1 and case 2, respectively, where the machine working time is the cumulative machining time of the workpiece, and the AGV working time is the AGV load traveling time. Meanwhile, both skewness and kurtosis are used to evaluate machine processing time, AGV load time and the load balancing of them.
In statistics, Skewness can be used to measure the asymmetry of the probability distribution of a random variable and is calculated as Eq. (26). When the value of Skewness is close to 0, it means that the data is relatively evenly distributed on both sides of the average value, indicating a more even distribution. Kurtosis measures the kurtosis of the probability distribution of a real random variable and is calculated as Eq. (27). A Kurtosis above 3 indicates a relatively sharp distribution of data, and a Kurtosis below 3 indicates a relatively flat distribution of data. During the calculation, Kurtosis is usually subtracted by 3 to adjust the kurtosis of the normal distribution to 0, i.e., a Kurtosis of less than 0 indicates that the data are more average.
where,
4.2.3 Demonstration of Rescheduling Scheme
To verify the performance of the algorithm in solving the rescheduling schemes, it is assumed that machine tool 3 fails at 500 min on case 1 and 400 min on case 2 in the production process of the workshop, and both the required repair time is 50 min. The Gantt chart of the system after the rescheduling is shown in Figs. 20 and 21, where the two black dashed lines indicate the start and end time of the failure, and the black rectangle in between indicates the repair time of the faulty machine tool.
From the above discussion and result analysis, it can be concluded that the improved two-layer optimization algorithm designed in this paper can effectively solve the dual-resource scheduling optimization problem of flexible job shop considering workpiece batching, and the solution effect is significantly better than the ordinary two-layer optimization algorithm. In addition, the algorithm and rescheduling strategy designed in this paper can deal with the abnormal disturbance events in a timely and effective manner and obtain good rescheduling results.
In the actual operation environment of the workshop, although increasing the number of AGVs can directly improve the operational efficiency, too many AGVs will cause themselves to wait for each other, which will easily cause congestion in the transportation area. Therefore, reducing the number of AGVs under the requirement of meeting the task time can effectively reduce the congestion of AGVs and the probability of waiting for each other [34]. On the other hand, as the number of AGVs increases, the cost is increasing. Therefore, determining a reasonable number of AGVs under the premise of meeting the processing requirements is of great significance in reducing the congestion and the cost of AGVs.
To explore the number of AGVs, an actual production case is analyzed below. There are 6 types of workpieces to be processed in the case. The production batch of each type of workpiece is shown in Table 10. The process of workpiece machining flow is shown in Table 11. The electronic map of the workshop equipment layout is shown in Fig. 10.
There are 8 machine tools in the workshop. The traveling speed of AGV is 25 m/min, and the maximum single load capacity is 10 pieces. The number of AGVs is changed sequentially from 1–8 by the enumeration method, and the best scheduling scheme under this number of AGVs is obtained by iterative optimization of the algorithm. The maximum completion time decreasing rate [35] and the average AGV load time are used as evaluation indexes for the optimal number of AGVs, and the formulas for both are Eqs. (28) and (29).
where,
The above case is solved using the improved two-layer optimization algorithm designed in this paper with minimizing the maximum completion time as the objective function. The algorithm’s K is set to 100 and N is set to 50. The optimal workpiece batching scheme is obtained as shown in Table 12. The optimal solution iteration curves, the effect on maximum completion time are shown in Fig. 22. The effect on maximum completion time decreasing rate, and the effect on average AGV load time at different numbers of AGVs are shown in Fig. 23. Figs. 24–27 respectively show the Gantt charts of the optimal dual-resource scheduling scheme for the cases with the number of AGV configurations of 2, 4, 6, and 8.
The results are analyzed as follows: From Fig. 22, it can be seen that when the number of AGVs exceeds 6, the increase in the number of AGVs has very little effect on reducing the maximum completion time. This is because the idle time and the path waiting time of AGVs keep increasing with the increase in the number of AGVs, while other conditions remain constant. From Fig. 23, it can be seen that when the number of AGVs exceeds 6,
To solve the dual-resource scheduling optimization problem of flexible job shops considering workpiece batching, this paper comprehensively considers workpiece batching, dual-resource scheduling and rescheduling problems. This paper establishes a mathematical model of dual-resource flexible job shop scheduling considering workpiece batching with the optimization objective of minimizing the maximum completion time and designs an improved two-layer optimization algorithm. Meanwhile, a random event-driven rescheduling method is designed for randomly occurring disturbance events in the workshop production process.
The case shows that:
1. The improved two-layer optimization algorithm is less likely to fall into local optimal solutions during the iteration process compared to the ordinary two-layer optimization algorithm.
2. The improved two-layer optimization algorithm can handle the disturbing events in the meter shop well and achieve a good rescheduling program.
3. The improved two-layer optimization algorithm can find the optimal number of AGVs in the actual operating environment.
The solving method proposed in this study combines with the actual production process, reduces the production cost of flexible operations to a certain extent and provides a new way of thinking for subsequent research. Meanwhile, it should be admitted that there are still some defects in the modeling process and the algorithm design process. In future research, we will increase the constraints to make it closer to the actual production, such as considering AGV power shortage, so that the disturbance events will be complete to better fit the actual situation.
Acknowledgement: Thank you to Nengjian Wang and Shuo Li for their technical and equipment support.
Funding Statement: The authors received no specific funding for this study.
Author Contributions: Study conception and design: Q. H. Liu, L. Z. Zhu; Program development: Z. J. Gao, L. Z. Zhu; Analysis and interpretation of results: J. Li; Draft manuscript preparation: L. Z. Zhu, J. L. Wang. All authors reviewed the results and approved the final version of the manuscript.
Availability of Data and Materials: The data in this article are all from computer simulation, and the data results refer to Tables 6 and 7 in the article. If you have any other questions, you can send an email to liuqinhui@hrbeu.edu.cn for communication and discussion.
Conflicts of Interest: The authors declare that they have no conflicts of interest to report regarding the present study.
References
1. C. L. Song, “A hybrid multi-objective teaching-learning based optimization for scheduling problem of hybrid flow shop with unrelated parallel machine,” IEEE Access, vol. 9, pp. 56822–56835, 2021. [Google Scholar]
2. X. Y. Li, J. P. Huang, J. H. Li, Y. X. Li and L. Gao, “Research and development trend of intelligent shop dynamic scheduling,” SCIENTIA SINICA Technologica, vol. 53, no. 7, pp. 1016–1030, 2023. [Google Scholar]
3. Y. Q. Wang and N. M. Xie, “Flexible flow shop scheduling with interval grey processing time,” Grey Systems-Theory and Application, vol. 11, no. 4, pp. 779–795, 2020. [Google Scholar]
4. J. X. Lu, J. H. Hu, Q. Y. Dong and H. T. Tong, “Cloud manufacturing-oriented mixed-model hybrid shop-scheduling problem,” China Mechanical Engineering, vol. 28, no. 2, pp. 191–198+205, 2017 (In Chinese). [Google Scholar]
5. H. Y. Niu, W. M. Wu, T. Q. Zhang, W. Shen and T. Zhang, “Adaptive salp swarm algorithm for solving flexible job shop scheduling problem with transportation time,” Journal of Zhejiang University, vol. 57, no. 7, pp. 1267–1277, 2023 (In Chinese). [Google Scholar]
6. Y. T. Shi, H. Chen and L. X. Zhang, “Research on path planning of AGV transport robot based on improved A* algorithm,” Manufacturing Technology & Machine Tool, no. 5, pp. 19–22, 2022 (In Chinese). https://doi.org/10.19287/j.mtmt.1005-2402.2022.05.003 [Google Scholar] [CrossRef]
7. M. Nouiri, A. Bekrar, A. Jemai, S. Niar and A. C. Ammari, “An effective and distributed particle swarm optimization algorithm for flexible job-shop scheduling problem,” Journal of Intelligent Manufacturing, vol. 29, no. 3, pp. 603–615, 2018. [Google Scholar]
8. S. Knust, N. V. Shakhlevich, S. Waldherr and C. Weiss, “Shop scheduling problems with pliable jobs,” Journal of Scheduling, vol. 22, no. 6, pp. 635–661, 2019. [Google Scholar]
9. A. Turkyilmaz, O. Senvar, I. Unal and S. Bulkan, “A research survey: Heuristic approaches for solving multi objective flexible jobshop problems,” Journal of Intelligent Manufacturing, vol. 31, no. 8, pp. 1949–1983, 2020. [Google Scholar]
10. E. K. Elsayed, A. K. Elsayed and K. A. Eldahshan, “Deep reinforcement learning-based job shop scheduling of smart manufacturing,” Computers, Materials & Continua, vol. 73, no. 3, pp. 5103–5120, 2022. [Google Scholar]
11. K. Z. Gao, Z. G. Cao, L. Zhang, Z. H. Chen, Y. Y. Han et al., “A review on swarm intelligence and evolutionary algorithms for solving flexible job shop scheduling problems,” IEEE/CAA Journal of Automatica Sinica, vol. 6, no. 4, pp. 904–916, 2019. [Google Scholar]
12. X. L. Wu, S. J. Li and Y. H. Du, “Research on batch scheduling problem in a flexible job shop,” China Mechanical Engineering, vol. 21, no. 4, pp. 424–429, 2010. [Google Scholar]
13. C. B. Li, Y. F. Lei, Q. G. Xiao and H. Shen, “Flexible job shop scheduling optimization model for generalized energy,” Computer Integrated Manufacturing Systems, vol. 24, no. 12, pp. 3050–3059, 2018. [Google Scholar]
14. H. S. Wang, L. C. Wang, Y. Y. Chen, T. L. Chen and C. Y. Cheng, “Multi-stage parallel machines and lot-streaming scheduling problems–A case study for solar cell industry,” in Advances in Production Management Systems. Sustainable Production and Service Supply Chains, pp. 151–158, 2013. [Google Scholar]
15. C. Low, C. Hsu and K. Huang, “Benefits of lot splitting in job-shop scheduling,” International Journal of Advanced Manufacturing Technology, vol. 24, no. 9–10, pp. 773–780, 2004. [Google Scholar]
16. Z. J. Sun, J. An and W. Q. Huang, “Lot scheduling with multiple process routes in job shop,” China Mechanical Engineering, vol. 19, no. 2, pp. 183–187, 2008. [Google Scholar]
17. P. Yan and L. X. Tang, “PSO algorithm for a single machine scheduling problem with batching in chemical industries,” in IEEE Int. Conf. on Automation and Logistics, Shenyang, China, pp. 45–49, 2009. [Google Scholar]
18. Q. H. Liu, N. J. Wang, J. Li, T. T. Ma, F. P. Li et al., “Research on flexible job shop scheduling optimization based on segmented AGV,” Computer Modeling in Engineering & Sciences, vol. 134, no. 3, pp. 2073–2091, 2022. [Google Scholar]
19. Z. Q. Zhu and Y. Y. He, “An improved genetic algorithm for production scheduling on FMS with simultaneous use of machines and AGVs,” in 11th Int. Conf. on Intelligent Human-Machine Systems and Cybernetics (IHMSC), Hangzhou, China, pp. 245–249, 2019. [Google Scholar]
20. D. S. Sanches, J. D. Silva Rocha, M. F. Castoldi, O. Morandin and E. R. R. Kato, “An adaptive genetic algorithm for production scheduling on manufacturing systems with simultaneous use of machines and AGVs,” Journal of Control Automation and Electrical Systems, vol. 26, no. 3, pp. 225–234, 2015. [Google Scholar]
21. Y. X. Li, W. N. Gu, M. H. Yuan and Y. M. Tang, “Real-time data-driven dynamic scheduling for flexible job shop with insufficient transportation resources using hybrid deep Q network,” Robotics and Computer-Integrated Manufacturing, vol. 74, pp. 102283, 2022. https://doi.org/10.1016/j.rcim.2021.102283 [Google Scholar] [CrossRef]
22. S. Y. Zhang, Y. Wang and Z. C. Ji, “Automatic discovery method of dynamic job shop dispatching rules based on hyper-heuristic genetic programming,” Journal of System Simulation, vol. 32, no. 12, pp. 2494–2506, 2020. [Google Scholar]
23. I. Muhammad, H. Rathiah and E. A. K. Noor, “An overview of particle swarm optimization variants,” Procedia Engineering, vol. 53, pp. 491–496, 2013. [Google Scholar]
24. N. K. Jain, U. Nangia and J. Jain, “A review of particle swarm optimization,” Journal of the Institution of Engineers (IndiaSeries B, vol. 99, no. 4, pp. 407–411, 2018. [Google Scholar]
25. Y. H. Shi and R. C. Eberhart, “Fuzzy adaptive particle swarm optimization,” in Proc. of the 2001 Congress on Evolutionary Computation (IEEE Cat. No.01TH8546), Seoul, Korea (Southpp. 101–106, 2001. [Google Scholar]
26. A. Ratnaweera, S. K. Halgamuge and H. C. Watson, “Self-organizing hierarchical particle swarm optimizer with time-varying acceleration coefficients,” IEEE Transaction on Evolutionary Computation, vol. 8, no. 3, pp. 240–255, 2004. [Google Scholar]
27. J. E. Galletly, “An overview of genetic algorithms,” Kybernetes, vol. 21, no. 6, pp. 26–30, 1992. [Google Scholar]
28. J. K. Ge, Y. H. Qiu, C. M. Wu and G. L. Pu, “Summary of genetic algorithms research,” Application Research of Computers, no. 10, pp. 2911–2916, 2008. https://doi.org/10.3969/j.issn.1001-3695.2008.10.008 [Google Scholar] [CrossRef]
29. Z. W. Ren and Y. San, “Improved adaptive genetic algorithm and its application research in parameter identification,” Journal of System Simulation, vol. 18, no. 1, pp. 41–43+66, 2006 (In Chinese). [Google Scholar]
30. F. C. Teng, X. L. Lin, Y. Hao, Y. F. Lu and Z. X. Liu, “Parameter identification and optimization of MFF transmission model based on nonlinear genetic algorithm,” Chinese Journal of Scientific Instrumen, vol. 37, no. 2, pp. 286–293, 2016. [Google Scholar]
31. L. Y. Zhang, X. F. Liu, S. Y. Zhang, Z. G. Han and F. Wang, “Convergence analysis of particle swarm optimization algorithm,” in Proc. of 2005 Chinese Control And Decision Conf., Harbin, China, vol. 1&2, pp. 920, 2005. [Google Scholar]
32. A. J. Liu, Y. Yang, Q. S. Xing, H. Lu, Y. D. Zhang et al., “Dynamic scheduling on multi-objective flexible job shop,” Computer Integrated Manufacturing Systems, vol. 17, no. 12, pp. 2629–2637, 2011. [Google Scholar]
33. Y. C. You, Y. Wang and Z. C. Ji, “Flexible job-shop dynamic scheduling based on random machine fault,” Journal of Jiangsu University (Natural Science Edition), vol. 42, no. 6, pp. 648–654+714, 2021 (In Chinese). [Google Scholar]
34. C. Z. Liang and D. C. Chen, “Research on coupling problem of AGV configuration and scheduling in automated container terminal,” Computer Engineering and Applications, vol. 56, no. 14, pp. 216–225, 2020. [Google Scholar]
35. X. F. Lyu, Y. C. Song, C. Z. He, Q. Lei and W. F. Guo, “Approach to integrated scheduling problems considering optimal number of automated guided vehicles and conflict-free routing in flexible manufacturing systems,” IEEE Access, vol. 7, no. 99, pp. 74909–74924, 2019. [Google Scholar]
Cite This Article
This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.