Dynamic multi-target flexible workshop job scheduling method based on deep Q learning

The dual deep Q learning algorithm is used to process dynamic events, which solves the shortcomings of the dynamic multi-objective flexible workshop scheduling problem in the existing technology, achieves efficient and stable production scheduling, meets the diverse needs in complex production environments, and improves the efficiency of production. Flexibility and responsiveness.

CN118536723APending Publication Date: 2024-08-23SICHUAN UNIV
View PDF 0 Cites 5 Cited by

Patent Information

Application Number
CN202310157070.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-23
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

When existing technology handles dynamic multi-objective flexible workshop scheduling problems, there are few dynamic events and it is not close enough to the real production environment. It is difficult to achieve efficient and stable production scheduling, especially in the face of machine failure, tool replacement, adding new machines, and orders. In complex situations such as changes, it is difficult to meet the rapidly changing production needs.

Method used

Using dual deep Q learning algorithm, through real-time dual serial dynamic event processing and plan formulation, a dynamic multi-objective flexible workshop job scheduling method based on deep Q learning is designed. The state characteristic values ​​are calculated and input into the fully connected neural network to select rewards. Functions and scheduling rules, execute scheduling rules and update network parameters to ensure the robustness and generalization of the algorithm.

Benefits of technology

It achieves an efficient solution to the dynamic multi-objective flexible workshop scheduling problem, improves the flexibility and responsiveness of production, meets the diverse needs in complex production environments, and reduces production costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure FDA0004092808290000015
    Figure FDA0004092808290000015
  • Figure BDA0004092808310000075
    Figure BDA0004092808310000075
  • Figure FDA0004092808290000024
    Figure FDA0004092808290000024
Patent Text Reader

Abstract

The invention relates to a dynamic multi-objective flexible workshop job scheduling method based on deep Q learning, and the method specifically comprises the steps: a brand new DMFJSP (Dynamic Multi-objective Job Shop Scheduling Problem) problem is disclosed, the problem comprises six dynamic events, three performance indexes and a series of constraint conditions, and in combination with actually mastered production materials, corresponding detail description is provided for each dynamic event; meanwhile, a real-time dynamic event processing flow is designed and introduced by adopting the most advanced dual deep Q learning algorithm at present and creatively combining various dynamic event characteristics; the invention provides a novel dynamic multi-objective dual deep Q learning algorithm (DMDDQN), which is characterized in that the design idea of a combined scheduling rule, the design idea of a workpiece order weight value and the concept of estimating a workpiece processing completion progress value are considered when a scheduling rule is designed, and finally, the invention provides the novel DMDDQN (dynamic multi-objective dual deep Q learning) algorithm. And the superiority of the algorithm provided by the research on a dynamic data set is successfully proved through a large number of contrast tests.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of intelligent manufacturing and intelligent scheduling, and specifically relates to a flexible workshop scheduling method implemented by combining a reinforcement learning algorithm with a scheduling algorithm, which is used to help factories achieve cost reduction and efficiency improvement in the process of reproduction scheduling. Background Art

