A flexible job shop scheduling method, system, medium and device
The production schedule of the flexible job shop is optimized through the population evolution algorithm and the domain search algorithm, and combined with the tabu search algorithm, the problem of low efficiency of production plan scheduling in the existing technology is solved, and the efficient completion of workshop tasks and production planning are achieved. of smooth execution.
Patent Information
- Application Number
- CN202410815554.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-06-24
AI Technical Summary
In flexible work workshops, existing technology is difficult to effectively optimize production planning and scheduling, resulting in low efficiency.
The population evolution algorithm and domain search algorithm are used to optimize the production schedule. The initial population solution is generated through data processing and coding processing, and selection, crossover and mutation processing are performed. It is combined with the tabu search algorithm for global optimization until the preset termination conditions are met. Obtain the optimal solution.
It minimizes the completion time of workshop tasks, ensures the smooth execution of production plans, and improves the production efficiency of flexible work workshops.
Smart Images

Figure CN118410992B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of production planning and scheduling, and in particular to a flexible job shop scheduling method, system, medium and equipment. Background Art
[0002] In a flexible job shop, numerous production equipment, various types of parts to be processed, and multiple processes for each part together constitute the basic elements of production activities. However, a single device can only handle one task at a time, and the process sequence of each part is fixed and cannot be changed at will. In addition, although each process can be performed by multiple devices, each process can only be performed once, and once started, it cannot be interrupted.
[0003] Therefore, how to optimize the production planning and scheduling in the flexible job workshop is a problem that needs to be solved urgently. Summary of the invention
[0004] The present application provides a flexible job shop scheduling method, system, medium and equipment, aiming to solve the technical problem of low efficiency of production planning and scheduling in flexible job shops in the prior art.
[0005] To solve the above technical problems, the present application provides a flexible job shop scheduling method, comprising the following steps:
[0006] Acquire part production plan information in the production system; wherein the part production plan information includes part information, part process information, executable device information corresponding to the process execution, and time information required for its execution;
[0007] Performing data processing on the parts production plan information to obtain valid data;
[0008] Performing encoding processing on the valid data to obtain a first generation population solution;
[0009] Solving the first generation population solution based on a population evolution algorithm to obtain a second generation population solution;
[0010] The second generation population solution is optimized based on the domain search algorithm to obtain production scheduling information.
[0011] As some optional implementations of the present application, the step of solving the first generation population solution based on the population evolution algorithm to obtain the second generation population solution includes:
[0012] Convert the first generation population solution into a fitness function;
[0013] Based on the fitness function, selecting a first generation target population;
[0014] After performing selection, crossover and mutation processing on the first generation target population based on the population evolution algorithm, a second generation population solution is obtained.
[0015] As some optional implementation methods of the present application, the step of screening out the first generation target population based on the fitness function includes:
[0016] Based on the fitness function, screening out a first target individual whose fitness value is higher than a preset fitness threshold;
[0017] Based on the first target individual, a first target population is obtained.
[0018] As some optional implementations of the present application, the step of obtaining a second-generation population solution after performing selection processing, crossover processing and mutation processing on the first-generation target population based on the population evolution algorithm includes:
[0019] The first generation target population is selected based on the population evolution algorithm to obtain the first generation target population A; wherein the first generation target population A includes the OS chromosome and the MS chromosome;
[0020] Performing crossover processing on the gene information of the OS chromosome and performing crossover processing on the gene information of the MS chromosome to obtain a plurality of second-generation initial individuals;
[0021] performing mutation processing on each of the second-generation initial individuals to obtain a plurality of second-generation individuals;
[0022] Based on the plurality of the second-generation individuals, a second-generation population solution is obtained.
[0023] As some optional implementations of the present application, the step of performing crossover processing on the gene information of the OS chromosome and performing crossover processing on the gene information of the MS chromosome to obtain a plurality of second-generation initial individuals includes:
[0024] The gene information of the OS chromosome is cross-processed using the POX method and the JBX method;
[0025] Randomly select the gene information at the positions in the two MS chromosomes for crossover processing;
[0026] A plurality of second-generation initial individuals are obtained.
[0027] As some optional implementation methods of the present application, the step of optimizing the second-generation population solution based on the domain search algorithm to obtain production scheduling information includes:
[0028] The second generation population solution is optimized based on the taboo search algorithm to obtain the third generation optimized individuals;
[0029] Determine whether the third-generation optimized individual meets a preset termination condition;
[0030] If not, the third-generation optimized individuals are used as the first-generation target population, and the first-generation target population is again subjected to selection, crossover, mutation, and taboo search optimization based on the population evolution algorithm until the obtained optimized individuals meet the preset termination conditions;
[0031] If it is satisfied, the third generation optimization individual is used as the optimal solution for decoding processing to obtain production scheduling information.
[0032] As some optional implementation methods of the present application, the step of optimizing the second generation population solution based on the taboo search algorithm to obtain the third generation optimized individuals includes:
[0033] Based on the second generation population solution, set the parameters of the taboo table, initialize the parameters, and obtain an initial solution; wherein the parameters include the maximum number of iterations, the taboo length value, the number of domain solutions, and the number of candidate solutions;
[0034] Based on the initial solution, a domain solution is obtained; based on the domain solution, a candidate solution is obtained; based on the candidate solution, an initial taboo table is obtained;
[0035] Updating the initial taboo list based on the contempt criteria;
[0036] Based on the updated taboo table, the third generation optimized individuals are obtained.
[0037] As some optional implementation modes of the present application, the step of updating the initial taboo table based on the contempt criteria includes:
[0038] Determine whether each candidate solution in the taboo table satisfies the contempt criterion;
[0039] If it is satisfied, the candidate solution that satisfies the contempt criterion is taken as the current solution, and the taboo table is updated;
[0040] If not, a taboo attribute judgment is performed on the candidate solution that does not meet the contempt criterion, and the initial taboo table is updated based on the judgment result.
[0041] As some optional implementation modes of the present application, the step of judging whether each candidate solution in the taboo table satisfies the contempt criterion includes:
[0042] Obtaining the maximum fitness value of the candidate solutions in the taboo table;
[0043] Comparing the maximum fitness value with the fitness value of the initial solution to obtain a comparison result;
[0044] Based on the comparison result, it is determined whether each candidate solution in the taboo table satisfies the contempt criterion.
[0045] As some optional implementation methods of the present application, the step of judging whether each candidate solution in the taboo table satisfies the contempt criterion based on the comparison result includes:
[0046] If the maximum fitness value of the candidate solution is greater than the fitness value of the initial solution, then the candidate solution meets the contempt criterion;
[0047] If the maximum fitness value of the candidate solution is not greater than the fitness value of the initial solution, the candidate solution does not meet the contempt criterion.
[0048] As some optional implementation methods of the present application, if the condition is satisfied, the step of taking the candidate solution satisfying the contempt criterion as the current solution and updating the taboo table includes:
[0049] If it is satisfied, the candidate solution that satisfies the contempt criterion is taken as the current solution;
[0050] The object that first enters the taboo table is replaced and updated based on the object corresponding to the current solution.
[0051] As some optional implementation methods of the present application, if the condition is not satisfied, the step of judging the taboo attribute of the candidate solution that does not satisfy the contempt criterion, and updating the initial taboo table based on the judgment result includes:
[0052] If not, the taboo attribute is judged on the candidate solution that does not meet the contempt criterion to obtain the taboo object and the non-taboo object;
[0053] Taking the candidate solution corresponding to the non-taboo object as the current solution;
[0054] The object that first enters the taboo table is replaced and updated based on the object corresponding to the current solution.
[0055] As some optional implementation methods of the present application, the step of performing data processing on the parts production plan information to obtain valid data includes:
[0056] Data analysis and cleaning are performed on the parts production plan information to obtain valid data; wherein the format of the valid data is a standard example format that can be recognized by both the population evolution algorithm and the domain search algorithm.
[0057] As some optional implementation modes of the present application, the valid data consists of multiple lines of data;
[0058] In the first row, the first number represents the number of parts to be processed, the second number represents the number of available equipment, and the third number represents the number of available equipment for one process of one part;
[0059] Starting from the second row, each row represents the n-1th part that needs to be processed, decreasing in sequence;
[0060] The first number in each row represents the total number of processes for the part; starting from the second number, it represents the number of available equipment for the process, the number of available equipment, and the corresponding processing time.
[0061] To solve the above technical problems, the present application also provides a flexible job shop scheduling system, including:
[0062] An information acquisition module is used to acquire part production plan information in the production system; wherein the part production plan information includes part information, part process information, executable device information corresponding to the process execution, and time information required for its execution;
[0063] A data processing module, used for processing the parts production plan information to obtain valid data;
[0064] A coding processing module, used for coding the valid data to obtain a first generation population solution;
[0065] A local optimization module, used for solving the first generation population solution based on a population evolution algorithm to obtain a second generation population solution;
[0066] The global optimization module is used to optimize the second-generation population solution based on the domain search algorithm to obtain production scheduling information.
[0067] To solve the above technical problems, an embodiment of the present application further provides: a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the above method.
[0068] To solve the above technical problems, an embodiment of the present application further provides: a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and a processor executes the computer program to implement the above method.
[0069] Compared with the prior art, the flexible job shop scheduling method described in the embodiment of the present application includes the following steps: obtaining the part production plan information in the production system; performing data processing on the part production plan information to obtain valid data; encoding the valid data to obtain the first generation population solution; solving the first generation population solution based on the population evolution algorithm to obtain the second generation population solution; optimizing the second generation population solution based on the domain search algorithm to obtain the production scheduling information. It can be seen that the flexible job shop scheduling method described in the embodiment of the present application optimizes the production scheduling plan through the population evolution algorithm and the domain search algorithm in turn to obtain the production scheduling information of the optimal solution; that is, the production scheduling plan is locally optimized through the population evolution algorithm, and then the locally optimized production scheduling plan is globally optimized through the domain search algorithm, so as to minimize the completion time of the workshop tasks and ensure the smooth execution of the workshop production plan. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] In order to more clearly illustrate the specific implementation of the present application or the technical solution in the prior art, the following is a brief introduction to the drawings required for the specific implementation or the prior art description. In all drawings, similar elements or parts are generally identified by similar reference numerals. In the drawings, each element or part is not necessarily drawn according to the actual scale.
[0071] Figure 1 A schematic diagram of the computer device structure of the hardware operating environment involved in the embodiments of the present application;
[0072] Figure 2 A flow chart of a flexible job shop scheduling method involved in an embodiment of the present application;
[0073] Figure 3 A schematic diagram of valid data in a standard example format involved in the embodiments of the present application;
[0074] Figure 4 A schematic diagram of a population evolution and domain search algorithm and a flow chart involved in the embodiments of the present application;
[0075] Figure 5 A schematic diagram of the taboo search algorithm process involved in the embodiments of the present application;
[0076] Figure 6 This is a schematic diagram of the functional module structure of the flexible job shop scheduling system involved in this application.
[0077] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0078] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0079] It should be noted that all directional indications in the embodiments of the present application (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components in a certain specific posture. If the specific posture changes, the directional indication will also change accordingly.
[0080] In this application, unless otherwise clearly specified and limited, the terms "connection", "fixation", etc. should be understood in a broad sense. For example, "fixation" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0081] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present application, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the meaning of "and / or" appearing in the full text includes three parallel schemes. Taking "A and / or B" as an example, it includes scheme A, or scheme B, or a scheme that satisfies both A and B. In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the ability of ordinary technicians in the field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0082] Reference Figure 1 , Figure 1 This is a schematic diagram of the computer device structure of the hardware operating environment involved in this embodiment, such as Figure 1As shown, the computer device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (WIreless-FIdelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage system independent of the aforementioned processor 1001.
[0083] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the computer device, and may include more or less components than shown in the figure, or combine some components, or arrange the components differently.
[0084] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and an electronic program, and may also include a data storage module.
[0085] exist Figure 1 In the computer device shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the computer device of this embodiment can be set in the computer device, and the computer device calls the flexible job shop scheduling system stored in the memory 1005 through the processor 1001, and executes the flexible job shop scheduling method provided in this embodiment.
[0086] It should be noted that the above-mentioned computer device may be an external hardware device that can run independently, or may be a hardware device that comes with the flexible job shop scheduling system itself.
[0087] As we all know, in a flexible workshop, there are m equipment that can be used for processing and production, n parts to be processed, and each part has k processes. If the equipment, parts, and processes are represented as:
[0088] Part set P = {p_1, p_2, ..., p_n}, where p_i is the i-th part, i = 1, 2, ..., n;
[0089] Device set M = {m_1, m_2, ..., m_m}, where m_j is the jth device, j = 1, 2, ..., m;
[0090] The process set OP = {[op]_1, [op]_2, …, [op]_n}, where [op]_i is the process that needs to be processed for the i-th part, expressed as [op]_i = {[op]_i1, [op]_i2, …, [op]im}, where [op]_ik represents the processing equipment of the k-th process of the i-th part, k = 1, 2, …, m;
[0091] Then the processing time of the i-th process of each part on the j-th device is t_ij, where t_ij=0 means that the i-th process of the part is not allowed to be processed on the j-th device.
[0092] But at the same time, there are also the following constraints: one device can only process one part at a time; the processing procedures of each part are not allowed to be changed and can only be processed in sequence; the same process can be processed by multiple devices, but can only be processed once; once a process starts, it cannot be interrupted in the middle.
[0093] Therefore, the production scheduling problem of a flexible job shop mainly lies in how to minimize the completion time of the shop tasks. Based on this, the embodiment of the present application proposes a flexible job shop scheduling method based on population evolution and domain search, which is used to solve the production scheduling problem of jobs in a flexible job shop under the condition of determining the equipment capacity limitation.
[0094] Specifically, refer to Figure 2 Based on the aforementioned hardware environment, this embodiment further provides a flexible job shop scheduling method, comprising the following steps:
[0095] Step S10, obtaining part production plan information in the production system; wherein the part production plan information includes part information, part process information, executable device information corresponding to the process execution and time information required for its execution.
[0096] It should be noted that the part production plan information refers to the part production plan information that requires production scheduling.
[0097] Step S20: Process the parts production plan information to obtain valid data.
[0098] In a specific embodiment, the step of performing data processing on the part production plan information to obtain valid data includes: performing data analysis and cleaning on the part production plan information to obtain valid data; wherein the format of the valid data is a standard example format that can be recognized by both the population evolution algorithm and the domain search algorithm.
[0099] Specifically, the valid data consists of multiple lines of data, such as Figure 3 As shown:
[0100] The first number in the first row represents the number of parts to be processed, the second number represents the number of available equipment, and the third number represents the number of available equipment for one process of one part;
[0101] Starting from the second row, each row represents the n-1th part that needs to be processed, decreasing in sequence;
[0102] The first number in each row represents the total number of processes for the part; starting from the second number, it represents the number of available equipment for the process, the number of available equipment, and the corresponding processing time.
[0103] like Figure 3 The data described in the figure indicates that the number of parts to be processed is 10 and the number of processing equipment is 11;
[0104] Take the second row of values as an example: when the part being processed is the 10th, the number of process steps is 10 (the first value);
[0105] The number of available equipment for the first process of this part is 2, namely equipment No. 1 (the third value) and equipment No. 11 (the fifth value). The processing time of equipment No. 1 is 29 minutes (the fourth value), and the processing time of equipment No. 11 is 29 minutes (the sixth value).
[0106] The number of available equipment for the second process of this part is 1 (the 7th value), that is, equipment No. 2 (the 8th value), and its processing time is 78 minutes (the 9th value);
[0107] The number of available equipment for the third process of this part is 1 (the 10th value), that is, equipment No. 3 (the 11th value), and its processing time is 9 minutes (the 12th value);
[0108] The number of available equipment for the fourth process of this part is 1 (the 13th value), that is, equipment No. 4 (the 14th value), and its processing time is 36 minutes (the 15th value);
[0109] The number of available equipment for the fifth process of this part is 1 (the 16th value), that is, equipment No. 5 (the 17th value), and its processing time is 49 minutes (the 18th value);
[0110] The number of available equipment for the sixth process of this part is 1 (the 19th value), that is, equipment No. 6 (the 20th value), and its processing time is 11 minutes (the 21st value);
[0111] The number of available equipment for the seventh process of this part is 1 (the 22nd value), that is, equipment No. 7 (the 23rd value), and its processing time is 62 minutes (the 24th value);
[0112] The number of available equipment for the 8th process of this part is 1 (the 25th value), that is, equipment No. 8 (the 26th value), and its processing time is 56 minutes (the 27th value);
[0113] The number of available equipment for the 9th process of this part is 1 (the 28th value), that is, equipment No. 9 (the 29th value), and its processing time is 44 minutes (the 30th value);
[0114] The number of available equipment for the 10th process of this part is 1 (the 31st value), that is, equipment No. 10 (the 32nd value), and its processing time is 21 minutes (the 33rd value).
[0115] The meanings of the corresponding columns of the values in other rows are the same as those in the second row, and will not be listed and explained one by one here.
[0116] Step S30: Encode the valid data to obtain a first generation population solution.
[0117] In practical applications, since the population evolution algorithm cannot be directly applied when it is applied to solve the production scheduling problem, it is necessary to encode the effective data to form chromosomes to facilitate the subsequent use of the population evolution algorithm for solving. That is, the effective data in the standard example format obtained in the above step S20 can be read to build a model, and then the GA genetic algorithm can be used for scheduling to obtain a feasible solution; then the taboo search algorithm is used to optimize the above feasible solution; and the GA genetic algorithm and the taboo search algorithm are continuously used for cyclic optimization until the algorithm converges.
[0118] Step S40: Solve the first generation population solution based on a population evolution algorithm to obtain a second generation population solution.
[0119] In a specific embodiment, the step of solving the first generation population solution based on the population evolution algorithm to obtain the second generation population solution includes: converting the first generation population solution into a fitness function; based on the fitness function, screening out the first generation target population; performing selection processing, crossover processing and mutation processing on the first generation target population based on the population evolution algorithm to obtain the second generation population solution. Specifically, the step of screening out the first generation target population based on the fitness function includes: based on the fitness function, screening out the first target individual whose fitness value is higher than the preset fitness threshold; based on the first target individual, obtaining the first target population.
[0120] It can be seen that the fitness function is suitable for judging the survival ability of individuals; through the above method, individuals with high fitness values, that is, individuals with strong survival ability, are screened out to obtain individuals with a greater probability of reproducing the next generation; on the contrary, individuals with low fitness values are easily eliminated. In order to ensure the legitimacy of the initial solution chromosome and meet the constraints of the problem, the first generation population solution can be randomly generated after encoding the valid data.
[0121] In a specific embodiment, the genetic algorithm is mainly implemented by genetic operators, which can adjust the search direction of the genetic algorithm according to the fitness value and determine the convergence speed and direction of the genetic algorithm. The GA algorithm contains three operators, namely, the selection operator, the crossover operator and the mutation operator, that is, the step of obtaining the second generation population solution after the first generation target population is subjected to selection, crossover and mutation processing based on the population evolution algorithm includes:
[0122] 1) Based on the population evolution algorithm, the first generation target population is selected to obtain the first generation target population A; wherein the first generation target population A includes the OS chromosome and the MS chromosome. It should be noted that the selection operator used in the selection process here is used to select excellent individuals in the population to reproduce offspring. Common selection operators include roulette selection, competition selection and random selection.
[0123] 2) Perform crossover processing on the genetic information of the OS chromosome and the genetic information of the MS chromosome to obtain multiple second-generation initial individuals. It should be noted that the crossover operator used in the crossover processing here refers to randomly crossing the genetic information of two chromosomes to form the next generation of individuals. Commonly used crossover operators include single-point crossover, multi-point crossover and uniform crossover. That is, the POX method and the JBX method are used to perform crossover processing on the genetic information of the OS chromosome; the genetic information of the positions in the two MS chromosomes is randomly selected for crossover processing; and multiple second-generation initial individuals are obtained.
[0124] 3) Perform mutation processing on each of the second generation initial individuals to obtain multiple second generation individuals. It should be noted that the mutation operator used in the mutation processing here refers to some random factors, which randomly change the individuals to increase the diversity of the search space.
[0125] 4) Based on multiple second-generation individuals, a second-generation population solution is obtained.
[0126] However, since the genetic algorithm needs to solve a large number of samples and has the disadvantage of being trapped in a local optimal solution and unable to obtain a global optimal solution, this application introduces a taboo search algorithm, which uses the taboo criterion to avoid repeated searches on the basis of field search and pardons some tabooed excellent states through the contempt criterion to achieve global optimality.
[0127] Step S50: Optimize the second generation population solution based on the domain search algorithm to obtain production scheduling information.
[0128] In a specific embodiment, the step of optimizing the second generation population solution based on the domain search algorithm to obtain production scheduling information includes:
[0129] The second generation population solution is optimized based on the taboo search algorithm to obtain the third generation optimized individuals;
[0130] Determine whether the third-generation optimized individual meets a preset termination condition;
[0131] If not, the third-generation optimized individuals are used as the first-generation target population, and the first-generation target population is again subjected to selection, crossover, mutation, and taboo search optimization based on the population evolution algorithm until the obtained optimized individuals meet the preset termination conditions;
[0132] If it is satisfied, the third generation optimization individual is used as the optimal solution for decoding processing to obtain production scheduling information.
[0133] Specifically, the step of optimizing the second-generation population solution based on the taboo search algorithm to obtain the third-generation optimized individuals includes: setting parameters of the taboo table based on the second-generation population solution, initializing the parameters, and obtaining an initial solution; wherein the parameters include the maximum number of iterations, the taboo length value, the number of domain solutions, and the number of candidate solutions; obtaining a domain solution based on the initial solution; obtaining a candidate solution based on the domain solution; obtaining an initial taboo table based on the candidate solution; updating the initial taboo table based on the contempt criterion; and obtaining the third-generation optimized individuals based on the updated taboo table.
[0134] Specifically, the step of updating the initial taboo table based on the contempt criterion includes: judging whether each candidate solution in the taboo table satisfies the contempt criterion; if so, taking the candidate solution satisfying the contempt criterion as the current solution and updating the taboo table; if not, judging the taboo attributes of the candidate solutions that do not satisfy the contempt criterion, and updating the initial taboo table based on the judgment result.
[0135] Specifically, the step of judging whether each candidate solution in the taboo table satisfies the contempt criterion includes: obtaining the maximum fitness value of the candidate solutions in the taboo table; comparing the optimal fitness value with the fitness value of the initial solution to obtain a comparison result; based on the comparison result, judging whether each candidate solution in the taboo table satisfies the contempt criterion.
[0136] Specifically, the step of judging whether each candidate solution in the taboo table satisfies the contempt criterion based on the comparison result includes: if the best fitness value of the candidate solution is greater than the fitness value of the initial solution, then the candidate solution satisfies the contempt criterion; if the best fitness value of the candidate solution is not greater than the fitness value of the initial solution, then the candidate solution does not meet the contempt criterion.
[0137] Specifically, the step of taking the candidate solution that meets the contempt criterion as the current solution and updating the taboo table includes: if satisfied, taking the candidate solution that meets the contempt criterion as the current solution; replacing and updating the object that first enters the taboo table based on the object corresponding to the current solution.
[0138] Specifically, the step of performing taboo attribute judgment on the candidate solutions that do not meet the contempt criterion if the condition is not satisfied, and updating the initial taboo table based on the judgment result includes: if the condition is not satisfied, performing taboo attribute judgment on the candidate solutions that do not meet the contempt criterion to obtain taboo objects and non-taboo objects; taking the candidate solutions corresponding to the non-taboo objects as the current solutions; and replacing and updating the objects that first entered the taboo table based on the objects corresponding to the current solution.
[0139] That is Figure 4The schematic diagram of the algorithm and flow chart based on population evolution and domain search shown mainly includes the following steps: after the parameters are set, the initial population is randomly generated, the algorithm is used to perform population evolution processing, and whether the evolution is terminated is determined by judging whether the initial population meets the termination condition; if so, the individual with the highest fitness is selected as the output result for output, and the process is terminated; if not, the evolution processing is continued through the selection operator, crossover operator and mutation operator in sequence, and a new generation of optimized individuals is generated by using taboo search after the evolution processing is completed, and it is determined whether the new generation of optimized individuals meets the termination condition and whether the evolution is terminated; if so, the new generation of optimized individuals is selected as the output result for output, and the process is terminated; if not, the evolution cycle is entered, that is, the evolution processing is performed through the selection operator, crossover operator and mutation operator in sequence, and a new generation of optimized individuals is generated by using taboo search after the evolution processing is completed.
[0140] Specifically, the taboo search algorithm process is as follows: Figure 5 As shown, that is: initialize parameters, obtain initial solution, and empty taboo table; determine whether the convergence criterion is met, if so, output optimization result and end; if not, generate domain solution and candidate solution from current solution; determine whether the candidate solution meets contempt criterion, if so, use solution that meets contempt criterion as current solution, and replace object that enters taboo table earliest with its corresponding object, and update optimal state; if not, perform taboo attribute judgment on candidate solution, use best solution that is non-taboo object as current solution, and replace object that enters taboo table earliest with object of current solution; determine whether current taboo table meets convergence criterion again, if so, output optimization result and end; if not, repeat the above steps to cycle until convergence criterion is met.
[0141] In actual application, after obtaining the production scheduling information through the above steps, it can also include: integrating the production scheduling information into the production system, and the planner provides feedback on the scheduling results. If the planner is satisfied with the results, a material preparation plan is generated; if the planner is not satisfied with the scheduling results, the planner can choose to manually adjust the scheduling plan, or adjust the part production plan data, and repeat the above steps S10-S50.
[0142] It should be noted that after the production system obtains the scheduling results, it can be displayed to the planner in the form of a list or rendered as a Gantt chart. The planner can calculate the equipment utilization rate based on the production schedule and generate demand plans for tools, tooling, NC programs, etc.
[0143] It can be seen that this application realizes the rapid scheduling of digital workshop operations by constructing a flexible job shop scheduling method based on population evolution and domain search. Planners quickly obtain a feasible solution for workshop operations through population evolution and domain search algorithms, and adjust the plan based on the feasible solution. At the same time, corresponding resource demand plans are generated according to the scheduling results to ensure the smooth execution of workshop production plans, and provide a set of solutions for the upgrade of smart workshops in terms of intelligent scheduling.
[0144] That is, the search direction of the genetic algorithm is guided by the taboo search strategy, so as to avoid falling into the local optimal solution and improve the global search ability of the algorithm. At the same time, the mutation operation of the genetic algorithm can also increase the randomness of the search process, which helps to jump out of the local optimal solution. And by dynamically adjusting the taboo strategy according to the current search situation during the search process; in the dynamic taboo, the length of the taboo period can be dynamically adjusted according to the search situation, so as to maintain the randomness and search efficiency of the algorithm. When the algorithm falls into the local optimal solution, the taboo period can be appropriately extended to jump out of the local optimal solution; when the algorithm principle optimal solution, the taboo period can be appropriately shortened to increase the randomness of the search process.
[0145] On the other hand, Figure 6 As shown, in order to solve the above technical problems, the embodiment of the present application further provides: a flexible job shop scheduling system, comprising:
[0146] An information acquisition module is used to acquire part production plan information in the production system; wherein the part production plan information includes part information, part process information, executable device information corresponding to the process execution, and time information required for its execution;
[0147] A data processing module, used for processing the parts production plan information to obtain valid data;
[0148] A coding processing module, used for coding the valid data to obtain a first generation population solution;
[0149] A local optimization module, used for solving the first generation population solution based on a population evolution algorithm to obtain a second generation population solution;
[0150] The global optimization module is used to optimize the second-generation population solution based on the domain search algorithm to obtain production scheduling information.
[0151] Based on the same inventive concept as the aforementioned embodiment, this embodiment provides a computer-readable storage medium, on which a computer program is stored, and a processor executes the computer program to implement the aforementioned method.
[0152] In some embodiments, the computer readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or various devices including one or any combination of the above memories. The computer may be various computing devices including intelligent terminals and servers.
[0153] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A flexible job shop scheduling method, characterized in that: The following steps are involved: Acquire part production plan information in the production system; wherein the part production plan information includes part information, part process information, executable device information corresponding to the process execution, and time information required for its execution; Perform data analysis and cleaning on the parts production plan information to obtain valid data; wherein the format of the valid data is a standard example format that can be recognized by both the population evolution algorithm and the domain search algorithm; the valid data consists of multiple lines of data; wherein, in the first line, the first number represents the number of parts to be processed, the second number represents the number of available equipment, and the third number represents the number of available equipment for a process of a part; starting from the second line, each line represents the n-1th part to be processed, decreasing in sequence; wherein the first number of each line represents the total number of processes for the part; starting from the second number, it represents the number of available equipment for the process, the number of available equipment, and the corresponding processing time; Performing encoding processing on the valid data to obtain a first generation population solution; The first generation population solution is converted into a fitness function; based on the fitness function, a first target individual with a fitness value higher than a preset fitness threshold is screened out; based on the first target individual, a first target population is obtained; based on the population evolution algorithm, the first target population is selected to obtain a first generation target population A; wherein the first generation target population A includes an OS chromosome and an MS chromosome; the gene information of the OS chromosome is cross-processed using the POX method and the JBX method; the gene information of the positions in the two MS chromosomes is randomly selected for cross-processing; a plurality of second generation initial individuals are obtained; each of the second generation initial individuals is mutated to obtain a plurality of second generation individuals; based on the plurality of the second generation individuals, a second generation population solution is obtained; Based on the second generation population solution, set the parameters of the taboo table, initialize the parameters, and obtain an initial solution; wherein the parameters include the maximum number of iterations, the taboo length value, the number of domain solutions, and the number of candidate solutions; based on the initial solution, obtain the domain solution; based on the domain solution, obtain the candidate solution; based on the candidate solution, obtain the initial taboo table; determine whether each candidate solution in the taboo table satisfies the contempt criterion; if so, use the candidate solution that satisfies the contempt criterion as the current solution and update the taboo table; if not, perform taboo attribute determination on the candidate solution that does not satisfy the contempt criterion. The third generation optimized individuals are obtained based on the updated taboo table; if the third generation optimized individuals meet the preset termination conditions, the third generation optimized individuals are used as the first generation target population, and the first generation target population is again selected, crossover, mutated and taboo search optimized based on the population evolution algorithm until the obtained optimized individuals meet the preset termination conditions; if the third generation optimized individuals are used as the optimal solution, the third generation optimized individuals are decoded and the production scheduling information is obtained.
2. The flexible job shop scheduling method according to claim 1, characterized in that: The step of judging whether each candidate solution in the taboo table satisfies the contempt criterion comprises: Obtaining the maximum fitness value of the candidate solutions in the taboo table; Comparing the maximum fitness value with the fitness value of the initial solution to obtain a comparison result; Based on the comparison result, it is determined whether each candidate solution in the taboo table satisfies the contempt criterion.
3. The flexible job shop scheduling method according to claim 2, characterized in that: The step of judging whether each candidate solution in the taboo table satisfies the contempt criterion based on the comparison result includes: If the maximum fitness value of the candidate solution is greater than the fitness value of the initial solution, then the candidate solution meets the contempt criterion; If the maximum fitness value of the candidate solution is not greater than the fitness value of the initial solution, the candidate solution does not meet the contempt criterion.
4. The flexible job shop scheduling method according to claim 1, characterized in that: If the condition is satisfied, the step of taking the candidate solution satisfying the contempt criterion as the current solution and updating the taboo table comprises: If it is satisfied, the candidate solution that satisfies the contempt criterion is taken as the current solution; The object that first enters the taboo table is replaced and updated based on the object corresponding to the current solution.
5. The flexible job shop scheduling method according to claim 1, characterized in that: If the condition is not satisfied, the step of judging the taboo attribute of the candidate solution that does not satisfy the contempt criterion, and updating the initial taboo table based on the judgment result includes: If not, the taboo attribute is judged on the candidate solution that does not meet the contempt criterion to obtain the taboo object and the non-taboo object; Taking the candidate solution corresponding to the non-taboo object as the current solution; The object that first enters the taboo table is replaced and updated based on the object corresponding to the current solution.
6. A flexible job shop scheduling system, characterized in that: include: An information acquisition module is used to acquire part production plan information in the production system; wherein the part production plan information includes part information, part process information, executable device information corresponding to the process execution, and time information required for its execution; A data processing module is used to perform data analysis and cleaning on the part production plan information to obtain valid data; wherein the format of the valid data is a standard example format that can be recognized by both the population evolution algorithm and the domain search algorithm; the valid data consists of multiple lines of data; wherein, in the first line, the first number represents the number of parts to be processed, the second number represents the number of available equipment, and the third number represents the number of available equipment for a process of a part; starting from the second line, each line represents the n-1th part to be processed, decreasing in sequence; wherein the first number of each line represents the total number of processes for the part; starting from the second number, it represents the number of available equipment for the process, the number of available equipment, and the corresponding processing time; A coding processing module, used for coding the valid data to obtain a first generation population solution; A local optimization module is used to convert the first-generation population solution into a fitness function; based on the fitness function, screen out a first target individual whose fitness value is higher than a preset fitness threshold; based on the first target individual, obtain a first target population; based on a population evolution algorithm, select the first target population to obtain a first-generation target population A; wherein the first-generation target population A includes an OS chromosome and an MS chromosome; crossover the gene information of the OS chromosome using the POX method and the JBX method; randomly select the gene information of the positions in the two MS chromosomes for crossover; obtain multiple second-generation initial individuals; perform mutation processing on each of the second-generation initial individuals to obtain multiple second-generation individuals; obtain a second-generation population solution based on the multiple second-generation individuals; A global optimization module is used to set the parameters of the taboo table based on the second generation population solution, initialize the parameters, and obtain an initial solution; wherein the parameters include the maximum number of iterations, the taboo length value, the number of domain solutions, and the number of candidate solutions; based on the initial solution, obtain the domain solution; based on the domain solution, obtain the candidate solution; based on the candidate solution, obtain the initial taboo table; determine whether each candidate solution in the taboo table meets the contempt criterion; if so, take the candidate solution that meets the contempt criterion as the current solution and update the taboo table; if not, update the candidate solution that does not meet the contempt criterion Perform taboo attribute judgment, and update the initial taboo table based on the judgment result; obtain the third-generation optimized individual based on the updated taboo table; judge whether the third-generation optimized individual meets the preset termination condition; if not, use the third-generation optimized individual as the first-generation target population, and again perform selection processing, crossover processing, mutation processing and taboo search optimization processing on the first-generation target population based on the population evolution algorithm until the obtained optimized individual meets the preset termination condition; if satisfied, use the third-generation optimized individual as the optimal solution for decoding processing to obtain production scheduling plan information.
7. A computer device, characterized in that: The computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the processor executes the computer program to implement the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Flexible workshop production scheduling method based on improved tuna swarm algorithm and program product
CN115062980A
Flexible workshop scheduling method and system based on hybrid whale optimization algorithm
CN115829254A
