Scheduling and maintenance optimization method and system based on embedded reinforcement learning

The scheduling and maintenance intelligent agent is constructed through the embedded reinforcement learning method, combined with adaptive feature selection and action mechanism, to solve the joint optimization problem of dynamic scheduling and flexible maintenance, and achieve efficient equipment reliability and cost optimization.

CN118735200AActive Publication Date: 2024-10-01DONGHUA UNIV

Patent Information

Application Number
CN202410869849.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-01
Publication Date
2024-10-01
Estimated Expiration
2044-07-01

AI Technical Summary

Technical Problem

Existing dynamic scheduling optimization methods are difficult to achieve joint optimization of precise scheduling and flexible maintenance in the dynamic order arrival environment, and the predefined state space is difficult to accurately represent the dynamically changing production environment, making it difficult to effectively optimize equipment reliability and production costs.

Method used

Adopting a scheduling and maintenance optimization method based on embedded reinforcement learning, by building a scheduling and maintenance agent and a feature selection agent, combined with the Markov decision-making process and adaptive action selection mechanism, it learns the optimal scheduling and maintenance strategy to realize the dynamic environment autonomous feature selection and optimization decisions.

Benefits of technology

It realizes high-reliability scheduling and maintenance decisions in the dynamic order arrival environment, reduces production costs, improves equipment reliability and production efficiency, and adapts to complex production environment changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118735200A_ABST
    Figure CN118735200A_ABST
Patent Text Reader

Abstract

The invention relates to a scheduling and maintenance optimization method and system based on embedded reinforcement learning. The method comprises the following steps: collecting production operation process and machine maintenance historical data; constructing a scheduling and maintenance agent and a feature selection agent; constructing a scheduling and maintenance Markov decision process; a feature selection Markov decision process is constructed; the feature selection agent interacts with the feature selection Markov decision process and learns an optimal state feature selection strategy; the scheduling and maintenance agent interacts with the scheduling and maintenance Markov decision process and learns an optimal scheduling and maintenance optimization strategy; and deploying and executing deployment, and executing the feature selection agent and the scheduling and maintenance agent to perform scheduling and maintenance optimization. The system comprises a scheduling and maintenance controller, a scheduling and maintenance agent and a feature selection agent. The problem that performance is insufficient due to the fact that the dynamic environment is difficult to accurately represent in the dynamic order arrival environment in production is solved, joint optimization of scheduling and maintenance is achieved, the equipment reliability is improved, and the production cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a scheduling and maintenance optimization method and system based on embedded reinforcement learning, belonging to big data processing, artificial intelligence and scheduling and maintenance optimization technology. Background Art

[0002] Production scheduling and equipment maintenance are two indispensable factors in the production links and scenarios in the industry and manufacturing industry where there are high-speed operation, bottlenecks, high precision requirements and high equipment reliability requirements. Together, they ensure the smooth progress of the production process and improve the production efficiency and competitiveness of the enterprise. In production scheduling, if equipment maintenance is frequently performed, while greatly improving the reliability of the equipment, it will reduce production efficiency and bring higher maintenance costs. On the contrary, low-frequency equipment maintenance will lead to equipment reliability degradation or even failure, thereby interrupting production and causing additional equipment maintenance costs. The existing time-based maintenance strategy separates scheduling from maintenance, making it difficult to achieve integrated optimization of scheduling and maintenance. Therefore, it is of great practical significance to perform reasonable scheduling optimization for dynamically arriving production orders and consider equipment maintenance activities to achieve joint optimization of equipment reliability and production costs.

[0003] At present, the problem of joint optimization of scheduling and maintenance is to optimize the maintenance activity as a task and production task at the same time. Therefore, the essence of the integrated optimization problem of production scheduling and flexible maintenance with dynamic order arrival is a kind of dynamic scheduling optimization problem. The existing dynamic scheduling optimization methods mainly include proactive scheduling, pre-reactive scheduling and online scheduling. Among them, proactive scheduling quantifies uncertainty at the expense of scheduling performance and takes it into account when formulating scheduling plans to improve the robustness of the plan. However, it is difficult to accurately calculate and predict the dynamic arrival of orders. Therefore, proactive scheduling methods are difficult to deal with dynamic scheduling and flexible maintenance problems. The pre-reactive scheduling method generates an initial scheduling plan in advance and reschedules and optimizes the affected tasks and resources after the dynamic disturbance occurs. However, the response time of the pre-reactive scheduling method for rescheduling optimization after the disturbance increases with the increase of the problem scale, and the regeneration of the scheduling plan may cause a large adjustment to the system, affecting the efficient production of the system. The fully reactive scheduling method uses heuristic rules or reinforcement learning methods to perform real-time online scheduling and maintenance optimization, which can make real-time decisions based on the local information of current production and can better adapt to actual production. Among them, heuristic rules have low performance due to their short-sighted characteristics, while reinforcement learning methods can make optimal decision actions by training the optimal scheduling and maintenance optimization strategy and by comprehensively observing the current state information, which is more suitable for solving scheduling and optimization problems.

[0004] However, the performance of reinforcement learning methods is positively correlated with the accurate representation of the environment, that is, the more accurate the observation of the state characteristics of the environment, the higher the performance of the agent. At present, the definition of the state space of reinforcement learning relies on manual design based on expert experience, which easily leads to redundant or insufficient selected features. In addition, since the production environment changes dynamically with the execution of the agent's decision and the dynamic arrival of multiple types of product orders with irregular arrival times also increases the dynamic nature of environmental changes, the types, quantities, and arrival times of tasks present different data distributions, and the equipment working conditions and reliability also change with the execution of production and maintenance activities. Therefore, it is difficult for the predefined state space to accurately represent the dynamically changing environment, thereby reducing the performance of the algorithm. It is urgent to study the adaptive feature selection method of reinforcement learning state characteristics to realize the autonomous selection of state characteristics by the agent to improve the performance of the algorithm. At present, there are three main types of feature selection methods: filtering, encapsulation, and embedded. Among them, the filtering method separates feature selection from algorithm execution, making it difficult to select effective key features and improve algorithm performance. The encapsulation method integrates feature selection with the algorithm and selects a suitable feature subset based on algorithm performance. However, the encapsulated method requires long-term online training, which is difficult to meet the high timeliness requirements of actual production. The embedded method integrates feature selection with the algorithm and trains the feature selection model offline. In actual production, it outputs the optimal state feature subset in real time according to the changes in the operating state of the environment, which is more suitable for the state space design of scheduling and maintenance agents.