[0002] At the 2013 Hannover Industrial Fair, the German government first proposed the concept of "Industry 4.0" at the fair. "Industry 4.0" refers to the fourth industrial revolution with intelligent manufacturing as its core content. Its purpose is to further upgrade traditional manufacturing into efficient intelligent manufacturing through modern information technology. As time goes by, the concept of "Industry 4.0" began to spread around the world and set off a new round of intelligent transformation competition in manufacturing industries in various countries. In May 2015, "Made in China 2025" was officially released. The document was compiled by hundreds of academicians and provides a direction for the development of China's manufacturing industry in the next 10 years. It is a fundamental guiding document for China to implement the strategy of becoming a manufacturing power. The document clearly proposed five major projects, one of which is the "intelligent manufacturing project". The "intelligent manufacturing project" specifically refers to the use of the advantages of modern information technology to carry out reforms and innovations in traditional manufacturing, intelligently improve the production control process, further optimize and improve the production process, further rationalize and reduce the cost of the supply chain, and through the upgrading of the industrial model and the intelligent integration of management and scheduling, significantly reduce operating costs and raise product quality to an unprecedented level. The core of intelligent manufacturing lies in intelligent scheduling, that is, to meet one or more different production needs by reasonably and standardized scheduling of existing production resources within a certain time range. Through field research, we can understand that in the process of scheduling, the scheduling personnel need to consider the working performance and working conditions of different production machines, the processing procedures of the production targets, the tools or other resources required for different process technologies, and also fully consider the possibility of changes in production environment factors, and timely and flexibly handle the emergencies generated dynamically in the actual production environment, so as to ensure efficient, orderly and reasonable production. In the actual production process, such scheduling is very complicated, and it is often necessary for the scheduling personnel to spend a lot of time to familiarize themselves with the details of the production process and accumulate a lot of production experience before they can gradually begin to master the production scheduling process of some products, which indirectly introduces a certain time cost for the factory, making it difficult for the factory's production to efficiently meet the different needs of rapid changes while ensuring product quality and quantity. However, with the development of the times, the channels for modern people to obtain information are becoming more and more diversified, the threshold for communication between consumers is constantly lowered, and people's needs for products, whether in terms of function, appearance, quality or other aspects, are also constantly changing and improving, which also poses new challenges to the "agility" in the manufacturing production process. How to quickly and reasonably arrange the production scheduling plans for different products has become a key factor affecting the survival of manufacturing companies. Job shop scheduling type problems refer to how to make production scheduling arrangements based on the known information of production workpieces and production machines, so as to complete the production and processing of all workpieces while ensuring that the production goals are achieved.As a very representative type of standard problem in the field of intelligent scheduling, the job shop scheduling type problem has become a very hot research topic in recent years because of its very valuable expansion (different restrictions can be added according to different actual production factors, such as dynamic events, multiple objectives, etc.) and inspiration (it can provide guidance for the actual production scheduling link) functions. It has attracted more and more scholars to devote themselves to it and continue to make outstanding contributions.

[0003] This study is based on the above factors, hoping to add more realistic factors and production demand goals to the traditional workshop scheduling problem to make it closer to the problems to be solved in the actual production process, and to innovate the traditional solutions and algorithms for this problem, so as to solve the problem in real time and efficiently, and finally provide solutions and guidance for this type of problem that occurs in the actual production process. To this end, the author of this article communicated with the production manager of a factory, obtained some production data, extracted and summarized the key information, proposed a new type of dynamic multi-objective job shop scheduling problem and provided a new dynamic solution. In addition, the solution was further optimized, and finally the solution proposed in this study was able to provide efficient and stable assistance to the actual production links while meeting actual needs.

[0004] JSP is an NP-hard problem. Its research has always been a hot topic. Some existing research methods are as follows:

[0005] 1. In 2016, Li.X, Gao.L and others used genetic algorithms combined with local search methods to construct a taboo list and innovatively adopted the taboo search strategy to read the results produced by future generations and update and optimize the results.

[0006] 2. In 2011, Moslehi.G et al. used particle swarm optimization algorithm combined with local search algorithm to solve MFJSP by screening the Pareto optimal frontier and assigning weights to each operation of the job.

[0007] 3. In 2014, Kacem.I et al. used a unified mathematical model, improved genetic algorithm encoding and decoding methods, crossover and mutation operators, and finally made MFJSP converge stably to obtain the optimal solution.

[0008] 4. In 2018, Nouiri.M et al. developed a dynamic method for optimizing manufacturing time and energy efficiency based on the particle swarm optimization algorithm, and took into account the dynamic factor of machine failure. When a machine fails, four response strategies are applied to ensure stable and efficient production.

[0009] 5. In 2021, Caldeira.RH et al. improved the particle swarm algorithm by using multiple objectives (longest workpiece completion time, total machine load, maximum machine load) and filtering parameters using the Taguchi method to solve the problem.

[0010] 6. In 2021, Han.BA et al. proposed an end-to-end deep reinforcement learning (DRL) framework, which consists of a set of encoders, decoders and a recurrent neural network (RNN). The algorithm first uses the encoder to encode the operations to be scheduled based on the selected scheduling features, and then uses the attention mechanism to let the decoder decode and output the next action to be performed. Finally, the recurrent neural network (RNN) is used to update the decoder network.

[0011] 7. In 2019, Zhu.HH et al. transformed the real-time MFJSP problem requiring a combination process into an ordinary MFJSP problem by introducing new constraints, and then used the Markov decision method based on the MAS (Multi-agent system) reinforcement learning method to solve the MFJSP problem.

