A dynamic intelligent scheduling method and device for manufacturing workshops in limited transportation resource scenarios

Through deep reinforcement learning and multi-objective optimization models, combined with genetic programming and HDRQN training agents, the complexity of production scheduling caused by limited transportation resources and interference events in the manufacturing industry is solved, and efficient scheduling of dynamic flexible job workshops is achieved, optimizing Completion time and energy consumption, improving production efficiency and flexibility.

CN115454005BActive Publication Date: 2024-08-30HOHAI UNIV CHANGZHOU
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211201246.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-29
Publication Date
2024-08-30
Estimated Expiration
2042-09-29

AI Technical Summary

Technical Problem

In the manufacturing industry, limited transportation resources and various interference events lead to complexity and uncertainty in workshop production scheduling. Existing technology is difficult to effectively solve the problem of insufficient transportation resources and interference events, affecting production efficiency and energy consumption.

Method used

The deep reinforcement learning method is used to design a DRL-based scheduling framework by constructing a Markov decision-making process and a multi-objective optimization model. It combines genetic programming and HDRQN to train decision-making agents to achieve dynamic flexible job shop scheduling and optimize completion time and energy consumption.

Benefits of technology

It realizes dynamic flexible job shop scheduling under limited transportation resource scenarios, optimizes completion time and total energy consumption, effectively handles interference events and uncertainties, and improves the flexibility and robustness of production scheduling.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115454005B
    Figure CN115454005B
Patent Text Reader

Abstract

The present invention discloses a method and device for dynamic intelligent scheduling of a manufacturing workshop for a limited transportation resource scenario, the method comprising: establishing a Markov decision process and a multi-objective optimization model of DFJSP-ITR with the goal of minimizing the total completion time and total energy consumption; proposing a multi-agent scheduling framework model based on DRL to solve such problems, and designing four key elements for the scheduling model, namely, decision points, state space, action space based on genetic programming, and reward function; proposing a LSTM-based HDQN (HDRQN) training method to enable the decision agent to learn to select appropriate scheduling rules according to the production status of each decision point; after the training is completed, a model with superior performance is selected as the scheduling model, and then the optimal scheduling rule can be output according to the status of the workshop. The present invention can effectively overcome the problem of dynamic scheduling of flexible workshops under limited transportation resources through real-time scheduling, achieve the goal of minimizing the total completion time and total energy consumption, and has good dynamics and adaptability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a method and device for dynamic intelligent scheduling of a manufacturing workshop for a limited transportation resource scenario, and belongs to the technical field of intelligent manufacturing. Background Art

[0002] Under the background of fierce market competition and huge energy consumption, the manufacturing industry is facing tremendous economic pressure and environmental challenges. In order to meet the diverse needs of customers and save costs, enterprises are constantly working to improve the scalability, flexibility and reliability of manufacturing systems. At the same time, with the widespread application of automatic guided vehicles in manufacturing systems, production scheduling considering limited transportation resources has become a difficult problem, and the actual manufacturing system is prone to various interference events, which increases the complexity and uncertainty of the workshop.

[0003] Therefore, considering the insufficient transportation resources, it is of great theoretical value and practical significance to study the dynamic and real-time flexible workshop scheduling method to reasonably arrange the production resources and transportation resources of the workshop, so as to improve the operation efficiency of the enterprise. Summary of the invention

[0004] The purpose of the present invention is to overcome the deficiencies in the prior art and provide a dynamic intelligent scheduling method and device for a manufacturing workshop facing a limited transportation resource scenario, which can effectively overcome the problems of insufficient transportation resources in the workshop, interference events and unforeseen events in the workshop production process, etc. It has strong versatility and superiority for production systems of different scales, and can provide excellent scheduling solutions according to the real-time status of the workshop. .

[0005] To achieve the above object, the present invention is implemented by adopting the following technical solutions:

[0006] In a first aspect, the present invention provides a method for dynamic intelligent scheduling of a manufacturing workshop for a limited transportation resource scenario, comprising the following steps:

[0007] With the goal of minimizing total work time and total energy consumption, the DFJSP-ITR scheduling problem is modeled as a Markov decision process, and the corresponding multi-objective optimization model is established;

[0008] A deep reinforcement learning-based method is used to solve such problems, and a DRL-based scheduling framework model is proposed. According to such a scheduling model, four key elements are designed: decision points, state space, action space based on genetic programming, and reward function.

[0009] A training method using HDRQN is proposed to enable the decision agent to learn to select appropriate scheduling rules according to the production status of each decision point;

[0010] The HDRQN network is trained through the training set, that is, the parameters of the HDRQN network are continuously updated to achieve the goal of minimizing the maximum completion time and total energy consumption and handling interference events and uncertain events;

