Reconfigurable workshop dynamic scheduling method and system based on multi-agent near-end strategy optimization algorithm and efficient action decoding
By using multi-agent proximal strategy optimization algorithms and efficient action decoding methods in the reconfigurable workshop, the problem of short-sighted decision-making in dynamic scheduling methods is solved, efficient scheduling of the workshop and rapid response to disturbance events are achieved, and production efficiency and Order delivery reliability.
Patent Information
- Application Number
- CN202410767734.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-10-15
AI Technical Summary
The existing dynamic scheduling method in the reconfigurable workshop has the problems of short-sighted decision-making and poor scheduling effect, especially when faced with disturbance events such as order insertion and equipment failure, it is difficult to respond quickly and effectively handle it.
Using a method based on multi-agent proximal strategy optimization algorithm and efficient action decoding, a high-level workpiece sorting agent, a manufacturing unit allocation agent and a bottom-level workpiece sorting agent are constructed through the offline training phase, and deep reinforcement learning is combined with a multi-agent system. Train the agent to maximize the cumulative reward function, achieve real-time decision-making and action decoding, and handle workshop scheduling problems.
It achieves efficient scheduling of reconfigurable workshops, reduces the difficulty of agent solution, improves robustness and production efficiency, can quickly respond to and handle disturbance events, and ensures stable and efficient operation of the workshop and timely delivery of orders.
Smart Images