[0012] 8. In 2020, Luo.S et al. proposed a dynamic order insertion algorithm based on deep reinforcement learning to solve DFJSP. The goal is to optimize scheduling decisions when new orders are inserted. The algorithm innovatively proposed 6 rules and used deep Q learning algorithm to make real-time scheduling decisions at each order insertion time point or process processing operation completion time point.

[0013] 9. In 2022, JianLin.Y and others used a Q-learning-based hyper-heuristic algorithm (QHH), which automatically selects an algorithm from a set of pre-designed heuristic algorithms as the actual execution algorithm based on the real-time production environment status. The algorithm also uses a unique encoding and decoding method to successfully improve resource utilization.

[0014] 10. In 2019, Zhao.M et al. used a reinforcement learning-based method to solve the MFJSP problem when the machine fails.

[0015] Although these research results based on reinforcement learning or deep reinforcement learning algorithms have achieved excellent results in their respective performance indicators, they all have the problem of not having enough performance indicators and too few dynamic events, which makes them not close enough to the actual production environment. Summary of the invention

[0016] The purpose of the present invention is to propose a dynamic multi-objective flexible job shop scheduling method based on deep Q learning to cope with the diversification and complexity of the actual scheduling production environment, the increasing richness of production environment factors, the continuous expansion of production performance indicators and various DMFJSP (Dynamic Multi-objective Flexible Job Shop Scheduling Problem) problems that may arise in the production environment. DMFJSP includes six problems and three performance indicators; the six problems include: machine fault repair, machine tool replacement, adding new machines, adding workpiece orders, canceling workpiece orders, and modifying workpiece orders; the three performance indicators include: average machine utilization, makespan (the longest processing time of all workpieces), and average workpiece processing delay rate.

[0017] The object of the present invention is achieved in this way:

[0018] The present invention is based on a dual deep Q learning algorithm, and aims to design a real-time dual serial dynamic event processing and planning algorithm to address the deficiency of the existing dual deep Q learning algorithm that the next processing operation is only scheduled when each processing is completed or a new workpiece order is inserted, thereby ultimately achieving an efficient solution to the DMFJSP problem.

[0019] The specific method is as follows:

[0020] A dynamic multi-objective flexible job shop scheduling method based on deep Q learning includes the following steps:

[0021] Step 1: Calculate the state eigenvalue and input it into the first fully connected neural network; the state eigenvalue is an intuitive reflection of the current production situation in the workshop, and it plays a very important guiding role in production. Considering that in the actual production environment, the number of jobs and machines fluctuates greatly, in order to make the algorithm more robust, we decided to use the ratio between 0 and 1 as the expression of the state value;

[0022] Step 2: Select and execute the reward function according to the output result of the fully connected neural network 1. Different reward functions correspond to different objectives in the multi-objective. The multi-objective optimization process is completed by executing different objective functions.

[0023] Step 3: The output of neural network 1 after executing the reward function is combined with the state feature value and input into the second fully connected neural network for dynamic intelligent decision-making, and the scheduling rules and algorithms are dynamically decided and selected based on the output of neural network 2.

[0024] Step 4: Execute the corresponding scheduling rule algorithm according to the dynamic decision result of neural network 2: The scheduling rule contains two goals. The first goal is to select the operation process of the specific workpiece to be processed, and the second goal is to select the processing machine. Different scheduling rules will lead to different scheduling effects. Therefore, we designed corresponding scheduling rules for the details of the sub-goals and proposed a complete set of scheduling rules by combining them;

[0025] Step 5: Calculate the new state feature value and the reward according to the reward function. Apply the scheduling result to the production line and store the generated data. Each scheduling result is a work experience. The work experience is stored in the storage to help subsequent learning and work record query.

[0026] Step 6: Randomly select batch data from the storage to optimize and update the parameters of the fully connected neural networks 1 and 2, so that the network decision is more intelligent. Because of the randomly extracted storage experience, the algorithm is guaranteed to have stronger robustness and generalization, making the algorithm more in line with actual production needs;

[0027] Repeat steps 1-6 above until all production tasks are completed.

[0028] The positive effects of the present invention are:

[0029] 1. A new dynamic multi-objective flexible job shop scheduling problem is proposed to guide the actual production scheduling work, and a new scheduling algorithm is designed for this problem.