[0011] After the training is completed, the model with superior scheduling performance is selected as the final scheduling model; when the workshop receives a new order, the model can obtain the order information in real time, and then obtain the real-time production status, that is, the designed state space, and then output excellent scheduling rules according to the real-time production status. This model can be used to solve the dynamic flexible job shop scheduling problem under the condition of insufficient transportation resources, and achieve the goal of minimizing the completion time and total energy consumption. At the same time, it can handle interference events and uncertain events well.

[0012] Furthermore, with the goal of minimizing the total completion time and minimizing the total energy consumption, the DFJSP-ITR scheduling problem is modeled as a Markov decision process, and the steps for establishing the corresponding multi-objective optimization model are as follows:

[0013] First, describe the problem and give the parameters and their symbols needed to describe such problems;

[0014] Then establish the corresponding target optimization model;

[0015] The first optimization goal is to minimize the total completion time, as shown in formula (1):

[0016]

[0017] Among them, T represents the total completion time of the processing task, u represents the total number of workpieces, and CT x Represents the completion time of workpiece x.

[0018] The second optimization goal is to minimize the total energy consumption, as shown in formula (2):

[0019]

[0020] Among them, ME P ,TE p , A.E. p Represents the processing energy consumption of the machine, the transportation energy consumption of AGV and the energy consumption of auxiliary equipment.

[0021] After obtaining the two objectives T and E, the two optimization objectives are converted into one objective f by assigning weights to implement the scheduling method based on deep reinforcement learning. The specific calculation is shown in the following formula:

[0022] f=ω1·T+ω2·E (3)

[0023] Where ω1 and ω2 represent the weights of T and E respectively.

[0024] Furthermore, a DRL-based scheduling framework is proposed, which includes the following contents:

[0025] The scheduling framework is divided into two stages: offline learning and online application.

[0026] In the offline learning phase, when an order is released to the workshop, the decision agent continuously collects historical experience from the workshop and uses the DRL method and previous decision-making experience to optimize its own parameters. After training, the decision agent can select appropriate scheduling rules according to the real-time status of the workshop to optimize the target. In the online application phase, the trained neural network model is used to achieve real-time scheduling.

[0027] Further, the design decision points include the following steps:

[0028] According to whether there is a faulty machine in the workshop, the decision point is divided into two cases, namely, the presence of a faulty machine and the absence of a faulty machine.

[0029] When there is no faulty machine in the workshop, time point t needs to meet two conditions to become a decision point: there are one or more workpieces waiting to be transported; there are one or more idle AGVs in the workshop.

[0030] When there is a faulty machine in the workshop, time point t needs to meet three conditions to become a decision point: the current remaining processing time is less than the current repair time of the faulty machine, there are one or more workpieces waiting to be transported; there are one or more idle AGVs in the workshop.

[0031] Furthermore, the state space design method includes the following steps:

[0032] Create state features that can uniformly represent different workshop environments and task characteristics. All state features are generated in one formula, as shown in formula (4).

[0033] f=x / ω (4)

[0034] f represents the state feature, x represents the production attribute, and ω generality represents the general weight. ω is used to reduce the difference between different production attribute values ​​and make the state feature more universal and unified.

[0035] The 26 production attributes x at a certain moment are: the average completion rate of workpieces and its standard deviation, the total processing time of the workpiece pool process, the product of the workpiece pool loading rate and the current process processing time, the mean and standard deviation of the workpiece pool current process processing time, the mean and standard deviation of the product of the workpiece pool loading rate and the current process processing time, the mean of the remaining processing time and the remaining energy consumption of the workpiece pool, the range of the product of the workpiece pool loading rate and the current process processing time, the range of the previous process processing time value, P iThe mean and variance of the machine loading rate, the sum of the time required for all machine processing procedures, the sum of the product of the machine processing time and the loading rate, the sum of the mean and variance of the time required for all machine processing procedures, the range of values ​​of the time required for all machine processing procedures, the sum of the mean and standard deviation of the product of the machine processing time and the loading rate, the range of values ​​of the sum of the product of the machine processing time and the loading rate, the sum of the means of the machine's residual loading rate and the residual energy consumption.

[0036] Furthermore, an action space based on genetic programming is designed, which includes the following steps:

[0037] Initialize the maximum iteration depth, population size, crossover rate, and mutation rate;

[0038] Generate the initial population using the hybrid method and calculate the fitness of each individual in the population;

[0039] According to the fitness, some GP rules with the best performance are selected from the initial population to form a scheduling rule base;

[0040] Start the iteration, first use the roulette method to select individuals, then perform or not perform crossover operations based on the crossover rate, perform or not perform mutation operations based on the mutation rate, and finally update the fitness of each individual in the population to determine whether there is a GP rule in the population that performs better than the rules in the scheduling rule base. If there is, replace the GP rule with poor performance and update the scheduling rule base. Iterate until the number of iterations is reached.

[0041] Finally, 12 best high-quality GP rules are generated, that is, 12 actions, which constitute the action space.

[0042] Furthermore, a reward function is designed, which includes the following steps:

[0043] The first part of the reward function is about minimizing the completion time, which is achieved by minimizing the single-step transition time to minimize the total completion time;

[0044] The second part of the reward function is about minimizing the total energy consumption, which is achieved by minimizing the energy consumption of the machine, the energy consumption of the AGV, and the energy consumption of the auxiliary equipment.

[0045] The two parts of the reward function are combined together by assigning weights to form the final reward function.

[0046] Furthermore, actual cases are obtained and data is processed, including the following steps:

[0047] First, we take a larger case, where the number of workpieces is 40 (workpiece 1, ..., workpiece 40), the number of processing machines is 15 (machine 1, ..., machine 15), and the number of ACVs is 5 (AGV1, ..., AGV5);

[0048] Then extract key data, including the number of optional processing machines for each workpiece process, the time for each workpiece process to be processed by the processing machine, the cutting energy consumption of each workpiece process to be processed by the processing machine, the no-load energy consumption of the machine, the transportation time of AGV between machines, the transportation energy consumption of AGV, and the auxiliary production energy consumption of the workshop;

[0049] After obtaining the above data, calculate the attribute data of the workpiece, the attribute data of the AGV and the attribute data of the machine. The attribute data of the workpiece include: the processable machine corresponding to the workpiece, the completion progress of each process at a certain moment, the time when each process starts processing and the required processing time and the required cutting energy consumption, the AGV and transportation time of each workpiece being transported. The attribute data of the machine include: whether it is being processed at a certain moment (processing is 1, otherwise it is 0), the workpiece being processed by the machine at a certain moment (serial number), the processing time of the process being processed and the remaining processing time. The attribute data of the AGV include: whether it is being transported at a certain moment (being transported is 1, otherwise it is 0), the workpiece being transported by the AGV at a certain moment (serial number), the transportation time of the process being transported and the remaining transportation time, and the departure and destination (serial number of the machine) of the workpiece being transported by the AGV.

[0050] These data are acquired in real time, and when scheduling is required, the values ​​of all variables in the established production state space can be calculated through these real-time data.

[0051] Furthermore, the training method using HDRQN includes the following steps:

[0052] DQN is extended to HDQ with three extensions: dual Q learning, priority replay, and soft target network update strategy;

[0053] A long short-term memory network layer (LSTM) is added in front of the HDQN network. The LSTM layer can store historical experience, so that the intelligent agent has a good memory function and can learn better.

[0054] Initialize the hyperparameters of HDQN, total number of training times, sum-treeD capacity, storage capacity, workshop environment, action value network weight, target action value network weight;

[0055] Start training. When the time point is a decision point, first obtain the workshop state, use the greedy strategy to select and execute the action, and then store the transfer variable in sum-treeD. If the capacity of sum-treeD is not reached, keep looping to obtain actions until its capacity is reached.

[0056] After reaching the capacity, the transfer variables are extracted with a certain probability to calculate the corresponding weights and Q values ​​until the memory capacity is reached. Then the Adam method is used to update Q.

[0057] Determine whether there is a decision point. If so, continue to execute the above steps. If not, complete one training.

[0058] Determine whether the number of training times reaches the set value. If not, start a new round of training. If it reaches, the training is completed.

[0059] After training is completed, the scheduling model with excellent performance and its parameters are saved. This scheduling model can enable the decision-making agent to select appropriate scheduling rules according to the production status of each decision point.

[0060] Furthermore, the number of iterations, population size, maximum depth, crossover rate, and mutation rate are 100, 50, 3, 0.5, and 0.05, respectively.

[0061] Furthermore, the two weights of the objective function are: ω1 is 0.7, and ω2 is 0.3.

[0062] Furthermore, the structures of the action value network and the target action value network are: composed of three hidden layers, and the number of nodes in each layer is 30.

[0063] Furthermore, the total number of training times, sum-treeD capacity, and storage capacity are 4000, 10 -5 ,10 -5 .

[0064] Furthermore, the selection probability ε of the greedy strategy is 0.6.

[0065] Furthermore, the hyperparameters of the HRDQN are: γ is 0.95, the learning rate is 10 -4 , τ and α are 0.01 and 1, λ is 0.01, μ is 8, C d 2.7×10 -6 ,LB and UB are 0.02 and 1 respectively, β and C i 0.4 and 5×10 -5 ,The number of hidden layers in the LSTM network is 3.

[0066] In a second aspect, the present invention provides a dynamic intelligent scheduling device for a manufacturing workshop for a limited transportation resource scenario, including a processor and a storage medium;

[0067] The storage medium is used to store instructions;

[0068] The processor is used to operate according to the instructions to execute the steps of the method described in the first aspect.

[0069] Compared with the prior art, the present invention has the following beneficial effects:

[0070] 1. The scheduling model of the present invention can be used for the dynamic flexible job shop scheduling problem under the condition of insufficient transportation resources, and can achieve the goal of minimizing the completion time and total energy consumption while being able to handle interference events and uncertain events well. The present invention adopts a deep reinforcement learning method to solve the dynamic flexible job shop (DFJSP-ITR) scheduling problem under the condition of insufficient transportation resources. The method has superiority and good robustness in solving DFJSP-ITR, and can effectively handle interference events. The present invention establishes a multi-objective optimization model of DFJSP-ITR with the goal of minimizing the completion time and total energy consumption, and proposes a scheduling framework based on DRL, then designs decision points, 26 general state features, action space and reward function based on genetic programming, and proposes a HDQ training method to train decision-making agents so that they can learn to select appropriate scheduling rules according to the workshop status of each decision point. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] Figure 1 It is the overall flow chart of the dynamic flexible job shop scheduling method for the situation of insufficient transportation resources;

[0072] Figure 2 It is a specific scheduling framework diagram based on deep reinforcement learning. Figure 1 Further refinement;

[0073] Figure 3 is a flowchart of decision point judgment, Figure 1 Further refinement of

[0074] Figure 4 is a flowchart for generating the action space, Figure 1 Further refinement of

[0075] Figure 5 This is a schematic diagram of the working principle of LSTM. Figure 1 further refinement of. DETAILED DESCRIPTION

[0076] The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of the present invention.

[0077] Embodiment 1:

[0078] like Figures 1 to 5 FIG. 1 is a flowchart of a resource scheduling method for a manufacturing process provided by an embodiment of the present invention, comprising the following steps:

[0079] Step 1: Construct a multi-objective optimization model and establish a workshop model:

[0080] With the goal of minimizing the total completion time and the total energy consumption, the DFJSP-ITR scheduling problem is modeled as a Markov decision process. The steps for establishing the corresponding multi-objective optimization model are as follows:

[0081] First, describe the problem and give the parameters and their symbols needed to describe such problems;

[0082] Then establish the corresponding target optimization model; the problem here refers to modeling this type of scheduling problem as a Markov decision process and then establishing a multi-objective optimization model.

[0083] The first optimization goal is to minimize the total completion time, as shown in formula (1):

[0084]

[0085] Among them, T represents the total completion time of the processing task, u represents the total number of workpieces, and CT x Represents the completion time of workpiece x.

[0086] The second optimization goal is to minimize the total energy consumption, as shown in formula (2):

[0087]

[0088] Among them, ME P ,TE p , A.E. p Represents the processing energy consumption of the machine, the transportation energy consumption of AGV and the energy consumption of auxiliary equipment.

[0089] After obtaining the two objectives T and E, the two optimization objectives are transformed into one objective f by assigning weights to implement the scheduling method based on deep reinforcement learning. The specific calculation is shown in formula (7):

[0090] f=ω1·T+ω2·E (3)

[0091] Where ω1 and ω2 represent the weights of T and E respectively.

[0092] One of the optimization objectives is to minimize the total completion time, and the other is to minimize the total energy consumption. These two optimization objectives are integrated into one optimization objective by assigning corresponding weights, as shown in formula (1):

[0093] f=ω1·T+ω2·E (1)

[0094] Where T represents the total completion time, E represents energy consumption, ω1 is 0.7, and ω2 is 0.3. The Python simulation platform is used to construct an environmental model of a dynamic flexible job shop under the condition of insufficient transportation resources.

[0095] Step 2: Multi-agent scheduling framework based on DRL (deep reinforcement learning) Figure 2 Design decision points:

[0096] Depending on whether there is a faulty machine in the workshop, the decision point is divided into two cases, namely, the presence of a faulty machine and the absence of a faulty machine. When there is no faulty machine in the workshop, time point t needs to meet two conditions to become a decision point: there are one or more workpieces waiting to be transported; there are one or more idle AGVs in the workshop. When there is a faulty machine in the workshop, time point t needs to meet three conditions to become a decision point: the current remaining processing time is less than the current faulty machine repair time, there are one or more workpieces waiting to be transported; there are one or more idle AGVs in the workshop.

[0097] This scheduling framework model can be understood as a scheduling rule generator. In simple terms, the input is the real-time status of the workshop, and the output is the scheduling rule. However, the characteristics of deep reinforcement learning need to be combined with the scheduling problem, so this scheduling framework is proposed. Figure 2 shown.

[0098] Step 3: DRL-based multi-agent scheduling framework ( Figure 2 As shown), the design state space is:

[0099] Create state features that can uniformly represent different workshop environments and task characteristics. All state features are generated in one formula, as shown in formula (2).

[0100] f=x / ω (2)