[0005] Therefore, in order to realize dynamic scheduling that takes into account flexible maintenance in an environment where orders arrive dynamically and the difficulty of accurately representing dynamically changing environmental states in predefined state spaces, it is necessary to study embedded reinforcement learning methods for joint optimization of dynamic scheduling and maintenance in order to improve equipment reliability and reduce production costs. Summary of the invention

[0006] In order to solve the problem of insufficient performance in the joint optimization method of production scheduling and maintenance due to the difficulty in accurately representing the dynamic environment under the dynamic arrival of orders, a scheduling and maintenance optimization method and system based on embedded reinforcement learning are proposed to achieve high reliability and low-cost scheduling and maintenance decisions in the actual production process. Flexible equipment maintenance activities are considered to achieve joint optimization of scheduling and maintenance, improve equipment reliability and reduce production costs, which has important theoretical significance and practical value for improving the production efficiency and competitiveness of manufacturing enterprises.

[0007] The technical solution of the present invention is:

[0008] A scheduling and maintenance optimization method based on embedded reinforcement learning, comprising the following steps: collecting production operation process and machine maintenance history data; constructing a scheduling and maintenance agent and a feature selection agent; constructing a scheduling and maintenance Markov decision process; constructing a feature selection Markov decision process; the feature selection agent interacts with the feature selection Markov decision process and learns the optimal state feature selection strategy; the scheduling and maintenance agent interacts with the scheduling and maintenance Markov decision process and learns the optimal scheduling and maintenance optimization strategy; deploying and executing the deployment and execution of the feature selection agent and the scheduling and maintenance agent for scheduling and maintenance optimization;

[0009] Step S1: Collecting production operation process and machine maintenance history data;

[0010] Among them, historical data of production operation process, including but not limited to production orders, scheduling plans, historical data of production operation, types of production tasks, batches, arrival times, workstations to which tasks are assigned, production sequences, start processing time, end processing time, etc.;

[0011] Machine maintenance history data, including but not limited to equipment age, production batches, production time, maintenance time, maintenance interval, equipment operating status and other historical operating data;

[0012] Step S2: construct a scheduling and maintenance agent and a feature selection agent;

[0013] The scheduling and maintenance agent includes a policy network and a target network, which are constructed by deep neural networks. The policy network is used to select the most appropriate scheduling or maintenance activities, and the target network is used to update the parameters of the policy network.

[0014] Feature selection agent, including actor network and critic network; actor network and critic network are constructed through deep neural network; actor network is used to select key features as input of scheduling and maintenance agent, and critic network is used to update parameters of actor network;

[0015] Step S3: construct the scheduling and maintenance Markov decision process;

[0016] Among them, the scheduling and maintenance Markov decision process is to transform the scheduling and maintenance optimization problem into a sequential decision problem, namely the Markov decision process, which mainly includes the definition of the state space, action space and reward function of scheduling and maintenance;

[0017] Define the state space of scheduling and maintenance: It is the key features of the scheduling and maintenance Markov decision process that are output by the triggering feature selection agent after monitoring the scheduling and maintenance Markov decision process;

[0018] Define the action space for scheduling and maintenance: It includes two actions: selecting the current task to be processed or machine maintenance. The action space for scheduling and maintenance is as follows:

[0019] A2=[1,2,...,n,n+1]

[0020] Among them, A2 represents the scheduling and maintenance action space, [1, 2, ..., n] represents the current tasks to be processed, n represents the number of tasks to be processed, and n+1 represents machine maintenance;

[0021] Definition of the scheduling and maintenance reward function: It evaluates any action selected by the scheduling and maintenance agent from the scheduling and maintenance action space A2. The scheduling and maintenance reward function is composed of switching cost, maintenance cost, repair cost and machine reliability. The total reward of the scheduling and maintenance agent is as follows:

[0022]

[0023] In the formula, R2 represents the total reward of the scheduling and maintenance agent, m is the number of parallel machines, T is the total cycle of scheduling and maintenance, and r jt represents the reliability of machine j at time t, C csc , C ssc , C rc , C mc They represent the production interruption cost in the same batch, the switching cost of products with different specifications, the machine repair cost, and the machine maintenance cost respectively;

[0024] Among them, the reliability of all machines is fitted by Weibull distribution, and the reliability r jt The calculation formula is as follows:

[0025]

[0026] Where, T as is the service life of the machine, β is the shape parameter of the Weibull distribution, and η is the size parameter of the Weibull distribution;

[0027] The production interruption cost, the switching cost of products of different specifications, the equipment repair cost, the equipment maintenance cost, etc. are calculated by the production interruption time, the material loss per unit time and the unit material cost. The calculation formulas are as follows;

[0028] C csc =T cst *U i *C i

[0029] C ssc =T sst *U i*C i

[0030] C rc =T rt *U i *C i

[0031] C mc =Tm t *U i *C i

[0032] Where, T cst 、T sst 、T rt 、T mt represents the preparation time, product switching time, equipment repair time, and equipment maintenance time between two subtasks in the same batch, respectively. j represents the output per unit time of product i, C j represents the unit material cost of product i;

[0033] Since the total reward R2 is the instantaneous reward r of the scheduling and maintenance agent in period T 2,t The calculation is as shown below:

[0034] R2=r 2,1 +y*r 2,2 +γ 2 *r 2,3 +...+γ t-1 *r 2,t +...

[0035] Among them, r 2,1 、r 2,2 、r 2,3 , ... respectively represent the immediate reward r 2,t The instant reward at time t = 1, t = 2, t = 3, ..., γ is the discounted reward, when γ = 7, R2 = r 2,1 +r 2,2 +r 2,3 +...+r 2,t +...;

[0036] Therefore, the immediate rewards of the scheduling and maintenance agents are divided into the following cases;

[0037] At the decision time t, the scheduling and maintenance agent selects the maintenance action, which will increase the cost while improving the reliability. The reward is as follows:

[0038]