[0030] 2. Use deep reinforcement learning algorithms to learn the intelligent selection of reward functions and scheduling strategies, and design a unique set of scheduling rules to make the scheduling process more intelligent.

[0031] 3. Dual serial deep Q learning is used in the algorithm to make multi-objective decision-making more efficient. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 Run the flowchart for the overall algorithm.

[0033] Figure 2 Pseudo code diagram for the reward function.

[0034] Figure 3 It is the overall framework flow chart of the present invention.

[0035] Figure 4 The figure shows the execution results of the present invention. DETAILED DESCRIPTION

[0036] The specific implementation modes of the present invention are further described in detail below with reference to the accompanying drawings.

[0037] like Figure 1 As shown in the overall algorithm operation flow chart, the present invention mainly includes calculating state characteristic values ​​(production line status) and inputting the state characteristic values ​​into a fully connected neural network one, selecting a reward function according to the output result of the fully connected neural network, inputting the output of neural network one combined with the state characteristic values ​​into a fully connected neural network two and selecting a scheduling rule, executing the scheduling rule to generate a scheduling result, calculating a new state characteristic value and calculating the reward according to the reward function and storing the result, randomly selecting batch data from the storage to optimize and update the parameters of the fully connected neural networks one and two, and other iterative steps.

[0038] Before further introducing the specific embodiments of the present invention, the problem will be described first and the relevant mathematical symbols will be explained:

[0039]

[0040] There are n jobs to be processed on m machines. i There are n i Operation, O i,j Indicates J i The jth operation of a job. Each operation O i,j There is a machine set M i,j , which consists of machines that can handle the operation. i,j,k It is operation O i,j The processing time on machine k. The goal is to minimize the completion time and maximize the machine utilization. At the same time, based on the implementation of the solution, several predefined constraints should be met: each machine can only process one operation at a time, all operations of each job are processed in a fixed order, and the next operation can only be carried out after the previous operation is completed, and each operation cannot be interrupted during the processing process, regardless of the preparation time of the machine and materials and the delay of the operation switching. Machine M k Machine utilization U k , which represents the ratio of the working time to the running time at the end of the last operation of the machine, defined as the formula Only when the machine M k Assignment Operation O i,j When α=1, the goal of the present invention is to minimize the longest completion time of all jobs, while maximizing the average machine utilization and minimizing the average processing delay rate. That is, while ensuring that the equation On the basis of and equation

[0041] Specifically, the process of each step is as follows:

[0042] Step 1, calculate the state characteristic value and input the state characteristic value into the first fully connected neural network; the state characteristic value is an intuitive reflection of the current workshop production situation, which plays a very important guiding role in production. Considering that in the actual production environment, the fluctuation range of the number of jobs and the number of machines is large, in order to make the algorithm more robust, the present invention uses the ratio between 0 and 1 as the expression of the state value; the present invention calculates the state characteristic value according to the current actual production situation. The present invention selects the average machine utilization rate U ave and the standard deviation of machine utilization U std , average workpiece completion rate CRJ ave And the standard deviation of workpiece completion rate CRJ std , the average processing delay rate TR of the workpiece ave and the delay rate standard deviation TR std As the state characteristic value, the calculation formula of each indicator is as follows:

[0043] Average machine utilization:

[0044] Machine utilization standard deviation:

[0045] Average completion rate of workpieces:

[0046] Standard deviation of workpiece completion rate:

[0047] Average processing delay rate of workpiece:

[0048] Standard deviation of workpiece processing delay rate:

[0049] In the process of calculating the workpiece completion rate, is in the machine set M i,j Execute operation O on i,j The average operation time is expressed as ETL i It's J i The estimated time for the job to complete the remaining operations, using the formula OPT i is the time taken for all processes to complete the job, which is defined as In order to make the completion rate of a specific operation more accurate, the present invention uses the time sum of all completed processes of the workpiece / (the time sum of all completed processes of the workpiece + the estimated time to complete the remaining processes of the workpiece) to express the completion rate CRJ i , which is expressed as the equation