[0101] Among them, f represents the state characteristics, x represents the production attributes, and ω represents the general weight. ω is used to reduce the differences between different production attribute values, making the state characteristics more universal and unified. The 26 production attributes x at a certain moment are: the average completion rate and its standard deviation of the workpiece, the total time of the workpiece pool process processing, the product of the workpiece pool loading rate and the current process processing time, the mean and standard deviation of the workpiece pool current process processing time, the mean and standard deviation of the product of the workpiece pool loading rate and the current process processing time, the mean of the remaining processing time and remaining energy consumption of the workpiece pool, the range of the product of the workpiece pool loading rate and the current process processing time, the range of the previous process processing time value, P i The mean and variance of the machine loading rate, the sum of the time required for all machine processing procedures, the sum of the product of the machine processing time and the loading rate, the sum of the mean and variance of the time required for all machine processing procedures, the range of values ​​of the time required for all machine processing procedures, the sum of the mean and standard deviation of the product of the machine processing time and the loading rate, the range of values ​​of the sum of the product of the machine processing time and the loading rate, the sum of the means of the machine's residual loading rate and the residual energy consumption.

[0102] Get a specific case, extract the production data in the specific case, and process the production data to form a production state space.

[0103] Step 4: DRL-based multi-agent scheduling framework ( Figure 2 As shown), generate an action space based on genetic programming:

[0104] By evolving the common dispatching rules based on the genetic programming method, a high-quality combined dispatching rule, namely the GP dispatching rule, can be obtained. The specific steps are as follows:

[0105] The number of initialization iterations is 100, the maximum depth is 3, the population size is 50, the crossover rate is 0.5, and the mutation rate is 0.05;

[0106] Based on the Python simulation platform, the hybrid method is used to generate the initial population and calculate the fitness of each individual in the population;

[0107] According to the fitness, some GP rules with the best performance are selected from the initial population to form a scheduling rule base;

[0108] Start the iteration, first use the roulette method to select individuals, then perform or not perform crossover operations based on the crossover rate, perform or not perform mutation operations based on the mutation rate, and finally update the fitness of each individual in the population to determine whether there is a GP rule in the population that performs better than the rules in the scheduling rule base. If there is, replace the GP rule with poor performance and update the scheduling rule base. Iterate until the number of iterations is reached.

[0109] Finally, 12 best high-quality GP rules are generated, that is, 12 actions, which constitute the action space.

[0110] These dispatching rules are GP dispatching rules obtained by evolving ordinary dispatching rules through genetic algorithms. The GP rules here refer to high-quality dispatching rules that are evolved from ordinary dispatching rules through genetic algorithms.

[0111] These common scheduling rules are common scheduling rules in heuristic scheduling rules. In this problem, there are mainly two types, one is machine allocation scheduling rule and the other is AGV allocation rule.

[0112] Step 5: Establish a reward function based on the DRL multi-agent scheduling framework:

[0113] The first part of the reward function is about minimizing the completion time, which is achieved by minimizing the single-step transition time; the second part of the reward function is about minimizing the total energy consumption, which is achieved by minimizing the energy consumption of the machine, the energy consumption of the AGV and the energy consumption of the auxiliary equipment. The two parts of the reward function are combined by assigning weights to form the final reward function, as shown in formula (3):

[0114] r t =ω1·FR t +ω2·SR t (3)

[0115] Among them, FR t is the reward value for completion time, SR t is the reward value for energy consumption, both are negative numbers. ω1 is 0.7 and ω2 is 0.3.

[0116] Step 6: Train the scheduling model using HDRQN:

[0117] A training method using HDQN is designed. HDQN refers to some extensions of the traditional DQN to improve the performance of the entire method. It includes the following steps:

[0118] DQN is extended to HDQN with three extensions: dual Q learning, priority replay, and soft target network update strategy;

[0119] Adding an LSTM neural network in front of the HDQN network enables the decision-making agent to have memory function;

[0120] Building an LSTM network includes the following steps:

[0121] The neurons in the LSTM network introduce unit states, forget gates, memory gates, and output gates.

[0122] The cell state runs through the entire neural network. In other words, it is the neural network's "memory" of the input data. t Represents the "memory" of the neuron after time t. This vector covers the "summary" of all input information of the neural network before time t+1.

[0123] The input gate imports data into the neural network. The forget gate uses the sigmoid function to compress any input to the interval (0,1), and then can choose to forget the unimportant information in the previous unit, reducing the memory capacity of the LSTM network. The memory gate uses the sigmoid function to determine which components in the unit can be remembered, in other words, it is used to extract effective information. Finally, the output gate calculates the neural layer of the output value at the current moment. The output layer will first extract the information from the vector of the current input value and the output value of the previous moment using the sigmoid function, and then compress the current unit state and map it to the interval (-1,1) through the tanh function.

[0124] Obtaining actual cases and importing data from the actual cases into the established workshop environment; obtaining actual cases and then processing data includes the following steps:

[0125] First, we take a larger case, where the number of workpieces is 40 (workpiece 1, ..., workpiece 40), the number of processing machines is 15 (machine 1, ..., machine 15), and the number of ACVs is 5 (AGV1, ..., AGV5);

[0126] Then extract key data, including the number of optional processing machines for each workpiece process, the time for each workpiece process to be processed by the processing machine, the cutting energy consumption of each workpiece process to be processed by the processing machine, the no-load energy consumption of the machine, the transportation time of AGV between machines, the transportation energy consumption of AGV, and the auxiliary production energy consumption of the workshop;