[0039] At decision time t2, the scheduling and maintenance agent chooses to continue to produce the current batch and the machine does not fail in the subsequent production process, which only increases the preparation cost and reduces reliability. The reward at this time is as follows:

[0040]

[0041] At decision time t3, the scheduling and maintenance agent chooses to continue producing the current batch and the machine fails during the subsequent production process, which will increase the preparation cost and maintenance cost and reduce reliability. The reward at this time is as follows:

[0042]

[0043] At decision time t4, the scheduling and maintenance agent chooses to change the batch, which will cause conversion costs, but will replace the components of the machine to restore the reliability to the original state. At this time, the reward is as follows:

[0044]

[0045] Step S4: constructing a feature selection Markov decision process;

[0046] The feature selection Markov decision process is to transform the key feature selection problem of the scheduling and maintenance Markov decision process into a sequential decision problem, namely the Markov decision process, which mainly includes the definition of feature selection state space, action space and reward function;

[0047] Define the feature selection state space, including all production operation process and machine maintenance data;

[0048] Define the feature selection action space, including the two actions of selecting and eliminating all production operation processes and machine maintenance data;

[0049] The feature selection reward function is defined by taking the key features contained in the selected production operation process and machine maintenance data as the input of the scheduling and maintenance agent and training the scheduling and maintenance agent, and obtaining the scheduling and maintenance optimization performance of the scheduling and maintenance agent as the total reward of the feature selection agent;

[0050] R1=R 2,t

[0051] Among them, R1 represents the total reward of the feature selection agent, R 2,t represents the total reward of the scheduling and maintenance agent trained with the key features output by the feature selection agent at time t;

[0052] Step S5: The feature selection agent interacts with the feature selection Markov decision process and learns the optimal state feature selection strategy;

[0053] Interaction is the observation of the current production process and machine maintenance data by the feature selection agent 1,t , select and perform action a 1,t , observe the changes in production operation process and machine maintenance data after executing the action 1,t+1 , select and execute the key features obtained after all actions to train the scheduling and maintenance agent to obtain the total reward R1;

[0054] The optimal feature selection strategy is that the feature selection agent interacts with the feature selection Markov decision process and updates the parameters of the deep neural network in the feature selection agent through the Actor-Critic algorithm guided by self-imitation learning;

[0055] Self-imitation learning is to use the interaction data contained in the better trajectory obtained by the feature selection agent in exploring the solution space as expert experience, and to sample all the explored trajectory data to update the parameters of the feature selection agent to solve the sparse reward problem faced by the feature selection agent and accelerate the learning and convergence speed of the feature selection agent;

[0056] The Actor-Critic algorithm is a reinforcement learning algorithm that combines policy gradients and value networks to train feature selection agents to learn the optimal feature selection strategy, that is, to train the deep neural network in the feature selection agent to obtain the optimal network parameters;

[0057] The parameter update formulas of the feature selection agent of the Actor-Critic algorithm guided by self-imitation learning are as follows:

[0058]

[0059] In the formula, θ i ,θ i+7 Select the parameters of the actor network for the features before and after the update, represents the objective function J of the actor network Q (θ i ), η Q is the learning rate of the actor network, where

[0060]

[0061] In the formula, J Q (θ) represents the objective function of the actor network when the actor network parameter is θ, Q θ (s 1,t , a 1,t ) represents the actor network with parameters θ and state s 1,t When selecting action a1,t The predicted value at time y is the target value, They represent the expected values ​​of the mean square error calculated using the interaction data contained in the better and worse trajectories respectively;

[0062]

[0063] Where r is the feature selection agent actor network with parameters θ and state s 1,t When selecting action a 1,t The reward value at time , α is the learning rate, Indicates that the feature selection agent actor network is in state s 1,t+1 According to your own strategy The action a with the highest probability is chosen 1,t+1 ;

[0064]

[0065] In the formula, The parameters of the feature selection agent critic network before and after the update, Represents the objective function of the critic network The gradient of Π is the learning rate of the critic network, where

[0066]

[0067] In the formula, represents the objective function of the critic network when the critic network parameter is θ, Indicates that the feature selection agent critic network is in state s 1,t According to your own strategy The action a with the highest probability is chosen 1,t ;

[0068] Step S6: The scheduling and maintenance agent interacts with the scheduling and maintenance Markov decision process and learns the optimal scheduling and maintenance optimization strategy;

[0069] The interaction is that the scheduling and maintenance agents observe the current production process and machine maintenance data according to the key features of the feature selection agent output to obtain the state s 2,t , select and execute action a through its own strategy combined with the adaptive action selection mechanism 2t , obtain the immediate reward r fed back by the scheduling and maintenance Markov decision process 2,t , observe the state data s transferred after executing the action 2,t+7 ;

[0070] The optimal scheduling and maintenance strategy is the interaction between the scheduling and maintenance agent and the scheduling and maintenance Markov decision process to accumulate experience data and train and update the neural network parameters through the Double DQN algorithm;

[0071] The adaptive action selection mechanism is to improve the global exploration ability of the intelligent agent to the solution space by addressing the problem that there are unselectable actions when the scheduling and maintenance intelligent agent selects and executes actions. It mainly determines the set of optional actions by judging the current optional actions to generate the action mask matrix. Then the scheduling and maintenance intelligent agent selects the optional actions according to the action mask matrix combined with the ε-greedy strategy.

[0072] The ε-greedy strategy is as follows:

[0073]

[0074] In the formula, random means randomly selecting an optional action. represents the selection of the action with the largest Q value, R(0,1) represents a random value between 0 and 1, ε is the greedy coefficient, and θ is the parameter of the policy network in the scheduling and maintenance agent;

[0075] The Double DQN algorithm is a value-based reinforcement learning algorithm used to train scheduling and maintenance agents to learn optimal scheduling and maintenance strategies. The error loss calculation formula of the scheduling and maintenance agent is as follows:

[0076] Loss= / / y i -Q(s 2,t , a 2,t ;ω) / / 2

[0077]

[0078] Where ω is the parameter of the policy network in the scheduling and maintenance agent, To evaluate the parameters of the network in the scheduling and maintenance agent, Q(S 2,t , a 2,t ; ω) is the agent in state s 2,t Next, select action a according to its own strategy parameter ω 2,t The Q value of the parameter ω is calculated by gradient descent, and the calculation formula is as follows:

[0079]

[0080] In the formula, Represents the gradient of the error Loss of the policy network in the scheduling and maintenance agent under the parameter ω;

[0081] Step S7: deploy and execute the feature selection agent and the scheduling and maintenance agent to perform scheduling and maintenance optimization;

[0082] The trained feature selection agent and scheduling and maintenance agent are deployed in the production workshop. Through real-time monitoring of production and machine operation process data, the feature selection agent is automatically triggered to select key state features of the dynamic environment, and the scheduling and maintenance agent is used to output the optimal scheduling or maintenance activities under the current state.

[0083] Preferably, in step S2, the scheduling and maintenance agent includes a policy network and a target network, and the policy network and the target network can be constructed by a fully connected neural network.

[0084] Preferably, in step S2, the feature selection agent includes an actor network and a critic network; the actor network and the critic network are constructed through a fully connected neural network.

[0085] A scheduling and maintenance optimization system based on embedded reinforcement learning, used for the scheduling and maintenance optimization method based on embedded reinforcement learning, the system includes a scheduling and maintenance controller, a scheduling and maintenance agent, and a feature selection agent;

[0086] The scheduling and maintenance controller monitors the scheduling and maintenance process in real time, receives the trigger signal transmitted by the production operation environment, and transmits the signal to the scheduling and maintenance agent to trigger the generation of scheduling and maintenance plans;

[0087] The scheduling and maintenance agent, after receiving the trigger signal of the state data transmission from the scheduling and maintenance controller, sends a signal to the feature selection agent, accepts the real-time selection of the current key state features by the feature selection agent, and uses itself to learn the optimal scheduling and maintenance strategy to select and execute the optimal scheduling and maintenance action;

[0088] After receiving the trigger signal transmitted by the scheduling and maintenance agent, the feature selection agent detects the state characteristics of the scheduling and maintenance environment, and uses the learned optimal feature selection strategy to output the key feature subset under the current environment state to pass it to the scheduling and maintenance agent.

[0089] The beneficial effects of the present invention are:

[0090] 1. Aiming at the scheduling and flexible maintenance problems of dynamically arriving orders, this paper proposes a scheduling and flexible maintenance optimization method based on the embedded Double DQN (Dual Deep Q Network) algorithm. Through the intelligent agent, the complex coupling relationship between equipment reliability and repair cost, conversion cost, and maintenance cost is explored, and the optimal scheduling and maintenance strategy is learned to achieve joint optimization of scheduling and maintenance, thereby effectively reducing production costs and improving equipment reliability.

[0091] 2. In order to solve the problem that the predefined state space in the scheduling and maintenance agent is difficult to accurately represent the dynamic environment and thus reduce the algorithm performance, the present invention provides a state feature selection method based on the improved Actor-Critic algorithm, which realizes the autonomous selection of key state features of the scheduling and maintenance environment by learning the optimal feature selection strategy to further improve the performance of the scheduling and maintenance method.

[0092] 3. In order to address the problem that the scheduling and maintenance agent has insufficient exploration capability of complex scheduling and maintenance solution space, the present invention provides an adaptive action selection mechanism to enhance the global exploration capability of the scheduling and maintenance agent of the solution space and improve the algorithm performance.

[0093] 4. In response to the sparse reward problem faced in the process of learning state feature selection strategies, the present invention provides a self-imitation learning algorithm to guide the feature selection agent to accelerate learning performance and convergence speed by imitating the excellent experience trajectory of its own exploration. BRIEF DESCRIPTION OF THE DRAWINGS

[0094] Figure 1 A schematic diagram of the implementation steps of a scheduling and maintenance optimization method based on embedded reinforcement learning provided by the present invention;

[0095] Figure 2 A logical schematic diagram of a scheduling and maintenance optimization method based on embedded reinforcement learning provided by the present invention;

[0096] Figure 3 A schematic diagram of the architecture of a scheduling and maintenance optimization system based on embedded reinforcement learning provided by the present invention. DETAILED DESCRIPTION

[0097] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. This embodiment is implemented based on the technical solution of the present invention, and provides a detailed implementation method and specific operation process, but the protection scope of the present invention is not limited to the following embodiments.

[0098] A scheduling and maintenance optimization method based on embedded reinforcement learning includes the following steps: collecting production operation process and machine maintenance history data; constructing a scheduling and maintenance agent and a feature selection agent; constructing a scheduling and maintenance Markov decision process; constructing a feature selection Markov decision process; the feature selection agent interacts with the feature selection Markov decision process and learns the optimal state feature selection strategy; the scheduling and maintenance agent interacts with the scheduling and maintenance Markov decision process and learns the optimal scheduling and maintenance optimization strategy; deploying and executing the feature selection agent and the scheduling and maintenance agent to perform scheduling and maintenance optimization.

[0099] Specifically, the embodiments of the present invention are further described below in conjunction with the accompanying drawings.

[0100] In one embodiment, see Figure 1 As shown, in an embodiment of the present invention, a scheduling and maintenance optimization method based on embedded reinforcement learning is provided. The logic of the method is shown in Figure 2 , the method comprising:

[0101] Step S1: Collecting production operation process and machine maintenance history data;

[0102] Among them, the historical data of the production operation process includes but is not limited to production orders, scheduling plans, historical data of production operation, types of production tasks, batches, arrival times, workstations to which tasks are assigned, production sequences, start processing time, end processing time, etc.

[0103] Machine maintenance historical data, including but not limited to equipment age, production batches, production time, maintenance time, maintenance time interval, equipment operating status and other historical operating data.

[0104] Step S2: construct a scheduling and maintenance agent and a feature selection agent;

[0105] The scheduling and maintenance agent includes a policy network and a target network, which are constructed by deep neural networks, such as fully connected neural networks. The policy network is used to select the most appropriate scheduling or maintenance activities, and the target network is used to update the parameters of the policy network.

[0106] Feature selection agent, including actor network and critic network. Actor network and critic network are constructed by deep neural network, such as fully connected neural network. Actor network is used to select key features as input of scheduling and maintenance agent, and critic network is used to update parameters of actor network.

[0107] Step S3: construct a scheduling and maintenance Markov decision process (Markov decision process);

