Multi-objective flexible job shop scheduling method and device based on deep reinforcement learning
Through deep reinforcement learning technology, the optimization goals and scheduling rules are dynamically selected, which solves the shortcomings of traditional flexible job shop scheduling algorithms in timeliness and multi-objective optimization, and achieves real-time, autonomous and efficient scheduling decisions.
Patent Information
- Application Number
- CN202010983212.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-17
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2040-09-17
AI Technical Summary
The traditional multi-objective flexible job shop dynamic scheduling algorithm cannot meet the timeliness when faced with uncertain factors and complex environments, and the reinforcement learning algorithm with a single optimization objective cannot achieve multi-objective optimization, causing state explosion problems and short-sightedness.
A multi-objective flexible job shop scheduling method based on deep reinforcement learning is adopted. The target agent, workpiece agent and machine agent respectively process the production line status feature vector and scheduling goals, and dynamically select the optimization goals, workpiece assignment rules and machine assignment rules to achieve Real-time and autonomous scheduling decisions.
It achieves comprehensive optimization of multi-objectives in an uncertain environment, improves the timeliness and long-term effects of scheduling, avoids the problem of state explosion, and supports fully real-time, autonomous, and unmanned smart factory operations.
Smart Images

Figure CN112149987B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of dynamic scheduling technology, and in particular to a multi-objective flexible job shop scheduling method and device based on deep reinforcement learning. Background Art
[0002] In the related art, the multi-objective flexible job shop dynamic scheduling methods are mostly based on simple scheduling rules or meta-heuristic algorithms. Simple scheduling rules mainly include First in First out (FIFO), Earliest due date (EDD), Most remaining processing time (MRPT), etc., which select a workpiece to be processed on a machine at each rescheduling moment. Its advantage is that it has high real-time performance and can respond immediately to uncertain events. Its disadvantage is that it is short-sighted and cannot obtain a better scheduling plan in the long run. Moreover, a single scheduling rule is often applicable to a single optimization goal and cannot achieve multi-objective optimization.
[0003] In addition, meta-heuristic algorithms mainly include genetic algorithm (GA), particle swarm optimization (PSO), ant colony optimization (ACO), etc. It decomposes the dynamic scheduling problem into a multi-stage static scheduling problem for solution, that is, at each rescheduling moment, all remaining unfinished workpieces are considered uniformly, and a complex intelligent optimization algorithm is used to search for the best in a huge search space and form a new scheduling solution. Its advantage is that it can obtain a better rescheduling solution, but its disadvantage is that the operation time is long, it is not real-time, and it is not applicable when dynamic events occur frequently.
[0004] Traditional dynamic scheduling methods are mostly aimed at simple job shop scheduling problems, where the processing machine for each process is given in advance and can only be processed by the specified machine. Therefore, it is only necessary to determine the processing order of each process on different machines. In the flexible job shop scheduling problem, each process can be processed by any machine in the given machine set. Compared with the traditional job shop scheduling problem, it is necessary to consider not only arranging each process to a suitable machine for processing, but also the processing order of each process on each machine. It is more complicated than the simple job shop scheduling problem and has been proven to be an NP-hard problem. Therefore, in a processing environment where various uncertain factors (such as insertion orders and machine failures) coexist and occur frequently, the traditional flexible job shop dynamic scheduling algorithm, especially the complex heuristic algorithm, cannot meet the timeliness requirements because it consumes a lot of computing time, while the simple heuristic rules are short-sighted and cannot achieve multi-objective optimization, and cannot play a long-term optimization role in the scheduling scheme.
[0005] At present, reinforcement learning has been widely used to solve various dynamic scheduling problems. Among them, the most used algorithm is Q-learning. Traditional Q-learning needs to maintain a huge Q-function table during the training process. Each row of the table represents a state, each column represents an optional action, and each element stores the Q-function value corresponding to a certain action selected in a certain state. Generally speaking, at each rescheduling moment, it is only necessary to select the rule with the highest Q-function value in the state as the scheduling rule at that moment. Although the use of Q-table has the advantages of simplicity and intuition, it has a huge hidden danger of "dimensionality explosion". That is, the total number of its states increases exponentially with the growth of the state feature dimension, which is unacceptable for actual scheduling problems with huge state space. Storing such a large and complex Q-table will not only introduce a huge computational burden, but also introduce a large number of useless states that have never been experienced, reducing the efficiency of the algorithm. In addition, the existing dynamic scheduling algorithms based on reinforcement learning often only consider a single optimization goal (such as total delay) and cannot achieve multi-objective optimization. Summary of the invention
[0006] The present invention aims to solve at least one of the technical problems in the related art to a certain extent. To this end, one purpose of the present invention is to propose a multi-objective flexible job shop real-time rescheduling method based on deep reinforcement learning, which realizes multi-objective optimization and a fully real-time, autonomous, and unmanned smart factory by intelligently selecting different optimization objectives, workpiece assignment rules, and machine allocation rules according to the status of the production line at different rescheduling moments.
[0007] Another object of the present invention is to propose a multi-objective flexible job shop real-time rescheduling device based on deep reinforcement learning.
[0008] To achieve the above-mentioned purpose, an embodiment of the present invention proposes a multi-objective flexible job shop scheduling method based on deep reinforcement learning, including: reading the production line state feature vector at the current rescheduling moment; inputting the production line state feature vector into the target policy network of the trained target intelligent agent to obtain the scheduling target at the current rescheduling moment; inputting the production line state feature vector and the scheduling target into the workpiece policy network of the trained workpiece intelligent agent to obtain the workpiece assignment rule at the current rescheduling moment; inputting the production line state feature vector and the scheduling target into the machine policy network of the trained machine intelligent agent to obtain the machine allocation rule at the current rescheduling moment; selecting the workpiece to be processed according to the workpiece assignment rule, selecting the processing machine according to the machine allocation rule, and processing the next process of the workpiece to be processed by the processing machine.
[0009] In addition, the multi-objective flexible job shop scheduling method based on deep reinforcement learning according to the above embodiment of the present invention may also have the following additional technical features:
[0010] According to one embodiment of the present invention, the production line state feature vector at the current rescheduling moment is input into the target strategy network of the trained target intelligent agent to obtain the scheduling target at the current rescheduling moment, including: processing the production line state feature vector according to the deep neural network in the target strategy network and then inputting it into a classification function to obtain the selection probability corresponding to each optimization target; using a roulette method to determine the scheduling target according to the selection probabilities of different optimization targets.
[0011] According to one embodiment of the present invention, the step of inputting the production line state feature vector at the current rescheduling moment and the scheduling target at the current rescheduling moment into the workpiece policy network of a trained workpiece agent to obtain the workpiece assignment rule at the current rescheduling moment includes: processing the production line state feature vector and the scheduling target according to the deep neural network in the workpiece policy network and then inputting them into a classification function to obtain the selection probability corresponding to each workpiece assignment rule; and determining the workpiece assignment rule according to the selection probabilities of different workpiece assignment rules using a roulette method.
[0012] According to one embodiment of the present invention, the step of inputting the production line state feature vector and the scheduling target into a machine policy network of a trained machine agent to obtain a target machine allocation rule includes:
[0013] According to the deep neural network in the machine strategy network, the production line state feature vector at the current rescheduling moment and the scheduling target at the current rescheduling moment are processed and input into the classification function to obtain the selection probability corresponding to each machine allocation rule; the machine allocation rule is determined according to the selection probabilities of different machine allocation rules using the roulette method.
[0014] According to one embodiment of the present invention, the production line state feature vector at the current rescheduling moment is input into the target value network of the target intelligent agent to obtain the target state value function at the current rescheduling moment; the production line state feature vector at the current rescheduling moment and the scheduling target at the current rescheduling moment are input into the workpiece value network of the workpiece intelligent agent to obtain the workpiece state value function at the current rescheduling moment; the production line state feature vector at the current rescheduling moment and the scheduling target at the current rescheduling moment are input into the machine value network of the machine intelligent agent to obtain the machine state value function at the current rescheduling moment.
[0015] According to an embodiment of the present invention, the current rescheduling time is the completion time of any process, or the time when the insertion order arrives.
[0016] According to one embodiment of the present invention, during the offline pre-training process, the target policy network, the old target policy network and the target value network of the target intelligent agent, the artifact policy network, the old artifact policy network and the artifact value network of the artifact intelligent agent, the machine policy network, the old machine policy network and the machine value network of the machine intelligent agent are obtained, and the parameters of each network are initialized; the initial parameters of the old target policy network are set as the initial parameters of the target policy network, the initial parameters of the old artifact policy network are set as the initial parameters of the artifact policy network, and the initial parameters of the old machine policy network are set as the initial parameters of the machine policy network. In each training cycle, a new training environment is randomly generated, and all agents are pre-trained offline using the Proximal Policy Optimization (PPO) algorithm. Specifically, at each rescheduling moment in the training process, the current state feature vector is obtained and input into the old workpiece policy network to obtain the optimization target; the current state feature vector and the optimization target are respectively input into the old workpiece policy network and the old machine policy network to obtain the training workpiece assignment rule and the training machine allocation rule; a workpiece is selected according to the training workpiece assignment rule and a machine is selected according to the training machine allocation rule, the next process of the selected workpiece is arranged on the selected machine for processing, and the reward at the current moment is calculated; every time after a certain number of rescheduling steps, the target policy network of the target agent, the workpiece policy network of the workpiece agent, and the machine policy network of the machine agent are updated through the PPO loss function, and the parameters of the old policy network of each agent are replaced with the parameters of its policy network at the current moment. The target state value network of the target agent, the workpiece state value network of the workpiece agent, and the machine state value network of the machine agent are updated through the minimum square error loss function (MSE). This process is repeated until the various networks meet the usage requirements.
[0017] According to an embodiment of the present invention, the scheduling objective is one or more of minimizing the total delay of all workpieces, maximizing the average machine utilization of all machines, and minimizing the variance of all machine loads.
[0018] According to one embodiment of the present invention, the production line status feature vector includes: the total number of machines in the processing workshop, the average machine utilization, the variance of each machine utilization, the completion degree of all processes, the average completion degree of each workpiece, the variance of the workpiece completion degree, the variance of all machine loads, the estimated delay rate at each rescheduling moment, the actual delay rate at each rescheduling moment and one or more of the estimated delay time at each rescheduling moment.
[0019] According to the multi-objective flexible job shop scheduling method based on deep reinforcement learning of the embodiment of the present invention, by reading the production line state feature vector at the current rescheduling moment; inputting the production line state feature vector into the target policy network of the trained target agent to obtain the scheduling target; inputting the production line state feature vector and the scheduling target into the workpiece policy network of the trained workpiece agent to obtain the workpiece assignment rule; inputting the production line state feature vector and the scheduling target into the machine policy network of the trained machine agent to obtain the machine allocation rule; selecting the workpiece to be processed according to the target workpiece assignment rule, selecting the processing machine according to the target machine allocation rule, and processing the next process of the workpiece to be processed by the processing machine. Therefore, by intelligently selecting different optimization targets, workpiece assignment rules and machine allocation rules according to the state of the production line at different rescheduling moments, a fully real-time, autonomous and unmanned smart factory is realized.
[0020] To achieve the above-mentioned purpose, another embodiment of the present invention proposes a multi-objective flexible job shop scheduling device based on deep reinforcement learning, including: a reading module, used to read the production line state feature vector at the current rescheduling moment; a first input module, used to input the production line state feature vector into the target policy network of the trained target intelligent agent, and obtain the scheduling target at the current rescheduling moment; a second input module, used to input the production line state feature vector at the current rescheduling moment and the scheduling target at the current rescheduling moment into the workpiece policy network of the trained workpiece intelligent agent, and obtain the workpiece assignment rule at the current rescheduling moment; a third input module, used to input the production line state feature vector at the current rescheduling moment and the scheduling target at the current rescheduling moment into the machine policy network of the trained machine intelligent agent, and obtain the machine allocation rule at the current rescheduling moment; a processing module, used to select a workpiece to be processed according to the workpiece assignment rule, select a processing machine according to the machine allocation rule, and process the next process of the workpiece to be processed by the processing machine.
[0021] According to the multi-objective flexible job shop scheduling device based on deep reinforcement learning of the embodiment of the present invention, by reading the production line state feature vector at the current rescheduling moment; inputting the production line state feature vector into the target strategy network of the trained target agent to obtain the scheduling goal; inputting the production line state feature vector and the scheduling goal into the workpiece strategy network of the trained workpiece agent to obtain the workpiece assignment rule; inputting the production line state feature vector and the scheduling goal into the machine strategy network of the trained machine agent to obtain the machine allocation rule; selecting the workpiece to be processed according to the workpiece assignment rule, selecting the processing machine according to the machine allocation rule, and processing the next process of the workpiece to be processed by the processing machine. Therefore, by intelligently selecting different optimization goals, workpiece assignment rules and machine allocation rules according to the state of the production line at different rescheduling moments, multi-objective collaborative optimization and a fully real-time, autonomous and unmanned smart factory are realized.
[0022] According to a third aspect of an embodiment of the present invention, a server is provided, including:
[0023] processor;
[0024] a memory for storing instructions executable by the processor;
[0025] Among them, the processor is configured to execute the instructions to implement the multi-objective flexible job shop scheduling method based on deep reinforcement learning as described in the embodiment of the first aspect.
[0026] According to a fourth aspect of an embodiment of the present invention, there is provided a storage medium, including:
[0027] When the instructions in the storage medium are executed by the processor of the server, the server is enabled to execute the multi-objective flexible job shop scheduling method based on deep reinforcement learning described in the embodiment of the first aspect.
[0028] According to a fifth aspect of an embodiment of the present invention, a computer program product is provided. When the instructions in the computer program product are executed by a processor, a server is enabled to execute the multi-objective flexible job shop scheduling method based on deep reinforcement learning described in the embodiment of the first aspect.
[0029] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 is a flowchart of a multi-objective flexible job shop scheduling method based on deep reinforcement learning according to an embodiment of the present invention;
[0031] Figure 2is an example diagram of a numerical experiment according to the present invention;
[0032] Figure 3 The interactive effect diagram of the three intelligent agents and the production site during the entire dynamic scheduling process is shown.
[0033] Figure 4 It is a structural diagram of a multi-objective flexible job shop scheduling device based on deep reinforcement learning according to an embodiment of the present invention. DETAILED DESCRIPTION
[0034] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.
[0035] The following describes a multi-objective flexible job shop scheduling method and device based on deep reinforcement learning according to an embodiment of the present invention with reference to the accompanying drawings.
[0036] In the related technologies, most of them are aimed at simple job shop scheduling problems, that is, the processing machine of each process is given in advance, and can only be processed by the specified machine, so it is only necessary to determine the processing order of each process on different machines. The multi-objective flexible job shop scheduling method based on deep reinforcement learning of the present invention is aimed at the flexible job shop scheduling problem, that is, each process can be processed by any machine in a given set of candidate machines, so it is necessary to consider both the machine allocation problem of each process and the processing order problem of each process on each machine, which is more complicated than the traditional job shop dynamic scheduling problem.
[0037] Specifically, the multi-objective flexible job shop scheduling method based on deep reinforcement learning of the present invention must consider both the workpiece assignment rules (i.e., selecting a suitable unfinished workpiece at each rescheduling moment and processing its next process), and the machine allocation rules (i.e., selecting a suitable processing machine from the set of candidate machines for the selected process at each rescheduling moment, and assigning the process to the machine for processing).
[0038] It is understandable that in a processing environment with various uncertainties, traditional static scheduling algorithms, especially complex heuristic algorithms, cannot meet timeliness requirements because they require a lot of computing time. Simple heuristic rules are short-sighted and cannot optimize scheduling solutions in the long term.
[0039] In order to solve the above problems, a reasonable solution is to dynamically and adaptively select the most appropriate scheduling rules based on the real-time conditions of the production site. Each scheduling rule is only optimized for the current moment and a short period of time thereafter, which ensures the short-term effectiveness of the scheduling rules. When new uncertain events occur, the most appropriate scheduling rules are immediately reselected. In this way, the timeliness of dynamic scheduling is guaranteed, and a better scheduling plan can be obtained in the long run.
[0040] In view of the above description, if the process of selecting rules (or other scheduling parameters) is modeled as a Markov decision process (MDP), its decision moment can be defined as the moment when an uncertain event (insertion order, machine failure, etc.) occurs, its state is the state indicator of the production site at each decision moment, such as task completion rate, machine utilization rate, production cycle, waiting task queue length, order delay degree, etc., and its action is the set of scheduling rules that can be selected at each decision moment. Then this Markov process can be effectively solved through reinforcement learning.
[0041] In order to achieve real-time online rescheduling of a multi-objective flexible job shop with frequent insertion orders, a multi-objective real-time rescheduling method based on deep reinforcement learning is designed. Its biggest advantage over traditional dynamic scheduling algorithms is its real-time performance. The rescheduling time is defined as the completion time of any process or the arrival time of the insertion order. It intelligently selects the optimization target, workpiece assignment rules and machine allocation rules at each rescheduling time, and can achieve multi-objective optimization in the entire scheduling process.
[0042] Specifically, traditional dynamic scheduling algorithms often optimize a single optimization objective (e.g., total tardiness). The multi-objective flexible job shop scheduling method based on deep reinforcement learning in the present invention simultaneously considers three objectives: (1) total tardiness, (2) average machine utilization of all machines, and (3) balance of all machine loads (i.e., variance of all machine loads) to achieve multi-objective optimization.
[0043] The specific operation is to use the target agent π at each rescheduling time t g According to the current production line status φ(s t ) Select total tardiness (TT), average machine utilization of all machines (U ave ), the variance of all machine loads (W std ) One of these three goals is used as the optimization goal at the current moment g t , and then the workpiece agent π J Based on the current production line status φ(s t ) and the optimization goal g selected by the target agent tChoose a reasonable artifact assignment rule a J,t , and select an unfinished workpiece J according to the rule i . Machine Agent π m Based on the current production line status φ(s t ) and the optimization goal g selected by the target agent t Choose a reasonable machine allocation rule a m,t , and select a suitable processing machine M according to this rule k Finally, the unfinished workpiece J selected by the workpiece agent i The next process is assigned to the machine M selected by machine intelligence. k Since the optimization target is selected according to the current real-time status of the production line at each rescheduling moment, and the corresponding workpiece assignment rules and machine allocation rules are selected according to the target, in the long run, comprehensive optimization of various targets can be achieved in the entire scheduling process to achieve an ideal scheduling effect.
[0044] Specifically, the traditional multi-objective optimization method forms a new objective function by weighted summing up various objective functions, that is, converting the multi-objective optimization problem into a single-objective optimization problem for solution. The disadvantage is that the weights of various objective functions are difficult to specify, and it is difficult to specify the optimal weights to achieve comprehensive optimization of various objectives. The multi-objective flexible job shop scheduling method based on deep reinforcement learning of the present invention intelligently selects different optimization objectives according to the status of the production line at different rescheduling times, without setting different weights for each objective, and can achieve comprehensive optimization of various objectives in the long run.
[0045] Specifically, due to the short-sightedness of a single scheduling rule, a better rescheduling solution cannot be obtained in the long run, and multi-objective optimization cannot be achieved. The multi-objective flexible job shop scheduling method based on deep reinforcement learning of the present invention defines 5 workpiece assignment rules and 5 machine allocation rules respectively. The method selects appropriate workpiece assignment rules and machine allocation rules at each rescheduling moment. Among them, each workpiece assignment rule selects a suitable unfinished workpiece, and each machine allocation rule selects a suitable processing machine and arranges the next process of the workpiece selected by the workpiece assignment rule to the machine for processing. By selecting the most suitable workpiece assignment rules and machine allocation rules at different rescheduling moments, better scheduling effects can be achieved in the entire scheduling process in the long run.
[0046] Specifically, the traditional deep Q-network is trained based on deep Q-learning, and its output is the Q-function value of each state-action pair, and it cannot directly output the strategy (i.e., the selection probability of each action). This method uses a deep policy network that directly outputs the strategy, directly takes the state features at each rescheduling moment as input, and takes the selection probability of each rule or optimization target as output. The proximal policy optimization algorithm (PPO) is used to train the three agents, solving the state explosion problem based on the traditional Q-learning dynamic scheduling algorithm, and can directly optimize the strategy.
[0047] The multi-objective flexible job shop scheduling method based on deep reinforcement learning of the present invention comprises three deep reinforcement learning agents, namely, target agent π g , workpiece agent π J , and the machine agent π m Each agent contains a deep policy network π and a state value network v. The state characteristics of the production line at the current rescheduling moment are defined as φ(s t ). The policy network π of the target agent g The input φ g,t is the production line status φ(s t ), that is, φ g,t =φ(s t ), whose output is the optimization target g at the previous rescheduling time t The probability of choosing g (φ g,t , g t ). The state value network v of the target agent g φ g,t As input, the target state value function v at the current rescheduling time g (φ g,t ) as output. The strategy network π of the artifact agent J The input φ J,t is the current production line status φ(s t ) and the optimization goal g at the current moment t , that is, φ J,t =[φ(s t ), g t ], the output is the workpiece assignment rule a at the current rescheduling time J,t The probability of choosing J (φ J,t , a J,t ). The state value network v of the artifact agent J The input is φ J,t , the output is the workpiece state value function v at the current rescheduling moment J(φ J,t ). The policy network π of the machine agent m The input is the current production line state φ(s t ) and the optimization goal g at the current moment t , that is, φ m,t =[φ(s t ), g t ], the output is the machine allocation rule a at the current rescheduling time m,t The probability of choosing m (φ m,t , a m,t ). The state value network v of the machine agent m The input is φ m,t , the output is the machine state value function v at the current rescheduling moment m (φ m,t ).
[0048] The multi-objective flexible job shop real-time rescheduling method based on deep reinforcement learning of the present invention can define the rescheduling time as the completion time of any process or the arrival time of the insertion order.
[0049] The multi-objective flexible job shop scheduling method based on deep reinforcement learning in this invention, at each rescheduling moment, the target agent π g According to the current production line status φ(s t ) Select the optimization target g t , workpiece agent π J According to the current production line status φ(s t ) and g t Select appropriate artifact assignment rulesa J,t , machine agent π m According to the current production line status φ(s t ) and g t Select appropriate machine allocation rulesa m,t Finally, the system assigns the workpiece according to the rule a J,t Select a suitable workpiece J i , and according to the machine allocation rule a m,t Select the appropriate machine M k , and the workpiece J i The next process is arranged to machine M k Processing is performed on.
[0050] Figure 1 is a flowchart of a multi-objective flexible job shop scheduling method based on deep reinforcement learning according to an embodiment of the present invention. Figure 1 As shown, the multi-objective flexible job shop scheduling method based on deep reinforcement learning includes the following steps:
[0051] Step S101, reading the production line status feature vector at the current rescheduling moment.
[0052] First, the present invention is aimed at the multi-objective flexible job shop dynamic scheduling problem. Specifically, there are n workpieces J={J 1 , J 2 , ..., J n} and m machines M = {M 1 , M 2 , ..., M m Each workpiece J i Contains i process, among which O i,j Representative workpiece J i The jth process of each process O i,j Candidate Machine Set Any machine M in k Processing is performed on the i,j On machine M k The processing time is t i,j,k To indicate. Process O i,j The processing completion time is expressed as C i,j Each workpiece J i The arrival time is A i , whose delivery period is D i In the scheduling process, three optimization objectives need to be considered simultaneously: minimizing the total delay of all workpieces, maximizing the average machine utilization of all machines, and minimizing the variance of all machine loads.
[0053] In this embodiment, the multi-objective flexible job shop dynamic scheduling problem needs to meet the following assumptions: (1) Each machine can only process one process at any time (machine capacity constraint); (2) All processes can only be processed after their predecessor processes are completed (priority constraint); (3) Once a process starts, it is not allowed to be interrupted.
[0054] In this embodiment, the meanings of various parameters are shown in the following table:
[0055]
[0056] In this embodiment, decision variables and corresponding decision variable meanings are also defined, as shown in the following table:
[0057]
[0058] In this embodiment, a mathematical model is also set, which is described in detail as follows:
[0059]
[0060]
[0061]
[0062] in,
[0063]
[0064]
[0065]
[0066]
[0067] Among them, the target f 1 To minimize the total delay of all jobs, the goal is 2 To minimize the inverse of the average machine utilization of all machines, the objective f 3 To minimize the variance of all machine loads; Constraint (1) means that the start time of any process must be greater than or equal to 0, and the completion time must be greater than 0. Constraint (2) means that each process can only be scheduled to one machine. Constraint (3) means that each process must be started after the previous process is completed. Constraint (4) means that each workpiece can only be processed after its arrival time. Constraint (5) means that any machine can only process at most one process at any time.
[0068] In this embodiment, the production line status feature vector includes: the total number of machines in the processing workshop, the average machine utilization rate, the variance of each machine utilization rate, the completion degree of all processes, the average completion degree of each workpiece, the variance of the workpiece completion degree, the variance of all machine loads, the estimated delay rate at each rescheduling moment, the actual delay rate at each rescheduling moment and one or more of the estimated delay time at each rescheduling moment.
[0069] Specifically, define CT k (t) is the current rescheduling time t of machine M k The completion time of the last process is defined as OP i (t) is the job J at the current rescheduling time i The total number of processes that have been assigned to the machine for processing. Define the current moment machine M k The utilization rate is U k (t), that is Define the current moment artifact J i The completion degree is CRJ i (t), yes Define the current moment machine M k The load is Average machine load at the current moment Dingwen For process O i,j In its set of all available machines M i,j Based on the above symbols, the present invention defines 10 production status feature vectors, as shown below:
[0070] (1) The total number of machines in the processing workshop m; (2) The average machine utilization rate (3) Variance of machine utilization (4) Completion of all processes (5) Average completion rate of each workpiece (6) Variance of workpiece completion (7) Variance of all machine loads (8) Estimated delay rate Tard e (t), which is calculated as follows; the estimated delay rate Tard at each rescheduling time t e Calculation method of (t):
[0071]
[0072]
[0073] (9) Actual delay rate Tard a (t), which is calculated as follows:
[0074]
[0075]
[0076] (10) Estimated tardiness ET(t) is calculated as follows
[0077]
[0078] In this embodiment, the current rescheduling time is the completion time of any process, or the time when the insertion order arrives.
[0079] Step S102, inputting the production line state feature vector into the trained target strategy network of the target agent to obtain the scheduling target.
[0080] In this embodiment, the production line state feature vector is processed according to the deep neural network in the target strategy network and then input into a classification function such as softmax to obtain the selection probability corresponding to each optimization target, and the roulette method is used to determine the final scheduling target according to the selection probabilities of different optimization targets.
[0081] Specifically, the target agent π g The policy network is a 7-layer deep neural network, including an input layer, five hidden layers, and an output layer. The input layer has 10 nodes, corresponding to ten production line state features φ(s t )=[m,U ave (t), U std (t), CRO(t), CRJ ave (t), CRJ std (t), W std (t), Tard e (t), Tard a (t), ET(t)], and its activation function is Relu. Each of the five hidden layers has 200 nodes, and its activation function is Relu. Its output layer has 3 nodes, corresponding to 3 optimization objectives, namely total delay, average machine utilization, and balance of all machine loads. The activation function of the output layer is the softmax function, which outputs the selection probability π of the three optimization objectives at each rescheduling moment g (φ g,t , a g,t ).
[0082] In this embodiment, the scheduling objective is one or more of minimizing the total tardiness of all workpieces, maximizing the average machine utilization of all machines, and minimizing the variance of all machine loads.
[0083] Step S103, inputting the production line state feature vector and the scheduling target into the workpiece strategy network of the trained workpiece agent to obtain the target workpiece assignment rule.
[0084] In this embodiment, the production line state feature vector and the scheduling target are processed according to the deep neural network in the workpiece strategy network and then input into the classification function, for example, to obtain the selection probability corresponding to each workpiece assignment rule, and the roulette method is used to determine the final workpiece assignment rule according to the selection probabilities of different workpiece assignment rules.
[0085] Specifically, the artifact agent π J The policy network is a 7-layer deep neural network, including an input layer, five hidden layers, and an output layer. The input layer has 11 nodes, corresponding to ten production line state features φ(s t )=[m,U ave (t), U std (t), CRO(t), CRJ ave (t), CRJ std (t), W std (t), Tard e (t), Tard a(t), ET(t)] and the optimization target g at the current rescheduling time t , whose activation function is Relu. Each of the five hidden layers has 200 nodes, and the activation function is Relu. The output layer has 5 nodes, corresponding to the 5 kinds of workpiece assignment rules. The activation function of the output layer is the softmax function, which corresponds to the selection probability π of the 5 kinds of workpiece assignment rules at each rescheduling moment J (φ J,t , a J,t ).
[0086] Specifically, define T cur =mean k CT k (t) is the average time to complete the last process on all machines at the current rescheduling time. job (t) is the estimated delayed workpiece set at the current moment, i.e., the delivery date D i <T cur A collection of unfinished artifacts. Define UC job (t) is the set of all unfinished workpieces at the current moment. Based on the above symbols, the present invention proposes five workpiece assignment rules, as shown below:
[0087]
[0088]
[0089]
[0090] Step S104, input the production line state feature vector and the scheduling target into the machine strategy network of the trained machine agent to obtain the target machine allocation rule.
[0091] In this embodiment, the production line state feature vector and the scheduling target are processed according to the deep neural network in the machine policy network and then input into a classification function such as softmax to obtain the selection probability corresponding to each machine allocation rule. The roulette method is used to determine the final machine allocation rule according to the selection probabilities of different machine allocation rules.
[0092] Specifically, the machine agent π m The policy network is a 7-layer deep neural network, including one input layer, five hidden layers, and one output layer. Its input layer has 11 nodes, corresponding to ten production line status features.
[0093] φ(s t )=[m,U ave (t), U std (t), CRO(t), CRJ ave (t), CRJstd (t), W std (t), Tard e (t), Tard a (t), ET(t)] and the optimization target g at the current rescheduling time t , whose activation function is Relu. Each of the five hidden layers has 200 nodes, and the activation function is Relu. Its output layer has 5 nodes, corresponding to 5 machine allocation rules. The activation function of the output layer is the softmax function, which outputs the selection probability π of the 5 machine allocation rules at each rescheduling time m (φ m,t , a m,t ).
[0094] The present invention proposes five machine allocation rules, as shown below.
[0095]
[0096] It can be understood that the state value function of each network can also be obtained. In this embodiment, the production line state feature vector is input into the target state value network of the target intelligent agent to obtain the target state value function at the current rescheduling moment; the production line state feature vector and the scheduling target are input into the workpiece state value network of the workpiece intelligent agent to obtain the workpiece state value function at the current rescheduling moment; the production line state feature vector and the scheduling target are input into the machine state value network of the machine intelligent agent to obtain the machine state value function at the current rescheduling moment.
[0097] Specifically, the target agent π g The state value network is a 4-layer deep neural network, including an input layer, two hidden layers, and an output layer. Its input layer has 10 nodes, corresponding to ten production line state features. t )=[m,U ave (t), U std (t), CRO(t), CRJ ave (t), CRJ std (t), W std (t), Tard e (t), Tard a (t), ET(t)], and its activation function is Relu. The two hidden layers each have 200 nodes, and the activation function is Relu. The output layer has 1 node, and the activation function is Relu, which outputs each state φ g,t The corresponding target state value function value v g (φ g,t ).
[0098] Specifically, the workpiece agent π JThe state value network is a 4-layer deep neural network, including an input layer, two hidden layers, and an output layer. Its input layer has 11 nodes, corresponding to ten production line state features. t )=[m,U ave (t), U std (t), CRO(t), CRJ ave (t), CRJ std (t), W std (t), Tard e (t), Tard a (t), ET(t)] and the optimization target g at the current rescheduling time t , whose activation function is Relu. Each of the two hidden layers has 200 nodes, and the activation function is Relu. Its output layer has 1 node, and the activation function is Relu, outputting each state φ J,t The corresponding workpiece state value function value v J (φ J,t ).
[0099] Specifically, the machine agent π m The state value network is a 4-layer deep neural network, including an input layer, two hidden layers, and an output layer. Its input layer has 11 nodes, corresponding to ten production line state features. t )=[m,U ave (t), U std (t), CRO(t), CRJ ave (t), CRJ std (t), W std (t), Tard e (t), Tard a (t), ET(t)] and the optimization target g at the current rescheduling time t , whose activation function is Relu. Each of the two hidden layers has 200 nodes, and the activation function is Relu. Its output layer has 1 node, and the activation function is Relu, outputting each state φ m,t The corresponding machine state value function value v m (φ m,t ).
[0100] It is understandable that each network needs to be pre-trained. In this embodiment, the target policy network, the old target policy network and the target state value network of the target agent, the artifact policy network, the old artifact policy network and the artifact state value network of the artifact agent, the machine policy network, the old machine policy network and the machine state value network of the machine agent are obtained, and the parameters of each network are initialized; the initial parameters of the old target policy network are set as the initial parameters of the target policy network, the initial parameters of the old artifact policy network are set as the initial parameters of the artifact policy network, and the initial parameters of the old machine policy network are set as the initial parameters of the machine policy network. In each training cycle, a new training environment is randomly generated, and all agents are pre-trained offline using the proximal policy optimization algorithm (PPO). Specifically, at each rescheduling moment in the training process, the current state feature vector is obtained and input into the old workpiece policy network to obtain the optimization target; the current state feature vector and the optimization target are respectively input into the old workpiece policy network and the old machine policy network to obtain the training workpiece assignment rule and the training machine allocation rule; a workpiece is selected according to the training workpiece assignment rule and a machine is selected according to the training machine allocation rule, the next process of the workpiece is arranged on the machine for processing, and the reward at the current moment is calculated; after a certain number of rescheduling steps, the target policy network of the target agent, the workpiece policy network of the workpiece agent, and the machine policy network of the machine agent are updated through the PPO loss function, and the parameters of the old policy network of each agent at the current moment are replaced. The target state value network of the target agent, the workpiece state value network of the workpiece agent, and the machine state value network of the machine agent are updated through the minimum square error loss function (MSE). This process is repeated until each network meets the usage requirements.
[0101] Specifically, the three agents are first pre-trained offline, and each episode represents a complete training process (i.e., from the start time to the time when all processes are scheduled). In each episode, different training environments are randomly generated. It is assumed that the arrival process of the plug-in order conforms to the Poisson process, that is, the time interval between the arrival of two adjacent plug-in orders follows an exponential distribution. That is, the mean time interval between two adjacent orders is λ. DDT (due date tightness) represents the urgency of each order delivery date. i The arrival time is A i , then its delivery period DDT. The smaller the value of DDT, the shorter the delivery time of the order, that is, the more urgent the order. Based on the above statement, the parameters of the training environment in each episode are shown in the following table:
[0102] Total number of machines m Uniform distribution within [1, 50] <![CDATA[Total available machines for each process O i,j | M i,j |]]> Uniform distribution within [1, m] <![CDATA[Total number of processes n for each workpiece J i i > Uniform distribution within [1, 20] The total number of randomly arrived insertion orders Uniform distribution within [50, 200] The urgency of each order delivery period DDT Uniform distribution within [0.5, 1.5] The mean time interval between two adjacent insertion orders is λ Uniform distribution within [50, 200]
[0103] The offline pre-training algorithm based on proximal policy optimization (PPO) is shown in the following table:
[0104]
[0105]
[0106]
[0107] The reward function is calculated as:
[0108]
[0109]
[0110] After offline pre-training, the three agents proposed in this method are applied to the actual dynamic rescheduling process for online real-time rescheduling. The implementation method is as follows. In the implementation process, only the policy network of each agent is used to select the optimization target, workpiece assignment rules and machine allocation rules, while the state value network of each agent is not used. That is, the state value network only works in the offline pre-training process of each agent, but not in the actual rescheduling process.
[0111] Step S105 , selecting a workpiece according to the workpiece assignment rule, selecting a machine according to the machine allocation rule, and processing the next process of the selected workpiece by the selected machine.
[0112] Specifically, the trained target policy network π g , the trained artifact policy network π J , the trained machine policy network π m .
[0113] fort=0:T (t is the rescheduling time, that is, the time when a certain process on a certain machine is completed or a new workpiece arrives, T is the termination time, that is, the time when all processes are completed)
[0114] Get the current status t The eigenvector φ(s t )=[m,U ave (t), U std (t), CRO(t), CRJ ave (t), CRJ std (t), W std (t), Tard e (t), Tard a(t), ET(t)]
[0115] Let φ g,t =φ(s t ) According to the strategy π g (φ t , g t θ g ) Select target g t .
[0116] Let φ J,t =[φ(s t ), g t ], according to the strategy π J (φ J,t , a J,t θ J ) Select workpiece assignment rule a J,t .
[0117] Let φ m,t =[φ(s t ), g t ], according to the strategy π m (φ m,t , a m,t θ m ) Select machine allocation rule a m,t .
[0118] According to the artifact assignment rule a J,t Select a workpiece J i , according to the machine allocation rule a m,t Select a machine M k , J i The next process is arranged at M k Processing is performed on.
[0119] For example, Figure 2 As shown, the definition of Pareto dominance is:
[0120] In a system with m objective functions {f 1 , f 2 , ..., f m}, suppose there are two solutions x and y. If (1)f k (x)≤f k (y), (2) There exists at least one k that strictly satisfies f k (x)<f k(y), then x dominates y, or x < y. If a solution satisfies that no other solution can dominate it, it is called a non-dominated solution, or a Pareto optimal solution. The set of all Pareto optimal solutions for a multi-objective optimization problem is called the Pareto optimal frontier. The multi-objective optimization algorithm attempts to find a set of Pareto optimal solutions that are evenly distributed on the Pareto optimal frontier, as shown in the figure below. These solutions have their own advantages and disadvantages in each objective, which intuitively reflects the trade-offs between multiple objectives.
[0121] Performance evaluation indicators for multi-objective optimization problems:
[0122] For multi-objective optimization problems, the following three indicators are used to evaluate the performance of the solution:
[0123] (1) Generational Distance (GD), which is defined as follows:
[0124]
[0125] Where P is the real Pareto optimal frontier in a real multi-objective optimization problem, and A is the approximate Pareto optimal frontier obtained by a certain algorithm to be evaluated. i,A,P It is the Euclidean distance between the ith solution in A and the nearest solution in P. The GD indicator is mainly used to evaluate the convergence of the Pareto optimal frontier obtained by an algorithm. The smaller the GD value, the closer the Pareto optimal frontier obtained by the algorithm is to the true Pareto optimal frontier.
[0126] (2) Diversity index Δ, which is defined as follows:
[0127]
[0128] where d i,A,A is the Euclidean distance between the ith solution in A and the nearest solution in A. For all i,A,A The average value of . is the Euclidean distance between a solution with the maximum j-th objective function in A and a solution with the maximum j-th objective function in P. o is the number of all objective functions. The Δ indicator is used to evaluate the uniformity of the Pareto optimal frontier obtained by an algorithm. The smaller the Δ value, the more uniform the distribution of the Pareto optimal solutions on the Pareto optimal frontier obtained by the algorithm.
[0129] (3) Inverse Generational Distance (IGD), which is defined as follows:
[0130]
[0131] Among them, d i,PA is the Euclidean distance between the fth solution in P and the nearest solution in A. The IGD index is mainly used to comprehensively evaluate the convergence and uniformity of the Pareto optimal frontier obtained by an algorithm. The smaller the IGD value, the closer the Pareto optimal frontier obtained by the algorithm is to the true Pareto optimal frontier, and the better the uniformity of the distribution of solutions on the Pareto optimal frontier.
[0132] The scheduling effect of the present invention is compared with the six most commonly used existing scheduling rules, including: (1) First in first out (FIFO): select the earliest arriving workpiece and arrange its next process to be processed on the earliest available machine. (2) Most remaining processing time (MRPT): select the workpiece with the most remaining processing time and arrange its next process to be processed on the earliest available machine. (3) Earliest due date (EDD): select the workpiece with the earliest delivery date and arrange its next process to be processed on the earliest available machine. (4) Critical ratio (CR): define the critical ratio of a workpiece as the remaining processing time of the workpiece divided by the time from the current moment to its delivery date. Select the workpiece with the highest critical ratio and arrange its next process to be processed on the earliest available machine. (5) Shortest processing time (SPT): select the workpiece with the shortest processing time for the next process and arrange its next process to be processed on the earliest available machine. (6) Longest processing time (LPT): Select the workpiece with the longest processing time for the next process and schedule its next process to be processed on the earliest available machine. (7) Random rule: At each rescheduling moment, randomly select one of the above rules to schedule a process to be processed on a certain machine.
[0133] The three agents trained based on PPO were tested on different examples and compared with the above 7 scheduling rules. The results are shown in the following table. The number of insertion orders in each test example is evenly distributed between [100, 150], the number of processes for each workpiece is evenly distributed in the interval [1, 20], and the processing time of each process is evenly distributed in the interval [1, 50]. It is assumed that the arrival process of the insertion order conforms to the Poisson process, that is, the time interval between the arrival of two adjacent insertion orders follows an exponential distribution. Here, λ=100 is specified, that is, the average time interval between two adjacent orders is 100. DDT (due date tightness) represents the urgency of the delivery date of each order. i , then its delivery period m represents the total number of machines in the test case. This method and the above 7 scheduling rules are independently run 20 times for each test case. The Pareto optimal solution obtained by each method is selected, and the three indicators GD, IGD and Δ are calculated. The performance indicators of different methods on different test cases are as follows (the optimal performance indicator on each test case is marked in bold):
[0134] 1. GD values of different methods on different test cases:
[0135]
[0136] It should be noted that the optimal algorithm is marked in bold in the above table.
[0137] 2. IGD values of different methods on different test cases:
[0138]
[0139] 3. Δ values of different methods on different test cases:
[0140]
[0141] It can be seen from the above table that this method (i.e., the scheduling effect of the agent after training with PPO) has achieved the best performance indicators in almost all test cases.
[0142] As a scene description, Figure 3 The diagram shows the interaction effect between the three agents and the production site in the entire dynamic scheduling process, by reading the production line state feature vector at the current rescheduling moment; inputting the production line state feature vector into the target strategy network of the trained target agent to obtain the scheduling target; inputting the production line state feature vector and the scheduling target into the workpiece strategy network of the trained workpiece agent to obtain the workpiece assignment rule; inputting the production line state feature vector and the scheduling target into the machine strategy network of the trained machine agent to obtain the machine allocation rule; selecting the workpiece according to the workpiece assignment rule, selecting the machine according to the machine allocation rule, and processing the next step of the selected workpiece by the selected machine.
[0143] As a result, real-time online rescheduling of multi-objective flexible job shops with frequent insertion orders can be achieved. At each rescheduling moment (that is, whenever an insertion order arrives or a machine completes a process), the system automatically selects a suitable process from the remaining unprocessed process set and processes it on a suitable machine, without having to spend a lot of computing time to form a new scheduling plan through other intelligent optimization algorithms such as genetic algorithms as in traditional dynamic scheduling methods. The three trained agents make autonomous decisions based on the status of the production line at each rescheduling moment, eliminating human intervention and realizing a fully real-time, autonomous, and unmanned smart factory.
[0144] In addition, the overall scheduling process can achieve comprehensive optimization of the three objectives of total delay, average machine utilization of all machines and balance of all machine loads.
[0145] According to the multi-objective flexible job shop scheduling method based on deep reinforcement learning proposed in an embodiment of the present invention, the production line state feature vector at the current rescheduling moment is read; the production line state feature vector is input into the target strategy network of the trained target agent to obtain the scheduling target; the production line state feature vector and the scheduling target are input into the workpiece strategy network of the trained workpiece agent to obtain the workpiece assignment rule; the production line state feature vector and the scheduling target are input into the machine strategy network of the trained machine agent to obtain the machine allocation rule; the workpiece to be processed is selected according to the workpiece assignment rule, the processing machine is selected according to the machine allocation rule, and the next process of the workpiece to be processed is processed by the processing machine. Therefore, by intelligently selecting different optimization targets, workpiece assignment rules and machine allocation rules according to the state of the production line at different rescheduling moments, a fully real-time, autonomous and unmanned smart factory is realized.
[0146] Figure 4 is a structural example diagram of a multi-objective flexible job shop scheduling device based on deep reinforcement learning in an embodiment of the present invention. Figure 4 As shown, the multi-objective flexible job shop scheduling device based on deep reinforcement learning includes: an acquisition module 100, a first input module, a second input module 300, a third input module 400 and a processing module 500.
[0147] The reading module 100 is used to read the production line status feature vector at the current rescheduling moment.
[0148] The first input module 200 is used to input the production line state feature vector into the target strategy network of the trained target agent to obtain the scheduling target at the current rescheduling moment.
[0149] The second input module 300 is used to input the production line state feature vector at the current rescheduling moment and the scheduling target at the current rescheduling moment into the workpiece strategy network of the trained workpiece agent to obtain the workpiece assignment rule at the current rescheduling moment.
[0150] The third input module 400 is used to input the production line state feature vector at the current rescheduling moment and the scheduling target at the current rescheduling moment into the machine strategy network of the trained machine agent to obtain the machine allocation rule at the current rescheduling moment.
[0151] The processing module 500 is used to select a workpiece to be processed according to the workpiece assignment rule, select a processing machine according to the machine allocation rule, and process the next step of the workpiece to be processed by the processing machine.
[0152] It should be noted that the aforementioned explanation of the embodiment of the multi-objective flexible job shop scheduling method based on deep reinforcement learning is also applicable to the multi-objective flexible job shop scheduling device based on deep reinforcement learning of this embodiment, and will not be repeated here.
[0153] According to the multi-objective flexible job shop scheduling device based on deep reinforcement learning proposed in the embodiment of the present invention, by reading the production line state feature vector at the current rescheduling moment; inputting the production line state feature vector into the target strategy network of the trained target agent to obtain the scheduling goal; inputting the production line state feature vector and the scheduling goal into the workpiece strategy network of the trained workpiece agent to obtain the workpiece assignment rule; inputting the production line state feature vector and the scheduling goal into the machine strategy network of the trained machine agent to obtain the machine allocation rule; selecting the workpiece to be processed according to the workpiece assignment rule, selecting the processing machine according to the machine allocation rule, and processing the next process of the workpiece to be processed by the processing machine. Therefore, by intelligently selecting different optimization goals, workpiece assignment rules and machine allocation rules according to the state of the production line at different rescheduling moments, a fully real-time, autonomous and unmanned smart factory is realized.
[0154] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0155] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0156] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0157] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A multi-objective flexible job shop scheduling method based on deep reinforcement learning, characterized in that: include: Read the production line status feature vector at the current rescheduling moment; Inputting the production line state feature vector into the target strategy network of the trained target agent to obtain the scheduling target at the current rescheduling moment; Inputting the production line state feature vector and the scheduling target into the workpiece strategy network of the trained workpiece agent to obtain the workpiece assignment rule at the current rescheduling moment; Inputting the production line state feature vector and the scheduling target into the machine strategy network of the trained machine agent to obtain the machine allocation rule at the current rescheduling moment; Selecting a workpiece to be processed according to the workpiece assignment rule, selecting a processing machine according to the machine allocation rule, and processing the next step of the workpiece to be processed by the processing machine; Also includes: Obtain the target strategy network, old target strategy network and target state value network of the target intelligent agent, the artifact strategy network, old artifact strategy network and artifact state value network of the artifact intelligent agent, the machine strategy network, old machine strategy network and machine state value network of the machine intelligent agent, and initialize parameters of each network; Setting the initial parameters of the old target policy network as the initial parameters of the target policy network, the initial parameters of the old artifact policy network as the initial parameters of the artifact policy network, and the initial parameters of the old machine policy network as the initial parameters of the machine policy network; In each training cycle, a new training environment is randomly generated, and the three agents are pre-trained offline using the proximal policy optimization algorithm PPO; At each rescheduling moment during the training process, a current state feature vector is obtained and input into the old workpiece strategy network to obtain a training optimization target; At each rescheduling moment during the training process, the current state feature vector and the optimization target are respectively input into the old workpiece strategy network and the old machine strategy network to obtain a training workpiece assignment rule and a training machine allocation rule; At each rescheduling moment, a workpiece is selected according to the training workpiece assignment rule and a machine is selected according to the training machine allocation rule, the next process of the selected workpiece is arranged to be processed on the selected machine, and the current moment reward is calculated; After a certain number of rescheduling steps, the target policy network of the target agent, the workpiece policy network of the workpiece agent, and the machine policy network of the machine agent are updated through the PPO loss function; and the parameters of the old policy network of each agent are replaced with the parameters of its current policy network, and the target state value network of the target agent, the workpiece state value network of the workpiece agent, and the machine state value network of the machine agent are updated through the minimum square error loss function MSE. This process continues until each network meets the usage requirements.
2. The multi-objective flexible job shop scheduling method based on deep reinforcement learning according to claim 1, characterized in that: Inputting the production line state feature vector at the current rescheduling moment into the target strategy network of the trained target agent to obtain the scheduling target at the current rescheduling moment includes: The production line state feature vector is processed according to the deep neural network in the target strategy network and then input into the classification function to obtain the selection probability corresponding to each optimization target; The scheduling target is determined according to the selection probabilities of different optimization targets using a roulette wheel method.
3. The multi-objective flexible job shop scheduling method based on deep reinforcement learning according to claim 1, characterized in that: Inputting the production line state feature vector at the current rescheduling moment and the scheduling target at the current rescheduling moment into the workpiece strategy network of the trained workpiece agent to obtain the workpiece assignment rule at the current rescheduling moment, including: The production line state feature vector and the scheduling target are processed according to the deep neural network in the workpiece strategy network and then input into a classification function to obtain a selection probability corresponding to each workpiece assignment rule; The workpiece assignment rule is determined according to the selection probabilities of different workpiece assignment rules using a roulette wheel method.
4. The multi-objective flexible job shop scheduling method based on deep reinforcement learning according to claim 1, characterized in that: Inputting the production line state feature vector at the current rescheduling moment and the scheduling target at the current rescheduling moment into the machine strategy network of the trained machine agent to obtain the machine allocation rule at the current rescheduling moment, including: The production line state feature vector and the scheduling target are processed according to the deep neural network in the machine strategy network and then input into a classification function to obtain a selection probability corresponding to each machine allocation rule; The machine allocation rules are determined according to the selection probabilities of different machine allocation rules using a roulette wheel method.
5. The multi-objective flexible job shop scheduling method based on deep reinforcement learning according to claim 1, characterized in that: Also includes: Inputting the production line state feature vector at the current rescheduling moment into the target value network of the target agent to obtain the target state value function at the current rescheduling moment; Inputting the production line state feature vector at the current rescheduling moment and the scheduling target at the current rescheduling moment into the workpiece value network of the workpiece agent to obtain the workpiece state value function at the current rescheduling moment; The production line state feature vector at the current rescheduling moment and the scheduling target at the current rescheduling moment are input into the machine value network of the machine agent to obtain the machine state value function at the current rescheduling moment.
6. The multi-objective flexible job shop scheduling method based on deep reinforcement learning according to claim 1, characterized in that: The current rescheduling time is the completion time of any process, or the time when the insertion order arrives.
7. The multi-objective flexible job shop scheduling method based on deep reinforcement learning according to claim 1, characterized in that: The scheduling objective is one or more of minimizing the total tardiness of all workpieces, maximizing the average machine utilization of all machines, and minimizing the variance of all machine loads.
8. The multi-objective flexible job shop scheduling method based on deep reinforcement learning according to claim 1, characterized in that: The production line status feature vector includes: the total number of machines in the processing workshop, the average machine utilization rate, the variance of each machine utilization rate, the completion degree of all processes, the average completion degree of each workpiece, the variance of the workpiece completion degree, the variance of all machine loads, the estimated delay rate at each rescheduling moment, the actual delay rate at each rescheduling moment and one or more of the estimated delay time at each rescheduling moment.
9. A multi-objective flexible job shop scheduling device based on deep reinforcement learning, comprising the method according to any one of claims 1 to 8, characterized in that: include: A reading module is used to read the production line status feature vector at the current rescheduling moment; A first input module is used to input the production line state feature vector into the target strategy network of the trained target agent to obtain the scheduling target at the current rescheduling moment; A second input module is used to input the production line state feature vector and the scheduling target into the workpiece strategy network of the trained workpiece agent to obtain the workpiece assignment rule at the current rescheduling moment; A third input module is used to input the production line state feature vector and the scheduling target into the machine strategy network of the trained machine agent to obtain the machine allocation rule at the current rescheduling moment; The processing module is used to select a workpiece to be processed according to the target workpiece assignment rule, select a processing machine according to the target machine allocation rule, and process the next process of the workpiece to be processed by the processing machine.
Citation Information
Cited By
Deep learning method for distributed multi-objective optimization, computer program, and apparatus therefor
US20230155889A1
