A single machine scheduling method considering maintenance decision based on deep reinforcement learning

Optimizing single-machine scheduling and maintenance decisions through deep reinforcement learning solves the problem of machine status degradation and failure in single-machine scheduling, realizes reasonable workpiece processing and maintenance plans, and reduces costs and time increases.

CN115237076BActive Publication Date: 2024-09-03ZHEJIANG UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210898157.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-28
Publication Date
2024-09-03
Estimated Expiration
2042-07-28

AI Technical Summary

Technical Problem

The traditional single-machine scheduling method assumes that the machine is continuously available. However, in practice, the deterioration of machine status leads to extended processing time and reduced workpiece quality. Workpieces and maintenance decisions need to be reasonably arranged during the scheduling process to reduce time growth and prevent failures.

Method used

Using methods based on deep reinforcement learning, by establishing mathematical models and simulation environments, designing neural networks and reinforcement learning frameworks, optimizing workpiece processing sequences and maintenance decisions, a deep reinforcement learning training framework is formed to minimize costs.

Benefits of technology

It effectively solves the problem of machine status degradation and failure, provides reasonable scheduling results and maintenance decision-making solutions, and reduces workpiece processing time and maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115237076B
    Figure CN115237076B
Patent Text Reader

Abstract

The present invention discloses a single-machine scheduling method considering maintenance decisions based on deep reinforcement learning, including: 1) initializing and generating information of workpieces to be processed, including the number of workpieces, the waiting time for processing of each workpiece, and the delivery date; 2) establishing constraints and assumptions for the single-machine scheduling problem considering maintenance decisions, and establishing a mathematical model for the single-machine scheduling problem considering maintenance decisions; 3) establishing a scheduling simulation environment for the single-machine scheduling problem according to the mathematical model; 4) building a neural network and a reinforcement learning part to form a deep reinforcement learning training framework, and training the scheduling simulation environment through a deep reinforcement learning method to obtain scheduling results and maintenance decision-making solutions. The present invention uses a deep reinforcement learning method to learn the intelligent selection of scheduling and maintenance decision-making strategies, designs the simulation environment and state space, action space, and reward value of the problem, and the scheduling solution obtained through training is better than the traditional rule-based method, so it can be used as a reference for the actual production site.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of production and manufacturing technology, and specifically relates to a single-machine scheduling method based on deep reinforcement learning and considering maintenance decisions. Background Art

[0002] The single-machine scheduling problem is regarded as the basic problem of other complex production scheduling problems. The traditional single-machine scheduling problem assumes that the machine is continuously available during the scheduling period. However, in the actual production scheduling process, the processing loss, heat and wear caused by the continuous operation of the machine will lead to the deterioration of the machine state, which is specifically manifested in the corresponding time length of the workpiece after the machine enters the deteriorated state. In more serious cases, the workpiece processed by the machine may be of poor quality, unavailable, and the machine may stop running due to damage. In order to solve this problem, researchers have proposed maintenance decisions such as repairing, cleaning, and kit replacement of the machine to reduce the phenomenon of the machine entering the deteriorated state. In the process of single-machine scheduling, maintenance decisions will obviously take up a certain time interval, making this interval unschedulable, but maintenance decisions can restore the deteriorated state of the machine, thereby reducing the increase in scheduling time caused by the deterioration of working hours, and preventing long-term downtime caused by machine failures. Therefore, enterprises and scheduling decision makers need to consider how to reasonably arrange the scheduling and maintenance decisions of workpieces on the same machine. This problem has gradually become a research hotspot for scheduling problems.