[0108] Among them, the scheduling and maintenance Markov decision process is to transform the scheduling and maintenance optimization problem into a sequential decision problem, namely the Markov decision process, which mainly includes the definition of the state space, action space and reward function of scheduling and maintenance.

[0109] Defining the state space of scheduling and maintenance: It is the key feature of the scheduling and maintenance Markov decision process that is output by the triggering feature selection agent after monitoring the scheduling and maintenance Markov decision process.

[0110] Define the action space for scheduling and maintenance: It includes two actions: selecting the current task to be processed or machine maintenance. The action space for scheduling and maintenance is as follows:

[0111] A2=[1,2,...,n,n+1]

[0112] Among them, A2 represents the scheduling and maintenance action space, [1, 2, ..., n] represents the current tasks to be processed, n represents the number of tasks to be processed, and n+1 represents machine maintenance.

[0113] Definition of the scheduling and maintenance reward function: It evaluates any action selected by the scheduling and maintenance agent from the scheduling and maintenance action space A2. The scheduling and maintenance reward function is composed of switching cost, maintenance cost, repair cost and machine reliability. The total reward of the scheduling and maintenance agent is as follows:

[0114]

[0115] In the formula, R2 represents the total reward of the scheduling and maintenance agent, m is the number of parallel machines, T is the total cycle of scheduling and maintenance, and r jt represents the reliability of machine j at time t, C csc , C ssc , C rc , C mc They respectively represent the production interruption cost in the same batch, the switching cost of products of different specifications, the machine repair cost, and the machine maintenance cost.

[0116] Among them, the reliability of all machines is fitted by Weibull distribution, and the reliability r jt The calculation formula is as follows:

[0117]

[0118] Where, T as is the service life of the machine, β is the shape parameter of the Weibull distribution, and η is the size parameter of the Weibull distribution.

[0119] The production interruption cost, the cost of switching products of different specifications, the equipment repair cost, the equipment maintenance cost, etc. are calculated through the production interruption time, the material loss per unit time and the unit material cost. The calculation formulas are as follows.

[0120] C csc =T cst *U i *C i

[0121] C ssc =T sst *U i *C i

[0122] C rc =T rt *U i *C i

[0123] C mc =T mt *U i *C i

[0124] Where, T cst 、T sst 、T rt 、T mt represents the preparation time, product switching time, equipment repair time, and equipment maintenance time between two subtasks in the same batch, respectively. j represents the output per unit time of product i, C j Represents the unit material cost of product i.

[0125] Since the total reward R2 is the instantaneous reward r of the scheduling and maintenance agent in period T 2,t The calculation is as shown below:

[0126] R2=r 2,1 +γ*r 2,2 +γ 2 *r 2,3 +...+γ t-1 *r 2,t +...

[0127] Among them, r 2,1 、r 2,2 、r 2,3 , ... respectively represent the immediate reward r 2,t The instant reward at time t = 1, t = 2, t = 3, ..., γ is the discounted reward, when γ = 1, R2 = r 2,1 +r 2,2 +r 2,3 +...+r 2,t +....

[0128] Therefore, the immediate rewards of the scheduling and maintenance agents are divided into the following cases.

[0129] At the decision time t, the scheduling and maintenance agent selects the maintenance action, which will increase the cost while improving the reliability. The reward is as follows:

[0130]

[0131] At decision time t2, the scheduling and maintenance agent chooses to continue to produce the current batch and the machine does not fail in the subsequent production process, which only increases the preparation cost and reduces reliability. The reward at this time is as follows:

[0132]

[0133] At decision time t3, the scheduling and maintenance agent chooses to continue producing the current batch and the machine fails during the subsequent production process, which will increase the preparation cost and maintenance cost and reduce reliability. The reward at this time is as follows:

[0134]

[0135] At decision time t4, the scheduling and maintenance agent chooses to change the batch, which will cause conversion costs, but will replace the components of the machine to restore the reliability to the original state. At this time, the reward is as follows:

[0136]

[0137] Step S4: constructing a feature selection Markov decision process;

[0138] The feature selection Markov decision process transforms the key feature selection problem of the scheduling and maintenance Markov decision process into a sequential decision problem, namely the Markov decision process, which mainly includes the definition of feature selection state space, action space and reward function.

[0139] Define the feature selection state space, which includes all production operation process and machine maintenance data.

[0140] Define the feature selection action space, including the two actions of selecting and eliminating all production operation processes and machine maintenance data.

[0141] The feature selection reward function is defined by taking the key features contained in the selected production operation process and machine maintenance data as the input of the scheduling and maintenance agent and training the scheduling and maintenance agent, and then obtaining the scheduling and maintenance optimization performance of the scheduling and maintenance agent as the total reward of the feature selection agent.

[0142] R1=R2. t

[0143] Among them, R1 represents the total reward of the feature selection agent, R 2,t represents the total reward of the scheduling and maintenance agent trained with the key features output by the feature selection agent at time t.

[0144] Step S5: The feature selection agent interacts with the feature selection Markov decision process and learns the optimal state feature selection strategy;

[0145] Interaction is the observation of the current production process and machine maintenance data by the feature selection agent 1,t , select and perform action a 1,t , observe the changes in production operation process and machine maintenance data after executing the action 1,t+1 , the key features obtained after selecting and executing all actions are used to train the scheduling and maintenance agent to obtain the total reward R1.

[0146] The optimal feature selection strategy is that the feature selection agent interacts with the feature selection Markov decision process and updates the parameters of the deep neural network in the feature selection agent through the Actor-Critic algorithm guided by self-imitation learning.

[0147] Self-imitation learning is to use the interaction data contained in the better trajectory obtained by the feature selection agent exploring the solution space as expert experience, and sample all the explored trajectory data to update the parameters of the feature selection agent to solve the sparse reward problem faced by the feature selection agent and accelerate the learning and convergence speed of the feature selection agent.

[0148] The Actor-Critic algorithm is a reinforcement learning algorithm that combines policy gradient and value network to train feature selection agents to learn the optimal feature selection strategy, that is, to train the deep neural network in the feature selection agent to obtain the optimal network parameters.

[0149] The parameter update formulas of the feature selection agent of the Actor-Critic algorithm guided by self-imitation learning are as follows:

[0150]

[0151] In the formula, θ i ,θ i+7 Select the parameters of the actor network for the features before and after the update, represents the objective function J of the actor network Q (θ i ), η Q is the learning rate of the actor network, where

[0152]

[0153] In the formula, J Q (θ) represents the objective function of the actor network when the actor network parameter is θ, Q θ (s 1,t , a 1,t ) represents the actor network with parameters θ and state s 1,t When selecting action a1,t The predicted value at time y is the target value, They represent the expected values ​​of the mean square error calculated using the interaction data contained in the better and worse trajectories, respectively.

[0154]

[0155] Where r is the feature selection agent actor network with parameters θ and state s 1,t When selecting action a 1,t The reward value at time , α is the learning rate, Indicates that the feature selection agent actor network is in state s 1,t+1 According to your own strategy The action a with the highest probability is chosen 1,t+1 .

[0156]

[0157] In the formula, The parameters of the feature selection agent critic network before and after the update, Represents the objective function of the critic network The gradient of Π is the learning rate of the critic network, where

[0158]

[0159] In the formula, represents the objective function of the critic network when the critic network parameter is θ, Indicates that the feature selection agent critic network is in state s 1,t According to your own strategy The action a with the highest probability is chosen 1,t .

[0160] Step S6: The scheduling and maintenance agent interacts with the scheduling and maintenance Markov decision process and learns the optimal scheduling and maintenance optimization strategy;

[0161] The interaction is that the scheduling and maintenance agents observe the current production process and machine maintenance data according to the key features of the feature selection agent output to obtain the state s 2,t , select and execute action a through its own strategy combined with the adaptive action selection mechanism 2,t , obtain the immediate reward r fed back by the scheduling and maintenance Markov decision process 2,t , observe the state data s transferred after executing the action 2,t+7 .

[0162] The optimal scheduling and maintenance strategy is the interaction between the scheduling and maintenance agent and the scheduling and maintenance Markov decision process to accumulate experience data and train and update the neural network parameters through the Double DQN algorithm.

[0163] The adaptive action selection mechanism aims to improve the agent's global exploration ability of the solution space by addressing the problem of unselectable actions when the scheduling and maintenance agent selects and executes actions. It mainly determines the set of optional actions by judging the current optional actions to generate an action mask matrix. Then the scheduling and maintenance agent selects optional actions based on the action mask matrix combined with the ε-greedy strategy.

[0164] The ε-greedy strategy is as follows:

[0165]

[0166] In the formula, random means randomly selecting an optional action. It means to select the action with the largest Q value, R(0, 1) means to randomly select a value between O-1, ε is the greedy coefficient, and θ is the parameter of the policy network in the scheduling and maintenance agent.

[0167] The Double DQN algorithm is a value-based reinforcement learning algorithm used to train scheduling and maintenance agents to learn optimal scheduling and maintenance strategies. The error loss calculation formula of the scheduling and maintenance agent is as follows:

[0168] Loss= / / y i -Q(s 2,t , a 2,t ;ω) / / 2

[0169]

[0170] Where ω is the parameter of the policy network in the scheduling and maintenance agent, To evaluate the parameters of the network in the scheduling and maintenance agent, Q(S 2,t , a 2,t ; ω) is the agent in state s 2,t Next, select action a according to its own strategy parameter ω 2,t The Q value of the parameter ω is calculated by gradient descent, and the calculation formula is as follows:

[0171]

[0172] In the formula, Represents the gradient of the error Loss of the policy network in the scheduling and maintenance agent under the parameter ω.

[0173] Step S7: Deploy and execute the feature selection agent and the scheduling and maintenance agent to perform scheduling and maintenance optimization.

[0174] The trained feature selection agent and scheduling and maintenance agent are deployed in the production workshop. Through real-time monitoring of production and machine operation process data, the feature selection agent is automatically triggered to select key state features of the dynamic environment, and the scheduling and maintenance agent is used to output the optimal scheduling or maintenance activities under the current state.

[0175] In the second aspect, the present invention provides a dynamic scheduling and maintenance optimization system based on reinforcement learning, see Figure 3 ,The system includes a scheduling and maintenance controller, a scheduling and maintenance agent, and a feature ,selection agent.

[0176] The scheduling and maintenance controller monitors the scheduling and maintenance process in real time, receives the trigger signal transmitted by the production operation environment and transmits the signal to the scheduling and maintenance agent to trigger the generation of scheduling and maintenance plans.

[0177] The scheduling and maintenance agent, after receiving the trigger signal of the status data transmission from the scheduling and maintenance controller, sends a signal to the feature selection agent, accepts the real-time selection of the current key status features by the feature selection agent, and uses itself to learn the optimal scheduling and maintenance strategy to select and execute the optimal scheduling and maintenance actions.

[0178] After receiving the trigger signal transmitted by the scheduling and maintenance agent, the feature selection agent detects the state characteristics of the scheduling and maintenance environment, and uses the learned optimal feature selection strategy to output the key feature subset under the current environment state to pass it to the scheduling and maintenance agent.

[0179] The above-mentioned embodiment only expresses one implementation mode of the present invention, and its description is relatively specific and detailed, but it cannot be understood as limiting the scope of the invention patent. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be based on the attached claims.

Claims

