INSGA-II algorithm-based workshop scheduling optimization method and system
Through the workshop scheduling optimization method based on the INSGA-II algorithm, the problem of underutilization of worker resources and fatigue factors in flexible job workshops is solved, production efficiency, carbon emissions and worker fatigue are optimized, and better multi-objective optimization effects are achieved. .
Patent Information
- Application Number
- CN202410839472.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-09-24
AI Technical Summary
Existing flexible job shop scheduling fails to fully consider worker resources and fatigue factors, resulting in low production efficiency, high carbon emissions, and severe worker fatigue. It lacks effective multi-objective optimization solutions.
The workshop scheduling optimization method based on the INSGA-II algorithm is used to build a multi-objective DRCFJSP model through a three-layer coding structure, diversity initialization strategy, archive set maintenance and improved crossover and mutation operators to optimize workpiece process processing machine allocation and machine processes. For sequencing and worker selection, the objective functions include minimum completion time, minimum carbon emissions, and minimum worker fatigue.
It improves the coordination of workshop resource allocation, reduces worker fatigue, completion time and carbon emissions. The Pareto front performance of the INSGA-II algorithm is better, the objective function value is better, the convergence speed is faster, and it is suitable for actual production needs.
Smart Images

Figure CN118691031A
Abstract
Description
Technical Field
[0001] The invention belongs to the application field of fast non-dominated sorting genetic algorithm, and relates to a workshop scheduling optimization method and system based on INSGA-II algorithm. Background Art
[0002] In actual production, job-shop scheduling problems are often affected by worker resources. As an extension of the classic flexible job-shop scheduling problem, the dual resource constrained flexible job-shop scheduling problem (DRCFJSP) introduces worker resource constraints, which increases the complexity of the problem. In addition, long-term and high-intensity work of workers will increase physical fatigue, which not only poses a serious threat to their occupational health, but also directly affects the production efficiency and quality of the workshop. At present, when studying the DRCFJSP problem, worker fatigue is a key but easily overlooked factor. Therefore, the DRCFJSP that takes worker fatigue into consideration is more in line with the needs of actual production. How to cleverly coordinate machine and worker resources, optimize the resource allocation of the entire workshop, thereby improving production efficiency, reducing carbon emissions in the production process, and reducing worker fatigue has become the research focus and urgent problem for more and more scholars. Summary of the invention
[0003] The purpose of the present invention is to provide a shop scheduling optimization method and system based on INSGA-II algorithm to solve the problem that the existing flexible job shop scheduling fails to fully meet multiple objectives.
[0004] In order to achieve the above object, the present invention adopts the following technical solutions:
[0005] The workshop scheduling optimization method based on INSGA-II algorithm includes:
[0006] Obtain working parameters and constraints of flexible job shops;
[0007] According to the working parameters and constraints, the objective function is determined and a multi-objective DRCFJSP model is constructed. The DRCFJSP model includes m machines, n workpieces and l workers, and includes three sub-problems: the allocation of processing machines to workpiece processes, the sorting of processes on processing machines and the selection of workers for processing machines;
[0008] The INSGA-II algorithm is designed to solve the DRCFJSP model. The INSGA-II algorithm maintains population diversity, enhances global search capabilities and improves local search performance through a three-layer coding structure, diversity initialization strategy, archive set maintenance, and improved crossover and mutation operators. It accelerates the convergence speed and improves the solution quality, obtains the optimal value of the objective function, and outputs the optimized flexible job shop scheduling plan.
[0009] Furthermore, the constraints include:
[0010] All workpieces, machines and workers are idle at the start of processing;
[0011] All artifacts are independent of each other and have the same priority;
[0012] At the same time, a machine can and only can process a certain process of a certain workpiece;
[0013] A machine can be operated by only one worker at a time.
[0014] A process in the same workpiece cannot be processed before the previous process is completed;
[0015] The process is not allowed to be interrupted after it starts processing;
[0016] The release of the workpiece is included in the processing time, ignoring the setup time of the machine and the workpiece, the transfer time of the workpiece and the transfer time of the workers, and ignoring the carbon emissions generated.
[0017] Furthermore, the objective function includes minimizing the maximum completion time, minimizing the carbon emissions, and minimizing the maximum worker fatigue level.
[0018] Furthermore, the minimum maximum completion time means that the time taken to complete the last process of all workpieces is the minimum:
[0019] F1=minC max =min{max{CT ijk}}
[0020] Among them, C max Indicates the maximum completion time, CT ijk Indicates the processing step O of machine k ij The moment of completion.
[0021] Furthermore, the minimum carbon emissions include the minimum carbon emissions in the machine processing state, the carbon emissions in the no-load state and the carbon emissions in other parts of the workshop:
[0022] F2=min(PE+SE+GE)
[0023] Among them, PE represents the carbon emissions in the machine processing state, SE represents the carbon emissions in the no-load state, and GE represents the carbon emissions in other parts of the workshop.
[0024] Furthermore, the maximum worker fatigue level is the minimum, which means that as the processing operation proceeds, the worker fatigue level reaches a peak minimum:
[0025] F3=min(F max,r )
[0026] =min(max(F r (CT ijk ),F r (CT i'j'k' )))
[0027]
[0028] Among them, F max,r It indicates the fatigue level of the most tired worker r after all workers have finished all the processes of machine operation. ijk Indicates the processing step O of machine k ij The completion time, CT i'j'k' Indicates the processing step O of machine k' i'j' The completion moment, ST ijk Indicates the processing step O of machine k ij The beginning of the moment, me k represents the characteristic coefficient of machine k, me k ≥0, we r represents the characteristic coefficient of worker r, β≥we r ≥ 0, ST i'j'k' Indicates the processing step O of machine k' i'j' The beginning moment.
[0029] Furthermore, the carbon emissions of the machine in the processing state are:
[0030]
[0031] Among them, PE k represents the average power of machine k in processing state, T ijkr Indicates worker r operating machine k processing step O ij The processing time required, e s represents the carbon emission conversion factor, X ijkr Indicates process O ij Whether it is processed on machine k by worker r;
[0032] The carbon emissions in the no-load state are:
[0033]
[0034] Among them, SE k represents the average power of machine k in no-load state, ST i'j'k' Indicates the processing step O of machine k i'j' At the beginning of the CT ijk Indicates the processing step O of machine k ij The completion time, Y iji'j'k Indicates process O ij Is it before process O? i'j' Processed on machine k;
[0035] The carbon emissions of other parts of the workshop are:
[0036] GE=GE k ·C max ·e s
[0037] Among them, GE k Indicates the average power of workshop lighting and exhaust.
[0038] Furthermore, the INSGA-II algorithm includes:
[0039] Step 1: Use the three-layer OSMSWS encoding scheme to encode the process sorting, machine allocation, and worker selection problems respectively, and decode the chromosome after obtaining the optimal solution;
[0040] Step 2: According to the decoded chromosomes, set the initialization parameters, including population size, maximum number of iterations, crossover probability and mutation probability, and use three initialization methods: random generation, global search and local search, and generate the initialization population in corresponding proportions;
[0041] Step 3: Based on the initialized population, quickly perform non-dominated sorting and calculate the individual crowding distance, and store individuals with higher non-dominated levels as excellent individuals in external archives;
[0042] Step 4: Use the tournament method to select the best individuals in the initial population, use IPOX crossover for the process layer OS, use RPX crossover for the machine layer MS and the worker layer WS, use two-point insertion mutation for the OS layer, and use multi-point random mutation for both the MS layer and the WS layer, so as to generate a new offspring population;
[0043] Step 5: Merge the parent and child populations, select the new parent population through elite retention, which is the iterated population, and store the excellent individuals in the external archive and update them;
[0044] Step 6: Determine the population Gen≤Gen max, if so, set Gen = Gen + 1 and repeat the above steps Step 4 to Step 5, otherwise output the optimal solution.
[0045] The shop scheduling optimization system based on INSGA-II algorithm includes:
[0046] An acquisition module, which is used to acquire working parameters and constraints of the flexible job shop;
[0047] A modeling module, wherein the modeling module is used to determine the objective function according to the working parameters and the constraints, and to construct a multi-objective DRCFJSP model, wherein the DRCFJSP model includes m machines, n workpieces and l workers, and includes three sub-problems: allocation of processing machines to workpiece processes, ordering of processes on processing machines, and selection of workers for processing machines;
[0048] A solution module is used to design an INSGA-II algorithm to solve the DRCFJSP model. The INSGA-II algorithm maintains population diversity, enhances global search capabilities and improves local search performance through a three-layer coding structure, a diversity initialization strategy, archive set maintenance, and improved crossover and mutation operators, accelerates convergence speed and improves solution quality, obtains the optimal value of the objective function, and outputs an optimized flexible job shop scheduling plan.
[0049] Compared with the prior art, the present invention has the following beneficial effects:
[0050] The present invention provides a workshop scheduling optimization method and system based on the INSGA-II algorithm, constructs an optimization model with the goals of minimizing the maximum worker fatigue level, minimizing the maximum completion time and minimizing the carbon emissions, and solves the model through the INSGA-II algorithm, thereby solving the problems of the current flexible workshop scheduling that the machine and worker resources are not coordinated and the worker fatigue factor is ignored, and the flexible workshop worker fatigue level, completion time and carbon emissions are optimized at the same time. By introducing a worker fatigue model, the present invention takes the minimum worker fatigue level as one of the scheduling goals, while taking into account efficiency and the environment, so that the scheduling scheme is more in line with the actual production needs. Compared with the NSGA-II algorithm, the INSGA-II algorithm has better Pareto frontier performance, better objective function value, faster convergence speed, and better HV and IGD index performance, indicating the superiority of the INSGA-II algorithm, which has great challenges and practical application value. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0052] Figure 1 It is a flowchart of the workshop scheduling optimization method based on INSGA-II algorithm of the present invention.
[0053] Figure 2 It is the flow chart of INSGA-II algorithm of the present invention.
[0054] Figure 3 This is the Pareto frontier diagram of Example 1 of the present invention.
[0055] Figure 4 This is the maximum completion time iteration graph of Example 1 of the present invention.
[0056] Figure 5 This is the carbon emission iteration diagram of Example 1 of the present invention.
[0057] Figure 6 This is an iteration diagram of the maximum worker fatigue level in Example 1 of the present invention.
[0058] Figure 7 This is a diagram of HV index iteration results of Example 1 of the present invention.
[0059] Figure 8 This is a diagram of the IGD indicator iteration results of Example 1 of the present invention.
[0060] Fig. 9 This is a Gantt chart of the scheduling solution of NSGA-II according to Example 1 of the present invention.
[0061] Fig.10 This is a Gantt chart of the scheduling scheme of INSGA-II according to Example 1 of the present invention.
[0062] Fig.11 It is a structural schematic diagram of a workshop scheduling optimization system based on INSGA-II algorithm according to a preferred embodiment of the present invention.
[0063] Fig.12 It is a schematic diagram of the structure of an electronic device according to a preferred embodiment of the present invention.
[0064] in, Fig. 9 (a) is the machine and processing time Gantt chart of NSGA-II of the present invention; Fig. 9 (b) is a Gantt chart of workers and processing time of NSGA-II of the present invention; Fig.10(a) is the machine and processing time Gantt chart of INSGA-II of the present invention; Fig.10 (b) is the Gantt chart of workers and processing time of INSGA-II of the present invention. DETAILED DESCRIPTION
[0065] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0066] Obviously, the described embodiments are only part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0067] It should be noted that the terminals involved in the embodiments of the present application may include but are not limited to mobile phones, personal digital assistants (PDAs), wireless handheld devices, tablet computers, personal computers (PCs), MP3 players, MP4 players, wearable devices (for example, smart glasses, smart watches, smart bracelets, etc.), smart home devices and other smart devices.
[0068] In addition, the term "and / or" in this article is only a description of the association relationship between the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0069] The present invention is further described in detail below in conjunction with the accompanying drawings:
[0070] See also Figure 1 The present invention provides a workshop scheduling optimization method based on INSGA-II algorithm, comprising the following steps:
[0071] Step 1) Obtain the working parameters and constraints of the flexible job shop.
[0072] The work parameters include the total number of workpieces, the total number of workers, the total number of machines, the allocation of workpiece processes to processing machines, the ordering of processes on processing machines, and the selection of workers for processing machines.
[0073] There are m machines, n workpieces and l workers, that is, n workpieces can be processed on m machines operated by l workers. Each process is processed by one of the workers in the worker set W operating one of the machines in the machine set M. In particular, the machine set M contains v virtual machines. If a worker operates a virtual machine to complete a process, it means that the process is purely manual. The model includes three sub-problems: the allocation of processing machines for workpiece processes; the sorting of processes on processing machines; and the selection of workers for processing machines.
[0074] The constraints include:
[0075] All workpieces, machines and workers are idle at the start of processing;
[0076] All artifacts are independent of each other and have the same priority;
[0077] Machine constraint: At the same time, a machine can and only can process a certain process of a certain workpiece:
[0078]
[0079] Among them, CT i'j'k Indicates the processing step O of machine k i'j' The completion time, Y iji'j'k Indicates process O ij Is it before process O? i'j' Processed on machine k, CT ijk Indicates the processing step O of machine k ij The completion time, T i'j'kr' Indicates that worker r' operates machine k for processing step O i'j' Required processing time, X i'j'kr' Indicates process O i'j' Whether it is processed on machine k by worker r',
[0080] Worker constraint: A machine can be operated by only one worker at a time:
[0081]
[0082] Among them, CT i'j'k' Indicates the processing step O of machine k' i'j' The completion time, L represents an infinite positive number, Z iji'j'r Indicates process O ij Is it before process O? i'j' In the case of workers r processing, CT ijk' Indicates the processing step O of machine k' ij The completion time, T i'j'k'r Indicates that worker r operates machine k' for processing step Oi'j' Required processing time, X i'j'k'r Indicates process O i'j' Whether it is processed on machine k' by worker r,
[0083] Each process can only be processed by one machine at a time:
[0084]
[0085] Among them, X ijk Indicates process O ij Whether it is processed on machine k,
[0086] Each machine can only be processed by one worker at a time:
[0087]
[0088] Among them, X ijkr Indicates process O ij Whether it is processed on machine k by worker r,
[0089] Each process can only be processed by one worker operating one machine at the same time:
[0090]
[0091] A process in the same workpiece cannot be processed before the previous process is completed, that is, the process remains unchanged:
[0092]
[0093] CT ijk ≤ST i(j+1)k'
[0094] Among them, ST ijk Indicates the processing step O of machine k ij The starting time, T ijkr Indicates worker r operating machine k processing step O ij Required processing time, ST i(j+1)k' Indicates the processing step O of machine k' i(j+1) At the beginning of the CT ijk Indicates the processing step O of machine k ij The moment of completion;
[0095] Once the process starts, it cannot be interrupted:
[0096]
[0097] X ijk ,X ijkr ,Y iji'j'k ,Z iji'j'r ∈{0,1}
[0098] i,i'∈{1,2,…,n},j,j'∈{1,2,…,u},k,k'∈{1,2,…,m},r,r'∈{1,2,…,l}
[0099] λ,μ,me k ,we r ∈[0,1];
[0100] The release of the workpiece is included in the processing time, ignoring the setup time of the machine and the workpiece, the transfer time of the workpiece and the transfer time of the workers, and ignoring the carbon emissions generated.
[0101] Step 2) Construct a multi-objective DRCFJSP model with the minimum maximum worker fatigue, the minimum maximum completion time and the minimum carbon emissions as the objective functions.
[0102] Objective function:
[0103] (1) The maximum completion time is the shortest. It indicates the time required to complete the last process of all workpieces.
[0104] F1=minC max =min{max{CT ijk}}
[0105] Among them, C max Indicates the maximum completion time, CT ijk Indicates the processing step O of machine k ij The moment of completion.
[0106] (2) Minimum carbon emissions. Carbon emissions mainly include: carbon emissions from machine processing and no-load status and carbon emissions from other parts of the workshop, such as carbon emissions from workshop lighting, exhaust and temperature control systems.
[0107] F2=min(PE+SE+GE)
[0108]
[0109] GE=GE k ·C max ·e s
[0110] Among them, PE represents the carbon emissions of the machine in the processing state, SE represents the carbon emissions of the machine in the no-load state, GE represents the carbon emissions of other parts of the workshop, and PE k represents the average power of machine k in processing state, e srepresents the carbon emission conversion factor, SE k represents the average power of machine k in no-load state, ST i'j'k' Indicates the processing step O of machine k' i'j' At the beginning of the CT ijk Indicates the processing step O of machine k ij The completion time, Y iji'j'k Indicates process O ij Is it before process O? i'j' Processed on machine k, GE k Indicates the average power of lighting and exhaust in the workshop.
[0111] (3) The fatigue level of the largest worker is the lowest. In flexible job shop scheduling, an exponential function can be used to describe the change of fatigue over time. When a worker operates a machine to perform work, his fatigue level gradually accumulates over time. The fatigue function can be used to represent the change of fatigue of worker r when he works continuously from time t1 to time t.
[0112]
[0113] When a worker completes a task, he can use the rest time to recover from fatigue, and his fatigue level will gradually ease over time. The reference recovery function represents the fatigue change of worker r when he rests from t2 to t.
[0114]
[0115] The changes in parameters λ and μ control the speed of fatigue accumulation and recovery. The larger the value, the faster the fatigue accumulation and recovery. From the literature, it can be seen that the fatigue index λ is related to the performance of the machine, the worker's own factors, skills, etc.; the recovery index μ is related to the worker's own factors, skills, etc. It is believed that the worker's fatigue recovery parameter μ decreases linearly with the worker coefficient. λ and μ can be expressed as follows:
[0116] λ=me k ·we r
[0117] μ=(β-we r )γ
[0118] Among them, me k represents the characteristic coefficient of machine k; we r represents the characteristic coefficient of worker r; β and γ represent the related constants of fatigue degree.
[0119] The fatigue function and recovery function can be rewritten as the following equations:
[0120]
[0121] As the processing work progresses, the worker's fatigue level will reach a peak, that is, the worker's maximum fatigue level. max It indicates the fatigue level of the most tired worker after all workers have completed all the processes of the machine, and it indicates the worst state of the workers in the whole operation process. Its objective function expression can be expressed as:
[0122] F max,r =max(F r (t)),t≥0
[0123] To balance the fatigue level of each worker, we need to minimize the maximum worker fatigue level, as shown in the following formula:
[0124] F3=min(F max,r )
[0125] =min(max(F r (CT ijk ),F r (CT i'j'k' )))
[0126]
[0127] Among them, F max,r It indicates the fatigue level of the most tired worker r after all workers have finished all the processes of machine operation. ijk Indicates the processing step O of machine k ij The completion time, CT i'j'k' Indicates the processing step O of machine k' i'j' The completion moment, ST ijk Indicates the processing step O of machine k ij The beginning of the moment, me k represents the characteristic coefficient of machine k, me k ≥0, we r represents the characteristic coefficient of worker r, β≥we r ≥ 0, ST i'j'k' Indicates the processing step O of machine k' i'j' The beginning moment.
[0128] Step 3) Use the INSGA-II algorithm to solve the DRCFJSP model, obtain the optimal value of the objective function, and output the optimized flexible job shop scheduling plan.
[0129] The INSGA-II algorithm has strong population diversity maintenance capabilities, global search capabilities and local search performance in solving flexible job shop scheduling problems, and the algorithm converges faster. Through the core ideas and advantages such as three-layer encoding, diversity initialization, archive set, improved crossover and mutation operators, it can effectively improve the algorithm's search efficiency and solution quality, and provide an effective solution method for solving complex multi-objective optimization problems.
[0130] Specifically, the INSGA-II algorithm adopts a three-layer encoding method to encode the process layer OS, machine layer MS and worker layer WS respectively; in terms of population initialization, three initialization methods of random generation, global search and local search are adopted to maintain population diversity; archive sets are introduced to retain excellent individuals; improved priority crossover IPOX and random point preserving crossover RPX operators, two-point insertion mutation and multi-point random mutation methods are designed to improve the population convergence speed.
[0131] INSGA-II algorithm Figure 2 As shown, the specific steps are as follows:
[0132] Step 1: Chromosome encoding and decoding. The three-layer OSMSWS encoding scheme is used to encode the process sorting, machine allocation and worker selection problems respectively, and the chromosome is decoded after the optimal solution is obtained;
[0133] Step 2: Population initialization. Set the initialization parameters, including population size, maximum number of iterations, crossover probability, and mutation probability. Use three initialization methods: random generation, global search, and local search, and generate the initialization population in corresponding proportions.
[0134] Step 3: Quickly sort the non-dominated order and calculate the crowding distance of the individuals, and store the individuals with higher non-dominated levels as excellent individuals in the external archive;
[0135] Step 4: Use the tournament method to select the best individuals in the population, use IPOX crossover for the process layer OS, use RPX crossover for the machine layer MS and the worker layer WS, use two-point insertion mutation for the OS layer, and use multi-point random mutation for both the MS layer and the WS layer, so as to generate a new offspring population;
[0136] Step 5: Merge populations. Merge the parent generation and the offspring generation, and select a new parent generation population through elite retention. This is the iterated population, and store the excellent individuals in the external archive and update it;
[0137] Step 6: Determine the population Gen≤Gen max , if so, set Gen = Gen + 1 and repeat the above steps Step 4 to Step 5, otherwise output the optimal solution.
[0138] Specifically, the encoding and decoding are as follows: the OS layer, the machine MS layer, and the worker WS layer are encoded respectively, with a length of 3u, where u represents the number of processes. The OS layer encoding uses the serial number of each workpiece to randomly generate the OS layer. The gene value represents the workpiece number, and the order of appearance indicates the process of the workpiece; the MS layer and WS layer encoding use the order of the workpiece, and encode the processing machine selected for each workpiece process and the worker selected for each machine from left to right. The left shift method is used for decoding. While satisfying the constraints, the process is arranged on the left side of the Gantt chart as early as possible, and the process is arranged to the common idle time of the machine and the worker to shorten the processing time.
[0139] The population is initialized as follows: a hybrid initialization strategy is adopted. In addition to using the random search initialization method to obtain the initial population, two initialization methods, local search and global search, are introduced to balance the load of each selected machine and the fatigue of each selected worker to reduce the completion time and worker fatigue. 10% of the population is randomly generated, 30% of the population is generated by local search, and 60% of the population is generated by global search, which together constitute the initial population.
[0140] The elite retention strategy is as follows: retain excellent individuals during population evolution to prevent the algorithm from falling into a local optimal solution or premature convergence. The steps of this strategy are as follows: merge the parent generation P t and offspring D t Individuals, the new population size is 2N; all individuals in the new population are quickly non-dominated sorted, and the Pareto levels are divided into F1, F2, F3, F4, F5, F6, etc.; the first N individuals are taken to form a new parent population P t+1 If the number of individuals at the Pareto level cannot just meet the population size N, the crowding distance of the individuals at the F3 level is calculated and sorted to select the individuals that can meet P t+1 The individuals of the population size are eliminated, and the remaining individuals are eliminated. This is the population after iteration.
[0141] Genetic operators include: (1) Selection operation. Using the tournament method, two individuals are randomly selected from the population, their Pareto ranks are compared, and the individuals with higher Pareto ranks are retained. If the ranks are consistent, the individuals with higher crowding are selected and placed in the crossover pool, and the selected individuals are put back into the population to participate in the next selection. (2) Crossover operation. The OS layer uses the improved priority crossover operation (IPOX), and the MS layer and WS layer both use the random point retention crossover (RPX). (3) Mutation operation. The OS layer uses a two-point insertion mutation method, randomly selects a parent chromosome OS, randomly generates two gene point positions D1 and D2, cuts the chromosome behind D2 and inserts it behind D1, thereby generating a legal offspring chromosome OS'. The MS layer and WS layer use multi-point random mutation methods.
[0142] Embodiment 1:
[0143] This embodiment takes a coil production workshop of a company as an example. During a certain period of time, the workshop can produce three types of coils of two sizes, J1, J2, ..., J6. Each coil has multiple processes, and each process can be processed on multiple machines. There are a total of 8 machines and 6 workers on the production line.
[0144] As shown in Table 1, it represents the distribution information between machines and workers, as shown in Table 2, it represents the process, machine and processing time information, as shown in Table 3, it represents the machine average processing power and average no-load power information, as shown in Table 4, it represents the machine characteristic parameter information, as shown in Table 5, it represents the worker characteristic parameter information.
[0145] The relevant parameters of the model are set as follows: the population size is set to 500, the maximum number of iterations is 200, the crossover probability is 0.8, and the mutation probability is 0.2.
[0146] Table 1 Machine-worker information table
[0147]
[0148]
[0149] Table 2 Process-Machine-Processing Time Information Table
[0150]
[0151] Table 2 continued:
[0152]
[0153]
[0154] Table 2 continued:
[0155]
[0156] Table 3 Average processing power and average no-load power of the machine
[0157]
[0158] Table 4 Machine characteristic coefficients
[0159]
[0160] Table 5 Worker characteristic coefficients
[0161]
[0162] Using this example to solve, under the same environment, running the INSGA-II algorithm and the NSGA-II algorithm, the Pareto frontier is as follows Figure 3 As shown, it can be seen that the frontier distribution of the non-dominated solution of the INSGA-II algorithm is closer to the left and has more advantages.
[0163] In the Pareto frontier solution, the individual ranked first in the Pareto ranking is selected, and the three objective functions of the result are iterated as follows: Figures 4 to 6 As shown in the figure, the maximum completion time target value of the INSGA-II algorithm is 79 minutes, which is better than the 99 minutes of the NSGA-II algorithm. The carbon emission target value of the INSGA-II algorithm is 600.00 kg, which is better than the 800.00 kg of the NSGA-II algorithm. The maximum worker fatigue target value of the INSGA-II algorithm is 0.39, which is better than the 0.43 of the NSGA-II algorithm. Compared with the NSGA-II algorithm, the three objective function values of the INSGA-II algorithm are better.
[0164] In the Pareto frontier solution, select the individual that ranks first in the Pareto ranking, and obtain the iterative comparison results of the two evaluation indicators HV and IGD of the individual as follows: Figures 7-8 As shown, it shows that the INSGA-II algorithm converges faster and has better diversity and convergence.
[0165] The Gantt chart of the scheduling scheme of NSGA-II algorithm and INSGA-II algorithm is as follows: Figures 9-10 As shown in the figure, the completion time obtained by the NSGA-II algorithm is 103 minutes, and the completion time obtained by the INSGA-II algorithm is 79 minutes. In actual workshop production, decision makers can arrange and plan the production of the workshop according to the Gantt chart.
[0166] In summary, the present invention proposes a workshop scheduling optimization method based on the INSGA-II algorithm. The analysis of Example 1 shows that, compared with the NSGA-II algorithm, the INSGA-II algorithm has better Pareto frontier performance, better objective function value, faster convergence speed, and better HV and IGD index performance, indicating the superiority of the INSGA-II algorithm.
[0167] Embodiment 2:
[0168] Embodiment 2 provided by the present invention is an embodiment of the workshop scheduling optimization system based on the INSGA-II algorithm provided by the present invention, such as Fig.11 As shown, an embodiment of the system includes: an acquisition module, a modeling module and a solution module.
[0169] An acquisition module, which is used to acquire working parameters and constraints of the flexible job shop;
[0170] A modeling module, wherein the modeling module is used to determine the objective function according to the working parameters and the constraints, and to construct a multi-objective DRCFJSP model, wherein the model includes m machines, n workpieces and l workers, and includes three sub-problems: allocation of processing machines to workpiece processes, ordering of processes on processing machines and selection of workers for processing machines;
[0171] A solution module is used to design an INSGA-II algorithm to solve the DRCFJSP model. The INSGA-II algorithm maintains population diversity, enhances global search capabilities and improves local search performance through a three-layer coding structure, a diversity initialization strategy, archive set maintenance, and improved crossover and mutation operators, accelerates convergence speed and improves solution quality, obtains the optimal value of the objective function, and outputs an optimized flexible job shop scheduling plan.
[0172] It can be understood that the workshop scheduling optimization system based on the INSGA-II algorithm provided by the present invention corresponds to the workshop scheduling optimization method based on the INSGA-II algorithm provided by the aforementioned embodiments. The relevant technical features of the workshop scheduling optimization system based on the INSGA-II algorithm can refer to the relevant technical features of the workshop scheduling optimization method based on the INSGA-II algorithm, which specifically includes the following steps:
[0173] Obtain the working parameters and constraints of the flexible job shop through the acquisition module;
[0174] The modeling module determines the objective function according to the working parameters and constraints, and constructs a multi-objective DRCFJSP model, which includes m machines, n workpieces and l workers, and includes three sub-problems: the allocation of processing machines to workpiece processes, the sorting of processes on processing machines and the selection of workers on processing machines;
[0175] The solution module solves the DRCFJSP model by designing the INSGA-II algorithm. The INSGA-II algorithm maintains population diversity, enhances global search capabilities and improves local search performance through a three-layer coding structure, diversity initialization strategy, archive set maintenance, and improved crossover and mutation operators. It accelerates the convergence speed and improves the solution quality, obtains the optimal value of the objective function, and outputs the optimized flexible job shop scheduling plan.
[0176] Embodiment 3:
[0177] This embodiment provides an electronic device, such as Fig.12 As shown, it includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor executes the steps of the workshop scheduling optimization method based on the INSGA-II algorithm.
[0178] The workshop scheduling optimization method based on the INSGA-II algorithm comprises the following steps:
[0179] Obtain working parameters and constraints of flexible job shops;
[0180] According to the working parameters and constraints, the objective function is determined and a multi-objective DRCFJSP model is constructed. The model includes m machines, n workpieces and l workers, and includes three sub-problems: the allocation of workpiece processes to processing machines, the sorting of processes on processing machines and the selection of workers on processing machines;
[0181] The INSGA-II algorithm is designed to solve the DRCFJSP model. The INSGA-II algorithm maintains population diversity, enhances global search capabilities and improves local search performance through a three-layer coding structure, diversity initialization strategy, archive set maintenance, and improved crossover and mutation operators. It accelerates the convergence speed and improves the solution quality, obtains the optimal value of the objective function, and outputs the optimized flexible job shop scheduling plan.
[0182] Embodiment 4:
[0183] This embodiment provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of the workshop scheduling optimization method based on the INSGA-II algorithm are implemented.
[0184] The workshop scheduling optimization method based on the INSGA-II algorithm comprises the following steps:
[0185] Obtain working parameters and constraints of flexible job shops;
[0186] According to the working parameters and constraints, the objective function is determined and a multi-objective DRCFJSP model is constructed. The model includes m machines, n workpieces and l workers, and includes three sub-problems: the allocation of workpiece processes to processing machines, the sorting of processes on processing machines and the selection of workers on processing machines;
[0187] The INSGA-II algorithm is designed to solve the DRCFJSP model. The INSGA-II algorithm maintains population diversity, enhances global search capabilities and improves local search performance through a three-layer coding structure, diversity initialization strategy, archive set maintenance, and improved crossover and mutation operators. It accelerates the convergence speed and improves the solution quality, obtains the optimal value of the objective function, and outputs the optimized flexible job shop scheduling plan.
[0188] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0189] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0190] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0191] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0192] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. The workshop scheduling optimization method based on INSGA-II algorithm is characterized by: include: Obtain working parameters and constraints of flexible job shops; According to the working parameters and constraints, the objective function is determined and a multi-objective DRCFJSP model is constructed. The DRCFJSP model includes m machines, n workpieces and l workers, and includes three sub-problems: the allocation of processing machines to workpiece processes, the sorting of processes on processing machines and the selection of workers for processing machines; The INSGA-II algorithm is designed to solve the DRCFJSP model. The INSGA-II algorithm maintains population diversity, enhances global search capabilities and improves local search performance through a three-layer coding structure, diversity initialization strategy, archive set maintenance, and improved crossover and mutation operators. It accelerates the convergence speed and improves the solution quality, obtains the optimal value of the objective function, and outputs the optimized flexible job shop scheduling plan.
2. The workshop scheduling optimization method based on INSGA-II algorithm according to claim 1 is characterized in that: The constraints include: All workpieces, machines and workers are idle at the start of processing; All artifacts are independent of each other and have the same priority; At the same time, a machine can and only can process a certain process of a certain workpiece; A machine can be operated by only one worker at a time. A process in the same workpiece cannot be processed before the previous process is completed; The process is not allowed to be interrupted after it starts processing; The release of the workpiece is included in the processing time, ignoring the setup time of the machine and the workpiece, the transfer time of the workpiece and the transfer time of the workers, and ignoring the carbon emissions generated.
3. The workshop scheduling optimization method based on INSGA-II algorithm according to claim 1 is characterized in that: The objective functions include minimizing the maximum completion time, minimizing the carbon emissions, and minimizing the maximum worker fatigue.
4. The workshop scheduling optimization method based on INSGA-II algorithm according to claim 3 is characterized in that: The minimum maximum completion time means that the time to complete the last process of all workpieces is the minimum: F1=min C max =min{max{CT ijk }} Among them, C max Indicates the maximum completion time, CT ijk Indicates the processing step O of machine k ij The moment of completion.
5. The workshop scheduling optimization method based on INSGA-II algorithm according to claim 3 is characterized in that: The minimum carbon emissions include the carbon emissions in the machine processing state, the carbon emissions in the no-load state and the carbon emissions in other parts of the workshop: F2=min(PE+SE+GE) Among them, PE represents the carbon emissions in the machine processing state, SE represents the carbon emissions in the no-load state, and GE represents the carbon emissions in other parts of the workshop.
6. The workshop scheduling optimization method based on INSGA-II algorithm according to claim 3 is characterized in that: The maximum worker fatigue level is the minimum, which means that as the processing operation proceeds, the worker fatigue level reaches the minimum peak value: <h2 style=";text-align:left;direction:ltr">F3 = min(F<h2 style=";text-align:left;direction:ltr"> max,r <h2 style=";text-align:left;direction:ltr"> ) =min(max(F r (CT ijk ),F r (CT i'j'k' ))) Among them, F max,r It indicates the fatigue level of the most tired worker r after all workers have finished all the processes of machine operation. ijk Indicates the processing step O of machine k ij The completion time, CT i'j'k' Indicates the processing step O of machine k' i'j' The completion moment, ST ijk Indicates the processing step O of machine k ij The beginning of the moment, me k represents the characteristic coefficient of machine k, me k ≥0, we r represents the characteristic coefficient of worker r, β≥we r ≥ 0, ST i'j'k' Indicates the processing step O of machine k' i'j' The beginning moment.
7. The workshop scheduling optimization method based on INSGA-II algorithm according to claim 5 is characterized in that: The carbon emissions of the machine processing state are: Among them, PE k represents the average power of machine k in processing state, T ijkr Indicates worker r operating machine k processing step O ij The processing time required, e s represents the carbon emission conversion factor, X ijkr Indicates process O ij Whether it is processed on machine k by worker r; The carbon emissions in the no-load state are: Among them, SE k represents the average power of machine k in no-load state, ST i'j'k' Indicates the processing step O of machine k i'j' At the beginning of the CT ijk Indicates the processing step O of machine k ij The completion time, Y iji'j'k Indicates process O ij Is it before process O? i'j' Processed on machine k; The carbon emissions of other parts of the workshop are: GE=GE k ·C max ·e s Among them, GE k Indicates the average power of workshop lighting and exhaust.
8. The workshop scheduling optimization method based on INSGA-II algorithm according to claim 1 is characterized in that: The INSGA-II algorithm includes: Step 1: Use the three-layer OSMSWS encoding scheme to encode the process sorting, machine allocation, and worker selection problems respectively, and decode the chromosome after obtaining the optimal solution; Step 2: According to the decoded chromosomes, set the initialization parameters, including population size, maximum number of iterations, crossover probability and mutation probability, and use three initialization methods: random generation, global search and local search, and generate the initialization population in corresponding proportions; Step 3: Based on the initialized population, quickly perform non-dominated sorting and calculate the individual crowding distance, and store individuals with higher non-dominated levels as excellent individuals in external archives; Step 4: Use the tournament method to select the best individuals in the initial population, use IPOX crossover for the process layer OS, use RPX crossover for the machine layer MS and the worker layer WS, use two-point insertion mutation for the OS layer, and use multi-point random mutation for both the MS layer and the WS layer, so as to generate a new offspring population; Step 5: Merge the parent and child populations, select the new parent population through elite retention, which is the iterated population, and store the excellent individuals in the external archive and update them; Step 6: Determine the population Gen≤Gen max , if so, set Gen = Gen + 1 and repeat the above steps Step 4 to Step 5, otherwise output the optimal solution.
9. The workshop scheduling optimization system based on INSGA-II algorithm is characterized by: include: An acquisition module, which is used to acquire working parameters and constraints of the flexible job shop; A modeling module, wherein the modeling module is used to determine the objective function according to the working parameters and the constraints, and to construct a multi-objective DRCFJSP model, wherein the DRCFJSP model includes m machines, n workpieces and l workers, and includes three sub-problems: allocation of processing machines to workpiece processes, ordering of processes on processing machines, and selection of workers for processing machines; A solution module is used to design an INSGA-II algorithm to solve the DRCFJSP model. The INSGA-II algorithm maintains population diversity, enhances global search capabilities and improves local search performance through a three-layer coding structure, a diversity initialization strategy, archive set maintenance, and improved crossover and mutation operators, accelerates convergence speed and improves solution quality, obtains the optimal value of the objective function, and outputs an optimized flexible job shop scheduling plan.