[0003] The traditional single-machine scheduling problem considers n workpieces to be processed on a single machine. Each workpiece has a release time, a processing time, and a delivery date. The workpiece is not allowed to be processed before the release time. It is assumed that the machine can only process one workpiece at a time, and each workpiece is only processed once. Once the workpiece starts processing, it must be processed to completion and cannot be interrupted. For the single-machine problem considering the deterioration of working time and maintenance, it can be described as n workpieces Ji need to be processed on a single machine. Tm is the machine state value, which indicates the capacity of the machine processing duration. In the processing engineering, each time the machine processes a workpiece with a processing time of PTi, its remaining machine state value is the current state value minus the processing time PTi. When the remaining state value of the machine reaches the deterioration effect time point, the state of the machine deteriorates due to long-term continuous operation, which makes the subsequent workpiece processing time correspondingly longer. When the remaining state value of the machine reaches the failure time point, it is considered that the workpieces processed by the machine in this state are all unqualified, and the machine in this state may be damaged during the processing process, so it is often necessary to avoid the machine from entering the failure stage. Maintenance decisions can increase the equipment status value and restore the equipment status. Perfect maintenance can completely restore the machine status value, but it is more expensive and takes longer to maintain. Non-perfect maintenance is to perform minor repairs on the machine to restore the machine status to a new state that is better than the current state, which costs less and takes shorter maintenance time. The design idea of ​​the present invention to solve this problem is to reasonably arrange the processing sequence of the workpiece and the maintenance decision time point to minimize the objective function cost. Summary of the invention

[0004] In view of the above-mentioned technical problems existing in the prior art, the object of the present invention is to provide a single-machine scheduling method based on deep reinforcement learning and taking maintenance decisions into consideration.

[0005] To achieve the above object, the present invention adopts the following technical solutions:

[0006] The single-machine scheduling method considering maintenance decision based on deep reinforcement learning is characterized by comprising the following steps:

[0007] 1) Initialize and generate information about the workpieces to be processed, including the number of workpieces, the processing time of each workpiece, and the delivery date;

[0008] 2) Establish constraints and assumptions for the single-machine scheduling problem considering maintenance decisions, and establish a mathematical model for the single-machine scheduling problem considering maintenance decisions;

[0009] 3) Establish a scheduling simulation environment for single-machine scheduling problems based on mathematical models;

[0010] 4) Build a neural network and reinforcement learning part to form a deep reinforcement learning training framework, and use the deep reinforcement learning method to train the scheduling simulation environment to obtain scheduling results and maintenance decision-making plans.

[0011] The single-machine scheduling method considering maintenance decisions based on deep reinforcement learning is characterized in that the constraints established in step 2) for the single-machine scheduling problem considering maintenance decisions include: a) the machine can only process one workpiece at a time, and the same workpiece only needs to be processed once, and once the workpiece starts processing, it must be processed to completion and cannot be interrupted; b) the actual start processing time of the current workpiece must not be earlier than the sum of the actual completion time of the previous workpiece and the maintenance time;

[0012] In step 2), an assumption is established for the single-machine scheduling problem considering maintenance decisions. It is assumed that the machine state is a three-stage state, namely, the initial machine state value, the normal machine state value, and the degraded machine state value. The initial machine state value is the maximum value. After the machine is working, it is in a normal state. When the remaining state value of the machine reaches the deterioration effect time point, the state of the machine deteriorates due to long-term continuous operation, which makes the subsequent workpiece processing time correspondingly longer, and the machine enters a degraded state; and when the remaining state value of the machine reaches the failure time point, it is considered that the workpieces processed by the machine in this state are all unqualified, and the machine is prevented from entering a failure state during operation (see the deterioration effect diagram for solving the problem of the present invention). Figure 2 shown);

[0013] Maintenance decisions can increase the machine status value and restore the machine status. Complete maintenance decisions can restore the machine status value to the maximum value, while incomplete maintenance decisions can restore the machine status value to the normal state before the deterioration effect time point. The time and cost of complete maintenance decisions are higher than those of incomplete maintenance decisions.

[0014] It is further assumed that the machine startup and shutdown time and the workpiece disassembly and clamping time are ignored, and the workpiece has arrived in place at time 0;

[0015] In step 2), a mathematical model of a single-machine scheduling problem considering maintenance decisions is established to construct an objective function. The objective function is to minimize the total cost, including the benefit loss cost caused by workpiece delays, machine operation loss cost, and machine maintenance cost.

[0016] The single-machine scheduling method considering maintenance decisions based on deep reinforcement learning is characterized in that a mathematical model of the single-machine scheduling problem considering maintenance decisions is established, comprising the following steps:

[0017] First, describe the problem and explain the relevant mathematical symbols:

[0018] x ij : Indicates whether the i-th processing operation in the processing operation sequence is workpiece j, if so, it is 1, otherwise it is 0;