[0050] Step 2: Select and execute the reward function according to the output result of the first fully connected neural network. Different reward functions correspond to different objectives in the multi-objective optimization process. The two reward functions designed in the algorithm flow are as follows: Figure 2 As shown, Figure 2 The first reward function corresponds to the goal of maximizing the average machine utilization U ave The second reward function corresponds to the goal of minimizing the average processing delay rate TR of the workpiece ave ; Figure 3 The overall framework flow chart of the present invention is shown. Figure 3 The first network structure in the figure is the first fully connected neural network we designed, which contains 9 layers, namely 1 input layer, 1 output layer and 7*50 hidden layers; among them, the input layer nodes S1-S6 correspond to 6 state eigenvalues, and the output layer Q1 and Q2 correspond to the decision results of the reward function; the activation function of this neural network is the ReLU activation function.

[0051] Step 3: The output of the first neural network after executing the reward function is combined with the state feature value and input into the second fully connected neural network for dynamic intelligent decision-making, and the scheduling rules and algorithms are dynamically decided and selected according to the output of the second neural network; the second fully connected neural network corresponds to Figure 3 The second network structure in , also contains 9 layers: 1 input layer, 1 output layer and 7*50 hidden layers; among them, the input layer nodes S1-S6 correspond to 6 state feature values, node S7 is the output of the neural network after executing the reward function, and the output layer Q1-Q9 corresponds to the decision results of 9 scheduling rules and algorithms.

[0052] Step 4: Execute the corresponding scheduling rule algorithm according to the dynamic decision result of neural network 2: The scheduling rule contains two goals. The first goal is how to select the operation process of a specific workpiece to be processed, that is, the corresponding Figure 3 Among FO, SO, and TO, the second goal is how to choose the processing machine, that is, the corresponding Figure 3 FT, ST, TT in ; Different scheduling rules will lead to different scheduling effects, so we designed corresponding scheduling rules according to the details of the sub-goals, and proposed a complete set of scheduling rules by combining them; Specifically, the calculation process of the 9 scheduling rule algorithms is as follows:

[0053] Rule 1 (FO+FT):

[0054] First, calculate an unfinished workpiece set UC job , and then according to its completion progress CRJ i To J iSort by, then select completion rate CRJ i The smallest next workpiece Ji and select its next process O i,j Then select the corresponding machine and determine the next operation. i,j After that, we can calculate a machine set M i,j , in M i,j This rule selects the earliest available machine To handle operation O i,j In general, the combination rule FO+FT is to improve U ave and lower makespan;

[0055] Rule 2 (FO+ST):

[0056] First, calculate an unfinished workpiece set UC job , and then according to its completion progress CRJ i To J i Sort by, then select completion rate CRJ i The smallest next workpiece Ji and select its next process O i,j Then select the corresponding machine and determine the next operation. i,j After that, we can calculate a machine set M i,j , in M i,j , select the operation that is expected to be completed the fastest i,j Machine

[0057] Rule 3 (FO+TT):

[0058] First calculate an unfinished workpiece UC job , and then according to its completion progress CRJ i Sort Ji and then select the completion rate CRJ i The smallest next workpiece Ji and select its next process O i,j Then select the corresponding machine and determine the next operation. i,j After that, we can calculate a machine set M i,j , in M i,j In, a machine is randomly selected to prevent local optimality;

[0059] Rule 4 (SO+FT):

[0060] First, define a set of unfinished artifacts UC job Then select the DDL that has exceeded the delivery deadline from the collection i Workpiece J i Composed of overdue artifacts set T jobFirst, determine the set T job Is it empty? If T job If it is not empty, select the workpiece with the highest delay rate and its process. Otherwise, select the workpiece with the highest delay rate and its process from the set UC job Select the workpiece and its processing process. Then select the corresponding machine and determine the next operation. i,j After that, we can calculate a machine set M i,j , in M i,j This rule can select the earliest available machine To handle operation O i,j , this rule is to reduce TR ave with makespan;

[0061] Rule 5 (SO+ST):

[0062] First, define a set of unfinished artifacts UC job Then select the DDL that has exceeded the delivery deadline from the collection i Workpiece J i Composed of overdue artifacts set T job First, determine the set T job Is it empty? If T job If it is not empty, select the workpiece with the highest delay rate and its process. Otherwise, select the workpiece with the highest delay rate and its process from the set UC job Select the workpiece and its processing process. Then select the corresponding machine and determine the next operation. i,j After that, we can calculate a machine set M i,j , in M i,j , select the operation that is expected to complete the fastest i,j Machine

[0063] Rule 6 (SO+TT):

