Manufacturing service combination method based on asymmetric multi-agent reinforcement learning
By using methods based on asymmetric multi-agent reinforcement learning and using technologies such as graph convolutional neural networks to optimize the robustness and collaboration capabilities of the manufacturing service chain, it solves the problem of insufficient optimization of static indicators and one-way asymmetry of information transmission in the existing technology. problem, achieving dynamic performance optimization and scheduling efficiency improvement of the manufacturing service chain.
Patent Information
- Application Number
- CN202410876521.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-10-29
AI Technical Summary
Existing manufacturing service scheduling research mainly takes static indicators as the optimization target, which cannot reflect the dynamic performance of the service chain. Moreover, the information transfer between services is one-way asymmetric, and the graph structure characteristics are not fully utilized to optimize manufacturing services.
Using a method based on asymmetric multi-agent reinforcement learning, by collecting historical data of the manufacturing service chain, defining robustness labels, training asymmetric reward modules and agents, learning manufacturing service scheduling strategies, using graph convolutional neural networks and multi-layer perception Components such as machines optimize the robustness and collaboration capabilities of the service chain.
It achieves dynamic performance optimization of the manufacturing service chain, improves the robustness and collaboration capabilities of the service chain, and improves the efficiency and stability of manufacturing service scheduling.
Smart Images