[0019] n: the number of workpieces in the entire scheduling sequence;

[0020] i: Scheduling order of processing operations;

[0021] k: indicates the subscript number of the processing operation;

[0022] Pt i : The estimated processing time of the i-th workpiece;

[0023] Pa i : The actual processing time of the i-th workpiece;

[0024] Dt i : The delivery date of the i-th workpiece;

[0025] St i : The actual start processing time of the i-th workpiece;

[0026] Ct i : The actual completion time of the i-th workpiece;

[0027] D i : The delay of the i-th workpiece;

[0028] α: penalty cost factor for delay;

[0029] β: machine running time cost factor;

[0030] TM: initial machine state value;

[0031] TP i : The remaining machine state value after processing the i-th workpiece;

[0032] TD i : The remaining machine state value after processing the i-th workpiece and considering the maintenance decision;

[0033] tm1: time taken for complete maintenance of the machine;

[0034] tm2: time spent on incomplete maintenance of the machine;

[0035] cm1: cost of fully maintaining the machine;

[0036] cm2: cost of incomplete maintenance of the machine;

[0037] m i : Indicates whether the machine is fully maintained or incompletely maintained before processing the i-th workpiece;

[0038] h1: time point of deterioration effect;

[0039] h2: failure effect time point;

[0040] σ: deterioration coefficient;

[0041] N1: number of complete repairs;

[0042] N2: number of incomplete repairs;

[0043] Second, modeling:

[0044] The objective function to minimize the total cost of the construction operation is:

[0045]

[0046] Decision Variable 1:

[0047] Decision Variable 2:

[0048] Decision variable 3: x ij =0,1,i,j=1,2,…,n.

[0049] Decision variable 1 indicates that each position in the scheduling sequence can only process one workpiece, decision variable 2 indicates that each workpiece in the workpiece set can only be assigned to one position in the scheduling sequence, and decision variable 3 indicates that x ij It can only be 0 or 1; therefore, the above three decision variables indicate that each position in the scheduling sequence can only complete one processing operation, and each processing operation can only be assigned to one position for processing;

[0050] The actual processing time of the machine is:

[0051] The actual completion time of the workpiece is: Ct i =St i +Pa i .

[0052] The delay of the workpiece is:

[0053] The remaining machine state value after the machine processes the workpiece is:

[0054] The remaining machine state value after the machine makes a maintenance decision is:

[0055] The decision whether to perform maintenance is expressed as: Among them, NO means not making a maintenance decision, PM means making a perfect maintenance decision, that is, restoring the machine state value to the initial machine state value; NPM means making an imperfect maintenance decision, that is, restoring the machine state value to the machine state value at the deterioration effect point.

[0056] The actual start time of a workpiece cannot be earlier than the sum of the actual completion time of the previous workpiece and the maintenance time, which is expressed as:

[0057] The single-machine scheduling method considering maintenance decisions based on deep reinforcement learning is characterized in that the neural network adopts a fully connected layer, the number of input layers is the feature dimension of the state space, the hidden layer is 2x50, the output layer is the state dimension of the action space, and the activation function is the relu function; the reinforcement learning part constructs its state space, action space and reward value according to the simulation environment, the reward value is the objective function that minimizes the total cost, the deep reinforcement learning algorithm adopts the DQN algorithm, and the neural network is used to fit the output Q value.

[0058] The single-machine scheduling method based on deep reinforcement learning and considering maintenance decision-making is characterized in that the construction of the state space needs to fully reflect the state characteristics of the simulation environment, so a three-dimensional array is designed as the state space of the problem simulation environment, which are: the completion time of the workpiece at the current time step, the remaining state value of the machine at the current time step, and the number of workpieces in the machine buffer. Among them, the machine buffer is a queue of workpieces waiting to be processed by the machine.

[0059] The single-machine scheduling method based on deep reinforcement learning and considering maintenance decisions is characterized in that scheduling rules and maintenance decisions are used as action spaces, and four scheduling rules and two maintenance decisions are adopted, which are as follows:

[0060] Scheduling rule 1: Minimize the delivery time and select the workpiece with the earliest delivery time in the machine buffer for processing;

[0061] Scheduling rule 2: First-come, first-served principle, select the workpiece to be processed that enters the machine buffer earliest for processing;

