A method for selecting adaptive dynamic scheduling strategies for intelligent production lines
Through deep reinforcement learning technology, an adaptive rule scheduling selector is constructed to solve the problem of non-stop scheduling in complex dynamic production environments, improve production efficiency and stability, and achieve collaboration with low energy consumption policies.
Patent Information
- Application Number
- CN202210193407.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-28
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2042-02-28
AI Technical Summary
Existing scheduling algorithms are difficult to meet the demand for non-stop scheduling in complex and dynamic production environments, especially when products are diversified, machine failures are frequent, and order insertion is normal. Moreover, the quality and stability of production scheduling are difficult to guarantee, and cannot be compared with associated with low energy consumption policies.
The intelligent production line adaptive dynamic scheduling strategy selection method based on deep reinforcement learning is used to build an adaptive rule scheduling selector through the workshop production environment module, algorithm module and scheduling rule module, and combines the Markov decision-making process and deep learning to achieve dynamic Select strategies for environmental changes and demand changes, match equipment and work procedures, and complete non-stop scheduling.
It improves production quality and stability, realizes non-stop scheduling in complex dynamic environments, improves production efficiency, and can adaptively adjust to respond to dynamic environment changes and demand changes, helping to reduce energy consumption.
Smart Images

Figure CN114611897B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent manufacturing and is used for production scheduling optimization in a complex dynamic workshop production environment. Specifically, it relates to a method for selecting an adaptive dynamic scheduling strategy for an intelligent production line based on deep reinforcement learning. Background Art
[0002] Intelligent manufacturing is a product-oriented full life cycle, based on the new generation of information technology, with manufacturing systems as the carrier. In its key links or processes, it has a certain degree of autonomous perception, analysis, reasoning, decision-making and control capabilities, and can dynamically adapt to changes in the manufacturing environment, thereby achieving certain optimization goals. The manufacturing industry is constantly advancing in the direction of intelligent manufacturing, so that the current processing adopts personalized production mode, forming a more complex small-batch, multi-variety, personalized intelligent production mode. At the same time, under the intelligent production mode, the products on the production line are constantly enriched, the order demand is constantly changing, and the probability of dynamic emergencies is greatly increased, which interferes with the production process of the enterprise and has a negative impact on product production and factory operations. Therefore, a scheduling method is needed to cope with the dynamic changes in the environment.
[0003] The currently used scheduling algorithms may solve one or two dynamic scheduling problems under dynamic environments, but in complex dynamic environments, such as product diversification, frequent machine failures, and order insertion becoming the norm for personalized production, dynamic scheduling still cannot meet the solution of these situations under such complex dynamic production conditions, especially the need for non-stop scheduling, and the quality and stability of production scheduling are difficult to guarantee, and it cannot be associated with the existing low-energy consumption policy, and cannot meet the needs of production. Zhang Jian et al. disclosed a flexible job shop scheduling optimization method based on a double-layer multi-agent system in patent application CN113377073A, but this method only considers the situation of machine failure and random arrival of workpieces, and still cannot meet the needs of personalized production such as product diversification, frequent machine failures, and order insertion. In addition, the invention uses heuristic rule scheduling, which is not suitable for real-time scheduling, especially when solving large-scale problems, because the solution time grows exponentially and is closely related to the problem structure. If the problem structure changes, the meta-heuristic algorithm needs to be redesigned, but the generalization ability is poor.
[0004] Therefore, in view of the above background, it is necessary to develop a dynamic flexible job shop scheduling method to cope with and deal with uncertain events in complex dynamic environments and changing demand. Summary of the invention
[0005] The purpose of the present invention is to provide a method for selecting adaptive dynamic scheduling strategies for intelligent production lines based on deep reinforcement learning. The framework can meet the needs of scheduling strategy selection and dynamic non-stop scheduling in complex dynamic production environments, especially under complex dynamic production conditions such as product diversification, frequent machine failures, and normalized order insertion. It can meet the needs of a non-stop processing process, improve production quality and stability, and thus improve production efficiency.
[0006] To achieve the purpose of the present invention, the present invention provides a method for selecting an adaptive dynamic scheduling strategy for an intelligent production line, the main feature of which is that it can meet the requirements of scheduling strategy selection and dynamic non-stop scheduling in a complex dynamic production environment, especially under complex dynamic production conditions such as product diversification, frequent machine failures, and normalized order insertion, to meet the requirements of a non-stop processing process, improve production quality and stability, and thus improve production efficiency. The method comprises the following steps:
[0007] Describe the selection scheduling framework model, including the workshop production environment module, the algorithm module and the scheduling rule module, wherein the workshop production environment module is used to realize the modeling of the actual production environment, extract the current state information from the actual production environment, and convert the state information into state feature values as the input of the algorithm module. The algorithm module provides a deep reinforcement learning method for dynamic production scheduling, and the scheduling rule module is used to complete the selection of rules and the selection process of the operating machine;
[0008] According to the algorithm module of the selection scheduling framework model, a strategy selection is implemented using an algorithm based on deep reinforcement learning, wherein the strategy selection can be made according to dynamic environmental changes and demand changes at the same time;
[0009] Based on the scheduling rule module of the selection scheduling framework model and according to the strategy selection, an adaptive rule scheduling selector for dynamic environmental changes is established, wherein the adaptive rule scheduling selector includes a scheduling rule selection scheduler and an operation machine pair selection scheduler, wherein the scheduling rule selection scheduler is used to select different scheduling rules according to dynamic environmental changes and demand changes, and the operation machine pair selection scheduler is used to complete equipment matching and operation process matching according to the scheduling rules;
[0010] The adaptive rule-based scheduling selector after learning and training can select the best scheduling strategy to complete equipment matching and job process matching according to different needs, thereby completing non-stop scheduling in complex dynamic environments.
[0011] Furthermore, current status information is extracted from the actual production environment, and the status information includes initial status changes, equipment failure order insertion, and load balancing.
[0012] Furthermore, the state characteristic values include average machine utilization, equipment load rate, workpiece estimated delay rate, workpiece actual delay rate, workpiece completion rate and process completion rate.
[0013] Furthermore, the ability to make strategic choices based on dynamic environmental changes and demand changes simultaneously includes:
[0014] In the case of changes in the initial status of the product, a combination of the shortest processing time priority principle and the shortest remaining processing time priority principle is used;
[0015] In case of equipment changes, a combination of the earliest delivery date priority and the shortest remaining processing time priority principle is used;
[0016] For order insertion, a combination of the minimum process critical ratio priority principle and the shortest remaining processing time priority principle is used;
[0017] When the environment considers load balancing, use a combination of the shortest processing time first principle and the first-in-first-out principle;
[0018] Use the first-in, first-out principle to deal with changing demand.
[0019] Furthermore, the deep learning module of the deep reinforcement learning algorithm is used for environmental perception of the Markov decision process, and the reinforcement learning module is used for the direction of decision control. The mathematical expression of the Markov decision process is shown in equations (1-1) and (1-2):
[0020]
[0021]
[0022] The initial state of the agent is s0. The agent freely selects action a0 from an action set A to execute. After action a0 is executed, the agent obtains the immediate reward r0 for action a0. At the same time, the agent s a The probability of randomly transferring to the next s1 state is, is the probability of action a0 corresponding to the initial state s0. In state s1, the next action a1 is immediately executed. After execution, the immediate reward r1 of action a1 is obtained. The agent is rewarded with P s a The probability of being randomly transferred to the next s2 state, ...and so on to complete the entire transfer process. is the probability of action a1 corresponding to initial state s1, A is a joint probability, which indicates the probability of state transition from s to s' when action a is selected. tis the action set at time t, S t+1 =s' is the state set, is the reward value, E is the expected value of the state at the next moment, R t+1 is the reward function.
[0023] Furthermore, the offline training process of the deep reinforcement learning algorithm includes:
[0024] At each time step, the samples obtained by the agent from the environment, including the current action a, state s and reward r, are stored in the experience replay pool;
[0025] During each training, samples are randomly drawn from the experience replay pool and the Q value is updated;
[0026] Re-copy the parameters of the current Q network to the target Q network every preset number of training times: θ'←θ, θ' is the parameter of the target Q network, θ is the parameter of the current Q network;
[0027] The loss changes during training is:
[0028]
[0029] In the formula, L' is the loss function, Q(s t ,a t ,θ) represents the original Q network, is the target Q network, θ and Represent the weights of the original network and the target network respectively, a' is the action corresponding to the next state, s t 、a t 、r t , γ are the state, action, reward and discount coefficient at time t respectively;
[0030] The adaptive rule scheduling selector selects different scheduling rules for training and feeds back the selected state value to the current Q network to complete the learning again.
[0031] Furthermore, the learning function learn is used to extract samples from the experience replay pool to complete the data interaction between the agent and the environment.
[0032] Furthermore, the Q value is updated as follows:
[0033] In the formula, Q π*(s, a) means that for any Markov model, there is always an optimal strategy π* that takes action a in state s and follows it, and the optimal value function can be obtained when this strategy is used. p(s′|s, a) means that at each decision point, the agent observes the current state and chooses action a, and then enters a new state s' from state s. r(s, a, s′) means the reward obtained after the current state s is converted to the new state s'. To maximize the expected sum of long-term rewards.
[0034] Furthermore, the dispatch rule selection scheduler is based on the selection of the strategy, and different dispatch rules are set according to the dynamic environment changes and the changes in needs, and the selection allocation rules of the operating machine to the selected scheduler are compounded in the dispatch rule.
[0035] Furthermore, the changes in the dynamic environment include changes in the initial state, equipment changes, order insertions and environment considerations of load balancing, wherein, when the initial state changes are considered, the scheduling rule selection scheduler selects scheduling rule 1, and scheduling rule 1 is a combination of the shortest processing time priority principle and the shortest remaining processing time priority principle; when equipment changes are detected, the scheduling rule selection scheduler selects scheduling rule 2, and scheduling rule 2 is a combination of the earliest delivery date priority and the shortest remaining processing time priority principle of the workpiece; when an order insertion is detected, the scheduling rule selection scheduler selects scheduling rule 3, and scheduling rule 3 is a combination of the minimum process critical ratio priority principle and the shortest remaining processing time priority principle; when the environment considers load balancing, the scheduling rule selection scheduler selects scheduling rule 4, and scheduling rule 4 is a combination of the shortest processing time priority principle and the first-in-first-out principle, and the work machine pair selection scheduler performs machine allocation according to the selected scheduling rule.
[0036] Compared with the prior art, the present invention can achieve at least the following beneficial effects:
[0037] (1) The dynamic scheduling framework proposed in this method transforms the scheduling problem into a sequential decision-making problem (i.e., the dynamic transfer process of Markov decision) by defining the environment, state, action, reward, and strategy. The Markov decision model is constructed as a general scheduling model, which narrows the gap between the model expression and the actual problem and obtains a more comprehensive description of the actual workshop scheduling problem.
[0038] (2) A unified scheduling framework based on deep reinforcement learning was established. The scheduling strategy was trained offline using deep reinforcement learning (this part interacts with the scheduling environment, obtains empirical data, and uses a deep reinforcement algorithm for training). The trained scheduling strategy is then quickly applied online to new scheduling problems with different initial states and demand changes. The combination of offline training and deep reinforcement learning saves a lot of training time offline. When dynamic events such as dynamic environmental changes and demand changes occur, adjustments can be made quickly and adaptively, helping to improve the scheduling efficiency of the production workshop. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 Schematic diagram of the overall scheduling framework in an embodiment of the present invention.
[0040] Figure 2 This is a flowchart of solving the deep reinforcement learning algorithm in an embodiment of the present invention.
[0041] Figure 3 The following is a scheduling flow chart of a scheduling rule selection scheduler in an embodiment of the present invention. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0043] See also Figure 1-Figure 3 The present invention provides a method for selecting an adaptive dynamic scheduling strategy for an intelligent production line based on deep reinforcement learning, comprising the following steps:
[0044] Step 1: Describe the selection scheduling framework model, which includes a workshop production environment module, an algorithm module and a scheduling rule module. The workshop production environment module is used to model the actual production environment and extract current status information from the actual production environment. The algorithm module provides a reinforcement learning method for dynamic production scheduling. The scheduling rule module is used to complete the rule selection and job machine selection process.
[0045] In some embodiments of the present invention, the scheduling framework model demonstrates the interaction and processing of data in the entire dynamic production scheduling method. It is a framework based on a deep reinforcement learning algorithm, including a workshop production environment module, an algorithm module, and a scheduling rule module. The data flow between the three modules forms a closed loop. The workshop production environment module is used to realize the modeling of the real production environment, read the current workshop environment status information from the real production environment, including the use and processing status of the initial machine and workpiece, demand changes, etc., and then convert it into state feature values as the network input part of the model, providing state feature values and available operands for the input and output layer nodes of the deep reinforcement learning network.
[0046] State features can describe the main features and changes of the scheduling environment. The selection of state features should be related to the scheduling objectives, otherwise it will lead to feature redundancy. All states of different scheduling problems are represented by a common feature set. In some embodiments of the present invention, feature attributes that can be used to describe the scheduling system are selected, and then state features are constructed for reinforcement learning (RL). Six universal state features with normalized ranges in the interval [0,1] are defined. By limiting the value range of all state features (i.e., normalization), the range of variation of the algorithm input is limited, the performance and versatility of the algorithm are improved, and it is easier to expand to different untrained production environments. The selected six state features include average machine utilization (U_ave(t)), equipment load rate (U_k(t)), estimated delay rate of workpiece (Tard_e(t)), actual delay rate of workpiece (Tard_a(t)), completion rate of workpiece (CRJ_ave(t)), and process completion rate (CRO_ave(t)).
[0047] In some embodiments of the present invention, the algorithm module provides a reinforcement learning method for dynamic production scheduling, which can cope with continuous production states and select the most appropriate action at each rescheduling point, thereby optimizing the processing flow of the intelligent production line and improving quality and production efficiency.
[0048] In some embodiments of the present invention, the dispatch rule module is used to construct two selection schedulers, including a dispatch rule selection scheduler and a work machine pair selection scheduler, which are used to complete the rule selection and work machine selection process.
[0049] See also Figure 1, showing the interaction and processing of data in the entire dynamic production scheduling strategy selection method. First, the real production environment is modeled, and the current workshop environment state information is read from the real production environment, including initial state changes, equipment failure order insertion and load balancing. Then the state features are extracted and converted into six state feature values: average machine utilization (U_ave(t)), equipment load rate (U_k(t)), workpiece estimated delay rate (Tard_e(t)), workpiece actual delay rate (Tard_a(t)), workpiece completion rate (CRJ_ave(t)), and process completion rate (CRO_ave(t)). As the network input part of the model, the state feature values and available operands are provided for the input and output layer nodes of the deep reinforcement learning network. Then the adaptive rule scheduling selector selects different scheduling rules for training, and feeds back the selected state values (the state values here include delay values, the number of remaining workpieces, the number of idle machines, the number of fault-free machines, etc.) to the deep reinforcement learning network, and completes the learning again (training the scheduling rule selection scheduler and the job machine pair selection scheduler). After learning, the best scheduling strategy is selected according to different needs, and equipment matching and operation process matching are completed. Finally, the data of optimized process and machine tool matching is fed back to the workshop production environment to complete the entire scheduling process.
[0050] Step 2: Based on the selection scheduling framework model proposed in step 1, use the deep reinforcement learning-based algorithm to implement strategy selection.
[0051] In some embodiments of the present invention, a strategy selection algorithm based on deep reinforcement learning is adopted. First, in terms of strategy selection, strategy selection can be made according to dynamic environmental changes and demand changes at the same time. In the case of changes in the initial state of the product, a combination of the shortest processing time priority principle (SPT) and the shortest remaining processing time priority principle (LWR) is used. In the case of equipment changes such as equipment failure, a combination of the earliest delivery date priority (EDD) and the shortest remaining processing time priority principle (SPRT) of the workpiece is used. In the case of order insertion, a combination of the minimum process critical ratio priority principle (CR) and the shortest remaining processing time priority principle (LWR) is used. When the environment considers load balancing, a combination of the shortest processing time priority principle (SPT) and the first-in-first-out principle (FIFO) is used. In the case of changes in demand, such as minimizing time and minimizing power, the first-in-first-out principle (FIFO) is used.
[0052] Secondly, the strategy selection uses the deep reinforcement learning algorithm to realize the scheduling selection of multiple demands in a changing environment, and adapt to the best scheduling plan according to the specific environmental state and user needs. The deep learning (DL) module of the deep reinforcement learning algorithm (DRL) is used for the environmental perception of the Markov decision process, and the reinforcement learning (RL) module is used for the direction of decision control. In reinforcement learning, the Markov decision process (MDP) describes a completely observable environment and conditions, that is, the state and content obtained through observation completely determine the characteristics that must be possessed when making a decision. Almost every reinforcement learning problem can be converted into a Markov decision process MDP. The Markov decision process is actually a dynamic five-tuple, which can be expressed as (S, A, P, R, γ), with an action set added. Because a specific action is performed, it is transformed from one action state to another. Where S is a finite set of states, A is a finite set of actions, P is the probability matrix of transitions between states, that is, the probability of selecting an action in each state, R is the reward function, γ is the discount factor, γ∈[0,1], which is the coefficient that needs to be discounted for each immediate reward when calculating the reward obtained by the entire system, because the states experienced later are affected by the current state s, but as time goes by, the initial state has less and less influence on the subsequent states, so there is a decay process. The specific mathematical expressions are shown in equations (1-1)(1-2):
[0053]
[0054]
[0055] The initial state of the agent is s0. The agent freely selects action a0 from an action set A to execute. After action a0 is executed, the agent obtains the immediate reward r0 for action a0. At the same time, the agent s a The probability of randomly transferring to the next s1 state is, is the probability of action a0 corresponding to the initial state s0. In state s1, the next action a1 is immediately executed. After execution, the immediate reward r1 of action a1 is obtained, and the agent is rewarded with P s a The probability of being randomly transferred to the next s2 state, ...and so on to complete the entire transfer process. is the probability of action a1 corresponding to the initial state s1. Different action choices produce different subsequent states and corresponding different rewards. is a joint probability, indicating the probability of state transition from s to s' when action a is selected. t is the action set at time t, S t+1 =s' is the state set, is the reward value, E is the expected value of the state at the next moment, R t+1 is the reward function.
[0056] The scheduling algorithm flow chart of deep reinforcement learning is as follows Figure 2 As shown in the figure, the entire training process is shown. First, the experience replay mechanism is used. At each time step, the samples obtained by the agent from the environment, including the current action a, state s and reward r, are stored in the experience replay pool. During training, a small batch of samples are randomly extracted from the experience replay pool using the learning function learn each time, and the Q value is updated (Q is the Q network value). Without losing generality, let s t 、a t 、r t , γ are set to the state, action, reward and discount coefficient at time t respectively. Since the purpose of Q learning is to train an action value function, namely the Q function, it approximates the future value of each action under a given state. During the neural network training process, the parameters of the current Q network are copied to the target Q network again after every preset number of training times. In some embodiments of the present invention, every N steps, the current Q network parameters are updated to the target Q network: θ'←θ, θ' is the parameter of the target network. During the training process, a deep network is used to simulate the update of state eigenvalues to solve the complex dynamic problems of high-dimensional action space that were difficult to handle in the past. The deep reinforcement learning algorithm used overcomes the instability of the neural network and utilizes the target network and experience replay method. The target Q network is updated regularly to ensure the stability of learning by reducing correlation. Therefore, the loss changes as follows:
[0057]
[0058] Q(s t ,a t ,θ) represents the original Q network, is the target Q network, θ and denote the weights of the original network and the target network respectively, and a' is the action corresponding to the next state. A transition (s t 、a t 、r t 、s t+1 ), and randomly sample the transitions during the training of the network, Figure 2The predicted value is the prediction of the state, and Loss is the loss function L'. The sample function Sample() is used to extract samples from the playback buffer. The sample method takes out a certain length of the current state and the next state from the buffer each time. The current state is the state before the action is executed in the reinforcement learning algorithm, and the next state is the new state obtained after the action is executed in the reinforcement learning algorithm. Perform an action from the current state and then jump to the new state to obtain the reward value r. Feedback the action of the next state value obtained to the environment, so that the change of the current state can be more clearly seen in the environment. This technology eases the association between the state, action, and reward pairs. In the learning stage, when the environmental conditions change, the agent is trained through the deep reinforcement learning algorithm, and different scheduling rules are selected in turn. The operation selection rule and machine allocation rule are determined at each decision point. The real-time selection scheduling rule is completed, thereby completing the entire scheduling operation.
[0059] Among them, the formula for periodically updating the target Q network is:
[0060]
[0061] In the formula, Q π *(s, a) means that for any Markov model, there is always an optimal strategy π* that takes action a in state s, and uses this strategy to obtain the optimal value function. p(s′|s, a) means that at each decision point, the agent observes the current state and chooses action a, and then enters a new state s' from state s with a transition probability. r(s, a, s′) represents the reward obtained after the current state s is converted to the new state s'. The goal of the agent in the Markov model is to find the state corresponding to the optimal strategy π* and take action and follow a specific policy π to maximize the expected sum of long-term rewards. So To maximize the expected sum of long-term rewards.
[0062] Step 3: Based on the strategy selected in step 2, an adaptive model for complex dynamic environment changes is established to adaptively remove suboptimal solutions and achieve scheduling optimization. Based on this, an adaptive rule scheduling selector based on deep reinforcement learning is designed to complete non-stop scheduling in complex dynamic environments.
[0063] The adaptive rule-based scheduling selector based on deep reinforcement learning includes a scheduling rule selection scheduler and a job machine pair selection scheduler. The scheduling process of the scheduling rule selection scheduler is as follows: Figure 3As shown in Figure 1, the Q network output used in the scheduling process is a rule-based approach, where the input and output of the target Q network are the state and predicted value of each rule, respectively. Given a state in the environment, a scheduling rule is selected by the trained candidate target Q network, and then one of the waiting operations is assigned to an available machine by deploying the selected scheduling rule.
[0064] The production scheduling problem considered by the present invention includes both process allocation sub-problems and machine allocation sub-problems, that is, the decision maker must determine not only a process selection rule but also a machine allocation rule at each decision point, so a composite rule that takes into account both machine selection and job selection is used. The scheduling rule selection scheduler selects scheduling rules based on changes in four dynamic environments, and four scheduling rules are designed. When considering changes in the initial state, scheduling rule 1 is selected without relearning. When equipment changes are detected, such as equipment failure and excessive load on a certain equipment, it is switched to another available machine for processing, and scheduling rule 2 is selected. When an order insertion is detected, scheduling rule 3 is selected by postponing the order insertion. When the environment considers load balancing, scheduling rule 4 is used to improve equipment utilization and reduce energy consumption. The design of the job machine selection scheduler is taken into account in the composite scheduling rules. The specific settings of the adaptive rule scheduling selector are as follows:
[0065] (1) Scheduling rule 1 (combination of the shortest processing time priority principle (SPT) and the shortest remaining processing time priority principle (LWR))
[0066] Scheduling rule selection scheduler: It does not need to consider equipment changes and order insertion, but considers the change of initial state to decide what to produce first and what to produce later. Scheduling rule 1 is a combination of the shortest processing time priority principle (SPT) + the shortest remaining processing time priority principle (LWR). What this means is that scheduling rule 1 is a combination of these two methods. The scheduling rule contains both the rule selection scheduler and the job machine pair selection scheduler. (The scheduling rule selection scheduler means the training rule selected when considering different environmental dynamic changes and demand changes. When the initial state changes, scheduling rule 1 is selected. In this case, there is no need to train scheduling rule 234 during the learning process. After scheduling rule 1 is selected, the matching of jobs and machines must be completed in the use of scheduling rule 1. "Assign the workpiece with the smallest remaining processing time to the machine" and "give priority to the workpiece with the smallest processing time in the next process" correspond to SPT and LWR in scheduling rule 1 respectively, so the machine allocation of the job machine pair selection scheduler is allocated according to the scheduling rule.
[0067] Job machine pair selection scheduler: When there is no workpiece delay, the workpiece with the shortest remaining processing time is first assigned to the machine. When there are multiple workpieces with the shortest remaining processing time, the workpiece with the shortest processing time for the next process is prioritized and assigned to the machine with the shortest completion time for the processing process. When there is a workpiece delay, the workpiece with the largest delay rate is selected and assigned to the machine with the shortest completion time for the processing process.
[0068] (2) Scheduling rule 2 (using a combination of the earliest delivery date priority (EDD) and the shortest remaining processing time priority (SPRT) principle)
[0069] Scheduling rule selection scheduler: When a device change is detected, scheduling rule 2 is selected. When the device load is too large, it switches to another available machine.
[0070] Job machine pair selection scheduler: When there is no workpiece delay, the next operation with the smallest product of unfinished rate and idle time is selected, and the process is assigned to the machine with the smallest equipment load. When there is a workpiece delay, the workpiece with the smallest product of delivery date and estimated delay time is selected for processing, and then assigned to the machine with the smallest equipment load.
[0071] (3) Scheduling rule 3 (using a combination of the minimum process critical ratio priority principle (CR) and the shortest remaining processing time priority principle (LWR))
[0072] Scheduling rule selection scheduler: Consider order insertion, select scheduling rule 3, and use the delayed order insertion method to insert the order.
[0073] Job machine pair selection scheduler: When there is no workpiece delay, select the workpiece with the shortest remaining processing time and assign the process to the earliest available machine. When there is a workpiece delay, prioritize the workpiece with the smallest process critical ratio for processing, and then assign the process to the earliest available machine.
[0074] (4) Scheduling rule 4 (using a combination of the shortest processing time first principle (SPT) and the first-in-first-out principle (FIFO))
[0075] Scheduling rule selection scheduler: When considering load balancing in the environment, in order to improve equipment utilization and reduce energy consumption so that the final energy consumption cost is low, select scheduling rule 4.
[0076] Job machine pair selection scheduler: When there is no workpiece delay, select the workpiece with the shortest remaining processing time and assign it to the machine with the lowest equipment utilization. When there is a workpiece delay, randomly select the process for processing, and then assign the workpiece to the machine with the lowest equipment utilization with a probability of 0.5 (that is, half the probability to reduce the error caused by randomness).
[0077] An embodiment of the present invention provides a method for selecting an adaptive dynamic scheduling strategy for an intelligent production line. Through a simulation model, the gap between model expression and actual problems is narrowed. The combination of simulation and deep reinforcement learning saves a large amount of training time offline. When dynamic events occur, adjustments can be made adaptively and quickly, thereby helping to improve the scheduling efficiency of the production workshop.
[0078] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for selecting an adaptive dynamic scheduling strategy for an intelligent production line, characterized in that: include: Describe the selection and scheduling framework model, which includes a workshop production environment module, an algorithm module, and a scheduling rule module. The workshop production environment module is used to model the actual production environment and extract current state information from the actual production environment. This state information is converted into state feature values and used as input for the algorithm module. The algorithm module provides a deep reinforcement learning method for dynamic production scheduling. The scheduling rule module is used to complete the rule selection and job machine selection process. According to the algorithm module of the selection scheduling framework model, a deep reinforcement learning-based algorithm is used to implement strategy selection, wherein strategy selection can be made based on dynamic environmental changes and demand changes at the same time; Based on the scheduling rule module of the selection scheduling framework model and according to the strategy selection, an adaptive rule scheduling selector for dynamic environmental changes is established, wherein the adaptive rule scheduling selector includes a scheduling rule selection scheduler and a work machine pair selection scheduler. The scheduling rule selection scheduler is used to select different scheduling rules according to dynamic environmental changes and demand changes, and the work machine pair selection scheduler is used to complete equipment matching and work process matching according to the scheduling rules; After learning and training, the adaptive rule-based scheduling selector can select the best scheduling strategy to complete equipment matching and operation process matching according to different needs, thereby completing non-stop scheduling in complex dynamic environments; The deep learning module of the deep reinforcement learning algorithm is used for environmental perception of the Markov decision process, and the reinforcement learning module is used for decision-making control direction. The mathematical expression of the Markov decision process is shown in equations (1-1) and (1-2): (1-1) (1-2) The initial state of the agent is , the agent starts from an action set Freely choose actions To perform, action After being executed, get the action Instant Rewards , while the agent The probability of randomly transferring to the next state, , It's action Corresponding to the initial state The probability that in state Then start the next action , after execution, get the action Instant rewards , the intelligent agent The probability of being randomly transferred to the next state, , and so on to complete the entire transfer process, It's action Corresponding to the initial state The probability of is a joint probability, indicating that when action a is selected, the state transitions from s to The probability of is the action set at time t, = is the state set, is the reward value, is the expected value of the state at the next moment, is the reward function; The offline training process of the deep reinforcement learning algorithm includes: At each time step, the samples obtained by the agent from the environment, including the current action a, state s and reward r, are stored in the experience replay pool; During each training, samples are randomly drawn from the experience replay pool and the Q value is updated; Re-copy the current Network parameters to target network: , Target The parameters of the network, θ is the current The parameters of the network; The loss changes during training is: Where, is the loss function, represents the original Q network, is the target Q network, θ and represent the weights of the original network and the target network respectively, is the action corresponding to the next state, 、 、 、 are the state, action, reward and loss coefficient at time t respectively; The adaptive rule scheduling selector selects different scheduling rules for training and feeds the selected state value back to the current Complete learning again on the Internet.
2. The method for selecting an adaptive dynamic scheduling strategy for an intelligent production line according to claim 1, characterized in that: Current status information is extracted from a real production environment, including initial status changes, device failure order insertion, and load balancing.
3. The method for selecting an adaptive dynamic scheduling strategy for an intelligent production line according to claim 1, characterized in that: The state characteristic values include average machine utilization rate, equipment load rate, estimated workpiece delay rate, actual workpiece delay rate, workpiece completion rate and process completion rate.
4. The method for selecting an adaptive dynamic scheduling strategy for an intelligent production line according to claim 1, characterized in that: The ability to make strategic choices based on dynamic environmental changes and demand changes simultaneously includes: In the case of changes in the initial status of the product, a combination of the shortest processing time priority principle and the shortest remaining processing time priority principle is used; In the case of equipment changes, a combination of the earliest delivery date priority and the shortest remaining processing time priority principle is used; For order insertion, a combination of the minimum process criticality ratio priority principle and the shortest remaining processing time priority principle is used; When the environment considers load balancing, use a combination of the shortest processing time first principle and the first-in-first-out principle; Use the first-in-first-out principle to deal with changing demand.
5. The method for selecting an adaptive dynamic scheduling strategy for an intelligent production line according to claim 1, characterized in that: The learning function learn is used to extract samples from the experience replay pool to complete the data interaction between the agent and the environment.
6. The method for selecting an adaptive dynamic scheduling strategy for an intelligent production line according to claim 1, characterized in that: The way to update the Q value is: Where, It means that for any Markov model, there is always an optimal strategy π* that takes action a in state s and follows it, and the optimal value function can be obtained when using this strategy. It means that at each decision point, the agent observes the current state and chooses action a, and then enters a new state s' from state s. Represents the reward obtained after the current state s is converted to the new state s', To maximize the expected sum of long-term rewards.
7. The method for selecting an adaptive dynamic scheduling strategy for an intelligent production line according to claim 1, characterized in that: The scheduling rule selection scheduler is based on the selection of strategies. Different scheduling rules are set according to the dynamic environment changes and needs changes. The selection allocation rules of the job machine to the selection scheduler are compounded in the scheduling rules.
8. The method for selecting an adaptive dynamic scheduling strategy for an intelligent production line according to claim 7, characterized in that: The changes in the dynamic environment include changes in the initial state, equipment changes, order insertions and environment considerations of load balancing, wherein, when the initial state changes are considered, the scheduling rule selection scheduler selects scheduling rule 1, and the scheduling rule 1 is a combination of the shortest processing time priority principle and the shortest remaining processing time priority principle; when equipment changes are detected, the scheduling rule selection scheduler selects scheduling rule 2, and the scheduling rule 2 is a combination of the earliest delivery date priority and the shortest remaining processing time priority principle of the workpiece; when order insertion is detected, the scheduling rule selection scheduler selects scheduling rule 3, and the scheduling rule 3 is a combination of the minimum process critical ratio priority principle and the shortest remaining processing time priority principle; when the environment considers load balancing, the scheduling rule selection scheduler selects scheduling rule 4, and the scheduling rule 4 is a combination of the shortest processing time priority principle and the first-in-first-out principle, and the operating machine pair selects the scheduler to perform machine allocation according to the selected scheduling rule.
Citation Information
Patent Citations
Flexible job shop scheduling optimization method based on double-layer multi-agent system
CN113377073A
Multi-target flexible job shop scheduling method and device based on deep reinforcement learning
CN112149987A
Control method and device, storage medium and electronic equipment
CN113743603A
Cited By
Intelligent scheduling optimization method and system for multi-channel magnetic levitation production lines
CN121349036B
