A workshop scheduling method and device considering worker skill level and fatigue level
By constructing a workshop scheduling model that considers workers' skill levels and fatigue levels, production scheduling is optimized, which solves the problems of limited production resources and increased carbon emissions, and improves production efficiency and sustainability.
Patent Information
- Application Number
- CN202410584458.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-11
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-05-11
AI Technical Summary
Manufacturing companies face the problems of limited production resources, low production efficiency, and increased carbon emissions in complex production environments. In particular, it is difficult to effectively consider worker skill levels and fatigue levels, resulting in unreasonable workshop scheduling.
By building a workshop scheduling model that takes into account worker skill levels and fatigue levels, scheduling algorithms and search strategies are used to optimize production scheduling, and reasonably arrange the combination of workpieces, machines, and workers to reduce carbon emissions and improve production efficiency.
It realizes the reasonable arrangement of workshop production resources, optimizes production processes, improves production efficiency, reduces carbon emissions, and promotes the sustainable development of enterprises.
Smart Images

Figure CN118171892B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of workshop scheduling, and in particular to a workshop scheduling method and device that takes into account the skill level and fatigue level of workers. Background Art
[0002] With the diversification and personalization of market demand, manufacturing companies are facing the challenge of more complex production processes. In the workshop, production resources such as equipment, manpower and raw materials are limited, which leads to tight production plans and increased downtime and waiting time in the production process. This situation may lead to a decrease in production efficiency and the emergence of problems. Therefore, manufacturing companies need to reasonably arrange limited production resources and improve production efficiency through workshop scheduling. Summary of the invention
[0003] In view of this, the present application provides a workshop scheduling method and device that takes into account the skill level and fatigue level of workers, so as to reasonably arrange limited production resources through workshop scheduling to improve production efficiency.
[0004] Specifically, the present application is implemented through the following technical solutions:
[0005] The first aspect of the present application provides a workshop scheduling method that takes into account the skill level and fatigue level of workers, the workshop scheduling method comprising:
[0006] Constructing a workshop scheduling model, and constructing a production scheduling example based on the workshop scheduling model according to the production order data, worker data and workshop equipment data; wherein the workshop scheduling model is a workshop scheduling model that takes into account the skill level and fatigue degree of the workers;
[0007] Solving the production scheduling example using a scheduling algorithm to obtain a scheduling solution for the production scheduling example;
[0008] The production scheduling example is solved by using a scheduling algorithm, including:
[0009] For each scheduling operation, based on the production scheduling example and the scheduling Gantt chart at the current moment, determine the state parameters of the workshop at the current moment;
[0010] Determine the search strategy used in this scheduling operation;
[0011] When the search strategy is random search, a scheduling rule is randomly selected from a plurality of preset scheduling rules as the current scheduling rule; when the search strategy is network prediction, the current state parameter of the workshop is input into the scheduling network, so that the scheduling network determines the reward value of each scheduling rule in the plurality of scheduling rules corresponding to the state parameter, and the scheduling rule with the largest reward value is used as the current scheduling rule;
[0012] Determine the scheduling group corresponding to the scheduling operation in this step according to the current scheduling rule; wherein the scheduling group is a combination of workpieces, machines and workers;
[0013] The scheduling group is decoded into a scheduling Gantt chart using a greedy decoding method.
[0014] A second aspect of the present application provides a workshop scheduling device that takes into account the skill level and fatigue level of workers, the device comprising a building module and a solving module; wherein:
[0015] The construction module is used to construct a workshop scheduling model, and to construct a production scheduling example based on the workshop scheduling model according to the production order data, the worker data and the workshop equipment data; wherein the workshop scheduling model is a workshop scheduling model that takes into account the skill level and fatigue degree of the workers;
[0016] The solving module is used to solve the production scheduling example by using a scheduling algorithm to obtain a scheduling solution for the production scheduling example;
[0017] The production scheduling example is solved by using a scheduling algorithm, including:
[0018] For each scheduling operation, based on the production scheduling example and the scheduling Gantt chart at the current moment, determine the state parameters of the workshop at the current moment;
[0019] Determine the search strategy used in this scheduling operation;
[0020] When the search strategy is random search, a scheduling rule is randomly selected from a plurality of preset scheduling rules as the current scheduling rule; when the search strategy is network prediction, the current state parameter of the workshop is input into the scheduling network, so that the scheduling network determines the reward value of each scheduling rule in the plurality of scheduling rules corresponding to the state parameter, and the scheduling rule with the largest reward value is used as the current scheduling rule;
[0021] Determine the scheduling group corresponding to the scheduling operation in this step according to the current scheduling rule; wherein the scheduling group is a combination of workpieces, machines and workers;
[0022] The scheduling group is decoded into a scheduling Gantt chart using a greedy decoding method.
[0023] The third aspect of the present application provides a workshop scheduling device that takes into account the skill level and fatigue level of workers, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any one of the methods provided in the first aspect of the present application are implemented.
[0024] The fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any one of the methods provided in the first aspect of the present application.
[0025] The present application provides a workshop scheduling method and device that takes into account the skill level and fatigue level of workers. On the one hand, by constructing a workshop scheduling model and a production scheduling example, and solving the production scheduling example through the workshop scheduling model, workshop scheduling is realized, which can reasonably arrange effective production resources, optimize the production process, and improve the production efficiency of the workshop; on the other hand, when constructing the workshop scheduling model, the worker's skill level, fatigue level and system carbon emissions are taken into account. While maintaining the fairness of workers' production, the reduction of carbon emissions generated by production is considered, which can help manufacturing companies establish a more scientific and sustainable workshop scheduling model, improve production efficiency, and reduce carbon emissions, which is of great significance to the sustainable development of the company; on the third hand, by adopting different search strategies to solve the production scheduling example, the generalization of the scheduling solution is improved, the production efficiency of the workshop is improved, and real-time scheduling solution is realized, which greatly improves the solution speed of the scheduling solution and improves the scheduling speed. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 A flowchart of Embodiment 1 of a workshop scheduling method considering worker skill levels and fatigue levels provided in this application;
[0027] Figure 2 A schematic diagram of a workshop scheduling model shown as an exemplary embodiment of the present application;
[0028] Figure 3 A flowchart of solving a production scheduling example based on a scheduling algorithm is shown as an exemplary embodiment of the present application;
[0029] Figure 4 A schematic diagram of a scheduling Gantt chart shown as an exemplary embodiment of the present application;
[0030] Figure 5 This is a flow chart of Embodiment 2 of a workshop scheduling method considering worker skill levels and fatigue levels, shown as an exemplary embodiment of the present application;
[0031] Figure 6 This is a schematic diagram of the implementation principle of greedy decoding shown in an exemplary embodiment of the present application;
[0032] Figure 7 A flowchart of Embodiment 3 of a workshop scheduling method considering worker skill levels and fatigue levels provided in this application;
[0033] Figure 8 This is a schematic diagram of an implementation principle of a training scheduling network shown in an exemplary embodiment of the present application;
[0034] Fig. 9 A hardware structure diagram of a workshop scheduling device that takes into account the skill level and fatigue level of workers provided by this application;
[0035] Fig.10 A structural schematic diagram of embodiment 1 of a workshop scheduling device that takes into account workers' skill levels and fatigue levels provided in this application. DETAILED DESCRIPTION
[0036] Here, exemplary embodiments are described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application.
[0037] The terms used in this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in this article refers to and includes any or all possible combinations of one or more associated listed items.
[0038] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0039] Specific embodiments are given below to introduce the technical solution of the present application in detail.
[0040] Figure 1 This is a flowchart of the first embodiment of the workshop scheduling method considering the worker's skill level and fatigue level provided by this application. Figure 1 The workshop scheduling method provided in this embodiment may include:
[0041] S101. Construct a workshop scheduling model, and construct a production scheduling example based on the workshop scheduling model according to production order data, worker data and workshop equipment data; wherein the workshop scheduling model is a workshop scheduling model that takes into account the skill level and fatigue level of the workers.
[0042] Specifically, the workshop scheduling model is used to construct a production scheduling example based on the workshop data (the workshop includes production order data, worker data and workshop equipment data), which takes into account the workers' skill level and fatigue level.
[0043] It should be noted that the workshop scheduling model is constructed according to actual needs. Figure 2 This is a schematic diagram of a workshop scheduling model shown in an exemplary embodiment of the present application. Figure 2 In this embodiment, the workshop machine processing production scenario is taken as an example. The constructed workshop scheduling model can be described as follows: In the production system, there are Workpiece Task Set ,Depend on A collection of workers Including Machine set Each workpiece In fixed order Process , process Representation of workpiece No. The whole process can be completed in the machine Each worker selects machines from a specific subset of Have a specific skill set , worker skills refer to the worker's ability to operate a specific machine, and each worker has a corresponding set of skill levels. When the equipment type is automated processing equipment, the skill level is quantified as workers Operating the machine The initial operation time of the equipment is the time required for human-machine collaborative processing. When the equipment is human-machine collaborative processing equipment, the skill level is quantified as the worker First time operating the machine The proportion of processing procedures exceeding the standard working time; in each step of processing assignment, only when the workpiece ,machine and workers In other words, the workshop scheduling model can be decomposed into three sub-problems: (1) workpiece selection: determine the processing order of workpieces in each batch of processing tasks; (2) machine allocation: determine the machine allocation for each workpiece to perform each step; (3) worker dispatching: determine the operator who processes each step on the machine.
[0044] Furthermore, the objective function of the workshop scheduling model includes a first objective function for minimizing the total production time, a second objective function for minimizing the system carbon emissions, and a third objective function for minimizing the standard deviation of worker fatigue; wherein,
[0045] The first objective function is:
[0046] ,
[0047] Among them, the is the total production time; For workpiece No. The total processing time of a process; Skill level of workers in operating machines; is the incompressibility coefficient; For workers Operating the machine the number of times; For workers The learning rate of For workpiece No. The process in the machine The basic processing time on is the machine type;
[0048] The second objective function is:
[0049] ,
[0050] Among them, the is the system carbon emissions; The total carbon emissions from auxiliary processing equipment loss; is the total carbon emissions generated by the use of processing consumables; Total carbon emissions from equipment operation to complete manufacturing tasks for the manufacturing system; The overall carbon emissions from transportation during the processing is the total carbon emissions of public equipment in the workshop;
[0051] The third objective function is:
[0052] ,
[0053] Among them, the is the standard deviation of worker fatigue; For workers exist The accumulated fatigue value at the moment; is the number of workers in the production system; is the decision variable of the worker's working status; is the workload factor defined according to the type of machine the worker operates; For workers exist The accumulated fatigue value at the moment; is the fatigue accumulation rate determined by the worker's individual physical fitness; is the fatigue recovery rate determined by the worker's individual physical fitness;
[0054] The constraints of the shop scheduling model are:
[0055] ,
[0056] Among them, the Indicates the number of machines; Indicates the serial number of the machine; Representation of workpiece Process Is it in the machine processing Representation of workpiece Process Whether by workers processing; Indicates the number of workers; Indicates the worker's serial number; Indicates workers Do you master the machine? Method of use; , Indicates the sequence number of the process; Representation of workpiece No. The start time of the first process; Representation of workpiece No. The end processing time of a process.
[0057] In other words, the constraints of the workshop scheduling model are: to ensure that there is only one machine processing each process of each workpiece; to ensure that there is only one worker processing each process of each workpiece; to ensure that at least one worker can use each machine; to ensure that workers can only operate the machines they know how to operate for processing; to ensure the front and back constraints between processes of each workpiece, that is, the start time of the subsequent process cannot be earlier than the end time of the previous process.
[0058] Furthermore, the production order data includes the workpiece name, number of processes, process set, process optional machine set, process optional machine basic processing time, workpiece material, workpiece quality, workpiece yield rate, and material utilization rate. The worker data includes the worker name, worker skill set, worker first operation time, learning rate, fatigue accumulation rate, and fatigue recovery rate. The workshop equipment data includes the machine name, human-machine interaction type, no-load power, load power, auxiliary processing equipment set, processing equipment life, consumables set, consumables per unit time, and machine location.
[0059] In specific implementation, the production order data, worker data and workshop equipment data obtained by real-time calculation are input into the constructed workshop scheduling model to obtain a production scheduling example.
[0060] S102: Solve the production scheduling example using a scheduling algorithm to obtain a scheduling solution for the production scheduling example.
[0061] Specifically, the scheduling algorithm is used to solve the production scheduling example, and the scheduling group of the workshop (scheduling combination of workpieces, machines and workers) is controlled based on the obtained scheduling solution. Figure 3 This is a flowchart of solving a production scheduling example based on a scheduling algorithm, which is shown as an exemplary embodiment of the present application. Figure 3 The process of solving the production scheduling example by using the scheduling algorithm may include:
[0062] S301. For each scheduling operation, based on the production scheduling example and the scheduling Gantt chart at the current moment, determine the state parameters of the workshop at the current moment.
[0063] Specifically, the scheduling Gantt chart is used to visualize the progress and timing of workshop scheduling. Figure 4 This is a schematic diagram of a scheduling Gantt chart shown as an exemplary embodiment of the present application.
[0064] Furthermore, the state parameters characterize the state of the workshop (the state of workpieces, machines and workers), which include the average workpiece completion rate, the standard deviation of the workpiece completion rate, the expected completion time, the expected total emissions of the system, the standard deviation of emissions, the average machine effective work emission rate, the standard deviation of the machine effective work emission rate, the average worker fatigue, and the standard deviation of worker fatigue.
[0065] It should be noted that the state parameter can be a normalized state parameter. It is understandable that each state parameter includes a corresponding influencing factor. Among them, the influencing factor of the expected completion time is the average of the sum of the maximum processing time and the minimum processing time of all processes, the influencing factor of the system's expected total emissions is the number of machines, the average processing emissions of the machines, the average no-load emissions of the machines, the average of the sum of the maximum processing time and the minimum processing time of all processes, the influencing factor of the emission standard deviation is the total system emissions under the current state, the influencing factor of the average fatigue of the workers is the average of the sum of the maximum processing time and the minimum processing time of all processes, and the influencing factor of the standard deviation of worker fatigue is the average fatigue of the workers.
[0066] The normalized state parameters can be expressed as:
[0067] ,
[0068] Among them, the is the normalized state parameter; is the state parameter before normalization; It is the product of the influence factors corresponding to all state parameters.
[0069] In the specific implementation, for each step of scheduling operation, various state parameters are determined based on the production scheduling example and the scheduling Gantt chart.
[0070] S302: Determine the search strategy used in this scheduling operation.
[0071] Specifically, the search strategy includes random search and network prediction. The specific implementation methods and implementation processes of random search and network prediction will be described below and will not be repeated here.
[0072] In specific implementation, it can be achieved through The strategy determines the search strategy used in this step of scheduling operation. , determine the random number With the current relationship, if Greater than , then determine to use random search; if Less than , then it is determined to use network prediction. It should be noted that It is set according to actual needs. In this embodiment, For example, in one embodiment, The initial value of is 0.80, and As the number of iterations is updated, each iteration, The value of is decreased by 0.001.
[0073] S303. When the search strategy is random search, randomly select a scheduling rule from multiple preset scheduling rules as the current scheduling rule; when the search strategy is network prediction, input the current state parameters of the workshop into the scheduling network, so that the scheduling network determines the reward value of each scheduling rule in the multiple scheduling rules corresponding to the state parameters, and selects the scheduling rule with the largest reward value as the current scheduling rule.
[0074] Specifically, the preset multiple scheduling rules are set according to actual needs, and this embodiment is not limited to this. For example, in one embodiment, the preset multiple scheduling rules include: 1. {FIFO}, 2. {FOFI}, 3. {LPT}, 4. {SPT}, 5. {MCO}, 6. {LTH}, 7. {LCR, LCE, LTW}, 8. {LCR, LCE, SOT}, 9. {LCR, SMT, LTW}, 10. {LCR, SMT, SOT}, 11. {HCR, LCE, LTW}, 12. {HCR, LCE, SOT}, 14. {HCR, SMT, LTW}, 14. {HCR, SMT, SOT};
[0075] Wherein, the FIFO means selecting the workpiece-machine-worker scheduling group that can be processed earliest;
[0076] The FOFI means selecting the workpiece-machine-worker scheduling group that can complete the processing earliest;
[0077] The LPT represents selecting the workpiece-machine-worker scheduling group with the longest processing time;
[0078] The SPT represents selecting the workpiece-machine-worker scheduling group with the shortest processing time;
[0079] The MCO represents the selection of the workpiece-machine-worker scheduling group that increases the least emissions;
[0080] The LTH represents selecting a workpiece-machine-worker scheduling group that allows the least fatigued worker to accumulate the most fatigue;
[0081] The LCR indicates selecting the workpiece with the smallest completion rate;
[0082] The HCR represents selecting the workpiece with the largest completion rate;
[0083] The LCE means selecting the machine with the smallest carbon emission;
[0084] The SMT means selecting the machine with the shortest processing time;
[0085] The LTW means selecting the worker with the least current fatigue;
[0086] The SOT means selecting a worker with the shortest operation time.
[0087] Among them, FIFO, FOFI, LPT, SPT, MCO and LTH are composite heuristic rules, LCR and HCR are job scheduling rules, LCE and SMT are machine scheduling rules, and LTW and SOT are worker scheduling rules.
[0088] Optionally, in a possible implementation, the scheduling network is used to determine the current scheduling rules corresponding to the state parameters of the workshop at the current moment, which includes a first model TDQN (Temporal Difference Deep Q-Network) and a second model ADQN (Advantage Deep Q-Network). The first model inputs the state parameters and outputs the current decision tendency under the state parameters. The second model inputs the state parameters and the current decision tendency, and outputs the current scheduling rules.
[0089] When implementing it specifically, Figure 5 This is a flowchart of Embodiment 2 of a workshop scheduling method considering worker skill level and fatigue level, shown as an exemplary embodiment of the present application. The method provided in this embodiment, based on the above embodiment, when the scheduling network includes a first model and a second model, the scheduling network determines the reward value of each scheduling rule in the multiple scheduling rules corresponding to the state parameter, and takes the scheduling rule with the largest reward value as the current scheduling rule, including:
[0090] S501. The first model determines that the state parameter corresponds to reward values of multiple preset decision tendencies, and determines the decision tendency with the largest reward value as the current decision tendency.
[0091] Specifically, multiple preset decision tendencies represent the current optimization target of the workshop scheduling model, which is set according to actual needs and is not limited in this embodiment. For example, in one embodiment, the decision tendency includes three values, namely 0, 1 and 2. Among them, a decision tendency of 0 represents that the workshop scheduling model tends to optimize the total production time, a decision tendency of 1 represents that the workshop scheduling model tends to optimize the system carbon emissions, and a decision tendency of 2 represents that the workshop scheduling model tends to optimize the standard deviation of worker fatigue.
[0092] Furthermore, the reward value of the decision tendency represents the quality of the decision tendency. The higher the reward value, the greater the possibility that the decision tendency is determined as the current decision tendency.
[0093] In specific implementation, by inputting the state parameter into the first model, a reward value of the state parameter in a plurality of preset decision tendencies can be obtained, and further, the decision tendency with the largest reward value is determined as the current decision tendency.
[0094] For example, in one embodiment, the state parameters input into the first model are [0.13, 0.21, 0.15, 0.22, 0.31, 0.45, 0.13, 0.61, 0.36], and the determined current decision tendency is 0.
[0095] S502. The second model determines the reward value of each dispatch rule among the multiple dispatch rules corresponding to the state parameter based on the state parameter and the current decision tendency, and takes the dispatch rule with the largest reward value as the current dispatch rule.
[0096] Specifically, the reward value of each dispatch rule represents the quality of the dispatch rule. The higher the reward value, the greater the possibility that the dispatch rule is determined as the current dispatch rule. The current dispatch rule is used to indicate the dispatch group corresponding to the current dispatch operation according to the dispatch rule.
[0097] In specific implementation, the state parameters and the current decision tendency are input into the second model, and the reward values of each dispatching rule corresponding to the state parameters can be obtained. Further, the dispatching rule with the largest reward value is determined as the current dispatching rule.
[0098] For example, combined with the above example, when the input state parameters are [0.13, 0.21, 0.15, 0.22, 0.31, 0.45, 0.13, 0.61, 0.36] and the current decision tendency is determined to be 0, in this step, [0.13, 0.21, 0.15, 0.22, 0.31, 0.45, 0.13, 0.61, 0.36, 0] is input into the second model, and the second model outputs 1, that is, the current scheduling rule determined is FIFO.
[0099] S304. Determine the scheduling group corresponding to the scheduling operation in this step according to the current scheduling rule; wherein the scheduling group is a combination of workpieces, machines and workers.
[0100] Specifically, the scheduling group includes workpieces, machines and workers, which indicates which worker processes which workpiece on which machine.
[0101] In specific implementation, the next workpiece to be processed is determined according to the current scheduling rules (based on the priority, deadline or other constraints of the workpiece), and the machine that can be used to process the workpiece is determined (based on the availability, skill requirements or other factors of the machine). Furthermore, a worker is assigned to operate the selected machine to complete the processing of the workpiece (selected based on the worker's skill level), and the combination of workpiece, machine and worker is determined as the scheduling group corresponding to this scheduling operation.
[0102] For example, in one embodiment, it is determined that the scheduling group corresponding to the scheduling operation in this step is [1, 2, 5], which represents that worker 5 processes workpiece 1 on machine 2.
[0103] S305: Decode the scheduling group into a scheduling Gantt chart using a greedy decoding method.
[0104] Specifically, the earliest processable time of the workpiece, the earliest processable time of the machine, and the earliest processable time of the worker are obtained, and the latest time among the three processable times is selected as the start processing time of the scheduling group. Further, according to the total processing time calculation formula in the first objective function, the completion processing time of the scheduling group is determined, and the decoding of the scheduling group is completed. Figure 6 This is a diagram showing the implementation principle of greedy decoding according to an exemplary embodiment of the present application. For the specific implementation principle and implementation process of the greedy decoding method, please refer to the description in the relevant technology, which will not be repeated here.
[0105] For example, in one embodiment, combined with the above example, the time for workpiece 1 to complete the previous step is 15.0, the time for machine 2 to complete the previous workpiece processing is 13.0, and the time for worker 5 to complete the previous processing task is 18.0, then the start time of the scheduling group is 18.0. Further, if the calculated total processing time is 8.0, the decoded scheduling group is: this step of processing is performed by worker 5 on machine 2 to process workpiece 1, and the processing task starts at 18.0 and ends at 26.0.
[0106] Combination Figure 2 As described above, for each step of scheduling operation, follow Figure 2 Solve the scheduling solution until all scheduling operations are executed, and the final output scheduling Gantt chart is the final scheduling solution.
[0107] It should be noted that Table 1 is a comparison table of the solution time of the scheduling method shown in an exemplary embodiment of the present application and the traditional meta-heuristic algorithms represented by ACO and NSGA-II:
[0108] Table 1
[0109]
[0110] As can be seen from Table 1, the method provided in this application can realize real-time scheduling solution and greatly improve the speed of solving the scheduling solution.
[0111] This embodiment provides a method for determining the current scheduling rules by a scheduling network. Through this method, the current scheduling rules can be determined based on the input state parameters based on network prediction, and then the scheduling group can be determined based on the current scheduling rules, thereby controlling the workshop scheduling.
[0112] The method provided in this embodiment, on the one hand, realizes workshop scheduling by constructing a workshop scheduling model and a production scheduling example, and solving the production scheduling example through the workshop scheduling model, which can reasonably arrange effective production resources, optimize the production process, and improve the production efficiency of the workshop; on the other hand, when constructing the workshop scheduling model, the workers' skill level, fatigue level and system carbon emissions are taken into account. While maintaining the fairness of workers' production, the reduction of carbon emissions generated by production is considered, which can help manufacturing companies establish a more scientific and sustainable workshop scheduling model, improve production efficiency, and reduce carbon emissions, which is of great significance for the sustainable development of the company; on the third hand, by adopting different search strategies to solve the production scheduling example, the generalization of the scheduling solution is improved, the production efficiency of the workshop is improved, the real-time scheduling solution is realized, the solution speed of the scheduling solution is greatly improved, and the scheduling speed is improved.
[0113] Figure 7 A flowchart of Example 3 of a workshop scheduling method considering workers' skill levels and fatigue levels provided in this application. Figure 8 This is a diagram showing the implementation principle of a training scheduling network according to an exemplary embodiment of the present application. Figure 7 and Figure 8 The method provided in this embodiment, based on the above embodiment, the training process of the scheduling network includes:
[0114] S701: Use the workshop scheduling model to construct a learning example.
[0115] Specifically, combined with the above description, a learning example can be constructed using the workshop scheduling model based on production order data, worker data and workshop equipment data. Among them, the production order data includes the name of the workpiece, the number of processes, the process set, the set of optional machines for the process, the basic processing time of the optional machines for the process, the material of the workpiece, the quality of the workpiece, the yield rate of the workpiece, and the material utilization rate; the worker data includes the name of the worker, the skill set of the worker, the first operation time of the worker, the learning rate, the fatigue accumulation rate, and the fatigue recovery rate; the workshop equipment data includes the machine name, the type of human-computer interaction, the no-load power, the load power, the auxiliary processing equipment set, the life of the processing equipment, the consumables set, the amount of consumables per unit time, and the machine location.
[0116] In specific implementation, the production order data, worker data and workshop equipment data obtained by real-time calculation are input into the workshop scheduling model to obtain a learning example.
[0117] S702: For each scheduling operation, when the number of scheduling operations does not reach the preset number of learning times, the scheduling algorithm is used to calculate the scheduling solution corresponding to the scheduling operation of this step based on the current scheduling network.
[0118] Specifically, the preset learning times are set according to actual needs, and in this embodiment, the specific value of the preset learning times is not limited. For example, in one embodiment, the preset learning times is 1000. The scheduling algorithm is selected according to actual needs, and in this embodiment, it is not limited. For example, in one embodiment, the scheduling algorithm is a genetic algorithm.
[0119] In the specific implementation, for each scheduling operation, the state parameters of the workshop at the current moment are determined based on the production scheduling example and the scheduling Gantt chart at the current moment. Furthermore, the search strategy used for this scheduling operation is determined, and then the current scheduling rule is determined based on the search strategy (when the search strategy is random search, a decision tendency is randomly selected from multiple preset decision tendencies as the current decision tendency, and a scheduling rule is randomly selected from multiple preset scheduling rules as the current scheduling rule; when the search strategy is network prediction, the current state parameters of the workshop are input into the scheduling network, and the scheduling network determines the reward value of each decision tendency in the multiple preset decision tendencies corresponding to the state parameter, and the decision tendency with the largest reward value is used as the current decision tendency, and the scheduling network determines the reward value of each scheduling rule in the multiple preset scheduling rules corresponding to the state parameter, and the scheduling rule with the largest reward value is used as the current scheduling rule). Finally, the scheduling solution corresponding to this step of the scheduling operation is determined according to the current scheduling rule.
[0120] S703: Calculate the reward value of the scheduling solution according to the reward value calculation method.
[0121] Specifically, the reward value represents the quality of the scheduling solution. The higher the reward value, the better the scheduling solution is, and the better the production efficiency it brings in workshop scheduling.
[0122] Further, combined with the above description, since the objective function of the workshop scheduling model includes a first objective function for minimizing the total production time, a second objective function for minimizing the system carbon emissions, and a third objective function for minimizing the standard deviation of worker fatigue, the reward value includes three aspects of rewards, namely, rewards based on the total production time, rewards based on the system carbon emissions, and rewards based on the standard deviation of worker fatigue.
[0123] In specific implementation, the reward value of the scheduling solution is calculated according to the following formula:
[0124] ,
[0125] Among them, the is the reward value of the scheduling solution; is the reward coefficient corresponding to the time-based reward corresponding to the y-th step scheduling operation; is a time-based reward; is the reward coefficient corresponding to the carbon emission-based reward corresponding to the y-th step scheduling operation; For carbon emission-based incentives; is the reward coefficient corresponding to the reward based on human factors corresponding to the y-th step scheduling operation; The human-cause-based reward corresponding to the scheduling operation at step y.
[0126] It should be noted that the , and will change according to the decision tendency corresponding to the scheduling operation in step y. When the decision tendency tends to minimize the total production time, Set to 0.6, and When the decision tendency is to minimize the system carbon emissions, Set to 0.6, and When the decision tendency is to minimize the standard deviation of worker fatigue, Set to 0.6, and Set to 0.2.
[0127] For example, in one embodiment, if is 0.6, is 0.5, is 0.2, is 1.0, is 0.2, is -1.0, the calculated reward value of the scheduling solution is 0.3.
[0128] S704: The state parameter corresponding to the previous scheduling operation, the current state parameter, the current decision tendency, the current scheduling rule and the currently calculated reward value are stored in the experience pool as a scheduling experience.
[0129] In the specific implementation, the state parameters corresponding to the previous scheduling operation, the current state parameters, the current decision tendency, the current scheduling rules, and the reward value calculated by the reward value calculation formula are taken as a scheduling experience and stored in the experience pool.
[0130] For example, in one embodiment, combined with the above example, the state parameters corresponding to the previous scheduling operation are [0.13, 0.21, 0.15, 0.22, 0.31, 0.45, 0.13, 0.61, 0.36], the current state parameters are [0.15, 0.18, 0.16, 0.23, 0.29, 0.35, 0.15, 0.63, 0.39], and the current decision tendency is 0. When the current scheduling rule is 1 and the currently calculated reward value is 0.3, in this step, the scheduling experience stored in the experience pool is [[0.13, 0.21, 0.15, 0.22, 0.31, 0.45, 0.13, 0.61, 0.36], [0.15, 0.18, 0.16, 0.23, 0.29, 0.35, 0.15, 0.63, 0.39], 0, 1, 0.3].
[0131] S705: When it is determined that a model update is required, a preset number of scheduling experiences are obtained from the experience pool.
[0132] Specifically, the preset number is set according to actual needs, and in this embodiment, the specific value of the preset number is not limited. For example, in one embodiment, the preset number is 16.
[0133] In the specific implementation, after completing two scheduling operations, it is determined that the model needs to be updated, and a preset number of scheduling experiences are taken from the experience pool. If only one scheduling operation is completed, it is determined that the model does not need to be updated, and the next scheduling operation is continued.
[0134] For example, in one embodiment, in combination with the above example, every time two scheduling operations are completed, 16 scheduling experiences are taken out from the experience pool.
[0135] S706: For each scheduling experience, obtain prediction data according to the current scheduling network prediction scheduling rules.
[0136] Specifically, the prediction data includes a predicted decision tendency, a reward value of the decision tendency, a predicted dispatch rule, and a reward value of the dispatch rule.
[0137] Specifically, combined with the above description, for each scheduling experience (including the state parameters corresponding to the previous scheduling operation, the current state parameters, the current decision tendency, the current scheduling rules and the currently calculated reward value), the current state parameters are input into the current scheduling network, and the predicted decision tendency, the reward value of the decision tendency, the predicted scheduling rules and the reward value of the scheduling rules can be obtained.
[0138] S707: Evaluate the prediction loss based on the prediction data and actual data of all scheduling experiences, and update the current scheduling network.
[0139] Specifically, the MES loss function is used to evaluate the prediction loss of the predicted data of all scheduling experiences (including the predicted decision tendency, the reward value of the decision tendency, the predicted scheduling rules, and the reward value of the scheduling rules) and the actual data of all scheduling experiences (current decision tendency, current scheduling rules, and the currently calculated reward value), and the scheduling network is updated according to the evaluation results.
[0140] Specifically, refer to Figure 8 , the first model and the second model are both composed of an evaluation network and a target network. The evaluation network of the first model is TDQN-E and the target network is TDQN-T. The evaluation network of the second model is ADQN-E and the target network is ADQN-T. When updating the scheduling network, the evaluation network in the scheduling network, i.e., TDQN-E and ADQN-E, can be updated.
[0141] Furthermore, it is determined whether the target network update rule is met, that is, the weights of the evaluation network are copied to the target network every 200 scheduling operations, that is, the weights of TDQN-E are copied to TDQN-T, and the weights of ADQN-E are copied to ADQN-T.
[0142] S708. Calculate the scheduling solution corresponding to the scheduling operation of this step again until the number of scheduling operations reaches the preset learning number.
[0143] Specifically, the scheduling solution corresponding to the scheduling operation in this step is calculated again based on the method in step S702 until the number of scheduling operations reaches the preset learning number.
[0144] For example, combining the above example, in this step, the scheduling solution corresponding to the scheduling operation of this step is calculated again until the number of scheduling operations reaches 1000 times.
[0145] Specifically, combined with the previous introduction, after completing 1000 complete scheduling solutions, the learning is completed and the trained scheduling network is saved.
[0146] This embodiment provides a method for training a scheduling network. The scheduling network trained by this method continuously evaluates the prediction loss of the predicted data and the actual data and updates it to obtain a finally trained scheduling network. Subsequently, the production scheduling example can be solved based on this scheduling network, which improves the generalization of the scheduling solution, improves the production efficiency of the workshop, realizes real-time scheduling solution, and greatly improves the speed of solving the scheduling solution.
[0147] Corresponding to the aforementioned embodiment of a workshop scheduling method that takes into account the skill level and fatigue level of workers, the present application also provides an embodiment of a workshop scheduling device that takes into account the skill level and fatigue level of workers.
[0148] The embodiment of the workshop scheduling device that takes into account the skill level and fatigue level of workers provided in this application can be applied to workshop scheduling equipment that takes into account the skill level and fatigue level of workers. The device embodiment can be implemented through software, or through hardware or a combination of software and hardware. Taking software implementation as an example, as a device in a logical sense, it is formed by the processor of the workshop scheduling device in which it is located reading the corresponding computer program instructions in the non-volatile memory into the memory and running them. From the hardware level, if Fig. 9 As shown, a hardware structure diagram of a workshop scheduling device that considers the skill level and fatigue level of workers provided by the present application is provided, except Fig. 9 In addition to the processor, memory, network interface, and non-volatile memory shown, the workshop scheduling device where the device in the embodiment is located may also include other hardware according to the actual function of the workshop scheduling device, which will not be described in detail.
[0149] Fig.10 This is a schematic diagram of the structure of the first embodiment of the workshop scheduling device that takes into account the worker's skill level and fatigue level provided by this application. Fig.10 , the device provided in this embodiment includes a construction module 1010 and a solution module 1020; wherein,
[0150] The construction module 1010 is used to construct a workshop scheduling model, and to construct a production scheduling example based on the workshop scheduling model according to the production order data, the worker data and the workshop equipment data; wherein the workshop scheduling model is a workshop scheduling model that takes into account the skill level and fatigue degree of the workers;
[0151] The solving module 1020 is used to solve the production scheduling example by using a scheduling algorithm to obtain a scheduling solution for the production scheduling example;
[0152] The production scheduling example is solved by using a scheduling algorithm, including:
[0153] For each scheduling operation, based on the production scheduling example and the scheduling Gantt chart at the current moment, determine the state parameters of the workshop at the current moment;
[0154] Determine the search strategy used in this scheduling operation;
[0155] When the search strategy is random search, a scheduling rule is randomly selected from a plurality of preset scheduling rules as the current scheduling rule; when the search strategy is network prediction, the current state parameter of the workshop is input into the scheduling network, so that the scheduling network determines the reward value of each scheduling rule in the plurality of scheduling rules corresponding to the state parameter, and the scheduling rule with the largest reward value is used as the current scheduling rule;
[0156] Determine the scheduling group corresponding to the scheduling operation in this step according to the current scheduling rule; wherein the scheduling group is a combination of workpieces, machines and workers;
[0157] The scheduling group is decoded into a scheduling Gantt chart using a greedy decoding method.
[0158] The device provided in this embodiment, on the one hand, realizes workshop scheduling by constructing a workshop scheduling model and a production scheduling example, and solving the production scheduling example through the workshop scheduling model, which can reasonably arrange effective production resources, optimize the production process, and improve the production efficiency of the workshop; on the other hand, when constructing the workshop scheduling model, the workers' skill level, fatigue level and system carbon emissions are taken into account, and while maintaining the fairness of workers' production, the reduction of carbon emissions generated by production is considered, which can help manufacturing companies establish a more scientific and sustainable workshop scheduling model, improve production efficiency, and reduce carbon emissions, which is of great significance for the sustainable development of the company; on the third hand, by adopting different search strategies to solve the production scheduling example, the generalization of the scheduling solution is improved, the production efficiency of the workshop is improved, the real-time scheduling solution is realized, the solution speed of the scheduling solution is greatly improved, and the scheduling speed is improved.
[0159] The device of this embodiment can be used to perform Figure 1 The steps, specific implementation principles and implementation processes of the method embodiment shown are similar and will not be repeated here.
[0160] Please continue to refer to Fig. 9 The present application also provides a workshop scheduling device that takes into account the skill level and fatigue level of workers, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any one of the methods provided in the first aspect of the present application are implemented.
[0161] The present application also provides a computer-readable storage medium having a computer program stored thereon, and when the program is executed by a processor, the steps of any one of the methods provided in the present application are implemented.
[0162] The implementation process of the functions and effects of each unit in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.
[0163] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present application scheme. A person of ordinary skill in the art can understand and implement it without paying any creative work.
[0164] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A workshop scheduling method considering workers' skill level and fatigue level, characterized in that: The workshop scheduling method comprises: Constructing a workshop scheduling model, and constructing a production scheduling example based on the workshop scheduling model according to the production order data, worker data and workshop equipment data; wherein the workshop scheduling model is a workshop scheduling model that takes into account the skill level and fatigue degree of the workers; Solving the production scheduling example using a scheduling algorithm to obtain a scheduling solution for the production scheduling example; The production scheduling example is solved by using a scheduling algorithm, including: For each scheduling operation, based on the production scheduling example and the scheduling Gantt chart at the current moment, determine the state parameters of the workshop at the current moment; Determine the search strategy used in this scheduling operation; When the search strategy is random search, a scheduling rule is randomly selected from a plurality of preset scheduling rules as the current scheduling rule; when the search strategy is network prediction, the current state parameter of the workshop is input into the scheduling network, so that the scheduling network determines the reward value of each scheduling rule in the plurality of scheduling rules corresponding to the state parameter, and the scheduling rule with the largest reward value is used as the current scheduling rule; Determine the scheduling group corresponding to the scheduling operation in this step according to the current scheduling rule; wherein the scheduling group is a combination of workpieces, machines and workers; Decoding the scheduling group into a scheduling Gantt chart using a greedy decoding method; The scheduling network includes a first model and a second model, and the scheduling network determines the reward value of each scheduling rule in the plurality of scheduling rules corresponding to the state parameter, and takes the scheduling rule with the largest reward value as the current scheduling rule, including: The first model determines the reward values of the state parameter corresponding to a plurality of preset decision tendencies, and determines the decision tendency with the largest reward value as the current decision tendency; The second model determines the reward value of each dispatch rule among the multiple dispatch rules corresponding to the state parameter based on the state parameter and the current decision tendency, and takes the dispatch rule with the largest reward value as the current dispatch rule.
2. According to the method of claim 1, the training process of the scheduling network comprises: Using the workshop scheduling model, construct a learning example; For each scheduling operation, when the number of scheduling operations does not reach the preset learning number, the scheduling algorithm is used to calculate the scheduling solution corresponding to the scheduling operation of this step based on the current scheduling network; Calculate the reward value of the scheduling solution according to the reward value calculation method; The state parameters corresponding to the previous scheduling operation, the current state parameters, the current decision tendency, the current scheduling rules and the currently calculated reward value are stored in the experience pool as a scheduling experience; When it is determined that a model update is required, a preset number of scheduling experiences are obtained from the experience pool; For each dispatching experience, the forecast data is obtained according to the current dispatching network forecasting dispatching rules; Evaluate the forecast loss based on the forecast data and actual data of all dispatch experience and update the current dispatch network; Calculate the scheduling solution corresponding to this scheduling operation again until the number of scheduling operations reaches the preset number of learning times.
3. The method according to claim 2, characterized in that The calculating the reward value of the scheduling solution includes: The reward value of the scheduling solution is calculated according to the following formula: , Among them, the is the reward value of the scheduling solution; is the reward coefficient corresponding to the time-based reward corresponding to the y-th step scheduling operation; is a time-based reward; is the reward coefficient corresponding to the carbon emission-based reward corresponding to the y-th step scheduling operation; For carbon emission-based incentives; is the reward coefficient corresponding to the reward based on human factors corresponding to the y-th step scheduling operation; The human-cause-based reward corresponding to the scheduling operation at step y.
4. The method according to claim 1, characterized in that: The preset multiple scheduling rules include: {FIFO}, {FOFI}, {LPT}, {SPT}, {MCO}, {LTH}, {LCR, LCE, LTW}, {LCR, LCE, SOT}, {LCR, SMT, LTW}, {LCR, SMT, SOT}, {HCR, LCE, LTW}, {HCR, LCE, SOT}, {HCR, SMT, LTW}, {HCR, SMT, SOT}; Wherein, the FIFO means selecting the workpiece-machine-worker scheduling group that can be processed earliest; The FOFI means selecting the workpiece-machine-worker scheduling group that can complete the processing earliest; The LPT represents selecting the workpiece-machine-worker scheduling group with the longest processing time; The SPT represents selecting the workpiece-machine-worker scheduling group with the shortest processing time; The MCO represents the selection of the workpiece-machine-worker scheduling group that increases the least emissions; The LTH represents selecting a workpiece-machine-worker scheduling group that allows the least fatigued worker to accumulate the most fatigue; The LCR indicates selecting the workpiece with the smallest completion rate; The HCR represents selecting the workpiece with the largest completion rate; The LCE means selecting the machine with the smallest carbon emission; The SMT means selecting the machine with the shortest processing time; The LTW means selecting the worker with the least current fatigue; The SOT means selecting a worker with the shortest operation time.
5. The method according to claim 1, characterized in that The workshop scheduling model is: In the production system, there are Workpiece Task Set ,Depend on A collection of workers Including Machine set Processing on Each workpiece In fixed order Process , process Representation of workpiece No. The whole process can be completed in the machine Each worker selects machines from a specific subset of Have a specific skill set , worker skills refer to the worker's ability to operate a specific machine, and each worker has a one-to-one corresponding skill level set When the equipment type is automated processing equipment, the skill level is quantified as workers Operating the machine The initial operation time of the equipment is the time required for human-machine collaborative processing. When the equipment is human-machine collaborative processing equipment, the skill level is quantified as the worker First time operating the machine The proportion of processing procedures exceeding the standard working time; in each step of processing assignment, only when the workpiece ,machine and workers At the same time, when they are ready, the processing task can be carried out.
6. The method according to claim 5, characterized in that The objective function of the workshop scheduling model includes a first objective function for minimizing the total production time, a second objective function for minimizing the system carbon emissions, and a third objective function for minimizing the standard deviation of worker fatigue; wherein, The first objective function is: , Among them, the is the total production time; For workpiece No. The total processing time of a process; Skill level of workers in operating machines; is the incompressibility coefficient; For workers Operating the machine the number of times; For workers The learning rate of For workpiece No. The process in the machine The basic processing time on is the machine type; The second objective function is: , Among them, the is the system carbon emissions; The total carbon emissions from auxiliary processing equipment loss; is the total carbon emissions generated by the use of processing consumables; Total carbon emissions from equipment operation to complete manufacturing tasks for the manufacturing system; The overall carbon emissions from transportation during the processing is the total carbon emissions of public equipment in the workshop; The third objective function is: , Among them, the is the standard deviation of worker fatigue; For workers exist The accumulated fatigue value at the moment; is the number of workers in the production system; is the decision variable of the worker's working status; is the workload factor defined according to the type of machine operated by the worker; For workers exist The accumulated fatigue value at the moment; is the fatigue accumulation rate determined by the worker's individual physical fitness; is the fatigue recovery rate determined by the worker's individual physical fitness; The constraints of the workshop scheduling model are as follows: ensure that there is only one machine for each process of each workpiece; ensure that there is only one worker for each process of each workpiece; ensure that at least one worker can use each machine; ensure that workers can only operate the machines they can operate for processing; ensure the front and back constraints between processes of each workpiece, that is, the start time of the subsequent process cannot be earlier than the end time of the previous process.
7. A workshop scheduling device that takes into account the skill level and fatigue level of workers, characterized in that: The device comprises a building module and a solving module; wherein, The construction module is used to construct a workshop scheduling model, and to construct a production scheduling example based on the workshop scheduling model according to the production order data, the worker data and the workshop equipment data; wherein the workshop scheduling model is a workshop scheduling model that takes into account the skill level and fatigue degree of the workers; The solving module is used to solve the production scheduling example by using a scheduling algorithm to obtain a scheduling solution for the production scheduling example; The production scheduling example is solved by using a scheduling algorithm, including: For each scheduling operation, based on the production scheduling example and the scheduling Gantt chart at the current moment, determine the state parameters of the workshop at the current moment; Determine the search strategy used in this scheduling operation; When the search strategy is random search, a scheduling rule is randomly selected from a plurality of preset scheduling rules as the current scheduling rule; when the search strategy is network prediction, the current state parameter of the workshop is input into the scheduling network, so that the scheduling network determines the reward value of each scheduling rule in the plurality of scheduling rules corresponding to the state parameter, and the scheduling rule with the largest reward value is used as the current scheduling rule; Determine the scheduling group corresponding to the scheduling operation in this step according to the current scheduling rule; wherein the scheduling group is a combination of workpieces, machines and workers; Decoding the scheduling group into a scheduling Gantt chart using a greedy decoding method; The scheduling network includes a first model and a second model, and the scheduling network determines the reward value of each scheduling rule in the plurality of scheduling rules corresponding to the state parameter, and takes the scheduling rule with the largest reward value as the current scheduling rule, including: The first model determines the reward values of the state parameter corresponding to a plurality of preset decision tendencies, and determines the decision tendency with the largest reward value as the current decision tendency; The second model determines the reward value of each dispatch rule among the multiple dispatch rules corresponding to the state parameter based on the state parameter and the current decision tendency, and takes the dispatch rule with the largest reward value as the current dispatch rule.
8. A workshop scheduling device that takes into account the skill level and fatigue level of workers, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 6 when executing the program.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