[0127] After obtaining the above data, calculate the attribute data of the workpiece, the attribute data of the AGV and the attribute data of the machine. The attribute data of the workpiece include: the processable machine corresponding to the workpiece, the completion progress of each process at a certain moment, the time when each process starts processing and the required processing time and the required cutting energy consumption, the AGV and transportation time of each workpiece being transported. The attribute data of the machine include: whether it is being processed at a certain moment (processing is 1, otherwise it is 0), the workpiece being processed by the machine at a certain moment (serial number), the processing time of the process being processed and the remaining processing time. The attribute data of the AGV include: whether it is being transported at a certain moment (being transported is 1, otherwise it is 0), the workpiece being transported by the AGV at a certain moment (serial number), the transportation time of the process being transported and the remaining transportation time, and the departure and destination (serial number of the machine) of the workpiece being transported by the AGV.

[0128] These data are acquired in real time, and when scheduling is required, the values ​​of all variables in the established production state space can be calculated through these real-time data.

[0129] The training set is a specific case generated, which contains a large number of moments that require decision-making (scheduling).

[0130] By designing specific cases, these cases are transformed into production status. These data are mainly in the form of matrices, such as the processing time of each process of each workpiece on different machines.

[0131] Initialize the hyperparameters of HDQN, total number of training times, sum-treeD capacity, storage capacity, workshop environment, action value network weight, target action value network weight;

[0132] Start training. When the time point is a decision point, first obtain the workshop state, use the greedy strategy to select and execute the action, and then store the transfer variable in sum-treeD. If the capacity of sum-treeD is not reached, keep looping to obtain actions until its capacity is reached.

[0133] After reaching the capacity, the transfer variables are extracted with a certain probability to calculate the corresponding weights and Q values ​​until the memory capacity is reached. Then the Adam method is used to update Q.

[0134] Determine whether there is a decision point. If so, continue to execute the above steps. If not, complete one training.

[0135] Determine whether the number of training times reaches the set value. If not, start a new round of training. If it reaches, the training is completed.

[0136] After training is completed, the scheduling model with excellent performance and its parameters are saved. This scheduling model can enable the decision-making agent to select appropriate scheduling rules according to the production status of each decision point.

[0137] The specific process includes:

[0138] Based on the Python simulation platform, two neural networks are established, namely the action value Q network and the target action value Q-network weight. Both networks are composed of three hidden layers, each with 30 nodes, and the layers are connected in a fully connected manner.

[0139] Initialize the hyperparameters of HDRQN, the total number of training times, sum-treeD capacity, and storage capacity. The hyperparameters of HDQN are: γ is 0.95, the learning rate is 10 -4 , τ and α are 0.01 and 1, λ is 0.01, μ is 8, C d 2.7×10 -6 ,LB and UB are 0.02 and 1 respectively, β and C i 0.4 and 5×10 -5 .

[0140] The total number of training times, sum-treeD capacity, and storage capacity are: 4000, 10 -5 ,10 -5 The selection probability ε of the greedy strategy is 0.6. The initial probability value P in sum-treeD is 1

[0141] Initialize the workshop environment built on the Python simulation platform, the action value Q network weight, the target action value Q - Network weights.

[0142] Start training and determine whether the time point is a decision point. If it is, first obtain the workshop status and use the greedy strategy to select the action. That is, generate a random number between 0 and 1. If this number is less than ε, randomly select an action. If it is greater than ε, select the action with the largest Q value, as shown in the formula:

[0143]

[0144] After selecting the action, execute it. If it is not a decision point, the production of the workshop will move forward according to the time.

[0145] Observe the state and transition variables of the next decision point and obtain the reward value r t .

[0146] The transition variables are stored in sum-treeD and given priorities, as shown in formula (5). If the storage capacity does not reach the capacity of sum-treeD, the actions are acquired in a loop until the capacity is reached.

[0147] p t =max 1≤x≤z p x (5)

[0148] When the capacity of sum-treeD is reached, the transition variables in sum-treeD are collected with a certain probability as shown in formula (6).

[0149]

[0150] Calculate the important sampling weights as shown in formula (7):

[0151]

[0152] Calculate the target Q value as shown in formula (8):

[0153]

[0154] If the collected transfer variables do not reach the memory capacity, continue to collect and calculate the important sampling weights and target Q value

[0155] If the memory capacity is reached, the Adam method with a loss function is used to update the network. The loss function is shown in formula (9):

[0156]

[0157] Calculate target action Value, as shown in formula (10):

[0158]

[0159] Calculate the TD error of each sampled transition variable as shown in formula (11):

[0160] δ j =y j -Q(s j ,a j ;θ) (11)

[0161] With p j ←(|δ j |+τ) α Update the priority of each node in sum-treeD in this way. i Gradually increase β until UB is reached. d Gradually reduce ε until LB.