1. A scheduling and maintenance optimization method based on embedded reinforcement learning, It is characterized in that The following steps are involved: Collect production operation process and machine maintenance history data; build scheduling and maintenance agents and feature selection agents; build scheduling and maintenance Markov decision-making processes; Construct a feature selection Markov decision process; the feature selection agent interacts with the feature selection Markov decision process and learns the optimal state feature selection strategy; the scheduling and maintenance agent interacts with the scheduling and maintenance Markov decision process and learns the optimal scheduling and maintenance optimization strategy; deploy and execute the feature selection agent and the scheduling and maintenance agent to perform scheduling and maintenance optimization; the details are as follows: Step S 1 : Collect production operation process and machine maintenance history data; Among them, historical data of the production operation process, including but not limited to production orders, scheduling plans, historical data of production operation, types of production tasks, batches, arrival times, workstations to which tasks are assigned, production sequences, start processing time, and end processing time; Machine maintenance history data, including but not limited to equipment age, production batches, production time, maintenance time, maintenance interval, and equipment operating status historical operation data; Step S 2 : Build scheduling and maintenance agents and feature selection agents; The scheduling and maintenance agent includes a policy network and a target network, which are constructed by deep neural networks. The policy network is used to select the most appropriate scheduling or maintenance activities, and the target network is used to update the parameters of the policy network. Feature selection agent, including actor network and critic network; actor network and critic network are constructed through deep neural network; actor network is used to select key features as input of scheduling and maintenance agent, and critic network is used to update parameters of actor network; Step S 3 : Construct scheduling and maintenance Markov decision process; Among them, the scheduling and maintenance Markov decision process is to transform the scheduling and maintenance optimization problem into a sequential decision problem, namely the Markov decision process, which mainly includes the definition of the state space, action space and reward function of scheduling and maintenance; Define the state space of scheduling and maintenance: It is the key features of the scheduling and maintenance Markov decision process that are output by the triggering feature selection agent after monitoring the scheduling and maintenance Markov decision process; Define the action space for scheduling and maintenance: It includes two actions: selecting the current task to be processed or machine maintenance. The action space for scheduling and maintenance is as follows: A 2 =[1,2,…,n,n+1] Among them, A 2 represents the scheduling and maintenance action space, [1,2,…,n] represents the current tasks to be processed, n represents the number of tasks to be processed, and n+1 represents machine maintenance; Define the scheduling and maintenance reward function: It is the reward function for the scheduling and maintenance agent from the scheduling and maintenance action space A 2 The scheduling and maintenance reward function is composed of switching cost, maintenance cost, repair cost and machine reliability. The total reward of the scheduling and maintenance agent is as follows: In the formula, R 2 represents the total reward of the scheduling and maintenance agent, m is the number of parallel machines, T is the total cycle of scheduling and maintenance, r jt represents the reliability of machine j at time t, C csc , C ssc , C rc , C mc They represent the production interruption cost in the same batch, the switching cost of products with different specifications, the machine repair cost, and the machine maintenance cost respectively; Among them, the reliability of all machines is fitted by Weibull distribution, and the reliability r jt The calculation formula is as follows: Where, T as is the service life of the machine, β is the shape parameter of the Weibull distribution, and η is the size parameter of the Weibull distribution; The production interruption cost, the switching cost of products of different specifications, the equipment repair cost, and the equipment maintenance cost are calculated by the production interruption time, the material loss per unit time, and the unit material cost. The calculation formulas are as follows: C csc =T cst *U i *C i C ssc =T sst *U i *C i C rc =T rt *U i *C i C mc =T mt *U i *C i Where, T cst , T sst , T rt , T mt represents the preparation time, product switching time, equipment repair time, and equipment maintenance time between two subtasks in the same batch, respectively. i represents the output per unit time of product i, C i represents the unit material cost of product i; Since, the total reward R 2 is the instantaneous reward r of the scheduling and maintenance agent in period T 2,t The calculation is as shown below: R 2 =r 2,1 +γ*r 2,2 +g 2 *r 2,3 +...+c t-1 *r 2,t +... Among them, r 2,1 、r 2,2 、r 2,3 , ... respectively represent the immediate reward r 2,t The instant reward at time t=1, t=2, t=3, ..., γ is the discounted reward, when γ=1, R 2 =r 2,1 +r 2,2 +r 2,3 +...+r 2,t +...; Therefore, the immediate rewards of the scheduling and maintenance agents are divided into the following cases; At the decision time t 1 When , the scheduling and maintenance agent chooses the maintenance action, which will increase the cost while improving the reliability. The reward is as follows: At the decision time t 2 When , the scheduling and maintenance agent chooses to continue to produce the current batch and the machine does not fail in the subsequent production process, which only increases the preparation cost and reduces the reliability. The reward is as follows: At the decision time t 3 When , the scheduling and maintenance agent chooses to continue to produce the current batch and the machine fails in the subsequent production process, which will increase the preparation cost and maintenance cost and reduce the reliability. At this time, the reward is as follows: At the decision time t 4 When , the scheduling and maintenance agent chooses to change the batch, which will cause conversion costs, but will replace the components of the machine to restore the reliability to the original state. At this time, the reward is as follows: Step S 4 : Construct feature selection Markov decision process; The feature selection Markov decision process is to transform the key feature selection problem of the scheduling and maintenance Markov decision process into a sequential decision problem, namely the Markov decision process, which mainly includes the definition of feature selection state space, action space and reward function; Define the feature selection state space, including all production operation process and machine maintenance data; Define the feature selection action space, including the selection and elimination of all production operation process and machine maintenance data; The feature selection reward function is defined by taking the key features contained in the selected production operation process and machine maintenance data as the input of the scheduling and maintenance agent and training the scheduling and maintenance agent, and obtaining the scheduling and maintenance optimization performance of the scheduling and maintenance agent as the total reward of the feature selection agent; R 1 =R 2,t Among them, R 1 represents the total reward of the feature selection agent, R 2,t represents the total reward of the scheduling and maintenance agent trained with the key features output by the feature selection agent at time t; Step S 5 :The feature selection agent interacts with the feature selection Markov decision process and learns the optimal feature selection strategy; Interaction is the observation of the current production process and machine maintenance data by the feature selection agent 1,t , select and perform action a 1,t , observe the changes in production operation process and machine maintenance data after executing the action 1,t+1 , select and execute all actions to obtain the key features to train the scheduling and maintenance agent to obtain the total reward R 1 ; The optimal feature selection strategy is that the feature selection agent interacts with the feature selection Markov decision process and updates the parameters of the deep neural network in the feature selection agent through the Actor-Critic algorithm guided by self-imitation learning; Self-imitation learning is to use the interaction data contained in the better trajectory obtained by the feature selection agent in exploring the solution space as expert experience, and to sample all the explored trajectory data to update the parameters of the feature selection agent to solve the sparse reward problem faced by the feature selection agent and accelerate the learning and convergence speed of the feature selection agent; The Actor-Critic algorithm is a reinforcement learning algorithm that combines policy gradients and value networks to train feature selection agents to learn the optimal feature selection strategy, that is, to train the deep neural network in the feature selection agent to obtain the optimal network parameters; The parameter update formulas of the feature selection agent of the Actor-Critic algorithm guided by self-imitation learning are as follows: In the formula, θ i ,θ i+1 Select the parameters of the actor network for the features before and after the update, represents the objective function J of the actor network Q (θ i ), η Q is the learning rate of the actor network, where In the formula, J Q (θ) represents the objective function of the actor network when the actor network parameter is θ, Q θ (s 1,t ,a 1,t ) represents the actor network with parameters θ and state s 1,t When selecting action a 1,t The predicted value at time y is the target value, They represent the expected values ​​of the mean square error calculated using the interaction data contained in the better and worse trajectories respectively; Where r is the feature selection agent actor network with parameters θ and state s 1,t When selecting action a 1,t The reward value at time , α is the learning rate, Indicates that the feature selection agent actor network is in state s 1,t+1 According to your own strategy The action a with the highest probability is chosen 1,t+1 ; In the formula, The parameters of the feature selection agent critic network before and after the update, Represents the objective function of the critic network The gradient of Π is the learning rate of the critic network, where In the formula, represents the objective function of the critic network when the critic network parameter is θ, Indicates that the feature selection agent critic network is in state s 1,t According to your own strategy The action a with the highest probability is chosen 1,t ; Step S 6 :The scheduling and maintenance agent interacts with the scheduling and maintenance Markov decision process and learns the optimal scheduling and maintenance optimization strategy; The interaction is that the scheduling and maintenance agents observe the current production process and machine maintenance data according to the key features of the feature selection agent output to obtain the state s 2,t , select and execute action a through its own strategy combined with the adaptive action selection mechanism 2,t , obtain the immediate reward r fed back by the scheduling and maintenance Markov decision process 2,t , observe the state data s transferred after executing the action 2,t+1 ; The optimal scheduling and maintenance strategy is the interaction between the scheduling and maintenance agent and the scheduling and maintenance Markov decision process to accumulate experience data and train and update the neural network parameters through the Double DQN algorithm; The adaptive action selection mechanism is to improve the agent's global exploration ability of the solution space by addressing the problem of unselectable actions when the scheduling and maintenance agent selects and executes actions. It mainly determines the set of optional actions by judging the current optional actions to generate an action mask matrix. Then the scheduling and maintenance agent selects optional actions based on the action mask matrix combined with the ε-greedy strategy. The ε-greedy strategy is as follows: In the formula, random means randomly selecting an optional action. represents the selection of the action with the largest Q value, R(0,1) represents a random value between 0 and 1, ε is the greedy coefficient, and θ is the parameter of the policy network in the scheduling and maintenance agent; The Double DQN algorithm is a value-based reinforcement learning algorithm used to train scheduling and maintenance agents to learn optimal scheduling and maintenance strategies. The error loss calculation formula of the scheduling and maintenance agent is as follows: Loss=||y i -Q(s 2,t ,a 2,t ;ω)|| 2 Where ω is the parameter of the policy network in the scheduling and maintenance agent, is the parameter of the evaluation network in the scheduling and maintenance agent, Q(s 2,t ,a 2,t ; ω) is the agent in state s 2,t Next, select action a according to its own strategy parameter ω 2,t The Q value of the parameter ω is calculated by gradient descent, and the calculation formula is as follows: In the formula, Represents the gradient of the error Loss of the policy network in the scheduling and maintenance agent under the parameter ω; Step S 7 : Deploy and execute feature selection agents and scheduling and maintenance agents for scheduling and maintenance optimization; The trained feature selection agent and scheduling and maintenance agent are deployed in the production workshop. Through real-time monitoring of production and machine operation process data, the feature selection agent is automatically triggered to select key state features of the dynamic environment, and the scheduling and maintenance agent is used to output the optimal scheduling or maintenance activities under the current state.