Figure CN118780416A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field related to generation scheduling, and more specifically, relates to a reconfigurable workshop dynamic scheduling method and system based on a multi-agent proximal strategy optimization algorithm and efficient action decoding. Background Art
[0002] In recent years, mass customization, fluctuations in customer demand, and agile manufacturing have challenged the traditional manufacturing model. Against this background, reconfigurable manufacturing systems have emerged. It integrates the advantages of dedicated production lines and flexible manufacturing systems, and has the characteristics of modularity, scalability, integrability, convertibility, and customization. In reconfigurable manufacturing systems, through different combinations of equipment or configurations of different auxiliary modules, the machine can quickly switch processing functions, thereby ensuring seamless switching of production of different types of products. However, machine reconstruction brings additional complexity to workshop scheduling. Therefore, designing scientific and efficient scheduling methods to achieve reasonable workpiece sorting, machine allocation, and equipment reconstruction for reconfigurable workshops, thereby ensuring full utilization of manufacturing resources and a substantial increase in production capacity, is an important link and key step for enterprises to gain competitive advantages.
[0003] In actual production, disturbance events will inevitably occur in the workshop, including order insertion, equipment failure, etc. These events will make the original production plan scheduling effect worse or even infeasible. There are three types of dynamic scheduling methods: fully reactive scheduling method, pre-reactive scheduling method, and robust scheduling method. Among them, the fully reactive scheduling method has the fastest response speed to disturbance events and is widely used in production. The commonly used fully reactive scheduling method is a scheduling rule. Although it has the ability to make decisions instantly, its decision is based on local workshop information and the decision logic is simple, so its decision is short-sighted and the scheduling effect is poor.
[0004] Technologies such as the Internet of Things, digital twins, and big data have made it possible to obtain, analyze, and make decisions about manufacturing data in real time. At the same time, as a data-driven, fully reactive scheduling method, deep reinforcement learning can make reasonable decisions based on real-time workshop status data, and is a very promising dynamic scheduling method. Therefore, it is of great significance to develop a dynamic scheduling method based on deep reinforcement learning for reconfigurable workshops. Summary of the invention
[0005] In view of the above defects or improvement needs of the prior art, the present invention provides a reconfigurable workshop dynamic scheduling method and system based on a multi-agent proximal strategy optimization algorithm and efficient action decoding to solve the scheduling problem of the reconfigurable workshop.
[0006] To achieve the above object, according to one aspect of the present invention, a reconfigurable workshop dynamic scheduling method based on a multi-agent proximal strategy optimization algorithm and efficient action decoding is provided, the method comprising the following steps:
[0007] Offline training phase
[0008] Taking different attributes in the state feature space of the workshop as input, and taking the decision reference vector related to task sorting, the decision reference vector related to the selection of manufacturing units, and the decision reference vector related to workpiece sorting as output, three agents and the corresponding cumulative reward functions are constructed; the three agents are respectively the high-level workpiece sorting agent, the manufacturing unit allocation agent, and the low-level workpiece sorting agent;
[0009] Three agents are used to interact with the workshop until all tasks in the order are completed, and the state feature space and decision reference vector of each agent in each interaction process are saved as training data. The interaction is repeated multiple times to obtain multiple sets of training data. The multi-agent proximal strategy optimization algorithm is used to train each agent separately using multiple sets of training data to maximize the cumulative reward function, thereby obtaining the required high-level workpiece sorting agent, manufacturing unit allocation agent and low-level workpiece sorting agent;
[0010] Online application stage
[0011] For the orders to be processed, the three intelligent agents trained in the offline stage interact with the workshop multiple times until all tasks in the order are processed.
[0012] Further preferably, the three agents interacting with the workshop include the following steps:
[0013] (1) When there are tasks to be processed in the task pool at the current moment, the state feature space at the current moment is collected; and the decision reference vectors of the high-level workpiece sorting agent, the manufacturing unit allocation agent, and the low-level workpiece sorting agent are calculated using the state feature space;
[0014] (2) selecting a task A from the tasks in the task pool according to the decision reference vector output by the high-level workpiece sorting agent, selecting a manufacturing unit B from all candidate manufacturing units of task A according to the decision reference vector output by the manufacturing unit allocation agent, adding the selected task A to the cache area of the manufacturing unit B; and deleting the selected task A from the task pool;
[0015] (3) Repeat steps (1) and (2) until the task pool is empty;
[0016] (4) All tasks in the buffer areas of the idle manufacturing units at the current moment are aggregated to form a task set, and the tasks in the task set are sorted using the decision reference vector output by the underlying workpiece sorting agent to obtain the processing priority of each task in the task set;
[0017] (5) processing the tasks in the task set in order according to the processing priority using the corresponding manufacturing units, so as to complete the processing of all the tasks in the task set, wherein when the equipment resources required by the manufacturing unit are insufficient, the task corresponding to the manufacturing unit is not processed;
[0018] (6) Update the state feature space, task pool and manufacturing unit. When there are tasks to be processed in the task pool, return to step (1) until the processing of all tasks in the order is completed.
[0019] Further preferably, in offline training, the input of the high-level workpiece sorting agent is order attributes, workpiece attributes, global manufacturing unit attributes and task pool attributes, and the output is the decision reference vector a HJS The input of the manufacturing unit allocation agent is the order attribute, the workpiece attribute and the local manufacturing unit attribute, and the output is the decision reference vector a MCA The input of the underlying workpiece sorting agent is the order attribute, workpiece attribute and global manufacturing unit attribute, and the output is the decision reference vector a LJS .
[0020] Further preferably, in step (2), the task A is the task corresponding to the maximum priority level after the priority levels of all tasks in the task pool are calculated according to the following relationship:
[0021]
[0022] in, It is the artifact attribute of the artifact corresponding to the task The normalized form of a HJS is the decision reference vector output by the high-level artifact sorting agent, is the priority of the task.
[0023] Further preferably, in step (2), the manufacturing unit B is the manufacturing unit corresponding to the maximum priority level after calculating the priorities of all candidate manufacturing units according to the following relationship:
[0024]
[0025] in, is the priority level of the manufacturing unit, a MCA is the decision reference vector output by the manufacturing unit allocation agent, is the attribute vector of the manufacturing unit.
[0026] Further preferably, in step (4), the processing priority of each task is calculated according to the following relationship:
[0027]
[0028] in, It is the artifact attribute of the artifact corresponding to the task The normalized form of a LJS It's the bottom layer
[0029] The decision reference vector output by the workpiece sorting agent, is the priority of the task.
[0030] Further preferably, in the offline training stage, the cumulative reward function is as follows:
[0031]
[0032] Among them, R represents the cumulative reward obtained by the agent in the entire scheduling process; r t Represents the reward and punishment function value obtained by the agent at time t; terminal represents the last decision point in the entire scheduling process; N o Represents the order quantity; TC l (t) represents the order O at time t l The delay cost; TC l (t+1) represents the order O at time t+1 l delay costs.
[0033] Further preferably, the state feature space includes order attributes, workpiece attributes, global manufacturing unit attributes, task pool attributes and local manufacturing unit attributes, wherein:
[0034] (1) Order attributes are the mean and standard deviation of all order progress;
[0035] (2) The artifact attributes are the mean and standard deviation of the progress of all artifacts;
[0036] (3) Global manufacturing unit attributes include: ① the mean and standard deviation of the utilization of all manufacturing units, ② the mean and standard deviation of the estimated completion time of all manufacturing units;
[0037] (4) Task pool attributes include: ① the number of tasks in the task pool, ② the mean and standard deviation of the processing time of all tasks in the task pool, ③ the mean and standard deviation of the remaining processing time of all tasks in the task pool, and ④ the mean and standard deviation of the estimated delay cost of all tasks in the task pool.
[0038] (5) Local manufacturing unit attributes include: ① the mean and standard deviation of the utilization of all candidate manufacturing units, and ② the mean and standard deviation of the estimated completion time of all candidate manufacturing units.
[0039] Further preferably, when the three agents interact with the workshop, when the following two disturbances exist, they are processed in the following manner:
[0040] (1) When a new order is received, the first process of each workpiece in the new order is added to the task pool, thereby updating the task pool;
[0041] (2) When a device fails, if the failed device is not in use, delete the device from the device pool; if the device is in use, stop the process using the device and the process assigned to the device, and put the stopped process into the task pool. After the device is repaired, add the repaired device to the device pool.
[0042] According to another aspect of the present invention, an end-to-end reconfigurable workshop dynamic scheduling system based on a multi-agent proximal policy optimization algorithm and efficient action decoding is provided, characterized in that the system includes an executor that executes the above-mentioned reconfigurable workshop dynamic scheduling method based on a multi-agent proximal policy optimization algorithm and efficient action decoding.
[0043] In general, the above technical solutions conceived by the present invention have the following beneficial effects compared with the prior art:
[0044] 1. The reconfigurable workshop dynamic scheduling method based on multi-agent proximal strategy optimization algorithm and efficient action decoding provided by the present invention divides the entire reconfigurable workshop scheduling problem into multiple interrelated sub-problems, each problem is solved by one agent, thereby reducing the difficulty of solving each agent. The high-level workpiece sorting agent is responsible for the workpiece selection in the agent comprehensive decision-making, the manufacturing unit allocation agent is responsible for the manufacturing unit allocation in the agent comprehensive decision-making, and the low-level workpiece sorting agent is responsible for the workpiece sorting and equipment reconstruction in the workshop operation; at the same time, the multi-agent proximal strategy optimization algorithm is used to train each agent. The algorithm combines the complexity of the multi-agent system and the advantages of the proximal strategy optimization algorithm, ensures the stability of training by truncating the objective function, and finds a balance between sample efficiency and computational complexity. It has strong robustness and can achieve efficient solution to complex reconfigurable workshop scheduling problems;
[0045] 2. The present invention designs efficient action decoding of the decision action space based on the decision reference vector, so that the intelligent agent can explore all possible solutions and learn efficiently, thereby having the ability to optimize delays. Compared with the production scheduling rules designed based on human experience commonly used in actual workshop production, the present invention is based on a deep reinforcement learning model, receives real-time workshop status data, and provides appropriate scheduling instructions, thereby ensuring efficient production of the workshop and timely delivery of orders;
[0046] 3. The cumulative reward function and scheduling reward and penalty function formula provided by the present invention calculate the delay cost of each order based on the order completion status, which focuses on the equivalent processing time of the process, the equivalent flow time of the stage, and the order coefficient that makes the calculation closer to reality, and then gives the calculation formula of the estimated completion time of the unfinished order, and finally gives the reward calculation method based on the delay cost difference. In this way, the intelligent agent can gradually learn to minimize the total delay cost of the order while evolving in the direction of maximizing the cumulative reward;
[0047] 4. The workshop system disturbance response mechanism provided by the present invention determines the affected processes and equipment resources for new orders and equipment failures, and designs a corresponding update mechanism in combination with the task pool and equipment pool, thereby changing the input state data of the agent at the disturbance time, so that the agent can make corresponding decisions in real time, ensuring the rapid response and effective processing of the workshop system to disturbance events;
[0048] 5. The method provided by the present invention can provide a suitable decision reference vector according to the real-time state characteristics, and give a reasonable intelligent agent comprehensive decision and efficient workshop operation guidance through action decoding, thereby greatly improving the workshop production efficiency and ensuring the timely delivery of each order. It can also quickly respond to and effectively handle various disturbance events to ensure the stable and efficient operation of the workshop. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 It is a flow chart of an end-to-end reconfigurable workshop dynamic scheduling method based on a multi-agent proximal strategy optimization algorithm and efficient action decoding constructed according to a preferred embodiment of the present invention;
[0050] Figure 2 is a flow chart of a step-by-step process constructed according to a preferred embodiment of the present invention;
[0051] Figure 3 It is a new order placement event processing flow chart of the disturbance response mechanism constructed according to the preferred embodiment of the present invention;
[0052] Figure 4 It is a flow chart of device failure event processing of a disturbance response mechanism constructed according to a preferred embodiment of the present invention. DETAILED DESCRIPTION
[0053] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention 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 invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0054] like Figure 1 As shown, a reconfigurable workshop dynamic scheduling method based on multi-agent proximal strategy optimization algorithm and efficient action decoding is presented. The method includes two stages: offline training and online application. The core of both stages is the interaction between the agent and the workshop environment, and one interaction represents one step.
[0055] Offline training:
[0056] (1) Construct a reconfigurable workshop simulation environment that takes disturbance events into account and initialize the deep reinforcement learning models of all agents: In terms of state feature space, the high-level workpiece sorting agent receives order attributes, workpiece attributes, global manufacturing unit attributes, and task pool attributes; the manufacturing unit allocation agent receives order attributes, workpiece attributes, and local manufacturing unit attributes; the low-level workpiece sorting agent receives order attributes, workpiece attributes, and global manufacturing unit attributes; In terms of decision action space, each agent outputs a decision reference vector and controls workshop production through action decoding; In terms of reward function, all agents share an order-level scheduling reward and punishment function to guide the agents to learn and evolve in the direction of optimizing scheduling objectives;
[0057] (2) Based on the stepping mechanism and the disturbance response mechanism of the workshop system, a loop iteration mode is adopted to collect the decision memory of each agent on different production instances. Each loop iteration is a complete scheduling process of a production instance, which contains a large number of stepping processes. Each stepping process generates three historical scheduling data, which correspond to the high-level workpiece sorting agent, the manufacturing unit allocation agent, and the low-level workpiece sorting agent. The specific contents include state, action, reward and next state. Then, the deep reinforcement learning model of all agents is regularly updated using the historical scheduling data and reinforcement learning training method, and finally an agent with superior decision-making ability is obtained.
[0058] Online Application:
[0059] When there are tasks to be processed in the task pool at the current moment, the trained intelligent agent continuously interacts with the workshop environment until all tasks in the order are processed. At the same time, whenever a disturbance event occurs in the production process, the workshop system disturbance response mechanism is used to deal with the resulting production fluctuations, thereby ensuring the stable and efficient operation of the workshop.
[0060] like Figure 2 As shown in the figure, one interaction between the agent and the workshop environment represents one step, and each step consists of two parts: first, the agent makes a comprehensive decision, and then the workshop runs. The interaction between the agent and the workshop environment is as follows:
[0061] A-agent comprehensive decision-making stage
[0062] (1) When there are tasks to be processed in the task pool at the current moment, the state feature space at the current moment is collected; the decision reference vectors of the high-level workpiece sorting agent, the manufacturing unit allocation agent, and the low-level workpiece sorting agent are calculated using the state feature space;
[0063] (2) Select a task A from the task pool according to the decision reference vector output by the high-level workpiece sorting agent, select a manufacturing unit B from all candidate manufacturing units of task A according to the decision reference vector output by the manufacturing unit allocation agent, add the selected task A to the cache area of manufacturing unit B; and delete the selected task A from the task pool;
[0064] (3) Repeat steps (1) and (2) in the online application until the task pool is empty;
[0065] B workshop operation stage
[0066] (4) All tasks in the buffer area of each idle manufacturing unit at the current moment are aggregated to form a task set, and the tasks in the task set are sorted using the decision reference vector output by the underlying workpiece sorting agent to obtain the processing priority of each task in the task set;
[0067] (5) The tasks in the task set are processed in order of their processing priorities using their corresponding manufacturing units, so as to complete the processing of all tasks in the task set. When the equipment resources required by a manufacturing unit are insufficient, the task corresponding to the manufacturing unit is not processed;
[0068] Each manufacturing unit requires a combination of multiple equipment. Only when the idle equipment resources in the workshop meet the equipment resources required by the manufacturing unit can the manufacturing unit be used for task processing.
[0069] (6) Update the state feature space, task pool and manufacturing unit. When there are tasks to be processed in the task pool, return to step (1) until all tasks in the order are processed.
[0070] In one embodiment of the present invention, Figure 3 As shown in the figure, when a new order is issued, the disturbance response mechanism of the workshop system is as follows: when a new order is issued to the workshop, the first process of each workpiece is added to the task pool. Therefore, the agent reasonably allocates resources according to the workshop status and the urgency of the order, so as to achieve stable and efficient operation of the workshop.
[0071] In one embodiment of the present invention, Figure 4 As shown in the figure, when an equipment failure event occurs, the disturbance response mechanism of the workshop system is as follows:
[0072] (1) When a device fails, there are two situations: ① If the failed device is not in use, it is an idle device resource, that is, the device is recorded in the device pool and needs to be deleted from the device pool; ② If the failed device is in use, it is forming a manufacturing unit, and the manufacturing unit is processing a workpiece. This manufacturing unit is called a failed manufacturing unit. First, the relevant disturbance processes need to be determined, including the workpiece being processed by the failed manufacturing unit and the workpiece in the cache area of the failed manufacturing unit, and then these disturbance processes are added to the task pool.
[0073] (2) When the faulty device is repaired and becomes available, it is added to the device pool to facilitate subsequent allocation and use of the device.
[0074] In one embodiment of the present invention, the objective function of the dynamic scheduling architecture based on deep reinforcement learning is:
[0075]
[0076] Where, TTC is the total delay cost of the order; N o is the order quantity; w l For the lth order (i.e. order O l )’s urgency, w l The larger the order O l The higher the delivery priority; C l For order O l Completion time; D l For order O l delivery period.
[0077] In one embodiment of the present invention, the key elements of the dynamic scheduling method are defined as follows:
[0078] (1) Order: Each order contains a specified quantity of a type of product and has a release date and delivery deadline;
[0079] (2) Equipment: There are a large number of equipment in the workshop. Different equipment can be combined to form a manufacturing unit with processing capabilities, thereby starting to process workpieces. When a manufacturing unit completes the processing of a workpiece, the equipment inside it is released and becomes available idle equipment;
[0080] (3) Task pool: responsible for recording the processing tasks to be assigned in the workshop at the current moment. Each processing task corresponds to a process of a workpiece.
[0081] (4) Equipment pool: responsible for recording the idle equipment resources in the workshop at the current moment; the manufacturing unit selects one or more equipment from the equipment pool for processing tasks;
[0082] (5) Decision point: If the task pool is not empty, the current moment is the decision point, which is the triggering time point of a step process;
[0083] (6) High-level artifact sorting agent: responsible for sorting all artifacts to be assigned when making decisions;
[0084] (7) Manufacturing unit allocation agent: responsible for allocating manufacturing units to selected workpieces during decision making;
[0085] (8) Bottom-level workpiece sorting agent: responsible for sorting all machinable workpieces during operation in the workshop;
[0086] (9) Reinforcement learning training method: Responsible for calculating the loss value based on the large amount of memory obtained during the random exploration process of the intelligent agent using a series of update formulas, and then using the back propagation method to update the neural network of all intelligent agents, ultimately enabling the intelligent agent to give appropriate action outputs based on the input state, thereby ensuring efficient production.
[0087] In one embodiment of the present invention, the state feature space of the agent deep reinforcement learning model is represented as follows:
[0088] (1) Order attributes: the mean and standard deviation of the progress of all orders, where the progress of an order is equal to the ratio of the number of completed tasks under the order to the number of all tasks.
[0089] (2) Artifact attributes: the mean and standard deviation of the progress of all artifacts.
[0090] (3) Global manufacturing unit attributes: ① Utilization rate of all manufacturing units The mean and standard deviation of y∈{1,...,N MC}, where N MC Represents the number of manufacturing units in the workshop. ② Estimated completion time of all manufacturing units The mean and standard deviation of It is expressed as follows:
[0091]
[0092] In the formula, for the y-th manufacturing unit, Represents the remaining time of the processing operation, NBF y Represents the number of tasks in the cache, Represents the processing time of the kth task in the buffer.
[0093] (4) Task pool attributes: ① The number of tasks in the task pool N TP ② The processing time of all tasks in the task pool The mean and standard deviation of i∈{1,...,N TP}. ③ The remaining processing time of all tasks corresponding to the workpiece in the task pool The mean and standard deviation of It is expressed as follows:
[0094]
[0095] In the formula, for the i-th workpiece in the task pool, NO i Represents the number of processes, represents the processing time of the jth process, Represents the completion time of the jth process. ④ The estimated delay cost of all tasks corresponding to the workpieces in the task pool The mean and standard deviation of It is expressed as follows:
[0096]
[0097] In the formula, for the i-th workpiece in the task pool, Represents the estimated completion time. represents the completion time, t represents the current time, Represents the remaining processing time, Represents the degree of urgency. Represents the delivery period.
[0098] (5) Local manufacturing unit attributes: ① The mean and standard deviation of the utilization of all candidate manufacturing units. ② The mean and standard deviation of the estimated completion time of all candidate manufacturing units. Among them, the candidate manufacturing unit refers to the manufacturing unit that has the ability to process the selected task A after the high-level workpiece sorting agent selects task A.
[0099] In one embodiment of the present invention, the end-to-end decision action space and efficient action decoding process of the agent deep reinforcement learning model are expressed as follows:
[0100] (1) High-level Artifact Sorting Agent
[0101] The decision base vector output by the high-level artifact sorting agent is expressed as follows: Each task in the task pool has an artifact attribute vector corresponding to the artifact, expressed as: in, Represents the remaining processing time, represents the estimated delay cost, Represents the delivery period, represents the critical ratio of the i-th workpiece in the task pool, Represents the slack ratio of the i-th task pool. and The calculation formula is as follows:
[0102]
[0103] In order to eliminate the impact of scale differences between different attributes, each attribute is normalized to obtain a normalized workpiece attribute vector The priority of each workpiece in the task pool is expressed as follows:
[0104]
[0105] In the formula, represents the Euclidean distance between two vectors. Therefore, the high-level artifact ranking agent selects the artifact with the maximum priority from the task pool.
[0106] (2) Manufacturing Unit Allocation Agent
[0107] The decision basis vector output by the manufacturing unit allocation agent is expressed as follows: Each candidate manufacturing unit has a manufacturing unit attribute vector, expressed as: in, Represents the utilization rate of the manufacturing unit, which is equal to the ratio of the processing time of the manufacturing unit to the total time; represents the estimated completion time of the manufacturing unit, and its calculation formula is shown in formula (2).
[0108] In order to eliminate the impact of scale differences between different attributes, each attribute is normalized to obtain the normalized manufacturing unit attribute vector The priority of each candidate manufacturing unit is expressed as follows:
[0109]
[0110] The manufacturing unit allocation agent selects the manufacturing unit with the highest priority from all candidate manufacturing units.
[0111] (3) Bottom-level Artifact Sorting Agent
[0112] The decision basis vector output by the underlying artifact sorting agent is expressed as follows: Each task in the task set corresponds to an artifact attribute vector, which is expressed as:
[0113] In order to eliminate the impact of scale differences between different attributes, each attribute is normalized to obtain a normalized workpiece attribute vector The priority of each task in the task set is expressed as follows:
[0114]
[0115] The underlying artifact sorting agent operates on each task in the task set in turn according to the priority level.
[0116] In one embodiment of the present invention, the calculation process of the order-level scheduling reward and penalty function shared by all agents is as follows:
[0117] (1) Traverse each order and calculate its completion time / estimated completion time. l Completed, go to step (2) to calculate its completion time; if order O l If not completed, go to step (3) to calculate its estimated completion time.
[0118] (2) If order O l Completed, the completion time of the order is CT l Indicated as follows: CT l =max{JCT la |a=1,...,JN l}, where JCT la Representative Order O l The completion time of the ath job in JN l Representative Order O l The number of workpieces.
[0119] (3) If order O l If not completed, the estimated completion time of the order is ECT l The calculation of is as follows.
[0120] (3.1) In real production, each order usually consists of a specified quantity of one product. Define the current time as t; order O l The process flow of the corresponding product is {O lb , b=1,...,ON l}; The equivalent processing time corresponding to each process in the process flow is {EOPT lb , b=1,...,ON l}, where EOPT lb is the ratio of process processing time to processing flexibility. Processing flexibility corresponds to the number of optional manufacturing units. The number of unfinished processes corresponding to each process stage in the process flow is {NUO lb , b=1,...,ON l}; Order O l The number of unfinished workpieces in
[0121] (3.2) Calculate order O lThe equivalent flow time of each process stage in the corresponding process flow:
[0122] EFT lb =EOPT lb ·NUO lb (11)
[0123] (3.3) Determine the maximum flow time of all process stages in the process flow, expressed as follows:
[0124] MEFT l =max{ETT lb |b=1,...,ON l} (12)
[0125] Determine the process stage with the maximum flow time, expressed as follows:
[0126] Stage = argmax{ETT lb |b=1,...,ON l} (13)
[0127] Calculate the equivalent flow time of the remaining stages, expressed as follows:
[0128]
[0129] (3.4) Calculate the order coefficient, which is used to make the estimated completion time of the unfinished orders closer to the actual production, which is expressed as follows:
[0130]
[0131] (3.5) Calculate order O l The estimated completion time is as follows:
[0132] ECT l =t+(MEFT l +REFT l ) ·OC l (16)
[0133] (4) Traversing each order, its delay cost is expressed as follows:
[0134]
[0135] (5) Based on the order delay cost, the joint action {a HJS , a MCA , a LJS}, the reward value fed back by the workshop environment at time t+1 is expressed as follows:
[0136]
[0137] Where TC l (t) represents the order O at time t l The delay cost; TC l (t+1) represents the order O at time t+1 l delay costs.
[0138] The proof process of the designed order-level scheduling reward and penalty function is as follows. In the field of deep reinforcement learning, the learning goal of the agent is to maximize the cumulative reward. Therefore, the cumulative reward R of the deep reinforcement learning model of the high-level workpiece sorting agent, the manufacturing unit allocation agent, and the low-level workpiece sorting agent on a production instance is expressed as follows:
[0139]
[0140] In the formula, terminal represents the last decision point in the entire scheduling process. Therefore, multiple agents achieve the minimization of the specified production target (i.e., total delay cost) while jointly learning and implementing joint actions to maximize the cumulative reward.
[0141] In one embodiment of the present invention, based on the multi-agent proximal strategy optimization algorithm, the reinforcement learning training method is expressed as follows:
[0142] The high-level workpiece sorting agent, manufacturing unit allocation agent, and low-level workpiece sorting agent each have an actor network and a critic network. The former is the agent's strategy network, responsible for giving actions, and the latter is responsible for evaluating the effects of the actions and adjusting the strategy.
[0143] Based on the corresponding agent memory trace, each actor network is updated to maximize the loss. The calculation process is expressed as follows:
[0144]
[0145] Where θ is the actor network parameter of the corresponding agent; BZ is the batch size; r i (θ) is the probability ratio, which is equal to A i is the advantage estimate; ∈ is the clipping coefficient; σ is the entropy coefficient; S is the strategy entropy; o i is the state feature space of the corresponding agent.
[0146] Based on the corresponding agent memory trace, each critic network is updated to minimize the loss. The calculation process is expressed as follows:
[0147]
[0148] Where φ is the critic network parameter of the corresponding agent; For discount rewards; i is the global state, i.e., the set of order attributes, workpiece attributes, global manufacturing unit attributes, and task pool attributes; L H () is the Huber loss function.
[0149] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A reconfigurable workshop dynamic scheduling method based on multi-agent proximal strategy optimization algorithm and efficient action decoding, characterized in that: The method comprises the following steps: Offline training phase Taking different attributes in the state feature space of the workshop as input, and taking the decision reference vector related to task sorting, the decision reference vector related to the selection of manufacturing units, and the decision reference vector related to workpiece sorting as output, three agents and the corresponding cumulative reward functions are constructed; the three agents are respectively the high-level workpiece sorting agent, the manufacturing unit allocation agent, and the low-level workpiece sorting agent; Three agents are used to interact with the workshop until all tasks in the order are completed, and the state feature space and decision reference vector of each agent in each interaction process are saved as training data. The interaction is repeated multiple times to obtain multiple sets of training data. The multi-agent proximal strategy optimization algorithm is used to train each agent separately using multiple sets of training data to maximize the cumulative reward function, thereby obtaining the required high-level workpiece sorting agent, manufacturing unit allocation agent and low-level workpiece sorting agent; Online application stage For the orders to be processed, the three intelligent agents trained in the offline stage interact with the workshop multiple times until all tasks in the order are processed.
2. A reconfigurable workshop dynamic scheduling method based on multi-agent proximal strategy optimization algorithm and efficient action decoding as claimed in claim 1, characterized in that: The three agents interact with the workshop including the following steps: (1) When there are tasks to be processed in the task pool at the current moment, the state feature space at the current moment is collected; and the decision reference vectors of the high-level workpiece sorting agent, the manufacturing unit allocation agent, and the low-level workpiece sorting agent are calculated using the state feature space; (2) selecting a task A from the tasks in the task pool according to the decision reference vector output by the high-level workpiece sorting agent, selecting a manufacturing unit B from all candidate manufacturing units of task A according to the decision reference vector output by the manufacturing unit allocation agent, adding the selected task A to the cache area of the manufacturing unit B; and deleting the selected task A from the task pool; (3) Repeat steps (1) and (2) until the task pool is empty; (4) All tasks in the buffer areas of the idle manufacturing units at the current moment are aggregated to form a task set, and the tasks in the task set are sorted using the decision reference vector output by the underlying workpiece sorting agent to obtain the processing priority of each task in the task set; (5) processing the tasks in the task set in order according to the processing priority using the corresponding manufacturing units, so as to complete the processing of all the tasks in the task set, wherein when the equipment resources required by the manufacturing unit are insufficient, the task corresponding to the manufacturing unit is not processed; (6) Update the state feature space, task pool and manufacturing unit. When there are tasks to be processed in the task pool, return to step (1) until the processing of all tasks in the order is completed.
3. A reconfigurable workshop dynamic scheduling method based on multi-agent proximal strategy optimization algorithm and efficient action decoding as described in claim 1 or 2, characterized in that: In offline training, the input of the high-level workpiece sorting agent is order attributes, workpiece attributes, global manufacturing unit attributes and task pool attributes, and the output is the decision reference vector a HJS The input of the manufacturing unit allocation agent is the order attribute, the workpiece attribute and the local manufacturing unit attribute, and the output is the decision reference vector a MCA The input of the underlying workpiece sorting agent is the order attribute, workpiece attribute and global manufacturing unit attribute, and the output is the decision reference vector a LJS .
4. A reconfigurable workshop dynamic scheduling method based on multi-agent proximal strategy optimization algorithm and efficient action decoding as claimed in claim 3, characterized in that: In step (2), the task A is the task corresponding to the maximum priority level after calculating the priority levels of all tasks in the task pool according to the following relationship: in, It is the artifact attribute of the artifact corresponding to the task The normalized form of a HJS is the decision reference vector output by the high-level artifact sorting agent, is the priority of the task.
5. The reconfigurable workshop dynamic scheduling method based on multi-agent proximal strategy optimization algorithm and efficient action decoding as claimed in claim 3, characterized in that: In step (2), the manufacturing unit B is the manufacturing unit corresponding to the maximum priority level after the priorities of all candidate manufacturing units are calculated according to the following relationship: in, is the priority level of the manufacturing unit, a MCA is the decision reference vector output by the manufacturing unit allocation agent, is the attribute vector of the manufacturing unit.
6. A reconfigurable workshop dynamic scheduling method based on multi-agent proximal strategy optimization algorithm and efficient action decoding as claimed in claim 3, characterized in that: In step (4), the processing priority of each task is calculated according to the following relationship: in, It is the artifact attribute of the artifact corresponding to the task The normalized form of a LJS is the decision reference vector output by the underlying artifact sorting agent, is the priority of the task.
7. A reconfigurable workshop dynamic scheduling method based on multi-agent proximal strategy optimization algorithm and efficient action decoding as claimed in claim 3, characterized in that: During the offline training phase, the cumulative reward function is as follows: Among them, R represents the cumulative reward obtained by the agent in the entire scheduling process; r t Represents the reward and punishment function value obtained by the agent at time t; terminal represents the last decision point in the entire scheduling process; N O Represents the order quantity; TC l (t) represents the order O at time t l The delay cost; TC l (t+1) represents the order O at time t+1 l delay costs.
8. A reconfigurable workshop dynamic scheduling method based on multi-agent proximal strategy optimization algorithm and efficient action decoding as claimed in claim 1 or 2, characterized in that: The state feature space includes order attributes, workpiece attributes, global manufacturing unit attributes, task pool attributes and local manufacturing unit attributes, where: (1) Order attributes are the mean and standard deviation of all order progress; (2) The artifact attributes are the mean and standard deviation of the progress of all artifacts; (3) Global manufacturing unit attributes include: ① the mean and standard deviation of the utilization of all manufacturing units, ② the mean and standard deviation of the estimated completion time of all manufacturing units; (4) Task pool attributes include: ① the number of tasks in the task pool, ② the mean and standard deviation of the processing time of all tasks in the task pool, ③ the mean and standard deviation of the remaining processing time of all tasks in the task pool, and ④ the mean and standard deviation of the estimated delay cost of all tasks in the task pool. (5) Local manufacturing unit attributes include: ① the mean and standard deviation of the utilization of all candidate manufacturing units, and ② the mean and standard deviation of the estimated completion time of all candidate manufacturing units.
9. A reconfigurable workshop dynamic scheduling method based on multi-agent proximal strategy optimization algorithm and efficient action decoding as claimed in claim 1 or 2, characterized in that: When the three agents interact with the workshop, the following two disturbances are handled in the following manner: (1) When a new order is received, the first process of each workpiece in the new order is added to the task pool, thereby updating the task pool; (2) When a device fails, if the failed device is not in use, delete the device from the device pool; if the device is in use, stop the process using the device and the process assigned to the device, and put the stopped process into the task pool. After the device is repaired, add the repaired device to the device pool.
10. An end-to-end reconfigurable workshop dynamic scheduling system based on multi-agent proximal strategy optimization algorithm and efficient action decoding, characterized in that: The system includes an actuator, which executes a reconfigurable workshop dynamic scheduling method based on a multi-agent proximal strategy optimization algorithm and efficient action decoding as described in any one of claims 1-9.
Citation Information
Cited By
Workshop multi-agent deep reinforcement learning scheduling method based on real-time production condition
CN120370867A
Digital workshop supervision system and method based on artificial intelligence
CN120469363A
An artificial intelligence-based digital workshop supervision system and method
CN120469363B
Whole vehicle manufacturing coating resource scheduling method based on multi-agent deep reinforcement learning
CN120975515A