[0162] Determine whether the current decision point is the last decision point. If not, continue to repeat the above steps. If it is, end this training.

[0163] It is determined whether the number of training times has reached the preset number of training times. If not, a new training is started. If it has reached the preset number of training times, the training is completed, and the scheduling model with excellent performance and its parameters are saved and used for online testing, thereby realizing the selection of appropriate scheduling rules according to the workshop status of each decision point.

[0164] Embodiment 2:

[0165] This embodiment provides a manufacturing workshop dynamic intelligent scheduling device for a limited transportation resource scenario, including a processor and a storage medium;

[0166] The storage medium is used to store instructions;

[0167] The processor is used to operate according to the instructions to execute the steps of the method described in embodiment 1.

[0168] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0169] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0170] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0171] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0172] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A dynamic flexible job shop scheduling method for insufficient transportation resources, characterized in that: The method comprises the following steps: With the goal of minimizing total work time and total energy consumption, the DFJSP-ITR scheduling problem is modeled as a Markov decision process, and a corresponding multi-objective optimization model is established as a scheduling model; A multi-agent scheduling framework based on deep reinforcement learning divides the workshop into decision-making agents, machine agents, and transportation agents, and designs four key elements: decision points, state space, action space based on genetic programming, and reward function; A training method using DRQN ​​network is proposed to enable the scheduling model to learn to select appropriate scheduling rules according to the production status of each decision point; Obtain actual cases and process data to obtain training sets, and train the DRQN ​​network through the training sets to enable it to continuously learn, that is, continuously update the parameters of the DRQN ​​network to achieve the goal of minimizing the maximum completion time and total energy consumption and handle interference events and uncertain events; After the training is completed, the model with superior scheduling performance is selected as the final scheduling model; when the workshop receives a new order, the model can obtain the order information in real time, and then obtain the real-time production status, that is, the designed state space, and then output the scheduling rules according to the real-time production status, and guide production according to the output scheduling rules.

2. According to claim 1, a method for dynamic intelligent scheduling of manufacturing workshops for limited transportation resources scenarios is characterized in that: With the goal of minimizing the total completion time and minimizing the total energy consumption, the DFJSP-ITR scheduling problem is modeled as a Markov decision process. The method of establishing the corresponding multi-objective optimization model is as follows: The first optimization goal is to minimize the total completion time. The workshop starts processing the first workpiece at time 0, and the time when the last workpiece is completed is the total completion time. Secondly, the second optimization goal is to minimize the total energy consumption; the energy consumption is mainly composed of three parts, namely the processing energy consumption of the machine agent, the transportation energy consumption of the transportation agent, and the energy consumption of the auxiliary equipment; After obtaining the two optimization objectives, the two optimization objectives are transformed into one objective f by assigning weights to implement the scheduling method based on deep reinforcement learning.

3. According to claim 1, a method for dynamic intelligent scheduling of manufacturing workshops for limited transportation resources scenarios is characterized in that: A multi-agent scheduling framework based on deep reinforcement learning, including: The production resources in the workshop are divided into multiple agents, namely decision-making agents, machine agents, and transportation agents. Machine agents are used to process workpieces, and transportation agents are used to transport workpieces. Decision-making agents can reasonably allocate machine agents and transportation agents based on real-time production data and then schedule the workshop. Build a scheduling framework; the scheduling framework is divided into two stages: offline learning and online application; During the offline learning phase, when an order is released to the workshop, the decision agent continuously collects historical experience from the workshop and uses the DRL method and previous decision-making experience to optimize its own neural network parameters. After training, the decision agent can select appropriate scheduling rules according to the real-time status of the workshop to optimize the target. During the online application stage, when an order is placed to the workshop, the workshop directly uses the trained scheduling model to provide a scheduling plan in real time to complete the processing of the entire order.

4. The method for dynamic intelligent scheduling of manufacturing workshops for limited transportation resources scenarios according to claim 1 is characterized in that: The design method of decision points includes the following steps: According to whether there is a faulty machine in the workshop, the decision point is divided into two cases, namely, the presence of a faulty machine and the absence of a faulty machine; When there are no faulty machines in the workshop, time point t needs to meet two conditions to become a decision point: there are one or more workpieces waiting to be transported; there are one or more idle AGVs in the workshop; When there is a faulty machine in the workshop, time point t needs to meet three conditions to become a decision point: the current remaining processing time is less than the current repair time of the faulty machine, there are one or more workpieces waiting to be transported; there are one or more idle AGVs in the workshop.