[0062] Scheduling rule 3: Minimize the processing time and select the workpiece with the shortest processing time in the machine buffer for processing;

[0063] Scheduling rule 4: Maximize the processing time and select the workpiece with the longest processing time in the machine buffer for processing;

[0064] Maintenance decision 1: Full maintenance decision, restore the machine state value to the initial machine state value;

[0065] Maintenance decision 2: Incomplete maintenance, repair the machine status value to the normal state before the deterioration effect point.

[0066] In the present invention, the simulation environment is trained through a deep reinforcement learning framework, and the training process is as follows:

[0067] Determine a certain number of training rounds. In each round, the state feature value of the simulation environment is input into the neural network, and the corresponding action Q value is output through the fully connected neural network. According to the exploration and utilization mechanism, the corresponding action in the action space is selected. After executing the scheduling rule action or the maintenance decision action, the simulation environment is updated, and the new state feature is updated at the same time. The new state feature value continues to be input into the neural network, and this cycle is repeated until all workpieces are processed. In each round of training, a part of the data will be stored in the experience replay pool. In the subsequent rounds of training, the experience data in the experience replay pool will be randomly used, which will help optimize the training until the final training round is reached and the training is completed. It is worth noting that the training results obtained in the final round are not necessarily the best. Due to the mechanism of exploration and utilization of deep reinforcement learning, the results obtained each time may be different, which may be better or worse. Therefore, the best result in the entire training process can be saved as the scheduling result and decision plan.

[0068] The beneficial effects of the present invention are as follows: the present invention proposes a single-machine scheduling model and algorithm based on deep reinforcement learning that takes maintenance decisions into consideration, taking into account the real situation that machines are not continuously available in actual production. In order to fit the actual production site, a single-machine scheduling problem with maintenance constraints and its constraints are established, and its simulation environment is designed. By using the method of deep reinforcement learning, the state space, action space and reward value of the objective function are designed. The proposed method can effectively solve the single-machine scheduling problem taking maintenance decisions into consideration, and give reasonable and optimal scheduling results and maintenance decision-making plans, which have a guiding reference role for similar actual production sites. BRIEF DESCRIPTION OF THE DRAWINGS

[0069] Figure 1 It is the technical roadmap of the present invention.

[0070] Figure 2 This is a diagram of the deterioration effect of the problem solved by the present invention.

[0071] Figure 3 Gantt chart for this example. DETAILED DESCRIPTION

[0072] In order to facilitate understanding by those skilled in the art, the present invention is further described below with reference to examples and drawings. The contents mentioned in the implementation modes are not intended to limit the present invention.

[0073] Before further introducing the specific implementation plan, the problem is described and the relevant mathematical symbols are explained:

[0074] x ij : Indicates whether the i-th processing operation in the processing operation sequence is workpiece j, if so, it is 1, otherwise it is 0.

[0075] n: The number of workpieces in the entire scheduling sequence.

[0076] i: Scheduling order of processing operations.

[0077] j: Indicates the subscript number of the processing operation.

[0078] Pt i : The estimated processing time of the i-th workpiece.

[0079] Pa i : The actual processing time of the i-th workpiece.

[0080] Dt i : The delivery time of the i-th workpiece.

[0081] St i : The actual start processing time of the i-th workpiece.

[0082] Ct i : The actual completion time of the i-th workpiece.

[0083] D i : The delay of the i-th job.

[0084] α: penalty cost factor for delay.

[0085] β: Machine running time cost factor.

[0086] TM: Initial machine state value.

[0087] TP i : The remaining machine state value after processing the i-th workpiece.

[0088] TD i : The remaining machine state value after processing the i-th workpiece and considering the maintenance decision.

[0089] tm1: Time taken to fully maintain the machine.

[0090] tm2: Time spent on incomplete maintenance of the machine.

[0091] cm1: Cost of fully maintaining the machine.

[0092] cm2: Cost of incomplete maintenance of the machine.

[0093] m i : Indicates whether the machine is fully maintained or incompletely maintained before processing the i-th workpiece.

[0094] h1: time point of deterioration effect.

[0095] h2: Failure effect time point.

[0096] σ: deterioration coefficient.

[0097] N1: Number of complete repairs.