[0064] First, define a set of unfinished artifacts UC job Then select the DDL that has exceeded the delivery deadline from the collection i Workpiece J i Composed of overdue artifacts set T job First, determine the set T job Is it empty? If T job If it is not empty, select the workpiece with the highest delay rate and its process. Otherwise, select the workpiece with the highest delay rate and its process from the set UC job Select the workpiece and its processing process. Then select the corresponding machine and determine the next operation. i,j After that, we can calculate a machine set M i,j , in M i,j In, a machine is randomly selected to prevent local optimality;

[0065] Rule 7 (TO+FT):

[0066] First, calculate an unfinished workpiece set UC job To avoid falling into the local optimum, randomly select an unfinished workpiece Ji and select its next process O i,j Then select the corresponding machine and determine the next operation. i,j After that, we can calculate a machine set M i,j , in M i,j This rule selects the earliest available machine To handle operation O i,j ;

[0067] Rule 8 (TO+ST):

[0068] First, calculate an unfinished workpiece set UC job To avoid falling into the local optimum, randomly select an unfinished workpiece Ji and select its next process O i,j Then select the corresponding machine and determine the next operation. i,j After that, we can calculate a machine set M i,j , in M i,j , select the operation that is expected to complete the fastest i,j Machine

[0069] Rule Nine (TO+TT):

[0070] First, calculate an unfinished workpiece set UC job To avoid falling into the local optimum, randomly select an unfinished workpiece Ji and select its next process O i,j Then select the corresponding machine and determine the next operation. i,j After that, we can calculate a machine set M i,j , in M i,j In , a machine is randomly selected to prevent local optimality.

[0071] Step 5. Calculate the new state feature value and the reward according to the reward function. Apply the scheduling result to the production line and store the generated data. Each scheduling result is a work experience. The old state feature value S, scheduling rule number A, reward R, and new state feature value S_ are combined into a (S, A, R, S_) four-tuple format and stored in the storage, which will help the subsequent learning and work record query.

[0072] Step 6: Randomly select batch data from the storage to optimize and update the parameters of the first and second fully connected neural networks, so that the network decision is more intelligent. Because of the randomly extracted storage experience, the algorithm is guaranteed to have stronger robustness and generalization, making the algorithm more in line with actual production needs.

[0073] Repeat steps 1-6 until all production tasks are completed; Figure 4 The execution results of the present invention are displayed. The horizontal axis coordinate of the Gantt chart is time, and the vertical axis coordinate is different machines. The rightmost is a list of processed workpieces. Each colored small square in the figure represents the time period for the process of different workpieces to be processed on the corresponding machine on the vertical axis. For example, O(2,1)=16 means that the first process of workpiece 2 was processed on machine No. 8 for 16 time units.

Claims

1. A dynamic multi-objective flexible job shop scheduling method based on deep Q learning, characterized in that: The flexible job shop scheduling problem currently under study has the problem of considering few dynamic event factors and being non-real-time. The present invention takes the actual problems and benefit considerations faced in the production process of a certain factory as the target, and proposes a new dynamic multi-objective flexible job shop scheduling problem (Dynamic Multi-objective Flexible Job-shop Scheduling Problem, DMFJSP), which includes 6 dynamic emergencies, 3 performance indicators and a series of new constraints, and provides a new dynamic simulation data set (DMFJSP data set, which includes 27 dynamic instances) to detect the scheduling planning performance of the algorithm; further, the present invention designs a new dynamic multi-objective dual deep Q-learning algorithm (Dynamic Multi-Objective Dual Deep Q-Learning Algorithm, DMDDQN), and innovatively designs a complete real-time dynamic solution process for all possible emergencies. The method comprises the following steps: Step 1, calculate the state eigenvalue and input the state eigenvalue into the first fully connected neural network; Step 2: Select and execute the reward function according to the output result of the fully connected neural network 1. Different reward functions correspond to different objectives in the multi-objective. The multi-objective optimization process is completed by executing different objective functions. Step 3: The output of the reward function after executing the neural network 1 is combined with the state feature value and input into the second fully connected neural network for dynamic intelligent decision-making, and the scheduling rules and algorithms are dynamically decided and selected according to the output of the neural network 2; Step 4: Execute the corresponding scheduling rule algorithm according to the dynamic decision result of the neural network 2; Step 5: Calculate the new state feature value and the reward according to the reward function. Apply the scheduling result to the production line and store the generated data. Each scheduling result is a work experience. The work experience is stored in the storage to help subsequent learning and work record query. Step 6: Randomly select batch data from the storage to optimize and update the parameters of the fully connected neural networks 1 and 2; Repeat steps 1-6 above until all production tasks are completed.