5. The method for dynamic intelligent scheduling of manufacturing workshops for limited transportation resources scenarios according to claim 1 is characterized in that: The state space design method includes the following steps: Create state features that can uniformly represent different workshop environments and task characteristics. All state features are generated in one formula, as shown in formula (1): f=x / ω (1) f represents the state feature, x represents the production attribute, and ω generality represents the general weight; ω is used to reduce the difference between different production attribute values, making the state feature more universal and unified; The 26 production attributes x at a certain moment are: the average completion rate of workpieces and its standard deviation, the total processing time of the workpiece pool process, the product of the workpiece pool loading rate and the current process processing time, the mean and standard deviation of the workpiece pool current process processing time, the mean and standard deviation of the product of the workpiece pool loading rate and the current process processing time, the mean of the remaining processing time and the remaining energy consumption of the workpiece pool, the range of the product of the workpiece pool loading rate and the current process processing time, the range of the previous process processing time value, P i The mean and variance of the machine loading rate, the sum of the time required for all machine processing procedures, the sum of the product of the machine processing time and the loading rate, the sum of the mean and variance of the time required for all machine processing procedures, the range of values ​​of the time required for all machine processing procedures, the sum of the mean and standard deviation of the product of the machine processing time and the loading rate, the range of values ​​of the sum of the product of the machine processing time and the loading rate, the sum of the means of the machine's residual loading rate and the residual energy consumption.

6. The method for dynamic intelligent scheduling of manufacturing workshops for limited transportation resources scenarios according to claim 1 is characterized in that: The action space based on genetic programming is designed, which includes the following steps: Initialize the number of iterations, maximum depth, population size, crossover rate, and mutation rate; Generate the initial population using the hybrid method and calculate the fitness of each individual in the population; According to the fitness, some GP rules with the best performance are selected from the initial population to form a dispatching rule library; the GP rules refer to high-quality dispatching rules obtained by evolving ordinary dispatching rules through genetic algorithms; Start iteration. First, use the roulette wheel method to select individuals. Then, perform or not perform crossover based on the crossover rate, perform or not perform mutation based on the mutation rate, and finally update the fitness of each individual in the population. It is determined whether there is a GP rule in the population that performs better than the rules in the scheduling rule base. If there is, replace the GP rule with poor performance and update the scheduling rule base. Iterate until the number of iterations is reached. Finally, 12 best high-quality GP rules, i.e., 12 actions, are generated to form the action space.

7. The method for dynamic intelligent scheduling of manufacturing workshops for limited transportation resources scenarios according to claim 1 is characterized in that: The design method of the reward function includes the following steps: The first part of the reward function is about minimizing the completion time, which is achieved by minimizing the single-step transition time to minimize the total completion time; The second part of the reward function is about minimizing the total energy consumption, which is achieved by minimizing the energy consumption of the machine, the energy consumption of the AGV, and the energy consumption of the auxiliary equipment. The two parts of the reward function are combined together by assigning weights to form the final reward function.

8. The method for dynamic intelligent scheduling of manufacturing workshops for limited transportation resources scenarios according to claim 1 is characterized in that: The training method using HDRQN includes the following steps: DQN is expanded into HDQN. The three extensions are: dual Q learning, priority replay, and soft target network update strategy. A long short-term memory network layer (LSTM) is added in front of the HDQN network. The LSTM layer can store historical experience, so that the intelligent agent has a good memory function, and can learn better. Initialize various parameters, workshop environment, LSTM network parameters, action value network weights, and target action value network weights; Before starting training, the workshop status is imported into the scheduling model so that a certain amount of data is stored in the time series experience pool. Then the workshop environment is reset to prepare for training. Start training. When the time point is a decision point, first obtain the workshop state, input the workshop state into the LSTM network layer to obtain the workshop state with time series, then use the greedy strategy to select and execute actions based on this state, and then store the transfer variables in a sum-tree D. If the capacity of sum-treeD is not reached, the action is obtained in a loop until the capacity of the experience pool is reached. The capacity of the experience pool for each round of training is with a time series. After a round of training, the experience pool of this round of training will be stored in the time series experience pool. After reaching the capacity, randomly extract the transfer variables from the time series experience pool to calculate the corresponding weights and Q values, and use the Adam method to update Q; Determine whether there is a decision point. If so, continue to execute the above steps. If not, complete one training; Determine whether the number of training times reaches the set value. If not, start a new round of training, and if it reaches the set value, the training is completed; After training is completed, the scheduling model with excellent performance and its parameters are saved. This scheduling model can enable the decision-making agent to select appropriate scheduling rules according to the production status of each decision point.

9. The method for dynamic intelligent scheduling of manufacturing workshops in a limited transportation resource scenario according to claim 6 is characterized in that: The number of iterations, population size, maximum depth, crossover rate, and mutation rate are 100, 50, 3, 0.5, and 0.05, respectively.

10. A dynamic intelligent scheduling device for a manufacturing workshop in a limited transportation resource scenario, characterized in that: including processor and storage medium; The storage medium is used to store instructions; The processor is used to operate according to the instructions to execute the steps of the method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Workshop scheduling method, device and system based on deep reinforcement learning

    CN114565247A

  • Intelligent production line adaptive dynamic scheduling strategy selection method

    CN114611897A