A dynamic scheduling method and system for a job shop
The GPHH algorithm is used to obtain and update scheduling rules and terminal character value ranges, which solves the priority calculation problem caused by real-time and dimensional inconsistency in dynamic workshop scheduling, achieves more accurate and efficient process arrangements, and improves the efficiency of workshop scheduling. Real-time decision-making capabilities.
Patent Information
- Application Number
- CN202211046608.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-30
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-08-30
AI Technical Summary
Existing dynamic workshop scheduling methods are difficult to make scheduling optimization decisions within a limited time under the requirements of real-time and rapidity. Moreover, the priority calculation is unreasonable due to inconsistent terminal attribute values, which affects the accuracy of decision-making.
The GPHH algorithm is used to obtain the optimal scheduling rules and the value range of the terminal symbols. By randomly generating the initial population, historical workpiece processing instances and fitness value evaluation, crossover and mutation are performed, and the value range of the terminal symbols is updated to ensure that the scheduling rules are calculated in real time. for effective normalization.
It improves the accuracy and effectiveness of scheduling decisions, avoids the problem of large numbers eating small numbers, and ensures the quality of real-time scheduling in dynamic environments.
Smart Images

Figure CN115469612B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of workshop scheduling, and more specifically, the present invention relates to a dynamic scheduling method and system for a job shop. Background Art
[0002] As manufacturing technology develops towards intelligence, knowledge, efficiency, agility and greenness, the traditional workshop scheduling method based on manual experience can obviously no longer meet the needs of enterprises. With the popularization of emerging technologies such as big data and artificial intelligence, the realization of automated intelligent production scheduling in workshops through intelligent algorithms is an important measure and key method for the manufacturing industry to quickly respond to market changes and improve production efficiency and energy efficiency.
[0003] The main purpose of the dynamic workshop scheduling problem is to reasonably arrange all the processes of several workpieces to different machine tools through effective scheduling decisions within a limited time, so as to optimize the overall scheduling objectives (such as processing time, energy consumption, etc.). Compared with static scheduling, the so-called dynamicity emphasizes the real-time and rapidity of the workshop scheduling decision in the actual production process, so as to effectively deal with uncertain events in the dynamic actual environment (such as the arrival of new workpieces, machine failures, etc.), and ultimately achieve the purpose of dynamic online scheduling.
[0004] The workshop scheduling optimization problem is essentially a combinatorial optimization problem, which aims to reasonably sort the processing procedures and assign them to the appropriate machine tools to optimize the required performance indicators. The main techniques for solving this type of problem include: mathematical programming, heuristic methods and hyper-heuristic methods.
[0005] A large number of studies have shown that although mathematical programming methods represented by branch-and-bound methods can obtain global optimal exact solutions, they are limited by their high computational complexity and are only applicable to static small-scale scheduling problems. For large-scale and complex dynamic scheduling problems, heuristic algorithms have received widespread attention because they can obtain approximate optimal solutions within a reasonable time range and strike a balance between solution time and optimization effect. However, considering the real-time and rapid requirements of dynamic scheduling problems, heuristic algorithms are also difficult to make scheduling optimization decisions within a limited time.
[0006] The hyper-heuristic method is different from the heuristic method. It uses pre-trained scheduling rules to make scheduling decisions. When making scheduling decisions, it calculates the priority of each process based on the scheduling rules, and selects the process with the highest priority as the next processing process of the machine tool. The entire scheduling process is completed in this way. The specific process is as follows: Figure 1 shown.
[0007] In a dynamic job shop, new workpieces to be processed are constantly arriving at the shop. New parts need to go through multiple processes to complete processing, so the parts will be arranged in the waiting queue of the machine tool specified by the next process according to the process sequence. When the machine tool completes the corresponding process of a part, the part will be placed in the queue of the designated machine tool for the next process, or when all processes are completed, it will leave the shop as a finished part. At the same time, based on the scheduling rules and the current workshop status, the next processing process / part is selected from the process queue of the machine tool. Scheduling decisions are continuously made through scheduling rules (that is, the next processing process is selected from the process queue for the machine tool that has completed the current processing), and each process is reasonably arranged on different machine tools, and finally the scheduling and production tasks are completed.
[0008] However, although the scheduling rule can make scheduling decisions in a relatively short time, its priority calculation is based on the workshop attributes (i.e., terminal symbols). The problem is that terminal symbols generally involve attribute values of various aspects such as workshops, workpieces, and machine tools, and the value ranges of these attribute values are different (i.e., inconsistent dimensions), which can easily lead to problems such as "large numbers eating small numbers" in actual calculations, making terminal symbols with small dimensions useless in actual calculations, ultimately affecting the rationality of the decision. In addition, since the dynamic online scheduling method based on scheduling rules is a real-time calculation, it is impossible to obtain the actual value range of each terminal symbol in advance, and it is also impossible to perform dimensionless processing on the terminal symbols in advance. Summary of the invention
[0009] The present invention provides a dynamic scheduling method for a job shop, aiming to improve the above-mentioned problem.
[0010] The present invention is implemented as follows: a dynamic scheduling method for a job shop, the method specifically comprising the following steps:
[0011] S1. Obtain the optimal dispatching rule and the value range of the terminal symbol in the dispatching rule. The dispatching rule is composed of the terminal symbol and the operation between the terminal symbols;
[0012] S2. After the machine tool completes the current processing procedure, it detects whether the corresponding queue of workpieces to be processed is empty. If it is not empty, the priority of each process in the queue of workpieces to be processed of the current machine tool is calculated based on the scheduling rules, and the workpiece of the process with the best priority is input into the corresponding machine tool for further processing;
[0013] S3. Determine whether the currently completed process is the last process of the workpiece. If the detection result is yes, the workpiece is completed and sent out of the workshop. If the detection result is no, read the next process and send the workpiece to the queue of workpieces to be processed by the machine tool used for the next process, and return to step S2.
[0014] Furthermore, the optimal scheduling rule and the value range of the terminal symbol in the scheduling rule are obtained through the GPHH algorithm.
[0015] Furthermore, the optimal scheduling rule and the value range of the terminal symbol in the scheduling rule are obtained as follows:
[0016] S11, generating an initial population by random generation, wherein each individual in the initial population has a different dispatching rule, and initializing the value range of each terminal symbol in the dispatching rule;
[0017] S12, obtaining historical workpiece processing instances, and generating a scheduling scheme for evaluating individual fitness values based on the workpiece processing instances and the scheduling rules of each individual;
[0018] S13, calculating the fitness value of each individual based on the scheduling scheme;
[0019] S14. Check whether the current number of iterations reaches the threshold. If the test result is yes, output the scheduling rule of the current optimal fitness value and the value range of the terminal symbol in the scheduling rule. If the test result is no, retain the individuals with better fitness, generate a new population through crossover and mutation, and update the value range of each terminal symbol in the population, and execute step S12.
[0020] Furthermore, the method for obtaining the scheduling plan is as follows:
[0021] S121, normalizing the value of the terminal symbol based on the value range of the terminal symbol;
[0022] S122, calculating the process with the best priority in the queue of workpieces to be processed of the current machine tool based on the scheduling rules;
[0023] S123, sending the workpiece corresponding to the process with the best priority to the current machine tool for processing;
[0024] S124, after the machine tool completes all processing tasks of the current process, check whether the queue of workpieces to be processed of the machine tool is empty. If the detection result is no, execute step S122; if the detection result is yes, execute step S125;
[0025] S125. Check whether all processes of all workpieces have been executed. If the detection result is yes, generate a scheduling plan, which is the processing order of all processes of each workpiece on each machine tool. If the detection result is no, execute step S122.
[0026] Furthermore, the terminal symbols include: process processing time PT, process processing energy consumption EC, total processing time WIQ of all processes in the machine tool queue, standby power MP of the machine tool corresponding to the process, and total remaining processing time WKR of the workpiece.
[0027] Furthermore, the scheduling rule consists of at least one terminal symbol.
[0028] Furthermore, the method for updating the terminal symbol value range is as follows:
[0029] Get the terminal symbol value of each individual in the scheduling plan. If there is a terminal symbol value greater than the maximum value of the corresponding terminal symbol value range, update the maximum value of the terminal symbol value range to the current terminal symbol value. If there is a terminal symbol value less than the minimum value of the corresponding terminal symbol value range, update the minimum value of the terminal symbol value range to the current terminal symbol value.
[0030] The present invention is implemented as follows: a dynamic scheduling system for a job shop, the system comprising:
[0031] m machine tools, each of which is provided with a buffer area for storing workpieces to be processed on the machine tool, each of which performs at least one process, and a transmission device provided between the machine tools, and all the machine tools and the transmission devices are communicatively connected with the control unit;
[0032] The control unit selects the workpiece to be processed from the buffer area of each machine tool based on the dynamic scheduling method of the above-mentioned job shop. After the workpiece is processed on the machine tool corresponding to the current process, the control transmission device is controlled to transfer the workpiece to the buffer area of the machine tool corresponding to the next process.
[0033] Furthermore, all the workpieces to be processed in the buffer area constitute a queue of workpieces to be processed of the corresponding machine tool.
[0034] The dispatching rules of the present invention have range files, which ensure that the dispatching rules can be normalized by the maximum and minimum values in the range files when making dispatching decisions. This can effectively improve the problem of large numbers eating up small numbers and provide more accurate process priority calculation results, thereby ensuring the effectiveness of dispatching decisions. In addition, a method for updating the range files is also provided, so that it can be updated with the same population as the iteration of the GPHH algorithm, thereby ensuring the accuracy of its maximum and minimum values and improving the normalization of terminal symbols and the quality of dispatching decisions. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 A schematic diagram of an existing processing step scheduling process provided by an embodiment of the present invention;
[0036] Figure 2 A schematic diagram of a machining workpiece scheduling process with a terminal symbol value range provided by an embodiment of the present invention;
[0037] Figure 3 A flow chart of the optimal dispatching rule of the GPHH algorithm and the method for obtaining the value range of the terminal symbol in the dispatching rule provided by the embodiment of the present invention;
[0038] Figure 4 A schematic diagram of an optimal process for the value range of terminal symbols in a scheduling rule provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0039] The specific implementation modes of the present invention are further explained in detail below by describing the embodiments with reference to the accompanying drawings, so as to help those skilled in the art to have a more complete, accurate and in-depth understanding of the inventive concept and technical solution of the present invention.
[0040] Figure 2 A flow chart of a dynamic scheduling method for a job shop provided by an embodiment of the present invention, the method specifically comprises the following steps:
[0041] S1. Obtain the optimal dispatching rules and the value range of the terminal symbols in the dispatching rules based on the GPHH algorithm. The dispatching rules are composed of terminal symbols and operations between terminal symbols (such as addition, subtraction, multiplication, division, max / min, etc.);
[0042] In the embodiment of the present invention, the terminal symbols include: process processing time PT, process processing energy consumption EC, total processing time WIQ of all processes in the machine tool queue, standby power MP of the machine tool corresponding to the process, total remaining processing time WKR of the workpiece, and other attributes related to the workshop, workpiece, and machine tool; the scheduling rule is composed of some of the above terminal symbols and the operation rules between the terminal symbols. The optimal scheduling rule in the present invention and the value range of the terminal symbol in the scheduling rule are obtained based on the GPHH algorithm (Genetic Programming Hyper-Heuristic, GPHH) algorithm, such as Figure 3 As shown, the acquisition process is as follows:
[0043] S11, generating an initial population by random generation, wherein each individual in the initial population has a different dispatching rule, and initializing the value range of each terminal symbol in the dispatching rule;
[0044] S12, obtaining historical workpiece processing instances, and generating a scheduling scheme for evaluating individual fitness values based on the workpiece processing instances and each individual;
[0045] In the embodiment of the present invention, the historical workpiece processing instance refers to an existing workpiece processing instance, which is composed of various types of workpieces produced at the same time, the process sequence of the workpiece, and the specified machine tool type of the process. The method for obtaining the individual scheduling plan is as follows:
[0046] S121, normalizing the value of the terminal symbol based on the value range of the terminal symbol;
[0047] S122, calculating the process with the best priority in the queue of workpieces to be processed of the current machine tool based on the scheduling rule, where the workpieces to be processed in the queue are located in the buffer area of the machine tool;
[0048] S123, sending the workpiece corresponding to the process with the best priority to the current machine tool for processing;
[0049] S124, after the machine tool completes all processing tasks of the current process, check whether the queue of workpieces to be processed of the machine tool is empty. If the detection result is no, execute step S122; if the detection result is yes, execute step S125;
[0050] S125. Check whether all processes of all workpieces have been executed. If the detection result is yes, generate a scheduling plan, which is the processing order of all processes of each workpiece on each machine tool. If the detection result is no, execute step S122.
[0051] S13, calculating the fitness value of each individual based on the scheduling scheme;
[0052] In an embodiment of the present invention, the fitness value is used to evaluate the quality of the scheduling rules in the population. The maximum completion time and / or energy consumption of the scheduling scheme can be selected as the calculation standard of the fitness value, and adaptive settings can be performed according to the actual needs.
[0053] S14, detect whether the current number of iterations reaches the number threshold. If the detection result is yes, output the dispatching rule of the current optimal fitness value and the value range of the terminal symbol in the dispatching rule. If the detection result is no, retain the individuals with better fitness, generate a new population through crossover and mutation, and update the value range of each terminal symbol in the population, and execute step S12;
[0054] In the embodiment of the present invention, the method for updating the terminal symbol value range is specifically as follows:
[0055] Get the terminal symbol value of each individual in the scheduling scheme. If there is a terminal symbol value greater than the maximum value of the corresponding terminal symbol value range, then update the maximum value of the terminal symbol value range to the current terminal symbol value. If there is a terminal symbol value less than the minimum value of the corresponding terminal symbol value range, then update the minimum value of the terminal symbol value range to the current terminal symbol value. Figure 4 As shown in FIG. 1 , since the crossover mutation of the scheduling rules and the generation process of the new population adopt the existing method, no detailed description is given for this part.
[0056] S2. After the machine tool completes the current processing procedure, it detects whether the corresponding queue of workpieces to be processed is empty. If it is not empty, the priority of each process in the queue of workpieces to be processed of the current machine tool is calculated based on the scheduling rule, and the workpiece of the process with the best priority is input to the corresponding machine tool for further processing. If it is empty, the machine tool is in a standby state.
[0057] In the embodiment of the present invention, there is a group of machine tools M1, M2, ..., M m , n workpieces J1,J2,...,J n Arriving at the system sequentially over time, workpiece J i The processing must be carried out in the specified process sequence, and the corresponding process sequence is defined as O i1 ,O i2 ,…,O ik , workpiece J i There are k processes. The next process can only be executed after the previous process is completed. Based on the current process to be processed, each workpiece J is placed in turn. i Put it into the queue of workpieces to be processed of the machine tool corresponding to the corresponding process.
[0058] S3. Determine whether the currently completed process is the last process of the workpiece. If the detection result is yes, the workpiece is completed and sent out of the workshop. If the detection result is no, read the next process and send the workpiece to the queue of workpieces to be processed by the machine tool used for the next process, and return to step S2.
[0059] The machine tool can execute multiple processes, but can only execute one process at the same time. Therefore, it is necessary to calculate the priority of each workpiece process in the processing workpiece queue, give priority to the process with the best priority, and send the workpieces corresponding to the process into the machine tool in sequence.
[0060] Read the next process of the workpiece corresponding to the current process completed by the above-mentioned machine tool, and check whether the queue to be processed corresponding to the machine tool of the next process is empty. If the detection result is yes, the workpiece is directly placed on the machine tool of the next process for processing; if the detection result is no, the workpiece is placed in the queue to be processed of the corresponding machine tool and execute step S2.
[0061] The present invention also provides a workshop operation system, the system comprising:
[0062] m machine tools, each of which is provided with a buffer area for storing workpieces to be processed on the machine tool, each of which performs at least one process, and a transmission device (such as a transport machine, a trolley, etc.) provided between the machine tools; all the machine tools and the transmission devices are communicatively connected with the control unit;
[0063] The control unit selects the current workpiece to be processed from the cache area of each machine tool based on the dynamic scheduling method of the above-mentioned job shop. After the workpiece is processed on the machine tool corresponding to the current process, the workpiece is transmitted to the cache area of the machine tool corresponding to the next process through a transmission device. All the workpieces to be processed in the cache area constitute a queue of workpieces to be processed.
[0064] The present invention has been described exemplarily. Obviously, the specific implementation of the present invention is not limited to the above-mentioned method. As long as various non-substantial improvements are made using the method concept and technical solution of the present invention, or the concept and technical solution of the present invention are directly applied to other occasions without improvement, they are all within the protection scope of the present invention.
Claims
1. A dynamic scheduling method for a job shop, characterized in that: The method specifically comprises the following steps: S1. Obtain the optimal dispatching rule and the value range of the terminal symbol in the dispatching rule. The dispatching rule is composed of the terminal symbol and the operation between the terminal symbols; S2. After the machine tool completes the current processing procedure, it detects whether the corresponding queue of workpieces to be processed is empty. If it is not empty, the priority of each process in the queue of workpieces to be processed of the current machine tool is calculated based on the scheduling rules, and the workpiece of the process with the best priority is input into the corresponding machine tool for further processing; S3, judging whether the currently completed process is the last process of the workpiece, if the detection result is yes, the workpiece is completed and sent out of the workshop, if the detection result is no, read the next process, and send the workpiece to the queue of workpieces to be processed of the machine tool used for the next process, and return to step S2; The GPHH algorithm is used to obtain the optimal dispatching rules and the value range of the terminal symbols in the dispatching rules; The process of obtaining the optimal scheduling rule and the value range of the terminal symbol in the scheduling rule is as follows: S11, generating an initial population by random generation, wherein each individual in the initial population has a different dispatching rule, and initializing the value range of each terminal symbol in the dispatching rule; S12, obtaining historical workpiece processing instances, and generating a scheduling scheme for evaluating individual fitness values based on the workpiece processing instances and the scheduling rules of each individual; S13, calculating the fitness value of each individual based on the scheduling scheme; S14, detect whether the current number of iterations reaches the number threshold. If the detection result is yes, output the dispatching rule of the current optimal fitness value and the value range of the terminal symbol in the dispatching rule. If the detection result is no, retain the individuals with better fitness, generate a new population through crossover and mutation, and update the value range of each terminal symbol in the population, and execute step S12; The specific method for obtaining the scheduling plan is as follows: S121, normalizing the value of the terminal symbol based on the value range of the terminal symbol; S122, calculating the process with the best priority in the queue of workpieces to be processed of the current machine tool based on the scheduling rules; S123, sending the workpiece corresponding to the process with the best priority to the current machine tool for processing; S124, after the machine tool completes all processing tasks of the current process, check whether the queue of workpieces to be processed of the machine tool is empty. If the detection result is no, execute step S122; if the detection result is yes, execute step S125; S125, check whether all processes of all workpieces have been executed. If the detection result is yes, generate a scheduling plan, which is the processing order of all processes of each workpiece on each machine tool. If the detection result is no, execute step S122; The method for updating the terminal symbol value range is as follows: Get the terminal symbol value of each individual in the scheduling plan. If there is a terminal symbol value greater than the maximum value of the corresponding terminal symbol value range, update the maximum value of the terminal symbol value range to the current terminal symbol value. If there is a terminal symbol value less than the minimum value of the corresponding terminal symbol value range, update the minimum value of the terminal symbol value range to the current terminal symbol value.
2. The dynamic scheduling method for a job shop according to any one of claims 1, characterized in that: The terminal symbols include: process processing time PT, process processing energy consumption EC, total processing time WIQ of all processes in the machine tool queue, standby power MP of the machine tool corresponding to the process, and total remaining processing time WKR of the workpiece.
3. The dynamic scheduling method of a job shop as claimed in claim 2, characterized in that: The scheduling rule consists of at least one terminal symbol.
4. A dynamic scheduling system for a job shop, characterized in that: The system comprises: m machine tools, each of which is provided with a buffer area for storing workpieces to be processed on the machine tool, each of which performs at least one process, and a transmission device provided between the machine tools, and all the machine tools and the transmission devices are communicatively connected with the control unit; The control unit selects the workpiece to be processed from the cache area of each machine tool based on the dynamic scheduling method of the job shop described in any one of claims 1 to 3. After the workpiece is processed on the machine tool corresponding to the current process, the control transmission device is controlled to transfer the workpiece to the cache area of the machine tool corresponding to the next process.
5. The dynamic scheduling system for a job shop as claimed in claim 4, characterized in that: All the workpieces to be processed located in the buffer area constitute a queue of workpieces to be processed of the corresponding machine tool.
Citation Information
Patent Citations
Self-adapting selection dynamic production scheduling control system accomplished through computer
CN101216710A
Genetic programming algorithm based on local search for dynamic job shop scheduling
CN106610641A
Scheduling rule updating method, device, system, storage medium and terminal
WO2020062047A1
Temporal difference-based hybrid flow-shop scheduling method
WO2022135066A1