2. A dynamic multi-objective flexible job shop scheduling method based on deep Q learning according to claim 1, characterized in that: In step 1, considering that the number of jobs and machines fluctuates greatly in the actual production environment, in order to make the algorithm more robust, the present invention uses the ratio between 0 and 1 as the expression of the state value; according to the characteristics of the state characteristic value, a set of state characteristic values ​​with a unique calculation process is designed, which includes six state characteristics as production guidance indicators. We choose the average machine utilization rate U ave and the standard deviation of machine utilization U std , average workpiece completion rate CRJ ave And the standard deviation of workpiece completion rate CRJ std , the average processing delay rate TR of the workpiece ave And the standard deviation of workpiece processing delay rate TR std As the state characteristic value, the calculation formula of each indicator is as follows: Average machine utilization: Machine utilization standard deviation: Average completion rate of workpieces: Standard deviation of workpiece completion rate: Average processing delay rate of workpiece: Standard deviation of workpiece processing delay rate: In the process of calculating the workpiece completion rate, is in the machine set M i,j Execute operation O on i,j The average operation time is expressed as ETL i It's J i The estimated time for the job to complete the remaining operations, using the formula OPT i is the time taken for all processes to complete the job, which is defined as In order to make the completion rate of a specific operation more accurate, the present invention uses the time sum of all completed processes of the workpiece / (the time sum of all completed processes of the workpiece + the estimated time to complete the remaining processes of the workpiece) to express the completion rate CRJ i , which is expressed as the equation 3. A dynamic multi-objective flexible job shop scheduling method based on deep Q learning according to claim 1, characterized in that: In step 2, different reward functions are designed to correspond to different optimization objectives in the multi-objective. The first reward function corresponds to the goal of maximizing the average machine utilization U ave The second reward function corresponds to the goal of minimizing the average processing delay rate TR of the workpiece ave ; At the same time, the first fully connected neural network contains a 9-layer structure, namely 1 input layer, 1 output layer and 7*50 hidden layers; among them, the input layer nodes S1-S6 correspond to 6 state eigenvalues, and the output layer Q1 and Q2 correspond to the decision results of the reward function; the activation function of this neural network is the ReLU activation function.

4. A dynamic multi-objective flexible job shop scheduling method based on deep Q learning according to claim 1, characterized in that: In step 3, the second fully connected neural network also includes a 9-layer structure: 1 input layer, 1 output layer and a hidden layer of 7*50 size; among which, the input layer nodes S1-S6 correspond to 6 state feature values, node S7 is the output after the neural network executes the reward function, and the output layer Q1-Q9 corresponds to the decision results of 9 scheduling rules and algorithms.