[0098] N2: Number of incomplete repairs.

[0099] A single-machine scheduling model and method based on deep reinforcement learning considering maintenance decisions. The modeling process is as follows:

[0100] The objective function is:

[0101] Decision Variable 1:

[0102] Decision Variable 2:

[0103] Decision variable 3: x ij =0,1,i,j=1,2,…,n.

[0104] The above three decision variables indicate that each position in the scheduling sequence can only complete one processing operation, and each processing operation can only be assigned to one position for processing.

[0105] The actual processing time of the machine is:

[0106] The actual completion time of the workpiece is: Ct i =St i +Pa i .

[0107] The delay of the workpiece is:

[0108] The remaining machine state value after the machine processes the workpiece is:

[0109] The remaining machine state value after the machine makes a maintenance decision is:

[0110] The decision whether to perform maintenance is expressed as: Among them, NO means not making a maintenance decision, PM means making a perfect maintenance decision, that is, restoring the machine state value to the initial machine state value; NPM means making an imperfect maintenance decision, that is, restoring the machine state value to the machine state value at the deterioration effect point.

[0111] The actual start time of a workpiece cannot be earlier than the sum of the actual completion time of the previous workpiece and the maintenance time, which is expressed as:

[0112] Initialize and generate information of workpiece to be processed.

[0113] A simulation environment for single-machine scheduling problems taking maintenance decisions into consideration is built through the established mathematical model.

[0114] A framework for solving the single-machine scheduling problem with maintenance decisions is built using deep reinforcement learning. The state space is designed as a three-dimensional array: [the completion time of the workpiece at the current time step, the remaining state value of the machine at the current time step, and the number of workpieces in the machine buffer]. The machine buffer is a queue of workpieces waiting to be processed by the machine. The action space is designed as four scheduling rules and two maintenance decision actions.

[0115] Scheduling rule 1: Minimize the delivery time and select the workpiece with the earliest delivery time in the machine buffer for processing.

[0116] Scheduling rule 2: First-come, first-served principle, select the workpiece that enters the machine buffer earliest for processing.

[0117] Scheduling rule 3: Minimize the processing time and select the workpiece with the shortest processing time in the machine buffer for processing.

[0118] Scheduling rule 4: Maximize the processing time and select the workpiece with the longest processing time in the machine buffer for processing.

[0119] Maintenance decision 1: Full maintenance decision, restoring the machine state value to the initial machine state value.

[0120] Maintenance decision 2: Incomplete maintenance, repairing the machine status value to the point of deterioration effect.

[0121] Confirm deep reinforcement learning hyperparameters and train the simulation environment.

[0122] After the training is completed, the corresponding scheduling results and decision-making plans are obtained.

[0123] Embodiment 1:

[0124] This embodiment 1 is used as an example to verify the scientificity and effectiveness of the above-mentioned single-machine scheduling model and method based on deep reinforcement learning considering maintenance decisions.

[0125] refer to Figure 1 As shown, a workshop intelligent distributor model based on Internet of Things technology and its solution algorithm of the present invention include the following steps:

[0126] Step 1: First, initialize and generate the workpiece information of 20 workpieces, where the processing time of the workpiece follows the uniform distribution of [1,5], and its delivery date is the processing time multiplied by a random number of [5,10]. The workpiece information is shown in Table 1 below:

[0127] Table 1

[0128] Workpiece Processing time Delivery 1 1 6 2 2 16 3 5 25 4 4 36 5 4 24 6 4 40 7 3 24 8 2 16 9 2 18 10 2 12 11 5 30 12 2 10 13 2 18 14 1 6 15 4 40 16 1 9 17 1 7 18 5 35 19 3 21 20 4 28

[0129] Step 2: Establish a simulation scheduling environment that takes maintenance decisions into consideration, where the machine state value TM involved is 50, the penalty cost factor α for delay is 1, the machine running time cost factor β is 1.5, and the deterioration coefficient σ is 0.05.

[0130] Step 3: Build a deep neural network framework, in which the neural network uses a fully connected layer, a 3-layer input layer, a 2x50 hidden layer, and a 6-layer output layer.

[0131] Step 4: Design the state space as: [workpiece completion time at the current time step, remaining state value of the machine at the current time step, number of workpieces in the machine buffer].