Figure CN118863379A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of cloud manufacturing service scheduling and the field of multi-agent reinforcement learning, and in particular to a manufacturing service combination method based on asymmetric multi-agent reinforcement learning. Technical Background
[0002] In order to meet people's growing personalized needs, cloud manufacturing platforms have emerged in combination with advanced technologies such as cloud computing, big data, and the Internet of Things. After receiving a customized order, the cloud manufacturing platform will use static indicators such as time, cost, and reliability as optimization targets to match the order with the manufacturing services provided by the enterprise to form a manufacturing service chain. Customized orders can be completed by executing the manufacturing service chain. The manufacturing service chain has a long execution time span, and the service chain needs to be continuously optimized during this period to ensure stable execution of the service chain, that is, manufacturing service scheduling.
[0003] The research on manufacturing service chain scheduling mainly takes static indicators as optimization targets and uses meta-heuristic algorithms or reinforcement learning algorithms to solve scheduling problems. Great progress has been made, but there are three shortcomings: (1) The current research on manufacturing service scheduling takes static indicators as optimization targets, and these indicators cannot reflect the dynamic performance of the service chain. (2) Raw materials are processed sequentially through the manufacturing service chain to obtain customized products. Therefore, each service is a semi-finished product processed by the previous one. This leads to one-way asymmetric information transmission between services. (3) The manufacturing service chain has a significant graph structure, which contains complex relationships between services, but very few studies have used the graph characteristics of the service chain to optimize manufacturing services. Summary of the invention
[0004] The purpose of the present invention is to provide a manufacturing service combination method based on asymmetric multi-agent reinforcement learning in order to solve the above problems.
[0005] The technical solution to achieve the purpose of the present invention is: a manufacturing service combination method based on asymmetric multi-agent reinforcement learning, the method comprising the following steps:
[0006] Step 1: Collect historical data of the manufacturing service chain and use the robust label definition method to derive the robust label of the manufacturing service chain.
[0007] Step 2, using the manufacturing service chain data with robustness labels to train the asymmetric reward module in the manufacturing service composition method based on asymmetric multi-agent reinforcement learning;
[0008] Step 3, using an asymmetric reward module, training the agent in the manufacturing service composition method based on asymmetric multi-agent reinforcement learning to learn the manufacturing service scheduling strategy;
[0009] Furthermore, the manufacturing service chain robustness label definition method described in step 1 is defined from the perspective of the service provider and the cloud manufacturing platform.
[0010] The role of the service provider is to provide manufacturing services to the cloud manufacturing platform. The service provider can directly observe the real-time changes of the packaging resources in the manufacturing service. Therefore, from the perspective of equipment and materials, the service robustness is defined using equations (1), (2), and (3): In the formula, R mt R represents the robustness of the equipment; P represents the processing performance, that is, the processing efficiency and accuracy of the lathe under specific working conditions; D represents the system's resistance to external disturbances, including environmental changes, vibrations, etc., and the value range is 0 to 1. The larger the value, the stronger the resistance; I represents the stability and reliability of the system's internal structure, which includes factors such as part wear and lubrication. The lower the I value, the better the stability of the lathe's internal structure; E represents the tolerance for errors and abnormalities. The lower the value, the stronger the lathe's ability to handle errors and abnormalities. ma For material robustness, the quantity of goods must not be lower than the critical inventory. In this study, the critical inventory is set to zero; S is the storage volume of goods; SC represents the supply stability of materials; V represents the price volatility; C represents the consumption rate of materials during production, transportation and storage.
[0011] From the perspective of cloud manufacturing platform, service robustness is supplemented to manufacturing service chain robustness. From the perspective of cloud manufacturing platform, service collaboration capability is used to supplement service robustness, as shown in formula (4). Where: R serC is the service chain robustness; R ser To serve robustness; Indicates service S i,m With Service i,m+1 The number of successful collaborations between .
[0012] Furthermore, the asymmetric reward module described in step 2 includes a data-driven part and a rule fine-tuning part.
[0013] The data-driven part consists of two layers of graph convolutional neural network (GCN), a global pooling layer, a multi-layer perceptron (MLP), and a graph layer-by-layer relevance propagation layer (GLRP).
[0014] The data-driven part first needs to use the manufacturing service chain data with robustness labels to train GCN and MLP with weights and biases. Then, use GCN, global pooling layer and MLP to obtain the robustness of the manufacturing service chain. Then use GLRP to analyze the contribution of different agents to robustness and distribute rewards based on their contributions.
[0015] The rule fine-tuning part will fine-tune the agent's rewards based on changes in the time and cost of the service chain as a whole and individual services in the service chain.
[0016] Furthermore, the asymmetric reward module training steps described in step 2 include data sorting, forward propagation, loss calculation, back propagation, and weight fine-tuning.
[0017] Furthermore, the agent described in step 3 consists of a GCN layer, an encoder layer, and an MLP layer. The structures of different agents are different. The agent that optimizes the first subtask only contains an encoder layer and an MLP layer. The remaining agents all contain a GCN layer, an encoder layer, and an MLP layer.
[0018] Furthermore, the proxy state described in step 3 is different for different proxies. The proxy state is allocated based on the asymmetric cascade state.
[0019] Furthermore, the agent architecture described in step 3 adopts an actor-critic architecture and uses the agent training method provided by the architecture. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0021] Figure 1 An algorithm flow chart of a manufacturing service combination method based on asymmetric multi-agent reinforcement learning provided in an embodiment of the present application.
[0022] Figure 2 An agent structure in a manufacturing service combination method based on asymmetric multi-agent reinforcement learning provided in an embodiment of the present application.
[0023] Figure 3 A state allocation method for asymmetric cascade states in a manufacturing service combination method based on asymmetric multi-agent reinforcement learning provided in an embodiment of the present application
[0024] Figure 4 An asymmetric reward module in a manufacturing service combination method based on asymmetric multi-agent reinforcement learning provided in an embodiment of the present application. Specific implementation methods
[0025] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0026] In one embodiment, in combination Figure 1 , Figure 2 , Figure 4 , provides a manufacturing service composition method based on asymmetric multi-agent reinforcement learning, the method comprising the following steps:
[0027] Step 1: After collecting customized tasks from users and manufacturing services from service providers, the cloud manufacturing platform decomposes customized tasks into subtask chains and submits them together with manufacturing services to the manufacturing service combination method based on asymmetric multi-agent reinforcement learning.
[0028] In step 2, each agent randomly generates an action to form an action chain to start the manufacturing service scheduling optimization.
[0029] Step 3: The action chain is transferred from the multi-agent system to the manufacturing service scheduling optimization environment, and a manufacturing service chain is formed through the scheduling optimization environment.
[0030] Step 4: The manufacturing service chain can be regarded as the total state of the manufacturing service combination method based on asymmetric multi-agent reinforcement learning. The asymmetric reward module takes the total state as input and obtains the reward of each agent through the data-driven part and the rule fine-tuning part.
[0031] In step 5, each agent in the multi-agent system receives the corresponding reward, and the agent is trained based on the reward, action, and state.
[0032] In step 6, the agent after training generates an action chain and returns to step 3 for continuous optimization.
[0033] Furthermore, in step 1, the subtask chain structure may be composed of one or more of a series connection, a parallel connection, a selection, and a loop structure.
[0034] Furthermore, in step 2, the agent will generate random actions, each agent only generates actions corresponding to the subtask, and the order in which the agent generates actions is in accordance with the subtask order.
[0035] Random actions are randomly selected within the range of cost priority, time priority, collaboration ability priority, and stability priority.
[0036] Furthermore, in step 3, the manufacturing service scheduling optimization environment will parse the action chain, and the result of the parsing is the manufacturing service chain.
[0037] The manufacturing service scheduling optimization environment analyzes the action chain as follows: first, extract the attributes of the manufacturing service, then sort the attribute values in descending order according to the attributes corresponding to the action, and finally select the first manufacturing service after sorting.
[0038] Furthermore, the asymmetric reward module in step 4 can be divided into two parts, namely a data-driven part and a rule fine-tuning part.
[0039] The data-driven part needs to use the manufacturing service chain robustness data for supervised training. The manufacturing service chain robustness data can be obtained from the perspective of cloud manufacturing and service providers through Equations 1, 2, 3, and 4.
[0040] The data-driven part consists of the GCN layer, the global pooling layer, the MLP layer, and the GLRP layer. The GCN layer, the global pooling layer, and the MLP layer are used to parse the manufacturing service chain to obtain the total robustness reward. The GLRP layer is used to obtain the contribution of each agent to the total robustness through correlation back propagation, and to allocate rewards to each agent based on the contribution.
[0041] The GCN layer of the data-driven part has a two-layer structure, which can be expressed by formula (5): Where: H (l) is the node representation matrix of the lth layer, each row represents the feature of a node; W (l) is the weight matrix of the lth layer; A is the adjacency matrix A plus the self-loop, that is, A=A+I, where I is the identity matrix; D is the degree matrix of A, and the diagonal elements are the degrees of the nodes.
[0042] The global pooling layer in the data-driven part is used to capture the global information of the entire manufacturing service chain and helps prevent the model from overfitting, which helps improve the generalization ability of the model.
[0043] The MLP layer of the data-driven part is a three-layer structure, in which the hidden layer and the output layer have activation functions. The MLP layer can be expressed by equations (6) and (7). H = ReLU(W h ·x+b h ) (6) y = ReLU(W o ·h+b o ) (7) Where: x is the input vector of the network; W h ,W o are the weight matrices of the hidden layer and the output layer, respectively, h ,b o are the bias vectors of the hidden layer and the output layer respectively.
[0044] The GLRP layer in the data-driven part is modified specifically for GCN based on the layer-by-layer relevance propagation layer (LRP). GLRP inherits the characteristics of LRP.
[0045] LRP follows the principle of correlation conservation in the process of explaining the model, that is, the correlation assigned to the next layer should be equal to the sum of the correlations of the previous layer. Assuming that a and b are two consecutive neural network layers, the principle of correlation conservation can be expressed as formula (8). Where: are the correlation scores of individual neurons in layer a and layer b, respectively. To adapt to different neural networks, different rules need to be defined to indicate the propagation of correlation in the neural network.
[0046] The basic propagation rule of LRP is shown in formula (9). Where: Z i,j represents the correlation from neuron j in the nth layer to neuron i in the mth layer; Σ k Z k,j represents the total correlation sent from all connected neurons in the mth layer to neuron j before the activation function.
[0047] When applying LRP to this study, it is necessary to consider the propagation method that is suitable for graph convolutional neural networks. Then, GLRP is innovatively designed, which improves the basic LRP propagation rule as follows: (1) Based on the characteristics of the problem, the historical collaboration times Col between services are introduced G ; (2) Introduce the adjacency matrix A of the service chain sc , assigning relevance to different services according to the connection relationship; (3) The denominator contains a small positive term ε to ensure the stability of the value. The propagation rule of GLRP is shown in formula (10).
[0048] In the data-driven part, the GCN layer and the MLP layer have weights and biases. The training method of the GCN layer and the MLP layer is as follows: (1) The node feature matrix and the adjacency matrix in the graph data are used as input for initialization. (2) Through two layers of graph convolution layers, the graph data information is aggregated and propagated, and the node representation is continuously updated. (3) A global pooling operation is performed on the features of each node to generate the full graph features. (4) The MLP layer forward propagates the model output and calculates the mean square error loss with the true label. (5) The gradient of the loss relative to the model parameters is calculated through the back-propagation algorithm, which is used to update the weights in the graph convolution layer and the MLP layer. This process is iterated until the predetermined number of training rounds is reached or the loss converges to a satisfactory level.
[0049] The role of the rule fine-tuning part is to guide the agent to output a practical scheduling plan to avoid the scheduling plan being too costly and time-consuming.
[0050] The rule fine-tuning part has four rules, namely: (1) The execution priority of the rule adjustment method is: 2>3>4, and only one of 2, 3, and 4 is executed. (2) All agents will be punished if the service chain exceeds the user's preset time or cost in terms of processing time or cost. The penalty will increase rapidly as the excess increases. (3) The scheduled service chain will be compared with the original service chain in terms of time and cost. If the scheduled service chain has more advantages in both aspects, no penalty will be imposed. Otherwise, it will be punished according to Rule 4. (4) Compare the differences in time and cost between the scheduled service chain and the original service chain at the single service level, reward services that have advantages in both aspects, and punish other services. The penalty and reward calculation formulas are as follows: Where: ti , δ co They are the penalty factors of time and cost, Ti fr 、Co fr Ti represents the time and cost of selecting services after service combination. af 、Co af Indicates the time and cost of selecting the service after scheduling.
[0051] Furthermore, the multi-agent system in step 5 is based on the actor-critic architecture. Each agent optimizes a subtask. The agent structure corresponding to the first subtask is the encoder layer and the MLP layer. The other agent structures are the GCN layer, the encoder layer, and the MLP layer. The GCN layer and the MLP layer are the same as the data-driven part.
[0052] The encoder layer is used to organize data of different dimensions into the same dimension. The encoder layer cannot capture the order information of elements in the sequence, and position encoding needs to be added to provide information about the position of the agent in the task chain. To avoid the problem of information loss due to a long task chain, an encoder network with a self-attention mechanism is used, as shown in equations (12), (13), and (14). X=X+PositionalEncoding(t) (12) Output=LayerNorm(X+Attention(X)) (14)
[0053] Different agents in a multi-agent system have different states. State allocation is based on asymmetric cascade states. State allocation includes four types of allocation rules: sequential rules, parallel rules, selection rules, and cyclic rules.
[0054] Asymmetric cascade state such as Figure 3 As shown in the figure. In the sequential rule, the agent will receive the data of all the agents before it; in the parallel rule, the data of the parallel add / drop points will be shared with the parallel agents at the same time; the selection rule should make a decision in the scheduling link and execute according to the sequential rule; the loop rule can be expanded into a sequential or parallel structure, so as to execute according to the sequential or parallel rule.
[0055] The agents in a multi-agent system are trained in the same way as the general actor-critic approach.
Claims
1. A manufacturing service composition method based on asymmetric multi-agent reinforcement learning, It is characterized in that The specific steps include: Step 1: After collecting customized tasks from users and manufacturing services from service providers, the cloud manufacturing platform decomposes customized tasks into subtask chains and submits them together with manufacturing services to the manufacturing service composition method. In step 2, each agent randomly generates an action to form an action chain to start the manufacturing service scheduling optimization. Step 3: The action chain is transferred from the multi-agent system to the manufacturing service scheduling optimization environment, and a manufacturing service chain is formed through the scheduling optimization environment. Step 4: The manufacturing service chain can be regarded as the total state of the manufacturing service combination method based on asymmetric multi-agent reinforcement learning. The asymmetric reward module takes the total state as input and obtains the reward of each agent through the data-driven part and the rule fine-tuning part. In step 5, each agent in the multi-agent system receives the corresponding reward, and the agent is trained based on the reward, action, and state. In step 6, the agent after training generates an action chain and returns to step 3 for continuous optimization.
2. According to claim 1, a manufacturing service composition method based on asymmetric multi-agent reinforcement learning, It is characterized in that The subtask chain structure of a complex manufacturing task can be composed of one or more of a series, parallel, selection, and loop structure.
3. According to the manufacturing service composition method based on asymmetric multi-agent reinforcement learning according to claim 1, It is characterized in that From the perspective of cloud manufacturing platform and service provider, a definition method of robustness label of manufacturing service chain is given.
4. The manufacturing service composition method based on asymmetric multi-agent reinforcement learning according to claim 1, It is characterized in that The agent architecture is based on the actor-critic architecture, and the agent structure consists of a graph convolutional network (GCN) layer, an encoder layer, and a multi-layer perceptron (MLP) layer.
5. The manufacturing service composition method based on asymmetric multi-agent reinforcement learning according to claim 1, It is characterized in that Asymmetric multi-agent reinforcement learning has asymmetric reward modules and asymmetric cascade states.
6. A manufacturing service composition method based on asymmetric multi-agent reinforcement learning according to claim 3, It is characterized in that The source of manufacturing service chain data is the historical data of the cloud manufacturing platform.
7. The manufacturing service composition method based on asymmetric multi-agent reinforcement learning according to claim 4, It is characterized in that The agent structure corresponding to the first subtask consists of an encoder layer and an MLP layer, and the other agents consist of a GCN layer, an encoder layer, and an MLP layer.
8. According to claim 5, a manufacturing service composition method based on asymmetric multi-agent reinforcement learning, It is characterized in that The asymmetric reward module has a data-driven part and a rule-tuning part.
9. A manufacturing service composition method based on asymmetric multi-agent reinforcement learning according to claim 8, It is characterized in that The data-driven part consists of a GCN layer, a global pooling layer, an MLP layer, and a graph layer-by-layer relevance propagation (GLRP) layer. The GCN layer and the MLP layer have weight and bias attributes and need to be trained using manufacturing service chain data with robust labels.
10. A manufacturing service composition method based on asymmetric multi-agent reinforcement learning according to claim 8, It is characterized in that The rule fine-tuning part will reward or punish the corresponding agent based on the changes in the time and cost of the manufacturing service chain before and after scheduling and the individual services in the manufacturing service chain.
11. A manufacturing service composition method based on asymmetric multi-agent reinforcement learning according to claim 9, It is characterized in that The GLRP layer is improved based on the layer-by-layer relevance propagation (LRP) layer by combining the characteristics of the GCN layer and the manufacturing service scheduling problem.
Citation Information
Cited By
Vehicle longitudinal control method and system based on WOA-improved TD3 algorithm
CN120116966A
