Scheduling method and system based on events
Through the event-based scheduling method, combined with multiple rounds of screening and sorting, the problem of insufficient flexibility and accuracy in the existing technology is solved, the flexibility and accuracy of the production plan are improved, and the flexibility and accuracy of the production plan are improved to adapt to different production goals and constraints.
Patent Information
- Application Number
- CN202410466042.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-18
- Publication Date
- 2024-08-23
AI Technical Summary
Existing automatic scheduling methods have problems with poor flexibility and accuracy in the manufacturing field, cannot effectively utilize production resources, and are difficult to meet the needs of different production goals and constraints.
Adopting an event-based scheduling method, by loading machine information and process tasks, a production planning data model is established, multiple rounds of filtering and sorting are performed, and multiple heuristic rules and custom rules are integrated to create a production plan based on the timeline of the machine and process. Driven to select the best machines and processes to satisfy various constraints.
It improves machine utilization and scheduling flexibility, reduces errors in scheduling results, achieves higher accuracy and efficiency, and adapts to the needs of different production scenarios.
Smart Images

Figure CN118536788A
Abstract
Description
Technical Field
[0001] The present invention relates to a scheduling method, belongs to the field of computer process control, and in particular to an event-based scheduling method and system. Background Art
[0002] In the field of manufacturing, scheduling is an important part of production management, which directly affects production efficiency, cost, quality and delivery time. The existing scheduling methods mainly include manual scheduling and automatic scheduling. Among them, manual scheduling is highly dependent on the experience and judgment of personnel, and is prone to unreasonable, inaccurate and inflexible scheduling. Automatic scheduling uses computers and mathematical models to automatically generate scheduling plans based on certain algorithms and rules, which has the advantages of fast, accurate and efficient scheduling.
[0003] There are still some shortcomings in the existing automatic scheduling methods and systems. For example, most of the existing automatic scheduling is based on scheduling strategies such as neural networks, genetic algorithms or ant colony algorithms, which are multiple iterations to solve the global optimal solution and the local optimal solution. These algorithms require detailed quantification and assumptions of various existing factors in the actual application process. The limitations of the algorithms make scheduling work difficult, and the rules adopted based on the construction method are too simple or fixed, which cannot make full use of production resources, nor can they meet the needs of different production goals and constraints.
[0004] The patent application with application number 202210324870.9 and application date March 30, 2022 discloses a process scheduling method and system, the method comprising: screening executable processes in the process set to be scheduled to form an executable process set; traversing the processes in the executable process set to obtain a combination set consisting of process combinations that can be executed in parallel; marking the process combinations that can be executed in parallel as executed and removing them from the process set to be scheduled; repeatedly performing the above steps until the processes in the process set to be scheduled are empty, thereby obtaining process scheduling schemes in different ways; performing critical path time calculation on the obtained process scheduling schemes in different ways to obtain the process scheduling scheme with the shortest time consumption. Although a scheduling scheme is provided in the above scheme, it still does not take into account conditions such as process BOM and process constraints, and has the defects of poor flexibility and insufficient accuracy. Summary of the invention
[0005] The purpose of the present invention is to overcome the defects and problems existing in the prior art, namely, poor flexibility and insufficient accuracy, and to provide an event-based scheduling method and system with better flexibility and higher accuracy.
[0006] To achieve the above objectives, the technical solution of the present invention is: an event-based scheduling method, the method comprising the following steps:
[0007] S1. Load machine information and process tasks to establish a production plan data model;
[0008] The machine information includes: machine ID, machine name, work center to which the machine belongs, completion time of the last process on the machine, custom priority of the machine, and device calendar of the machine;
[0009] The process task includes: process ID, process number, process scheduling status identification, process processing work center, production order to which the process belongs, process allocation constraint relationship and identification, key process identification, and process processing time;
[0010] The production planning data model includes: product critical path, process model, matching process constraints, order-level delivery date, and order completeness status;
[0011] S2, dividing the process tasks into an unscheduled process set and a scheduled process set;
[0012] S3. Determine whether the unscheduled process set is an empty set. The determination result includes any one or any combination of the following:
[0013] The first type: if the unscheduled process set is an empty set, then the scheduling is terminated;
[0014] The second method: if the unscheduled process set is not an empty set, proceed to step S4;
[0015] S4, generating the first screening order of the machine according to the completion time of the last process on the machine and the custom priority of the machine;
[0016] S5. Based on the first screening sort of the machines, the machine with the highest current priority is selected and recorded as the first temporary machine set, and the currently loadable process set of the work center to which each machine in the set belongs is obtained;
[0017] S6. Filter out machines that are not empty in the current loadable process set from the current loadable process set, record them as the second temporary machine set, and determine whether the second temporary machine set is empty. The determination result includes any one or any combination of the following:
[0018] The first method: if the second temporary machine set is empty, update it and proceed to step S5;
[0019] The second method: if the second temporary machine set is not empty, proceed to step S7;
[0020] S7. Determine whether the second temporary machine set belongs to a work center, and the determination result includes any one or any combination of the following:
[0021] The first type: if the second temporary machine set belongs to a work center, then proceed to step S8, after obtaining the third temporary machine set, the second temporary machine set is equal to the third temporary machine set, and then proceed to step S9;
[0022] The second type: if the second temporary machine set does not belong to a work center, proceed to step S8;
[0023] S8. Calculate the weighted priorities of the machines in the second temporary machine set according to the weight distribution ratio, generate a second screening ranking of the machines, and select the machine with the highest current priority based on the second screening ranking of the machines, which is recorded as the third temporary machine set;
[0024] S9: Determine whether the number of currently loadable processes in the third temporary machine set is greater than, less than, or equal to the number of machines in the third temporary machine set, and the determination result includes any one or any combination of the following:
[0025] The first type: if the number of currently loadable processes is greater than the number of machines, the third temporary machine set is equal to the final screening machine set, that is, the third temporary machine set is the current highest priority machine, and then step S10 is performed;
[0026] The second method: if the number of currently loadable processes is less than or equal to the number of machines, a portion of the third temporary machine set is randomly selected as the final screening machine set; wherein: the selected number is the number of currently loadable processes;
[0027] S10, calculating the weighted priority of the currently loadable process set of the final screening machine set according to the weight distribution ratio, and generating a process ranking;
[0028] S11. Based on the process sorting, select the process tasks of the machine with the current highest priority in turn, perform process insertion operations, and update the machine information and process tasks, and then repeat steps S1-S11 until the unscheduled process set is an empty set.
[0029] In step S4, the first screening sorting refers to: machine sorting based on the insertion sort algorithm framework, and the factors considered for the sorting include: the earlier the completion time of the last process on the machine, the higher the priority of the sorting; the larger the value of the priority defined by the machine itself, the higher the priority of the sorting.
[0030] In the step S5, obtaining the currently loadable process set of the work center to which each machine in the set belongs refers to: screening out the machines in the first temporary machine set that do not have currently processable process tasks.
[0031] The constraints of the screening process are determined in the following steps:
[0032] S51. BOM constraint judgment of the production order to which the process belongs:
[0033] Determine whether the production order to which the process belongs has any sub-orders. The determination results include any one or any combination of the following:
[0034] The first one: If there are sub-orders, return and continue to the next process task for judgment;
[0035] The second method: if there is no sub-order, proceed to step S52;
[0036] S52. Determination of the complete set of constraints of the order to which the process belongs:
[0037] Determine whether the materials required for the ordered product are ready for production. The determination results include any one or any combination of the following:
[0038] The first one: if the working conditions for carrying out order production are met, proceed to step S53;
[0039] The second method: if the working conditions for carrying out order production are not met, then return to the next process task and repeat step S51;
[0040] S53. Judgment of constraints on the previous and next processes of the same production order:
[0041] Determine whether the production order to which the process belongs has been loaded. The judgment results include any one or any combination of the following:
[0042] The first method: if the production order has been loaded, determine whether the process task is a subsequent task after the last scheduled process of the loaded production order; if it is, perform the process constraint determination; if it is not, proceed to the next process task and return to step S51;
[0043] The second method: if the production order has not been loaded, proceed to step S54;
[0044] S54, the constraints of the matching process:
[0045] Based on the constraints and identifications of the matching process set in the production plan data model, the process matching constraints are judged in the process of determining the current loadable process of the primary screening machine, and the constraints are transferred and controlled through the completion time of the previous process of the current loadable process;
[0046] The constraints of the preparation process include any one or any combination of the following:
[0047] The first type: unilateral allocation constraint, that is, the process of one order constrains the process of another order;
[0048] The second type: mutual matching constraints, that is, the two processes of two orders restrict each other;
[0049] The judgment result of the process allocation constraint includes any one or any combination of the following:
[0050] The first type: If the current loadable process does not have a matching process constraint relationship, the loadable time of the process is the completion time of the previous process;
[0051] The second type: If the current loadable process has a matching process constraint relationship, the current loadable process is judged to be a constraint process or a constrained process. The judgment results include any one or any combination of the following:
[0052] The first type: if it is a constrained process, determine whether the constrained process is blocked;
[0053] If there is a blockage and it is a mutual constraint, the current loadable process is not loaded, and the process returns to the next process task and performs step S51 again;
[0054] If there is a blockage, and it is not mutually constrained or there is no blockage, the loadable time of the current loadable process is equal to the completion time of the previous process, and step S55 is performed; and the constrained process is loaded after the scheduling of the current loadable process ends; the loadable time of the constrained process is equal to the scheduling end time of the current process;
[0055] The second type: if it is a constrained process, determine whether it is a mutual matching constraint;
[0056] If they are mutually constrained, the available loading time of the current loadable process is equal to the completion time of the previous process, and step S55 is performed; and the constrained process is loaded after the scheduling of the current loadable process ends; the available loading time of the constrained process is equal to the scheduling end time of the current process;
[0057] If the constraint is not mutually matched, determine whether the constraint process of the current loadable process is blocked before the constraint process;
[0058] If blocked, the current loadable process is not loaded, and the process returns to the next process task and performs step S51 again;
[0059] If it is not blocked, the loadable time of the current loadable process is equal to the completion time of the previous process, and step S55 is performed; and the constrained process is loaded after the scheduling of the current loadable process ends; the loadable time of the constrained process is equal to the scheduling end time of the current process;
[0060] S55. Determination of loadable time constraints of the process:
[0061] Determine the loading time of the process and the completion time of the last process on the machine. The determination results include any one or any combination of the following:
[0062] The first type: If the loadable time of the process is less than or equal to the completion time of the last process on the machine, the process is added to the current loadable process set of the work center to which it belongs;
[0063] The second type: If the loadable time of the process is greater than the completion time of the last process on the machine, but does not exceed the set prefabrication, the process will be placed in the current loadable process set of the work center to which it belongs.
[0064] In the step S8, the second screening sorting refers to: integrating multiple heuristic rules and custom rules, and performing machine second screening sorting based on the insertion sort algorithm framework; the multiple heuristic rules include: the earlier the delivery date of the workpiece, the higher the priority, and the longer the processing time, the higher the priority;
[0065] The custom rules include any one or any combination of the following:
[0066] The first type: the more sets of currently loadable processes there are, the higher the machine priority;
[0067] The second type: the smaller the average delivery time of the orders to which the currently loadable process set belongs, the higher the machine priority;
[0068] The third type: the more key processes in the currently loadable process set, the higher the machine priority;
[0069] Fourth: The larger the average processing time of the currently loadable process set, the higher the machine priority;
[0070] Fifth: The more unscheduled processes the work center to which the machine belongs has, the higher the machine priority;
[0071] Sixth: The more machines a work center belongs to, the higher the machine priority.
[0072] In step S8, the weighted priority is calculated as follows:
[0073]
[0074] Among them: mpr is the weighted priority; No_onload is the number of currently loadable process sets; dt is the mean delivery time of the currently loadable process sets; mw is the number of key processes in the currently loadable process sets; pt is the mean processing time of the currently loadable process sets; No_unscheduling is the number of unscheduled processes in the work center; No_machine is the number of machines in the work center; w1, w2, w3, w4, w5, and w6 are all weight vectors.
[0075] In the step S10, generating the process sequence means: integrating multiple heuristic rules and custom rules, and performing process sequence based on the insertion sort algorithm framework; the multiple heuristic rules include: the earlier the delivery date of the workpiece, the higher the priority, and the longer the processing time, the higher the priority;
[0076] The custom rules include any one or any combination of the following:
[0077] The first type: the higher the priority of the key process, the higher the priority of the process;
[0078] The second type: the earlier the delivery date of the order to which the process belongs, the higher the priority of the process;
[0079] The third type: The higher the custom priority value of the order to which the process belongs, the higher the priority of the process;
[0080] The fourth type: The longer the processing time of a process, the higher the priority of that process.
[0081] In step S10, the weighted priority is calculated as follows:
[0082] Wpr=w1*mw+w2*dt+w3*cpr+w4*pt;
[0083] Among them: Wpr is the weighted priority of the process; mw is the key process identifier; dt is the delivery date of the order to which the process belongs; cpr is the custom priority of the order to which the process belongs; pt is the processing time.
[0084] In step S11, the process insertion operation refers to: when selecting the process with the highest priority in the currently loadable process set, and under the premise of satisfying the equipment calendar, inserting the process into the machine task queue, and determining the start time and completion time of the process;
[0085] The process insertion operation includes any one or any combination of the following:
[0086] The first one: if the loading time of the process selected by the machine is earlier than the release time of the machine, the start time of the process is equal to the release time of the machine, and the completion time of the process is calculated based on the process processing time and the equipment calendar;
[0087] The second type: If the loadable time of the process selected by the machine is later than the release time of the machine, but the time difference is less than the set threshold, the start time of the process is equal to the loadable time of the process, and the completion time of the process is calculated based on the process processing time and the equipment calendar.
[0088] An event-based scheduling system, which is applied to the above method, comprises:
[0089] The production plan data model building unit is used to load machine information and process tasks and build a production plan data model;
[0090] The machine information includes: machine ID, machine name, work center to which the machine belongs, completion time of the last process on the machine, custom priority of the machine, and equipment calendar of the machine; the process task includes: process ID, process number, process scheduling status identifier, process processing work center, production order to which the process belongs, process matching constraint relationship and identifier, key process identifier, process processing time; the production plan data model includes: product critical path, process model, matching process constraint, order-level delivery date, and order completeness status;
[0091] A process task division unit is used to divide the process tasks into an unscheduled process set and a scheduled process set;
[0092] The process task set judgment unit is used to judge whether the unscheduled process set is an empty set. The judgment result includes any one or any combination of the following:
[0093] The first type: if the unscheduled process set is an empty set, then the scheduling is terminated;
[0094] The second type: if the unscheduled process set is not an empty set, the corresponding steps of the machine first screening sequence generation unit 4 are performed;
[0095] The machine first screening ranking generation unit is used to generate the machine first screening ranking according to the completion time of the last process on the machine and the custom priority of the machine;
[0096] A currently loadable process generation unit is used to select the machine with the highest current priority based on the first screening sort of the machines, record it as the first temporary machine set, and obtain the currently loadable process set of the work center to which each machine in the set belongs;
[0097] The first screening machine update judgment unit is used to filter out the machines that are not empty in the current loadable process set from the current loadable process set, record them as the second temporary machine set, and judge whether the second temporary machine set is empty. The judgment result includes any one or any combination of the following:
[0098] The first one: if the second temporary machine set is empty, update it and perform the corresponding steps of the current loadable process generation unit;
[0099] The second method: if the second temporary machine set is not empty, the corresponding steps of the machine second screening judgment unit are performed;
[0100] The second machine screening judgment unit is used to judge whether the second temporary machine set belongs to a work center. The judgment result includes any one or any combination of the following:
[0101] The first method: if the second temporary machine set belongs to a work center, the corresponding steps of the machine second screening generation unit are performed, and after obtaining the third temporary machine set, the second temporary machine set is equal to the third temporary machine set, and then the corresponding steps of the machine final screening generation unit are performed;
[0102] The second type: if the second temporary machine set does not belong to a work center, the corresponding steps of the machine second screening generation unit are performed;
[0103] A machine second screening generating unit is used to calculate the weighted priorities of the machines in the second temporary machine set according to the weight distribution ratio, generate the machine second screening ranking, and select the machine with the highest priority at present based on the machine second screening ranking, which is recorded as the third temporary machine set;
[0104] The machine final screening generation unit is used to determine whether the number of currently loadable processes in the third temporary machine set is greater than, less than or equal to the number of machines in the third temporary machine set, and the determination result includes any one or any combination of the following:
[0105] The first type: if the number of currently loadable processes is greater than the number of machines, the third temporary machine set is equal to the final screening machine set, that is, the third temporary machine set is the current highest priority machine, and then the corresponding steps of the process sorting generation unit are performed;
[0106] The second method: if the number of currently loadable processes is less than or equal to the number of machines, a portion of the third temporary machine set is randomly selected as the final screening machine set; wherein: the selected number is the number of currently loadable processes;
[0107] A process ranking generating unit is used to calculate the weighted priority of the currently loadable process set of the final screening machine set according to the weight distribution ratio, and generate the process ranking;
[0108] The process selection and insertion unit is used to select the process tasks of the current highest priority machine in sequence based on the process sorting, perform process insertion operations, and update the machine information and process tasks, and then the corresponding steps of all the above units until the unscheduled process set is an empty set.
[0109] Compared with the prior art, the present invention has the following beneficial effects:
[0110] 1. In an event-based scheduling method of the present invention, the method first obtains machine information and process tasks, establishes a production plan data model, and then obtains the machine that can finally select the process task in a work center through multiple rounds of machine screening, and selects the current highest priority processable process in turn based on the process sorting, performs process selection and process insertion operations, and satisfies various constraints in the generation process of the current processable process; in the application, this design uses multiple rounds of machine screening, drives the machine's timeline as the main line, releases the machine to select the processable process, and integrates multiple sorting rules, thereby improving the utilization rate of the machine and the scheduling flexibility, and can also meet various constraints at the same time, further reducing the error of the scheduling result and improving the accuracy. Therefore, the present invention is not only flexible, but also accurate.
[0111] 2. In an event-based scheduling method of the present invention, common multiple heuristic rules and custom rules are integrated, and the machine first screening sorting, machine second screening sorting and process sorting are performed based on the insertion sort algorithm framework; in the application, this design introduces common and custom rules, so that it can be customized according to actual conditions and needs to adapt to different production scenarios and requirements, improve scheduling flexibility, and reduce unnecessary calculations and comparisons, and improve scheduling efficiency. Therefore, the present invention is not only flexible, but also efficient.
[0112] 3. In the event-based scheduling method of the present invention, the best machine and process can be quickly selected through multiple rounds of screening of machine and process sorting, and the production plan can be accurately executed, so as to build an automated production plan, systematically manage machine and process information, improve production efficiency, and retain the intervention of manual adjustment and optimization during process selection and insertion, thereby ensuring the flexibility and adaptability of production. Therefore, the present invention has not only good flexibility, but also good adaptability. BRIEF DESCRIPTION OF THE DRAWINGS
[0113] Figure 1 It is a flow chart of the method steps of the present invention.
[0114] Figure 2 It is a schematic diagram of the system structure of the present invention.
[0115] Figure 3 It is a schematic diagram of the equipment structure of Example 4 of the present invention.
[0116] In the figure: production plan data model building unit 1, process task division unit 2, process task set judgment unit 3, machine first screening sorting generation unit 4, current loadable process generation unit 5, first screening machine update judgment unit 6, machine second screening judgment unit 7, machine second screening generation unit 8, machine final screening generation unit 9, process sorting generation unit 10, process selection insertion unit 11, visual interaction unit 12, processor 13, memory 14, computer program code 141. DETAILED DESCRIPTION
[0117] The present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0118] An event-based scheduling method, the method comprising the following steps:
[0119] S1. Load machine information and process tasks to establish a production plan data model;
[0120] The machine information includes: machine ID, machine name, work center to which the machine belongs, completion time of the last process on the machine, custom priority of the machine, and device calendar of the machine;
[0121] The process task includes: process ID, process number, process scheduling status identification, process processing work center, production order to which the process belongs, process allocation constraint relationship and identification, key process identification, and process processing time;
[0122] The production planning data model includes: product critical path, process model, matching process constraints, order-level delivery date, and order completeness status;
[0123] S2, dividing the process tasks into an unscheduled process set and a scheduled process set;
[0124] S3. Determine whether the unscheduled process set is an empty set. The determination result includes any one or any combination of the following:
[0125] The first type: if the unscheduled process set is an empty set, then the scheduling is terminated;
[0126] The second method: if the unscheduled process set is not an empty set, proceed to step S4;
[0127] S4, generating the first screening order of the machine according to the completion time of the last process on the machine and the custom priority of the machine;
[0128] S5. Based on the first screening sort of the machines, the machine with the highest current priority is selected and recorded as the first temporary machine set, and the currently loadable process set of the work center to which each machine in the set belongs is obtained;
[0129] S6. Filter out machines that are not empty in the current loadable process set from the current loadable process set, record them as the second temporary machine set, and determine whether the second temporary machine set is empty. The determination result includes any one or any combination of the following:
[0130] The first method: if the second temporary machine set is empty, update it and proceed to step S5;
[0131] The second method: if the second temporary machine set is not empty, proceed to step S7;
[0132] S7. Determine whether the second temporary machine set belongs to a work center, and the determination result includes any one or any combination of the following:
[0133] The first type: if the second temporary machine set belongs to a work center, then proceed to step S8, after obtaining the third temporary machine set, the second temporary machine set is equal to the third temporary machine set, and then proceed to step S9;
[0134] The second type: if the second temporary machine set does not belong to a work center, proceed to step S8;
[0135] S8. Calculate the weighted priorities of the machines in the second temporary machine set according to the weight distribution ratio, generate a second screening ranking of the machines, and select the machine with the highest current priority based on the second screening ranking of the machines, which is recorded as the third temporary machine set;
[0136] S9: Determine whether the number of currently loadable processes in the third temporary machine set is greater than, less than, or equal to the number of machines in the third temporary machine set, and the determination result includes any one or any combination of the following:
[0137] The first type: if the number of currently loadable processes is greater than the number of machines, the third temporary machine set is equal to the final screening machine set, that is, the third temporary machine set is the current highest priority machine, and then step S10 is performed;
[0138] The second method: if the number of currently loadable processes is less than or equal to the number of machines, a portion of the third temporary machine set is randomly selected as the final screening machine set; wherein: the selected number is the number of currently loadable processes;
[0139] S10, calculating the weighted priority of the currently loadable process set of the final screening machine set according to the weight distribution ratio, and generating a process ranking;
[0140] S11. Based on the process sorting, select the process tasks of the machine with the current highest priority in turn, perform process insertion operations, and update the machine information and process tasks, and then repeat steps S1-S11 until the unscheduled process set is an empty set.
[0141] In step S4, the first screening sorting refers to: machine sorting based on the insertion sort algorithm framework, and the factors considered for the sorting include: the earlier the completion time of the last process on the machine, the higher the priority of the sorting; the larger the value of the priority defined by the machine itself, the higher the priority of the sorting.
[0142] In the step S5, obtaining the currently loadable process set of the work center to which each machine in the set belongs refers to: screening out the machines in the first temporary machine set that do not have currently processable process tasks.
[0143] The constraints of the screening process are determined in the following steps:
[0144] S51. BOM constraint judgment of the production order to which the process belongs:
[0145] Determine whether the production order to which the process belongs has any sub-orders. The determination results include any one or any combination of the following:
[0146] The first one: If there are sub-orders, return and continue to the next process task for judgment;
[0147] The second method: if there is no sub-order, proceed to step S52;
[0148] S52. Determination of the complete set of constraints of the order to which the process belongs:
[0149] Determine whether the materials required for the ordered product are ready for production. The determination results include any one or any combination of the following:
[0150] The first one: if the working conditions for carrying out order production are met, proceed to step S53;
[0151] The second method: if the working conditions for carrying out order production are not met, then return to the next process task and repeat step S51;
[0152] S53. Judgment of constraints on the previous and next processes of the same production order:
[0153] Determine whether the production order to which the process belongs has been loaded. The judgment results include any one or any combination of the following:
[0154] The first method: if the production order has been loaded, determine whether the process task is a subsequent task after the last scheduled process of the loaded production order; if it is, perform the process constraint determination; if it is not, proceed to the next process task and return to step S51;
[0155] The second method: if the production order has not been loaded, proceed to step S54;
[0156] S54, the constraints of the matching process:
[0157] Based on the constraints and identifications of the matching process set in the production plan data model, the process matching constraints are judged in the process of determining the current loadable process of the primary screening machine, and the constraints are transferred and controlled through the completion time of the previous process of the current loadable process;
[0158] The constraints of the preparation process include any one or any combination of the following:
[0159] The first type: unilateral allocation constraint, that is, the process of one order constrains the process of another order;
[0160] The second type: mutual matching constraints, that is, the two processes of two orders restrict each other;
[0161] The judgment result of the process allocation constraint includes any one or any combination of the following:
[0162] The first type: If the current loadable process does not have a matching process constraint relationship, the loadable time of the process is the completion time of the previous process;
[0163] The second type: If the current loadable process has a matching process constraint relationship, the current loadable process is judged to be a constraint process or a constrained process. The judgment results include any one or any combination of the following:
[0164] The first type: if it is a constrained process, determine whether the constrained process is blocked;
[0165] If there is a blockage and it is a mutual constraint, the current loadable process is not loaded, and the process returns to the next process task and performs step S51 again;
[0166] If there is a blockage, and it is not mutually constrained or there is no blockage, the loadable time of the current loadable process is equal to the completion time of the previous process, and step S55 is performed; and the constrained process is loaded after the scheduling of the current loadable process ends; the loadable time of the constrained process is equal to the scheduling end time of the current process;
[0167] The second type: if it is a constrained process, determine whether it is a mutual matching constraint;
[0168] If they are mutually constrained, the available loading time of the current loadable process is equal to the completion time of the previous process, and step S55 is performed; and the constrained process is loaded after the scheduling of the current loadable process ends; the available loading time of the constrained process is equal to the scheduling end time of the current process;
[0169] If the constraint is not mutually matched, determine whether the constraint process of the current loadable process is blocked before the constraint process;
[0170] If blocked, the current loadable process is not loaded, and the process returns to the next process task and performs step S51 again;
[0171] If it is not blocked, the loadable time of the current loadable process is equal to the completion time of the previous process, and step S55 is performed; and the constrained process is loaded after the scheduling of the current loadable process ends; the loadable time of the constrained process is equal to the scheduling end time of the current process;
[0172] S55. Determination of loadable time constraints of the process:
[0173] Determine the loading time of the process and the completion time of the last process on the machine. The determination results include any one or any combination of the following:
[0174] The first type: If the loadable time of the process is less than or equal to the completion time of the last process on the machine, the process is added to the current loadable process set of the work center to which it belongs;
[0175] The second type: If the loadable time of the process is greater than the completion time of the last process on the machine, but does not exceed the set prefabrication, the process will be placed in the current loadable process set of the work center to which it belongs.
[0176] In step S8, the second screening sorting refers to: integrating multiple heuristic rules and custom rules, and performing machine second screening sorting based on the insertion sort algorithm framework; the multiple heuristic rules include: the earlier the delivery date of the workpiece, the higher the priority, and the longer the processing time, the higher the priority;
[0177] The custom rules include any one or any combination of the following:
[0178] The first type: the more sets of currently loadable processes there are, the higher the machine priority;
[0179] The second type: the smaller the average delivery time of the orders to which the currently loadable process set belongs, the higher the machine priority;
[0180] The third type: the more key processes in the currently loadable process set, the higher the machine priority;
[0181] Fourth: The larger the average processing time of the currently loadable process set, the higher the machine priority;
[0182] Fifth: The more unscheduled processes the work center to which the machine belongs has, the higher the machine priority;
[0183] Sixth: The more machines a work center belongs to, the higher the machine priority.
[0184] In step S8, the weighted priority is calculated as follows:
[0185]
[0186] Among them: mpr is the weighted priority; No_onload is the number of currently loadable process sets; dt is the mean delivery time of the currently loadable process sets; mw is the number of key processes in the currently loadable process sets; pt is the mean processing time of the currently loadable process sets; No_unscheduling is the number of unscheduled processes in the work center; No_machine is the number of machines in the work center; w1, w2, w3, w4, w5, and w6 are all weight vectors.
[0187] In the step S10, generating the process sequence means: integrating multiple heuristic rules and custom rules, and performing process sequence based on the insertion sort algorithm framework; the multiple heuristic rules include: the earlier the delivery date of the workpiece, the higher the priority, and the longer the processing time, the higher the priority;
[0188] The custom rules include any one or any combination of the following:
[0189] The first type: the higher the priority of the key process, the higher the priority of the process;
[0190] The second type: the earlier the delivery date of the order to which the process belongs, the higher the priority of the process;
[0191] The third type: The higher the custom priority value of the order to which the process belongs, the higher the priority of the process;
[0192] The fourth type: The longer the processing time of a process, the higher the priority of that process.
[0193] In step S10, the weighted priority is calculated as follows:
[0194] Wpr=w1*mw+w2*dt+w3*cpr+w4*pt;
[0195] Among them: Wpr is the weighted priority of the process; mw is the key process identifier; dt is the delivery date of the order to which the process belongs; cpr is the custom priority of the order to which the process belongs; pt is the processing time.
[0196] In step S11, the process insertion operation refers to: when selecting the process with the highest priority in the currently loadable process set, and under the premise of satisfying the equipment calendar, inserting the process into the machine task queue, and determining the start time and completion time of the process;
[0197] The process insertion operation includes any one or any combination of the following:
[0198] The first one: if the loading time of the process selected by the machine is earlier than the release time of the machine, the start time of the process is equal to the release time of the machine, and the completion time of the process is calculated based on the process processing time and the equipment calendar;
[0199] The second type: If the loadable time of the process selected by the machine is later than the release time of the machine, but the time difference is less than the set threshold, the start time of the process is equal to the loadable time of the process, and the completion time of the process is calculated based on the process processing time and the equipment calendar.
[0200] An event-based scheduling system, which is applied to the above method, comprises:
[0201] The production plan data model building unit 1 is used to load machine information and process tasks and build a production plan data model;
[0202] The machine information includes: machine ID, machine name, work center to which the machine belongs, completion time of the last process on the machine, custom priority of the machine, and equipment calendar of the machine; the process task includes: process ID, process number, process scheduling status identifier, process processing work center, production order to which the process belongs, process matching constraint relationship and identifier, key process identifier, process processing time; the production plan data model includes: product critical path, process model, matching process constraint, order-level delivery date, and order completeness status;
[0203] A process task division unit 2, used for dividing the process tasks into an unscheduled process set and a scheduled process set;
[0204] The process task set judgment unit 3 is used to judge whether the unscheduled process set is an empty set. The judgment result includes any one or any combination of the following:
[0205] The first type: if the unscheduled process set is an empty set, then the scheduling is terminated;
[0206] The second type: if the unscheduled process set is not an empty set, the corresponding steps of the machine first screening sequence generation unit 4 are performed;
[0207] The machine first screening ranking generating unit 4 is used to generate the machine first screening ranking according to the completion time of the last process on the machine and the custom priority of the machine;
[0208] The currently loadable process generation unit 5 is used to select the machine with the highest priority at present based on the first screening sort of the machines, record it as the first temporary machine set, and obtain the currently loadable process set of the work center to which each machine in the set belongs;
[0209] The first screening machine update judgment unit 6 is used to filter out the machines that are not empty in the current loadable process set from the current loadable process set, record them as the second temporary machine set, and judge whether the second temporary machine set is empty. The judgment result includes any one or any combination of the following:
[0210] The first method: if the second temporary machine set is empty, update it and perform the corresponding steps of the current loadable process generation unit 5;
[0211] The second type: if the second temporary machine set is not empty, the corresponding steps of the machine second screening judgment unit 7 are performed;
[0212] The second machine screening judgment unit 7 is used to judge whether the second temporary machine set belongs to a work center, and the judgment result includes any one or any combination of the following:
[0213] The first method: if the second temporary machine set belongs to a work center, the corresponding steps of the machine second screening generation unit 8 are performed, and after obtaining the third temporary machine set, the second temporary machine set is equal to the third temporary machine set, and then the corresponding steps of the machine final screening generation unit 9 are performed;
[0214] The second type: if the second temporary machine set does not belong to a work center, the corresponding steps of the machine second screening generation unit 8 are performed;
[0215] The machine second screening generating unit 8 is used to calculate the weighted priorities of the machines in the second temporary machine set according to the weight distribution ratio, generate the machine second screening ranking, and select the machine with the highest priority at present based on the machine second screening ranking, which is recorded as the third temporary machine set;
[0216] The machine final screening generation unit 9 is used to determine whether the number of currently loadable processes in the third temporary machine set is greater than, less than or equal to the number of machines in the third temporary machine set, and the determination result includes any one or any combination of the following:
[0217] The first type: if the number of currently loadable processes is greater than the number of machines, the third temporary machine set is equal to the final screening machine set, that is, the third temporary machine set is the current highest priority machine, and then the corresponding steps of the process ranking generation unit 10 are performed;
[0218] The second method: if the number of currently loadable processes is less than or equal to the number of machines, a portion of the third temporary machine set is randomly selected as the final screening machine set; wherein: the selected number is the number of currently loadable processes;
[0219] The process ranking generating unit 10 is used to calculate the weighted priority of the currently loadable process set of the final screening machine set according to the weight distribution ratio, and generate the process ranking;
[0220] The process selection and insertion unit 11 is used to select the process tasks of the current highest priority machine in sequence based on the process sorting, perform process insertion operations, and update the machine information and process tasks, and then the corresponding steps of all the above units until the unscheduled process set is an empty set.
[0221] Embodiment 1:
[0222] See also Figure 1 , an event-based scheduling method, the method comprising the following steps:
[0223] S1. Load machine information and process tasks to establish a production plan data model;
[0224] The machine information includes: machine ID, machine name, work center to which the machine belongs, completion time of the last process on the machine, custom priority of the machine, and device calendar of the machine;
[0225] The process task includes: process ID, process number, process scheduling status identification, process processing work center, production order to which the process belongs, process allocation constraint relationship and identification, key process identification, and process processing time;
[0226] The production planning data model includes: product critical path, process model, matching process constraints, order-level delivery date, and order completeness status;
[0227] Furthermore, the product critical path refers to: a series of key tasks that affect the product delivery time during the product production process. Therefore, it is necessary to establish the product critical path and identify the main line parts. The process tasks of the main line parts order have a higher priority.
[0228] The process model refers to: according to the product BOM structure and process flow, the process model is performed on the product to express the product BOM constraints, process constraints and process work center constraint information.
[0229] The matching process constraint refers to: establishing a matching process constraint model based on the constraint relationship and type between manually maintained order processes to express the constraint relationship information between different processes.
[0230] The order-level delivery period refers to calculating the order-level delivery period of the product in stages based on the product's delivery period and by manufacturing stage.
[0231] S2, dividing the process tasks into an unscheduled process set and a scheduled process set, and dividing the production orders into a loaded order set and an unloaded order set;
[0232] The loaded order set refers to orders with processes belonging to the scheduled process set, that is, one or several processes of the order have been scheduled; the unloaded order set refers to orders with processes that have not been scheduled.
[0233] S3. Determine whether the unscheduled process set is an empty set. The determination result includes any one or any combination of the following:
[0234] The first type: if the unscheduled process set is an empty set, then the scheduling is terminated;
[0235] The second method: if the unscheduled process set is not an empty set, proceed to step S4;
[0236] Furthermore, the scheduling results obtained after the scheduling is completed can be visualized in the form of a Gantt chart or table. The scheduling results can be fine-tuned manually by dragging or editing the table. After the adjustment is confirmed, the production plan can be dispatched.
[0237] S4, generating the first screening order of the machine according to the completion time of the last process on the machine and the custom priority of the machine;
[0238] Furthermore, the first screening sorting refers to: machine sorting based on the insertion sort algorithm framework, and the factors considered in the sorting include: the earlier the completion time of the last process on the machine, the higher the priority of the sorting; the larger the value of the priority defined by the machine itself, the higher the priority of the sorting.
[0239] Preferably, the sorting algorithm framework is an insertion sorting algorithm, which has the following two characteristics:
[0240] (1) Time complexity: The time complexity of the insertion sort algorithm depends on the initial order of the elements to be sorted. If the elements are already nearly ordered, the time complexity of the insertion sort algorithm can reach O(n). If the elements are completely out of order, the time complexity of the insertion sort algorithm is O(n). 2 ), therefore, the algorithm can improve the performance of the scheduling algorithm when processing data after the initial sorting.
[0241] (2) Stability: The insertion sort algorithm is a stable sorting algorithm that does not change the relative positions of the same elements. This means that the insertion sort algorithm can meet the requirement of the scheduling algorithm to maintain the original order of the data.
[0242] The completion time of the last process on the machine is in a specific date format of year, month, day, hour, minute, and second, and the priority defined by the machine itself is a value in the range of 0-100.
[0243] S5. Based on the first screening sort of the machines, the machine with the highest current priority is selected and recorded as the first temporary machine set, and the currently loadable process set of the work center to which each machine in the set belongs is obtained;
[0244] Furthermore, the obtaining of the currently loadable process set of the work center to which each machine in the set belongs refers to: filtering out the machines in the first temporary machine set that do not have currently processable process tasks.
[0245] The constraints of the screening process are determined in the following steps:
[0246] S51. BOM constraint judgment of the production order to which the process belongs:
[0247] Determine whether the production order to which the process belongs has any sub-orders. The determination results include any one or any combination of the following:
[0248] The first one: If there are sub-orders, return and continue to the next process task for judgment;
[0249] The second method: if there is no sub-order, proceed to step S52;
[0250] S52. Determination of the complete set of constraints of the order to which the process belongs:
[0251] Determine whether the materials required for the ordered product are ready for production. The determination results include any one or any combination of the following:
[0252] The first one: if the working conditions for carrying out order production are met, proceed to step S53;
[0253] The second method: if the working conditions for carrying out order production are not met, then return to the next process task and repeat step S51;
[0254] The working conditions for carrying out order production refer to whether the materials required for the production of the order products are in place, that is, whether the materials, accessories, personnel, equipment, etc. are all ready. If they are all ready, the production working conditions are met.
[0255] S53. Judgment of constraints on the previous and next processes of the same production order:
[0256] Determine whether the production order to which the process belongs has been loaded. The judgment results include any one or any combination of the following:
[0257] The first method: if the production order has been loaded, determine whether the process task is a subsequent task after the last scheduled process of the loaded production order; if it is, perform the process constraint determination; if it is not, proceed to the next process task and return to step S51;
[0258] The second method: if the production order has not been loaded, proceed to step S54;
[0259] S54, the constraints of the matching process:
[0260] Based on the constraints and identifications of the matching process set in the production plan data model, the process matching constraints are judged in the process of determining the current loadable process of the primary screening machine, and the constraints are transferred and controlled through the completion time of the previous process of the current loadable process;
[0261] The constraints of the preparation process include any one or any combination of the following:
[0262] The first type: unilateral allocation constraint, that is, the process of one order constrains the process of another order;
[0263] The second type: mutual matching constraints, that is, the two processes of two orders restrict each other;
[0264] The judgment result of the process allocation constraint includes any one or any combination of the following:
[0265] The first type: If the current loadable process does not have a matching process constraint relationship, the loadable time of the process is the completion time of the previous process;
[0266] The second type: If the current loadable process has a matching process constraint relationship, the current loadable process is judged to be a constraint process or a constrained process. The judgment results include any one or any combination of the following:
[0267] The first type: if it is a constrained process, determine whether the constrained process is blocked;
[0268] If there is a blockage and it is a mutual constraint, the current loadable process is not loaded, and the process returns to the next process task and performs step S51 again;
[0269] If there is a blockage, and it is not mutually constrained or there is no blockage, the loadable time of the current loadable process is equal to the completion time of the previous process, and step S55 is performed; and the constrained process is loaded after the scheduling of the current loadable process ends; the loadable time of the constrained process is equal to the scheduling end time of the current process;
[0270] The second type: if it is a constrained process, determine whether it is a mutual matching constraint;
[0271] If they are mutually constrained, the available loading time of the current loadable process is equal to the completion time of the previous process, and step S55 is performed; and the constrained process is loaded after the scheduling of the current loadable process ends; the available loading time of the constrained process is equal to the scheduling end time of the current process;
[0272] If the constraint is not mutually matched, determine whether the constraint process of the current loadable process is blocked before the constraint process;
[0273] If blocked, the current loadable process is not loaded, and the process returns to the next process task and performs step S51 again;
[0274] If it is not blocked, the loadable time of the current loadable process is equal to the completion time of the previous process, and step S55 is performed; and the constrained process is loaded after the scheduling of the current loadable process ends; the loadable time of the constrained process is equal to the scheduling end time of the current process;
[0275] S55. Determination of loadable time constraints of the process:
[0276] Determine the loading time of the process and the completion time of the last process on the machine. The determination results include any one or any combination of the following:
[0277] The first type: If the loadable time of the process is less than or equal to the completion time of the last process on the machine, the process is added to the current loadable process set of the work center to which it belongs;
[0278] The second type: If the loadable time of the process is greater than the completion time of the last process on the machine, but does not exceed the set prefabrication, the process will be placed in the current loadable process set of the work center to which it belongs.
[0279] S6. Filter out machines that are not empty in the current loadable process set from the current loadable process set, record them as the second temporary machine set, and determine whether the second temporary machine set is empty. The determination result includes any one or any combination of the following:
[0280] The first method: if the second temporary machine set is empty, update it and proceed to step S5;
[0281] The second method: if the second temporary machine set is not empty, proceed to step S7;
[0282] S7. Determine whether the second temporary machine set belongs to a work center, and the determination result includes any one or any combination of the following:
[0283] The first type: if the second temporary machine set belongs to a work center, then proceed to step S8, after obtaining the third temporary machine set, the second temporary machine set is equal to the third temporary machine set, and then proceed to step S9;
[0284] The second type: if the second temporary machine set does not belong to a work center, proceed to step S8;
[0285] S8. Calculate the weighted priorities of the machines in the second temporary machine set according to the weight distribution ratio, generate a second screening ranking of the machines, and select the machine with the highest current priority based on the second screening ranking of the machines, which is recorded as the third temporary machine set;
[0286] Furthermore, the two-screen sorting refers to: integrating multiple heuristic rules and custom rules, and performing machine two-screen sorting based on the insertion sort algorithm framework; the multiple heuristic rules include: the earlier the delivery date of the workpiece, the higher the priority, and the longer the processing time, the higher the priority;
[0287] The custom rules include any one or any combination of the following:
[0288] The first type: the more sets of currently loadable processes there are, the higher the machine priority;
[0289] The second type: the smaller the average delivery time of the orders to which the currently loadable process set belongs, the higher the machine priority;
[0290] The third type: the more key processes in the currently loadable process set, the higher the machine priority;
[0291] Fourth: The larger the average processing time of the currently loadable process set, the higher the machine priority;
[0292] Fifth: The more unscheduled processes the work center to which the machine belongs has, the higher the machine priority;
[0293] Sixth: The more machines a work center belongs to, the higher the machine priority.
[0294] The priority order of the custom rules is: the number of currently loadable process sets > the number of key processes in the currently loadable process sets > the average delivery time of the currently loadable process sets > the average processing time of the currently loadable process sets > the number of unscheduled processes in the work center to which the machine belongs > the number of machines in the work center to which the machine belongs.
[0295] Furthermore, the calculation formula of the weighted priority is as follows:
[0296]
[0297] Among them: mpr is the weighted priority; No_onload is the number of currently loadable process sets; dt is the mean delivery time of the currently loadable process sets; mw is the number of key processes in the currently loadable process sets; pt is the mean processing time of the currently loadable process sets; No_unscheduling is the number of unscheduled processes in the work center; No_machine is the number of machines in the work center; w1, w2, w3, w4, w5, and w6 are all weight vectors.
[0298] S9: Determine whether the number of currently loadable processes in the third temporary machine set is greater than, less than, or equal to the number of machines in the third temporary machine set, and the determination result includes any one or any combination of the following:
[0299] The first type: if the number of currently loadable processes is greater than the number of machines, the third temporary machine set is equal to the final screening machine set, that is, the third temporary machine set is the current highest priority machine, and then step S10 is performed;
[0300] The second method: if the number of currently loadable processes is less than or equal to the number of machines, a portion of the third temporary machine set is randomly selected as the final screening machine set; wherein: the selected number is the number of currently loadable processes;
[0301] S10, calculating the weighted priority of the currently loadable process set of the final screening machine set according to the weight distribution ratio, and generating a process ranking;
[0302] Furthermore, the generating process sequence refers to: integrating multiple heuristic rules and custom rules, and performing process sequence based on the insertion sort algorithm framework; the multiple heuristic rules include: the earlier the delivery date of the workpiece, the higher the priority, and the longer the processing time, the higher the priority;
[0303] The custom rules include any one or any combination of the following:
[0304] The first type: the higher the priority of the key process, the higher the priority of the process;
[0305] The second type: the earlier the delivery date of the order to which the process belongs, the higher the priority of the process;
[0306] The third type: The higher the custom priority value of the order to which the process belongs, the higher the priority of the process;
[0307] The fourth type: The longer the processing time of a process, the higher the priority of that process.
[0308] Furthermore, the calculation formula of the weighted priority is as follows:
[0309] Wpr=w1*mw+w2*dt+w3*cpr+w4*pt;
[0310] Among them: Wpr is the weighted priority of the process; mw is the key process identifier; dt is the delivery date of the order to which the process belongs; cpr is the custom priority of the order to which the process belongs; pt is the processing time; w1, w2, w3, w4, w5, and w6 are all weight vectors.
[0311] Among them: the key process identifier mw is 0 or 1, the delivery date dt of the order to which the process belongs is the specific year, month, and day in date format, the custom priority cpr of the order to which the process belongs is a value in the range of 0-100, and the processing time pt is the time span value; in order to avoid the impact of inconsistent dimensions on the weighted priority value, before performing weighted calculation, the values of each factor must be normalized so that the value of each factor is in the range of 0-1.
[0312] The weights of the various factors in the weighted priority calculation allow for manual pre-setting and allocation, making it easy to manually intervene in the order priority order in order to control the scheduling results.
[0313] The priority order of the factors is: weighted priority > key process identifier > delivery date of the order to which the process belongs > custom priority of the order to which the process belongs > processing time.
[0314] Preferably, in the process of calculating the weighted priority, the value of the key process identifier mw is {0, 1}, and no normalization is required;
[0315] The delivery period dt of the order to which the process belongs is normalized in the following manner:
[0316] [job number delivery interval (the time span from the scheduling start time to the job number delivery period) - order delivery interval (the time span from the scheduling start time to the order delivery period)] / job number delivery interval;
[0317] The custom order priority cpr of the process is normalized in the following way: custom order priority value / 100;
[0318] The processing time pt is normalized in the following manner: the processing time value of the process / the maximum processing time of all processes;
[0319] After normalizing the above factors, the weighted priority value is calculated according to the preset weight vectors w1, w2, w3, w4, w5, w6 and the formula.
[0320] Based on the process weighted priority Wpr, the key process identifier mw, the order delivery date dt, the custom priority cpr and the processing time pt, the insertion sort algorithm is used to sort the process tasks in the current loadable process set; the process tasks are sorted in descending order of priority: by setting a sorting trigger global identifier, when the process in the process set changes, the global identifier is set to 1, which can trigger the process sorting, so as to dynamically control whether the process set is sorted and optimize the scheduling algorithm performance.
[0321] S11. Based on the process sorting, select the process tasks of the machine with the current highest priority in turn, perform process insertion operations, and update the machine information and process tasks, and then repeat steps S1-S11 until the unscheduled process set is an empty set.
[0322] Furthermore, the process insertion operation refers to: when selecting the process with the highest priority in the currently loadable process set, and under the premise of satisfying the equipment calendar, inserting the process into the machine task queue, and determining the start time and completion time of the process;
[0323] The process insertion operation includes any one or any combination of the following:
[0324] The first one: if the loading time of the process selected by the machine is earlier than the release time of the machine, the start time of the process is equal to the release time of the machine, and the completion time of the process is calculated based on the process processing time and the equipment calendar;
[0325] The second type: If the loadable time of the process selected by the machine is later than the release time of the machine, but the time difference is less than the set threshold, the start time of the process is equal to the loadable time of the process, and the completion time of the process is calculated based on the process processing time and the equipment calendar.
[0326] Embodiment 2:
[0327] See also Figure 2 , an event-based scheduling system, the system is applied to the method described in Example 1, the system comprising:
[0328] The production plan data model building unit 1 is used to load machine information and process tasks and build a production plan data model;
[0329] The machine information includes: machine ID, machine name, work center to which the machine belongs, completion time of the last process on the machine, custom priority of the machine, and equipment calendar of the machine; the process task includes: process ID, process number, process scheduling status identifier, process processing work center, production order to which the process belongs, process matching constraint relationship and identifier, key process identifier, process processing time; the production plan data model includes: product critical path, process model, matching process constraint, order-level delivery date, and order completeness status;
[0330] A process task division unit 2, used for dividing the process tasks into an unscheduled process set and a scheduled process set;
[0331] The process task set judgment unit 3 is used to judge whether the unscheduled process set is an empty set. The judgment result includes any one or any combination of the following:
[0332] The first type: if the unscheduled process set is an empty set, then the scheduling is terminated;
[0333] The second type: if the unscheduled process set is not an empty set, the corresponding steps of the machine first screening sequence generation unit 4 are performed;
[0334] The machine first screening ranking generating unit 4 is used to generate the machine first screening ranking according to the completion time of the last process on the machine and the custom priority of the machine;
[0335] Furthermore, the first screening sorting generated by the machine first screening sorting generation unit 4 refers to: machine sorting based on the insertion sorting algorithm framework, and the factors considered for the sorting include: the earlier the completion time of the last process on the machine, the higher the priority of the sorting; the larger the value of the priority defined by the machine itself, the higher the priority of the sorting.
[0336] The currently loadable process generation unit 5 is used to select the machine with the highest priority at present based on the first screening sort of the machines, record it as the first temporary machine set, and obtain the currently loadable process set of the work center to which each machine in the set belongs;
[0337] Furthermore, the currently loadable process set acquired by the currently loadable process generation unit 5 is obtained by filtering out the machines in the first temporary machine set that do not have currently processable process tasks.
[0338] The constraints of the screening process are determined in the following steps:
[0339] S51. BOM constraint judgment of the production order to which the process belongs:
[0340] Determine whether the production order to which the process belongs has any sub-orders. The determination results include any one or any combination of the following:
[0341] The first one: If there are sub-orders, return and continue to the next process task for judgment;
[0342] The second method: if there is no sub-order, proceed to step S52;
[0343] S52. Determination of the complete set of constraints of the order to which the process belongs:
[0344] Determine whether the materials required for the ordered product are ready for production. The determination results include any one or any combination of the following:
[0345] The first one: if the working conditions for carrying out order production are met, proceed to step S53;
[0346] The second method: if the working conditions for carrying out order production are not met, then return to the next process task and repeat step S51;
[0347] S53. Judgment of constraints on the previous and next processes of the same production order:
[0348] Determine whether the production order to which the process belongs has been loaded. The judgment results include any one or any combination of the following:
[0349] The first method: if the production order has been loaded, determine whether the process task is a subsequent task after the last scheduled process of the loaded production order; if it is, perform the process constraint determination; if it is not, proceed to the next process task and return to step S51;
[0350] The second method: if the production order has not been loaded, proceed to step S54;
[0351] S54, the constraints of the matching process:
[0352] Based on the constraints and identifications of the matching process set in the production plan data model, the process matching constraints are judged in the process of determining the current loadable process of the primary screening machine, and the constraints are transferred and controlled through the completion time of the previous process of the current loadable process;
[0353] The constraints of the preparation process include any one or any combination of the following:
[0354] The first type: unilateral allocation constraint, that is, the process of one order constrains the process of another order;
[0355] The second type: mutual matching constraints, that is, the two processes of two orders restrict each other;
[0356] The judgment result of the process allocation constraint includes any one or any combination of the following:
[0357] The first type: If the current loadable process does not have a matching process constraint relationship, the loadable time of the process is the completion time of the previous process;
[0358] The second type: If the current loadable process has a matching process constraint relationship, the current loadable process is judged to be a constraint process or a constrained process. The judgment results include any one or any combination of the following:
[0359] The first type: if it is a constrained process, determine whether the constrained process is blocked;
[0360] If there is a blockage and it is a mutual constraint, the current loadable process is not loaded, and the process returns to the next process task and performs step S51 again;
[0361] If there is a blockage, and it is not mutually constrained or there is no blockage, the loadable time of the current loadable process is equal to the completion time of the previous process, and step S55 is performed; and the constrained process is loaded after the scheduling of the current loadable process ends; the loadable time of the constrained process is equal to the scheduling end time of the current process;
[0362] The second type: if it is a constrained process, determine whether it is a mutual matching constraint;
[0363] If they are mutually constrained, the available loading time of the current loadable process is equal to the completion time of the previous process, and step S55 is performed; and the constrained process is loaded after the scheduling of the current loadable process ends; the available loading time of the constrained process is equal to the scheduling end time of the current process;
[0364] If the constraint is not mutually matched, determine whether the constraint process of the current loadable process is blocked before the constraint process;
[0365] If blocked, the current loadable process is not loaded, and the process returns to the next process task and performs step S51 again;
[0366] If it is not blocked, the loadable time of the current loadable process is equal to the completion time of the previous process, and step S55 is performed; and the constrained process is loaded after the scheduling of the current loadable process ends; the loadable time of the constrained process is equal to the scheduling end time of the current process;
[0367] S55. Determination of loadable time constraints of the process:
[0368] Determine the loading time of the process and the completion time of the last process on the machine. The determination results include any one or any combination of the following:
[0369] The first type: If the loadable time of the process is less than or equal to the completion time of the last process on the machine, the process is added to the current loadable process set of the work center to which it belongs;
[0370] The second type: If the loadable time of the process is greater than the completion time of the last process on the machine, but does not exceed the set prefabrication, the process will be placed in the current loadable process set of the work center to which it belongs.
[0371] The first screening machine update judgment unit 6 is used to filter out the machines that are not empty in the current loadable process set from the current loadable process set, record them as the second temporary machine set, and judge whether the second temporary machine set is empty. The judgment result includes any one or any combination of the following:
[0372] The first method: if the second temporary machine set is empty, update it and perform the corresponding steps of the current loadable process generation unit 5;
[0373] The second type: if the second temporary machine set is not empty, the corresponding steps of the machine second screening judgment unit 7 are performed;
[0374] The second machine screening judgment unit 7 is used to judge whether the second temporary machine set belongs to a work center, and the judgment result includes any one or any combination of the following:
[0375] The first method: if the second temporary machine set belongs to a work center, the corresponding steps of the machine second screening generation unit 8 are performed, and after obtaining the third temporary machine set, the second temporary machine set is equal to the third temporary machine set, and then the corresponding steps of the machine final screening generation unit 9 are performed;
[0376] The second type: if the second temporary machine set does not belong to a work center, the corresponding steps of the machine second screening generation unit 8 are performed;
[0377] The machine second screening generating unit 8 is used to calculate the weighted priorities of the machines in the second temporary machine set according to the weight distribution ratio, generate the machine second screening ranking, and select the machine with the highest priority at present based on the machine second screening ranking, which is recorded as the third temporary machine set;
[0378] Furthermore, the second screening sorting generated by the machine second screening generating unit 8 refers to: integrating multiple heuristic rules and custom rules, and performing machine second screening sorting based on the insertion sort algorithm framework; the multiple heuristic rules include: the earlier the delivery date of the workpiece, the higher the priority, and the longer the processing time, the higher the priority;
[0379] The custom rules include any one or any combination of the following:
[0380] The first type: the more sets of currently loadable processes there are, the higher the machine priority;
[0381] The second type: the smaller the average delivery time of the orders to which the currently loadable process set belongs, the higher the machine priority;
[0382] The third type: the more key processes in the currently loadable process set, the higher the machine priority;
[0383] Fourth: The larger the average processing time of the currently loadable process set, the higher the machine priority;
[0384] Fifth: The more unscheduled processes the work center to which the machine belongs has, the higher the machine priority;
[0385] Sixth: The more machines a work center belongs to, the higher the machine priority.
[0386] The calculation formula for calculating the weighted priority of the machine second screen generation unit 8 is as follows:
[0387]
[0388] Among them: mpr is the weighted priority; No_onload is the number of currently loadable process sets; dt is the mean delivery time of the currently loadable process sets; mw is the number of key processes in the currently loadable process sets; pt is the mean processing time of the currently loadable process sets; No_unscheduling is the number of unscheduled processes in the work center; No_machine is the number of machines in the work center; w1, w2, w3, w4, w5, and w6 are all weight vectors.
[0389] The machine final screening generation unit 9 is used to determine whether the number of currently loadable processes in the third temporary machine set is greater than, less than or equal to the number of machines in the third temporary machine set, and the determination result includes any one or any combination of the following:
[0390] The first type: if the number of currently loadable processes is greater than the number of machines, the third temporary machine set is equal to the final screening machine set, that is, the third temporary machine set is the current highest priority machine, and then the corresponding steps of the process ranking generation unit 10 are performed;
[0391] The second method: if the number of currently loadable processes is less than or equal to the number of machines, a portion of the third temporary machine set is randomly selected as the final screening machine set; wherein: the selected number is the number of currently loadable processes;
[0392] The process ranking generating unit 10 is used to calculate the weighted priority of the currently loadable process set of the final screening machine set according to the weight distribution ratio, and generate the process ranking;
[0393] Furthermore, the process sequence generation unit 10 generates the process sequence by fusing multiple heuristic rules and custom rules, and performing process sequence based on the insertion sort algorithm framework; the multiple heuristic rules include: the earlier the delivery date of the workpiece, the higher the priority, and the longer the processing time, the higher the priority;
[0394] The custom rules include any one or any combination of the following:
[0395] The first type: the higher the priority of the key process, the higher the priority of the process;
[0396] The second type: the earlier the delivery date of the order to which the process belongs, the higher the priority of the process;
[0397] The third type: The higher the custom priority value of the order to which the process belongs, the higher the priority of the process;
[0398] The fourth type: The longer the processing time of a process, the higher the priority of that process.
[0399] The process sequence generation unit 10 calculates the weighted priority using the following formula:
[0400] Wpr=w1*mw+w2*dt+w3*cpr+w4*pt;
[0401] Among them: Wpr is the weighted priority of the process; mw is the key process identifier; dt is the delivery date of the order to which the process belongs; cpr is the custom priority of the order to which the process belongs; pt is the processing time.
[0402] The process selection and insertion unit 11 is used to select the process tasks of the current highest priority machine in sequence based on the process sorting, perform process insertion operations, and update the machine information and process tasks, and then the corresponding steps of all the above units until the unscheduled process set is an empty set.
[0403] Furthermore, the process insertion operation performed by the process selection and insertion unit 11 refers to: when selecting the process with the highest priority in the currently loadable process set and, on the premise of satisfying the equipment calendar, inserting the process into the machine task queue, and determining the start time and completion time of the process;
[0404] The process insertion operation includes any one or any combination of the following:
[0405] The first one: if the loading time of the process selected by the machine is earlier than the release time of the machine, the start time of the process is equal to the release time of the machine, and the completion time of the process is calculated based on the process processing time and the equipment calendar;
[0406] The second type: If the loadable time of the process selected by the machine is later than the release time of the machine, but the time difference is less than the set threshold, the start time of the process is equal to the loadable time of the process, and the completion time of the process is calculated based on the process processing time and the equipment calendar.
[0407] Embodiment 3:
[0408] The basic content is the same as that of Example 1, except that:
[0409] See also Figure 2 The scheduling system also includes a visualization interaction unit 12, and the visualization interaction unit 12 is used to provide interaction and visualization display for operations and scheduling results in the scheduling system.
[0410] Embodiment 4:
[0411] The basic content is the same as that of Example 3, except that:
[0412] See also Figure 3 ,This design also includes an event-based scheduling device, the device includes a processor 13 and a memory 14;
[0413] The memory 14 is used to store the computer program code 141 and transmit the computer program code 141 to the processor 13;
[0414] The processor 13 is configured to execute the event-based scheduling method described in Embodiment 1 according to the instructions in the computer program code 141 .
[0415] Generally speaking, the computer instructions for implementing the method of the present invention may be carried in any combination of one or more computer-readable storage media. Non-transitory computer-readable storage media may include any computer-readable media, except for the signal itself that is temporarily propagating.
[0416] The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EKROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, device, or device.
[0417] Computer program code for performing the operation of the present invention can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, SMalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages, in particular, Python suitable for neural network computing and platform frameworks based on TensorFlow, PyTorch, etc. can be used. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer or to an external computer (for example, using an Internet service provider to connect via the Internet) through any type of network, including a local area network (LAN) or a wide area network (WAN).
[0418] The above-mentioned device and non-transitory computer-readable storage medium can be found in the detailed description of an event-based scheduling method and its beneficial effects, which will not be repeated here.
[0419] Although the embodiments of the present invention have been shown and described above, it should be understood that the above embodiments are exemplary and should not be construed as limitations on the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. An event-based scheduling method, characterized in that: The method comprises the following steps: S1. Load machine information and process tasks to establish a production plan data model; The machine information includes: machine ID, machine name, work center to which the machine belongs, completion time of the last process on the machine, custom priority of the machine, and device calendar of the machine; The process task includes: process ID, process number, process scheduling status identification, process processing work center, production order to which the process belongs, process allocation constraint relationship and identification, key process identification, and process processing time; The production planning data model includes: product critical path, process model, matching process constraints, order-level delivery date, and order completeness status; S2, dividing the process tasks into an unscheduled process set and a scheduled process set; S3. Determine whether the unscheduled process set is an empty set. The determination result includes any one or any combination of the following: The first type: if the unscheduled process set is an empty set, then the scheduling is terminated; The second method: if the unscheduled process set is not an empty set, proceed to step S4; S4, generating the first screening order of the machine according to the completion time of the last process on the machine and the custom priority of the machine; S5. Based on the first screening sort of the machines, the machine with the highest current priority is selected and recorded as the first temporary machine set, and the currently loadable process set of the work center to which each machine in the set belongs is obtained; S6. Filter out machines that are not empty in the current loadable process set from the current loadable process set, record them as the second temporary machine set, and determine whether the second temporary machine set is empty. The determination result includes any one or any combination of the following: The first method: if the second temporary machine set is empty, update it and proceed to step S5; The second method: if the second temporary machine set is not empty, proceed to step S7; S7. Determine whether the second temporary machine set belongs to a work center, and the determination result includes any one or any combination of the following: The first type: if the second temporary machine set belongs to a work center, then proceed to step S8, after obtaining the third temporary machine set, set the second temporary machine set equal to the third temporary machine set, and then proceed to step S9; The second type: if the second temporary machine set does not belong to a work center, proceed to step S8; S8. Calculate the weighted priorities of the machines in the second temporary machine set according to the weight distribution ratio, generate a second screening ranking of the machines, and select the machine with the highest current priority based on the second screening ranking of the machines, which is recorded as the third temporary machine set; S9: Determine whether the number of currently loadable processes in the third temporary machine set is greater than, less than, or equal to the number of machines in the third temporary machine set, and the determination result includes any one or any combination of the following: The first type: if the number of currently loadable processes is greater than the number of machines, the third temporary machine set is equal to the final screening machine set, that is, the third temporary machine set is the current highest priority machine, and then step S10 is performed; The second method: if the number of currently loadable processes is less than or equal to the number of machines, a portion of the third temporary machine set is randomly selected as the final screening machine set; wherein: the selected number is the number of currently loadable processes; S10, calculating the weighted priority of the currently loadable process set of the final screening machine set according to the weight distribution ratio, and generating a process ranking; S11. Based on the process sorting, select the process tasks of the machine with the current highest priority in turn, perform process insertion operations, and update the machine information and process tasks, and then repeat steps S1-S11 until the unscheduled process set is an empty set.
2. The event-based scheduling method according to claim 1, characterized in that: In step S4, the first screening sorting refers to: machine sorting based on the insertion sort algorithm framework, and the factors considered for the sorting include: the earlier the completion time of the last process on the machine, the higher the priority of the sorting; the larger the value of the priority defined by the machine itself, the higher the priority of the sorting.
3. The event-based scheduling method according to claim 1, characterized in that: In the step S5, obtaining the currently loadable process set of the work center to which each machine in the set belongs refers to: screening out the machines in the first temporary machine set that do not have currently processable process tasks.
4. The event-based scheduling method according to claim 3, characterized in that: The constraints of the screening process are determined in the following steps: S51. BOM constraint judgment of the production order to which the process belongs: Determine whether the production order to which the process belongs has any sub-orders. The determination results include any one or any combination of the following: The first one: If there are sub-orders, return and continue to the next process task for judgment; The second method: if there is no sub-order, proceed to step S52; S52. Determination of the complete set of constraints of the order to which the process belongs: Determine whether the materials required for the ordered product are ready for production. The determination results include any one or any combination of the following: The first one: if the working conditions for carrying out order production are met, proceed to step S53; The second method: if the working conditions for carrying out order production are not met, then return to the next process task and repeat step S51; S53. Judgment of constraints on the previous and next processes of the same production order: Determine whether the production order to which the process belongs has been loaded. The judgment results include any one or any combination of the following: The first method: if the production order has been loaded, determine whether the process task is a subsequent task after the last scheduled process of the loaded production order; if it is, perform the process constraint determination; if it is not, proceed to the next process task and return to step S51; The second method: if the production order has not been loaded, proceed to step S54; S54, the constraints of the matching process: Based on the constraints and identifications of the matching process set in the production plan data model, the process matching constraints are judged in the process of determining the current loadable process of the primary screening machine, and the constraints are transferred and controlled through the completion time of the previous process of the current loadable process; The constraints of the preparation process include any one or any combination of the following: The first type: unilateral allocation constraint, that is, the process of one order constrains the process of another order; The second type: mutual matching constraints, that is, the two processes of two orders restrict each other; The judgment result of the process allocation constraint includes any one or any combination of the following: The first type: If the current loadable process does not have a matching process constraint relationship, the loadable time of the process is the completion time of the previous process; The second type: If the current loadable process has a matching process constraint relationship, the current loadable process is judged to be a constraint process or a constrained process. The judgment results include any one or any combination of the following: The first type: if it is a constrained process, determine whether the constrained process is blocked; If there is a blockage and it is a mutual constraint, the current loadable process is not loaded, and the process returns to the next process task and performs step S51 again; If there is a blockage, and it is not mutually constrained or there is no blockage, the loadable time of the current loadable process is equal to the completion time of the previous process, and step S55 is performed; and the constrained process is loaded after the scheduling of the current loadable process ends; the loadable time of the constrained process is equal to the scheduling end time of the current process; The second type: if it is a constrained process, determine whether it is a mutual matching constraint; If they are mutually constrained, the available loading time of the current loadable process is equal to the completion time of the previous process, and step S55 is performed; and the constrained process is loaded after the scheduling of the current loadable process ends; the available loading time of the constrained process is equal to the scheduling end time of the current process; If the constraint is not mutually matched, determine whether the constraint process of the current loadable process is blocked before the constraint process; If blocked, the current loadable process is not loaded, and the process returns to the next process task and performs step S51 again; If it is not blocked, the loadable time of the current loadable process is equal to the completion time of the previous process, and step S55 is performed; and the constrained process is loaded after the scheduling of the current loadable process ends; the loadable time of the constrained process is equal to the scheduling end time of the current process; S55. Determination of loadable time constraints of the process: Determine the loading time of the process and the completion time of the last process on the machine. The determination results include any one or any combination of the following: The first type: If the loadable time of the process is less than or equal to the completion time of the last process on the machine, the process is added to the current loadable process set of the work center to which it belongs; The second type: If the loadable time of the process is greater than the completion time of the last process on the machine, but does not exceed the set prefabrication, the process will be placed in the current loadable process set of the work center to which it belongs.
5. The event-based scheduling method according to claim 1, characterized in that: In the step S8, the second screening sorting refers to: integrating multiple heuristic rules and custom rules, and performing machine second screening sorting based on the insertion sort algorithm framework; the multiple heuristic rules include: the earlier the delivery date of the workpiece, the higher the priority, and the longer the processing time, the higher the priority; The custom rules include any one or any combination of the following: The first type: the more sets of currently loadable processes there are, the higher the machine priority; The second type: the smaller the average delivery time of the orders to which the currently loadable process set belongs, the higher the machine priority; The third type: the more key processes in the currently loadable process set, the higher the machine priority; Fourth: The larger the average processing time of the currently loadable process set, the higher the machine priority; Fifth: The more unscheduled processes the work center to which the machine belongs has, the higher the machine priority; Sixth: The more machines a work center belongs to, the higher the machine priority.
6. The event-based scheduling method according to claim 1, characterized in that: In step S8, the weighted priority is calculated as follows: Among them: mpr is the weighted priority; No_onload is the number of currently loadable process sets; dt is the mean delivery time of the currently loadable process sets; mw is the number of key processes in the currently loadable process sets; pt is the mean processing time of the currently loadable process sets; No_unscheduling is the number of unscheduled processes in the work center; No_machine is the number of machines in the work center; w1, w2, w3, w4, w5, and w6 are all weight vectors.
7. The event-based scheduling method according to claim 1, characterized in that: In the step S10, generating the process sequence means: integrating multiple heuristic rules and custom rules, and performing process sequence based on the insertion sort algorithm framework; the multiple heuristic rules include: the earlier the delivery date of the workpiece, the higher the priority, and the longer the processing time, the higher the priority; The custom rules include any one or any combination of the following: The first type: the higher the priority of the key process, the higher the priority of the process; The second type: the earlier the delivery date of the order to which the process belongs, the higher the priority of the process; The third type: The higher the custom priority value of the order to which the process belongs, the higher the priority of the process; The fourth type: The longer the processing time of a process, the higher the priority of that process.
8. The event-based scheduling method according to claim 1, characterized in that: In step S10, the weighted priority is calculated as follows: Wpr=w1*mw+w2*dt+w3*cpr+w4*pt; Among them: Wpr is the weighted priority of the process; mw is the key process identifier; dt is the delivery date of the order to which the process belongs; cpr is the custom priority of the order to which the process belongs; pt is the processing time.
9. The event-based scheduling method according to claim 1, characterized in that: In step S11, the process insertion operation refers to: when selecting the process with the highest priority in the currently loadable process set, and under the premise of satisfying the equipment calendar, inserting the process into the machine task queue, and determining the start time and completion time of the process; The process insertion operation includes any one or any combination of the following: The first one: if the loading time of the process selected by the machine is earlier than the release time of the machine, the start time of the process is equal to the release time of the machine, and the completion time of the process is calculated based on the process processing time and the equipment calendar; The second type: If the loadable time of the process selected by the machine is later than the release time of the machine, but the time difference is less than the set threshold, the start time of the process is equal to the loadable time of the process, and the completion time of the process is calculated based on the process processing time and the equipment calendar.
10. An event-based scheduling system, characterized in that: The system is applied to the method described in any one of claims 1 to 9, and the system comprises: A production plan data model building unit (1) is used to load machine information and process tasks and build a production plan data model; The machine information includes: machine ID, machine name, work center to which the machine belongs, completion time of the last process on the machine, custom priority of the machine, and equipment calendar of the machine; the process task includes: process ID, process number, process scheduling status identifier, process processing work center, production order to which the process belongs, process matching constraint relationship and identifier, key process identifier, process processing time; the production plan data model includes: product critical path, process model, matching process constraint, order-level delivery date, and order completeness status; A process task division unit (2), used for dividing the process tasks into an unscheduled process set and a scheduled process set; The process task set judgment unit (3) is used to judge whether the unscheduled process set is an empty set, and the judgment result includes any one or any combination of the following: The first type: if the unscheduled process set is an empty set, then the scheduling is terminated; The second type: if the unscheduled process set is not an empty set, the corresponding steps of the machine first screening sorting generation unit (4) are performed; A machine first screening ranking generating unit (4) is used to generate a machine first screening ranking according to the completion time of the last process on the machine and the custom priority of the machine; A currently loadable process generation unit (5) is used to select the machine with the highest current priority based on the machine first screening sort, record it as the first temporary machine set, and obtain the currently loadable process set of the work center to which each machine in the set belongs; The first screening machine update judgment unit (6) is used to filter out machines that are not empty in the current loadable process set from the current loadable process set, record them as the second temporary machine set, and judge whether the second temporary machine set is empty. The judgment result includes any one or any combination of the following: The first method: if the second temporary machine set is empty, update it and perform the corresponding steps of the current loadable process generation unit (5); The second type: if the second temporary machine set is not empty, then the corresponding steps of the machine second screening judgment unit (7) are performed; The second machine screening judgment unit (7) is used to judge whether the second temporary machine set belongs to a work center, and the judgment result includes any one or any combination of the following: The first method: if the second temporary machine set belongs to a work center, the corresponding steps of the machine second screening generation unit (8) are performed, and after obtaining the third temporary machine set, the second temporary machine set is equal to the third temporary machine set, and then the corresponding steps of the machine final screening generation unit (9) are performed; The second type: if the second temporary machine set does not belong to a work center, the corresponding steps of the machine second screening generation unit (8) are performed; A machine second screening generating unit (8), used for calculating the weighted priorities of the machines in the second temporary machine set according to the weight distribution ratio, generating a machine second screening ranking, and selecting the machine with the highest priority at present based on the machine second screening ranking, which is recorded as the third temporary machine set; The machine final screening generating unit (9) is used to determine whether the number of currently loadable processes in the third temporary machine set is greater than, less than or equal to the number of machines in the third temporary machine set, and the determination result includes any one or any combination of the following: The first type: if the number of currently loadable processes is greater than the number of machines, the third temporary machine set is equal to the final screening machine set, that is, the third temporary machine set is the current highest priority machine, and then the corresponding steps of the process sorting generation unit (10) are performed; The second method: if the number of currently loadable processes is less than or equal to the number of machines, a portion of the third temporary machine set is randomly selected as the final screening machine set; wherein: the selected number is the number of currently loadable processes; A process ranking generating unit (10) is used to calculate the weighted priority of the currently loadable process set of the final screening machine set according to the weight distribution ratio, and generate a process ranking; The process selection and insertion unit (11) is used to select the process tasks of the current highest priority machine in sequence based on the process sorting, perform process insertion operations, and update the machine information and process tasks, and then the corresponding steps of all the above units until the unscheduled process set is an empty set.