[0132] Step 5: Design the action space as follows: four scheduling rules and two maintenance decision actions.

[0133] Scheduling rule 1: Minimize the delivery time and select the workpiece with the earliest delivery time in the machine buffer for processing.

[0134] Scheduling rule 2: First-come, first-served principle, select the workpiece that enters the machine buffer earliest for processing.

[0135] Scheduling rule 3: Minimize the processing time and select the workpiece with the shortest processing time in the machine buffer for processing.

[0136] Scheduling rule 4: Maximize the processing time and select the workpiece with the longest processing time in the machine buffer for processing.

[0137] Maintenance decision 1: Full maintenance decision, restoring the machine state value to the initial machine state value.

[0138] Maintenance decision 2: Incomplete maintenance, repairing the machine status value to the point of deterioration effect.

[0139] Step 6: Determine deep reinforcement learning hyperparameters:

[0140] Training epochs: 2000.

[0141] Number of batches: 32.

[0142] Learning frequency: 4.

[0143] Experience replay pool capacity: 10,000.

[0144] Number of playback starts: 100.

[0145] Number of synchronization parameters: 16.

[0146] Learning rate: 0.01.

[0147] Return decay rate: 0.95.

[0148] Exploration and Exploitation Probability: 0.01

[0149] Exploration decay rate: 1e-6.

[0150] Step 7: Use deep reinforcement learning to train the problem simulation environment and get the following Figure 3 The Gantt chart scheduling decision plan shown.

[0151] The present invention is specifically applied in the field of production scheduling in manufacturing production. The above is only a preferred implementation mode of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements can be made without departing from the principle of the present invention. These improvements should also be regarded as the protection scope of the present invention.

Claims

1. A single machine scheduling method considering maintenance decision based on deep reinforcement learning, characterized in that: The steps include: 1) Initialize and generate information about the workpieces to be processed, including the number of workpieces, the processing time of each workpiece, and the delivery date; 2) Establish constraints and assumptions for the single-machine scheduling problem considering maintenance decisions, and establish a mathematical model for the single-machine scheduling problem considering maintenance decisions; 3) Establish a scheduling simulation environment for single-machine scheduling problems based on mathematical models; 4) Build a neural network and reinforcement learning part to form a deep reinforcement learning training framework, and use the deep reinforcement learning method to train the scheduling simulation environment to obtain scheduling results and maintenance decision-making plans; In step 2), the constraints for the single-machine scheduling problem considering maintenance decisions are as follows: a) the machine can only process one workpiece at a time, and the same workpiece only needs to be processed once. Once the workpiece starts processing, it must be processed to completion without interruption; b) the actual start time of the current workpiece must not be earlier than the sum of the actual completion time of the previous workpiece and the maintenance time; In step 2), an assumption is established for the single-machine scheduling problem considering maintenance decisions. It is assumed that the machine state is a three-stage state, namely, the initial machine state value, the normal machine state value, and the degraded machine state value. The initial machine state value is the maximum value. After the machine is working, it is in a normal state. When the remaining state value of the machine reaches the deterioration effect time point, the state of the machine deteriorates due to long-term continuous operation, which makes the subsequent workpiece processing time correspondingly longer, and the machine enters a degraded state; and when the remaining state value of the machine reaches the failure time point, it is considered that the workpieces processed by the machine in this state are all unqualified, and the machine is prevented from entering a failure state during operation; Maintenance decisions can increase the machine status value and restore the machine status. Complete maintenance decisions can restore the machine status value to the maximum value, while incomplete maintenance decisions can restore the machine status value to the normal state before the deterioration effect time point. The time and cost of complete maintenance decisions are higher than those of incomplete maintenance decisions. It is further assumed that the machine startup and shutdown time and the workpiece disassembly and clamping time are ignored, and the workpiece has arrived in place at time 0; In step 2), a mathematical model of a single machine scheduling problem considering maintenance decision is established to construct an objective function, and the objective function is to minimize the total cost, including the benefit loss cost caused by the delay of the workpiece, the machine operation loss cost and the machine maintenance cost; The mathematical model of the single machine scheduling problem considering maintenance decision is established, which includes the following steps: First, describe the problem and explain the relevant mathematical symbols: x ij : Indicates whether the i-th processing operation in the processing operation sequence is workpiece j, if so, it is 1, otherwise it is 0; n: the number of workpieces in the entire scheduling sequence; i: Scheduling order of processing operations; j: indicates the subscript number of the processing operation; Pt i : The estimated processing time of the i-th workpiece; Pa i : The actual processing time of the i-th workpiece; Dt i : The delivery date of the i-th workpiece; St i : The actual start processing time of the i-th workpiece; Ct i : The actual completion time of the i-th workpiece; D i : The delay of the i-th workpiece; α: penalty cost factor for delay; β: machine running time cost factor; TM: initial machine state value; TP i : The remaining machine state value after processing the i-th workpiece; TD i : The remaining machine state value after processing the i-th workpiece and considering the maintenance decision; tm1: time taken for complete maintenance of the machine; tm2: time spent on incomplete maintenance of the machine; cm1: cost of fully maintaining the machine; cm2: cost of incomplete maintenance of the machine; m i : Indicates whether the machine is fully maintained or incompletely maintained before processing the i-th workpiece; h1: time point of deterioration effect; h2: failure effect time point; σ: deterioration coefficient; N1: number of complete repairs; N2: number of incomplete repairs; Second, modeling: The objective function to minimize the total cost of the construction operation is: Decision Variable 1: Decision Variable 2: Decision variable 3: x ij =0,1,i,j=1,2,…,n Decision variable 1 indicates that each position in the scheduling sequence can only process one workpiece, decision variable 2 indicates that each workpiece in the workpiece set can only be assigned to one position in the scheduling sequence, and decision variable 3 indicates that x ij It can only be 0 or 1; therefore, the above three decision variables together indicate that each position in the scheduling sequence can only complete one processing operation, and each processing operation can only be assigned to one position for processing; The actual processing time of the machine is: The actual completion time of the workpiece is: Ct i =St i +Pa i The delay of the workpiece is: The remaining machine state value after the machine processes the workpiece is: The remaining machine state value after the machine makes a maintenance decision is: The decision whether to perform maintenance is expressed as: Among them, NO means no maintenance decision is made, PM means a perfect maintenance decision is made, that is, the machine state value is restored to the initial machine state value; NPM means an imperfect maintenance decision is made, that is, the machine state value is restored to the machine state value at the deterioration effect point; The actual start time of a workpiece cannot be earlier than the sum of the actual completion time of the previous workpiece and the maintenance time, which is expressed as:

2. According to claim 1, a single machine scheduling method considering maintenance decision based on deep reinforcement learning is characterized in that: The neural network uses a fully connected layer and the activation function is the relu function. The reinforcement learning part constructs its state space, action space and reward value according to the simulation environment. The reward value is the objective function that minimizes the total cost. The deep reinforcement learning algorithm uses the DQN algorithm, and the neural network is used to fit the output Q value.

3. A single machine scheduling method considering maintenance decision based on deep reinforcement learning according to claim 2, characterized in that: The construction of the state space needs to fully reflect the state characteristics of the simulation environment, so a three-dimensional array is designed as the state space of the problem simulation environment, which are: the completion time of the workpiece at the current time step, the remaining state value of the machine at the current time step, and the number of workpieces in the machine buffer; The machine buffer is a queue where workpieces waiting to be processed by the machine are queued.

4. A single machine scheduling method considering maintenance decision based on deep reinforcement learning according to claim 2, characterized in that: Taking the dispatching rules and maintenance decisions as the action space, four dispatching rules and two maintenance decisions are adopted, which are as follows: Scheduling rule 1: Minimize the delivery time and select the workpiece with the earliest delivery time in the machine buffer for processing; Scheduling rule 2: First-come, first-served principle, select the workpiece to be processed that enters the machine buffer earliest for processing; Scheduling rule 3: Minimize the processing time and select the workpiece with the shortest processing time in the machine buffer for processing; Scheduling rule 4: Maximize the processing time and select the workpiece with the longest processing time in the machine buffer for processing; Maintenance decision 1: Full maintenance decision, restore the machine state value to the initial machine state value; Maintenance decision 2: Incomplete maintenance, repairing the machine status value to the normal state before the deterioration effect point.