2. The scheduling and maintenance optimization method based on embedded reinforcement learning according to claim 1, It is characterized in that Step S 2 In the proposed method, the scheduling and maintenance agent includes a policy network and a target network, which can be constructed by a fully connected neural network.

3. The scheduling and maintenance optimization method based on embedded reinforcement learning according to claim 1, It is characterized in that Step S 2 In the paper, the feature selection agent includes an actor network and a critic network; the actor network and the critic network are constructed through a fully connected neural network.

4. A scheduling and maintenance optimization system based on embedded reinforcement learning, It is characterized in that A scheduling and maintenance optimization method based on embedded reinforcement learning as described in any one of claims 1 to 3, wherein the system comprises a scheduling and maintenance controller, a scheduling and maintenance agent, and a feature selection agent; The scheduling and maintenance controller monitors the scheduling and maintenance process in real time, receives the trigger signal transmitted by the production operation environment, and transmits the signal to the scheduling and maintenance agent to trigger the generation of scheduling and maintenance plans; The scheduling and maintenance agent, after receiving the trigger signal of the state data transmission from the scheduling and maintenance controller, sends a signal to the feature selection agent, accepts the real-time selection of the current key state features by the feature selection agent, and uses itself to learn the optimal scheduling and maintenance strategy to select and execute the optimal scheduling and maintenance action; After receiving the trigger signal transmitted by the scheduling and maintenance agent, the feature selection agent detects the state characteristics of the scheduling and maintenance environment, and uses the learned optimal feature selection strategy to output the key feature subset under the current environment state to pass it to the scheduling and maintenance agent.

Citation Information

Patent Citations

  • Production and maintenance coupling task allocation method and system considering equipment operation state

    CN115619171A

  • Joint computing unloading and resource allocation method and device for MEC

    CN116418808A

  • Complete vehicle manufacturing stamping resource scheduling method based on deep reinforcement learning

    CN117557016A

  • Unmanned aerial vehicle path planning method and device based on maximum entropy safety reinforcement learning

    CN118192668A

  • Wafer manufacturing system furnace tube area scheduling method based on reinforcement learning

    CN118446475A

Cited By

  • Equipment fault detection data analysis method and system for digital factory

    CN119829957A

  • A method and system for analyzing data of equipment fault detection in a digital factory

    CN119829957B

  • Intelligent processing and manufacturing management system

    CN119850025A

  • Production scheduling and machine maintenance real-time decision-making method based on deep reinforcement learning

    CN120471368A

  • Flexible job shop production scheduling and machine maintenance joint optimization method and system

    CN121279759A