5. A dynamic multi-objective flexible job shop scheduling method based on deep Q learning according to claim 1, characterized in that: In step 4, the scheduling rules contain two goals. The first goal is how to select the operation process of a specific workpiece to be processed, including three rules FO, SO, and TO. The second goal is how to select the processing machine, including three rules FT, ST, and TT. Different scheduling rules will lead to different scheduling effects. Therefore, we designed corresponding scheduling rules for the details of the sub-goals and proposed a complete set of scheduling rules by combining them. Specifically, the calculation process of the 9 scheduling rule algorithms is as follows: Rule 1 (FO+FT): First, calculate an unfinished workpiece set UC job , and then according to its completion progress CRJ i To J i Sort by, then select completion rate CRJ i The smallest next workpiece Ji and select its next process O i,j Then select the corresponding machine and determine the next operation O i,j After that, we can calculate a machine set M i,j , in M i,j This rule selects the earliest available machine To handle operation O i,j In general, the combination rule FO+FT is to improve U ave and lower makespan; Rule 2 (FO+ST): First, calculate an unfinished workpiece set UC job , and then according to its completion progress CRJ i To J i Sort by, then select completion rate CRJ i The smallest next workpiece Ji and select its next process O i,j Then select the corresponding machine and determine the next operation O i,j After that, we can calculate a machine set M i,j , in M i,j , select the operation that is expected to be completed the fastest i,j Machine Rule 3 (FO+TT): First calculate an unfinished workpiece UC job , and then according to its completion progress CRJ i Sort Ji and then select the completion rate CRJ i The smallest next workpiece Ji and select its next process O i,j , then select the corresponding machine and determine the next operation O i,j After that, we can calculate a machine set M i,j , in M i,j In, a machine is randomly selected to prevent local optimality; Rule 4 (SO+FT): First, define a set of unfinished artifacts UC job , then select the DDL that has exceeded the delivery deadline from the collection i Workpiece J i Composed of overdue artifacts set T job , first determine the set T job Is it empty? If T job If it is not empty, select the workpiece with the highest delay rate and its process, otherwise select the workpiece from the set UC job Select the workpiece and its processing steps, then select the corresponding machine and determine the next operation. i,j After that, we can calculate a machine set M i,j , in M i,j This rule can select the earliest available machine To handle operation O i,j , this rule is to reduce TR ave with makespan; Rule 5 (SO+ST): First, define a set of unfinished artifacts UC job Then select the DDL that has exceeded the delivery deadline from the collection i Workpiece J i Composed of overdue artifacts set T job , first determine the set T job Is it empty? If T job If it is not empty, select the workpiece with the highest delay rate and its process, otherwise select the workpiece from the set UC job Select the workpiece and its processing steps, then select the corresponding machine and determine the next operation. i,j After that, we can calculate a machine set M i,j , in M i,j , select the operation that is expected to complete the fastest i,j Machine Rule 6 (SO+TT): First, define a set of unfinished artifacts UC job Then select the DDL that has exceeded the delivery deadline from the collection i Workpiece J i Composed of overdue artifacts set T job , first determine the set T job Is it empty? If T job If it is not empty, select the workpiece with the highest delay rate and its process, otherwise select the workpiece from the set UC job Select the workpiece and its processing steps, then select the corresponding machine and determine the next operation. i,j After that, we can calculate a machine set M i,j , in M i,j In, a machine is randomly selected to prevent local optimality; Rule 7 (TO+FT): First, calculate an unfinished workpiece set UC job To avoid falling into the local optimum, randomly select an unfinished workpiece Ji and select its next process O i,j Then select the corresponding machine and determine the next operation O i,j After that, we can calculate a machine set M i,j , in M i,j This rule selects the earliest available machine To handle operation O i,j ; Rule 8 (TO+ST): First, calculate an unfinished workpiece set UC job To avoid falling into the local optimum, randomly select an unfinished workpiece Ji and select its next process O i,j Then select the corresponding machine and determine the next operation O i,j After that, we can calculate a machine set M i,j , in M i,j , select the operation that is expected to complete the fastest i,j Machine Rule Nine (TO+TT): First, calculate an unfinished workpiece set UC job To avoid falling into the local optimum, randomly select an unfinished workpiece Ji and select its next process O i,j Then select the corresponding machine and determine the next operation O i,j After that, we can calculate a machine set M i,j , in M i,j In , a machine is randomly selected to prevent local optimality.

6. A dynamic multi-objective flexible job shop scheduling method based on deep Q learning according to claim 1, characterized in that: In step 5, the reward is calculated according to the reward function, the scheduling result is applied to the production line and the generated data is stored. Each scheduling result is a work experience, and the old state characteristic value S, scheduling rule number A, reward R, and new state characteristic value S_ are combined into a (S, A, R, S_) four-tuple format and stored in the storage, so as to provide assistance for subsequent learning and work record query.

7. A dynamic multi-objective flexible job shop scheduling method based on deep Q learning according to claim 1, characterized in that: In step 6, batch data is randomly selected from the storage to optimize and update the parameters of the first and second fully connected neural networks, thereby making the network decision more intelligent. Because of the randomly extracted storage experience, the algorithm is guaranteed to have stronger robustness and generalization, making the algorithm more in line with actual production needs.

Citation Information

Cited By

  • Workshop cutter scheduling rule generation method based on Q-Learning

    CN119356242A

  • Dynamic flexible job shop predictive scheduling method and system

    CN119717735A

  • A predictive scheduling method and system for dynamic flexible job shops

    CN119717735B

  • Method, device and equipment for scheduling NPU (Network Processing Unit) computing tasks of multimode SoC (System on Chip) main control chip

    CN119718590A

  • Model-based task instruction management method and device, storage medium and equipment

    CN120407022A