Flexible job shop scheduling method of improved genetic algorithm based on discrete Levy flight

CN118863307APending Publication Date: 2024-10-29SHENYANG GOLDING NC & INTELLIGENCE TECH CO LTD
View PDF 0 Cites 5 Cited by

Patent Information

Application Number
CN202310468766.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-27
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

Traditional genetic algorithms are prone to problems such as premature maturity, falling into local optimal solutions, and insufficient population diversity when solving flexible job shop scheduling problems.

Method used

An improved genetic algorithm based on discrete Levy flight is used to optimize the quality of the population through elite retention, tournament strategy, discrete Levy flight mechanism, crossover and mutation operators, etc., and is combined with a variable neighborhood search algorithm to improve local search capabilities.

Benefits of technology

It improves the quality and diversity of the initial population, enhances the algorithm's ability to jump out of the local optimum during the solution process, and improves the algorithm's performance and solution speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118863307A_ABST
    Figure CN118863307A_ABST
Patent Text Reader

Abstract

The invention provides a flexible job shop scheduling method of an improved genetic algorithm based on discrete Levy flight, aiming at solving the problems that precocity is extremely easy to occur, local optimal solution is easy to fall into, local search capability is poor and population diversity is insufficient when a traditional genetic algorithm is used for solving a flexible job shop scheduling problem. Compared with an existing genetic algorithm, an initial solution is generated by using an initialization method based on the minimum overall load and a random mixing mode, and the quality of an initial population is improved. In an algorithm execution process, a discrete Levy flight mechanism based on a process coding distance is introduced, and the local development capability of the algorithm is ensured while a population approaches an optimal solution. A declined dynamic crossover operator is provided, and the optimization capacity of the algorithm in later iteration is ensured. A variable neighborhood search mechanism is introduced, and the local search capability of the algorithm is enhanced. According to the method, the solving efficiency is relatively high, the capability of jumping out of local optimum is stronger, and the solving result is better.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of job shop scheduling, in particular to a flexible job shop scheduling method based on an improved genetic algorithm of discrete Levy flight. Background Art

[0002] The job shop scheduling problem (JSP) is a combinatorial optimization problem that allocates available manufacturing resource sets to processing tasks. During the allocation process, it is necessary to reasonably arrange the processing machines, processing order and start time. JSP has been proven to be an NP-Hard problem with the characteristics of complexity, dynamic randomness, and multi-objective. The flexible job shop scheduling problem (FJSP) is a further extension of JSP. The biggest difference between it and JSP is that each job in FJSP can be scheduled to any machine. During the scheduling process, it is necessary to decide both the process sequence and the processing machine of the process. Therefore, FJSP is more complex and more in line with the increasingly complex and changeable actual production environment.

[0003] Genetic algorithms are widely used to solve FJSP because of their strong global search capabilities and strong robustness. However, traditional genetic algorithms are prone to premature maturity, easy to fall into local optimal solutions, and insufficient population diversity when solving flexible workshop scheduling problems. Summary of the invention

[0004] The purpose of the present invention is to provide a flexible job shop scheduling method based on an improved genetic algorithm of discrete Levy flight to overcome the above-mentioned defects.

[0005] The technical solution adopted by the present invention to achieve the above-mentioned purpose is:

[0006] The flexible job shop scheduling method based on the improved genetic algorithm of discrete Levy flight includes the following steps:

[0007] An improved genetic algorithm based on discrete Levy flight is constructed based on the flexible job shop scheduling problem model;

[0008] The optimal solution of genetic algorithm is used as the optimal scheduling method for the flexible job shop scheduling problem model;

[0009] Carry out workshop scheduling based on the optimal scheduling plan.

[0010] The construction is based on an improved genetic algorithm of discrete Levy flight, specifically:

[0011] Step 1: Set parameters;

[0012] Step 2: Combine the machine selection string and process sequence string in the flexible job shop scheduling problem model into a chromosome representing the scheduling solution, and initialize the population;

[0013] Step 3: Calculate the individual fitness values ​​in the population and determine whether the genetic algorithm has reached the maximum number of iterations. If so, the algorithm ends and the chromosome with the smallest current fitness value is taken as the optimal solution of the genetic algorithm. Otherwise, execute step 4.

[0014] Step 4: Use elite retention and tournament strategies to select the population;

[0015] Step 5: Use discrete Levy flight mechanism to optimize population quality;

[0016] Step 6: Use process code-based crossover and two-point crossover for process code and machine code respectively, and introduce a decreasing dynamic crossover probability, compare it with the random number, and determine whether a pair of chromosomes crossover occurs;

[0017] Step 7: Use exchange mutation and single-point mutation that tends to the minimum machine load for process coding and machine coding respectively;

[0018] Step 8: Use variable neighborhood search to develop a local solution, increase the number of iterations by 1, and return to step 3.

[0019] The parameters include: maximum number of iterations, population size, elite retention rate, crossover rate, and mutation rate.

[0020] In step 2, the population is initialized by a random generation method and an initialization method based on minimum overall load, wherein:

[0021] The random generation method is to randomly select a machine from the optional machine set of the current process;

[0022] The initialization method based on minimizing the overall load is to select a processing machine from a set of optional machines in the current process with the goal of minimizing the overall processing time.

[0023] The step 4 comprises the following steps:

[0024] Elite retention strategy: In each iteration, the population is sorted according to fitness, and a number of individuals with the highest fitness are retained as elite chromosomes according to a set ratio;

[0025] Binary tournament strategy: randomly select a pair of individuals from the remaining individuals for comparison, retain the individuals with higher fitness, and repeat this operation until the maximum population size is reached.

[0026] The step 5 comprises the following steps:

[0027] Step 5.1: Calculate the process encoding distance d between the current chromosome and the optimal chromosome ij :

[0028]

[0029] Where h represents the total number of processes, that is, the sum of the number of processes of all workpieces; osvs i,x ,osvs j,x To represent osvs i ,osvs j The value of the xth position above, osvs i ,osvs j It represents the process sequence value sequence converted from the OS sequence of the i-th and j-th chromosomes;

[0030] Step 5.2: Calculate the probability of crossover P based on the process coding distance:

[0031]

[0032]

[0033] Among them, d max Indicates the maximum value of process coding distance;

[0034] Step 5.3: Generate a 1*h random probability matrix. If the value in the current position matrix is ​​less than the probability to be crossed, delete the position corresponding to the OSVS of the current chromosome, otherwise keep it;

[0035] Step 5.4: Traverse the OSVS of all optimal chromosomes in the genetic algorithm, i.e., the chromosomes with the smallest fitness value, and delete the positions in the sequence that are the same as the sequence retained by the current chromosome;

[0036] Step 5.5: Fill the remaining sequences of the optimal chromosome into the OSVS of the current chromosome in their original order to complete the crossover of OSVS;

[0037] Step 5.6: Convert the new OSVS to OS sequence and replace the OS sequence of the current chromosome.

[0038] The dynamic crossover probability p c for:

[0039]

[0040] Among them, p max ,p min Respectively represent the maximum and minimum values ​​of the crossover probability interval, gen, gen max Represent the current number of iterations and the maximum number of iterations respectively. When the dynamic crossover probability p cWhen it is greater than the random number, the two chromosomes cross over, otherwise they do not cross over.

[0041] The single point variation towards minimum machine load comprises the following steps:

[0042] Randomly select a position as a mutation point, and select the machine with the shortest processing time from the corresponding optional machine set;

[0043] The variation point is assigned to the mutation position of the chromosome.

[0044] The variable neighborhood search comprises the following steps:

[0045] Three positions of the OS sequence were randomly selected;

[0046] Arrange all the process codes corresponding to each position, randomly select a permutation combination, and insert it into the original position in order.

[0047] The present invention has the following beneficial effects and advantages:

[0048] 1. The present invention adopts the existing initialization rules to improve the quality and diversity of the initial population.

[0049] 2. The present invention introduces the discrete Levy flight mechanism to enhance the ability of the genetic algorithm to jump out of the local optimum during the solution process.

[0050] 3. The present invention combines the variable neighborhood search algorithm to improve the local search capability of the algorithm and improve the performance of the genetic algorithm. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 This is the flowchart of the algorithm;

[0052] Figure 2 This is a schematic diagram of chromosome encoding for this algorithm;

[0053] Figure 3 Convert OS into OSVS flowchart;

[0054] Figure 4 It is the POX cross flow chart;

[0055] Figure 5 It is a two-point intersection flow chart;

[0056] Figure 6 For exchange variation flow chart;

[0057] Figure 7 A single point variation flow chart tending to the minimum machine load;

[0058] Figure 8 Flowchart for variable neighborhood search;

[0059] Fig. 9 This is a comparison chart of the convergence curves of this algorithm and other algorithms;

[0060] Fig.10 Gantt chart of the scheduling results of running MK03 for this algorithm. DETAILED DESCRIPTION

[0061] The present invention is further described in detail below in conjunction with the accompanying drawings and embodiments.

[0062] The objectives of the present invention are: first, to improve the quality of the initial population and speed up the algorithm's solution; second, to improve the local search capability of the genetic algorithm; and third, to ensure the algorithm's optimization capability in later iterations.

[0063] The technical solutions adopted by the present invention for the above objectives are: first, using an initialization method based on minimum overall load and a random mixing method to generate an initial solution; second, introducing a discrete Levy flight mechanism based on process coding distance; third, introducing a variable neighborhood search mechanism; and fourth, proposing a decreasing dynamic crossover operator.

[0064] The present invention constructs an improved genetic algorithm based on discrete Levy flight based on the flexible job shop scheduling problem model, takes the optimal solution of the genetic algorithm as the optimal scheduling method of the flexible job shop scheduling problem model, and performs shop scheduling based on the scheduling scheme

[0065] like Figure 1 As shown, the present invention adopts an improved genetic algorithm based on discrete Levy flight mechanism, and the algorithm includes the following steps:

[0066] Step 1: Set parameters, including the maximum number of iterations, population size, elite retention rate, crossover rate, mutation rate, etc.

[0067] Step 2: Initialize the population;

[0068] Step 3: Calculate the individual fitness values ​​in the population and determine whether the maximum number of iterations has been reached. If so, the algorithm ends, otherwise proceed to step 4.

[0069] Step 4: Use elite retention and tournament strategies to select the population;

[0070] Step 5: Use discrete Levy flight mechanism to optimize population quality;

[0071] Step 6: For process coding and machine coding, process coding-based crossover and two-point crossover are used respectively, and a decreasing dynamic crossover probability is introduced. The probability is calculated as follows:

[0072]

[0073] Among them, pc represents the crossover probability; pmax ,p min Represents the maximum and minimum values ​​of the crossover probability range, the crossover probability range is [0.4, 0.99]; gen, gen max are the current number of iterations and the maximum number of iterations respectively;

[0074] Step 7: Use exchange mutation and single-point mutation that tends to the minimum machine load for process coding and machine coding respectively;

[0075] Step 8: Use variable neighborhood search to develop local solutions, increase the number of iterations by 1, and go to step 3;

[0076] The present invention adopts two rules to generate the initial population of the equipment coding part: (1) randomly selecting a machine from the set of optional machines in the current process; (2) the rule of minimum overall load, with the goal of minimizing the overall processing time, selecting a processing machine from the set of optional machines in the current process.

[0077] The selection operation includes the following two steps: (1) elite retention strategy, in each iteration, the population is sorted according to fitness, and elite chromosomes are retained according to a certain ratio; (2) binary tournament strategy, a pair of individuals are randomly selected from the remaining individuals for comparison, and the individuals with higher fitness are retained. This operation is repeated until the maximum population size is reached.

[0078] The step 5 comprises:

[0079] Step 5.1: Calculate the process encoding distance between the current chromosome and the optimal chromosome, which is calculated as follows:

[0080]

[0081] Where: h represents the total number of processes, that is, the sum of the number of processes of all workpieces; osvs i,x ,osvs j,x For osvs i ,osvs j The value of the xth position above, osvs i ,osvs j It represents the process sequence value sequence converted from the OS sequence of the i-th and j-th chromosomes;

[0082] Step 5.2: Calculate the probability of pending crossover based on the process coding distance, which is calculated as follows:

[0083]

[0084]

[0085] Formula (3) is the calculation of the maximum value of the distance, and formula (4) is the calculation of the probability of waiting for crossover, and its value range is [0,1];

[0086] Step 5.3: Generate a 1*h random probability matrix. If the value in the current position matrix is ​​less than the probability to be crossed, the position corresponding to the OSVS of the current chromosome is deleted, otherwise it is retained;

[0087] Step 5.4: traverse the OSVS of the optimal chromosome and delete the positions in the sequence that are identical to the sequence retained by the current chromosome;

[0088] Step 5.5: Fill the remaining sequences of the optimal chromosome into the OSVS of the current chromosome in their original order to complete the crossover of OSVS;

[0089] Step 5.6: Convert the new OSVS to OS sequence and replace the OS sequence of the current chromosome.

[0090] The single-point mutation operation tending to the minimum machine load includes the following two steps: (1) randomly selecting a position as a mutation point, and selecting the machine with the shortest processing time in the corresponding optional machine set; (2) assigning it to the mutation position of the chromosome.

[0091] The variable neighborhood search includes: (1) randomly selecting three positions of the OS sequence; (2) fully arranging the process code corresponding to each position, randomly selecting a permutation combination, and inserting it into the original position in order.

[0092] The FJSP problem can be described as follows: n workpieces are processed on m machines, each workpiece has a certain process and the number of processes is not the same. ij (jth process of workpiece i) is processed on any machine in its optional machine set, and the processing time on each machine is different. After scheduling, the reasonable arrangement order of all workpiece processes and the machine selected for each process are clarified, and the maximum completion time is finally minimized. Therefore, FJSP can be summarized into two sub-problems: process sorting and machine selection. The constraints that the problem needs to meet are as follows:

[0093] 1) At zero time, all workpieces can be processed;

[0094] 2) Each artifact has equal priority;

[0095] 3) Only one process can be processed on each machine at the same time;

[0096] 4) Only one machine can be selected for the same workpiece at the same time, and once the machine is selected, the machine cannot be changed before the current process is completed;

[0097] 5) The processing time of the process on different machines is different, and the processing time is known;

[0098] 6) There are constraints on the processing sequence of the same workpiece process;

[0099] The parameter symbols of the present invention are defined as follows:

[0100] n: total number of workpieces, workpiece set J = {J1, J2, ..., J n};

[0101] m: total number of machines, machine set M = {M1,M2,...,M m};

[0102] h i :The total number of processes for the i-th workpiece, i=1,2,3,...,n;

[0103] O ij :jth process of workpiece i, j=1,2,3,...,h i ;

[0104] S ij : The start time of the jth process of workpiece i;

[0105] F ij : Completion time of the jth process of workpiece i;

[0106] T ijk : The processing time of the jth process of workpiece i on machine k, k = 1, 2, 3, ..., m;

[0107]

[0108]

[0109] The constraints of the FJSP model are:

[0110] T ijk >0,S ij >0 (5)

[0111] S ij +T ijk x ijk ≤F ij (6)

[0112] F i(j-1) ≤S ij (7)

[0113] S ij +T ijk ≤S pq +L(1-y ijpqk ) (8)

[0114] F i(j-1) ≤S ij +L(1-yijpqk ) (9)

[0115]

[0116] (5) indicates that the processing time must be greater than 0; (6) and (7) indicate the order constraints of the processing sequence of the same workpiece process; (8) and (9) indicate that only one process can be processed on each machine at the same time, where L is a sufficiently large positive number; (10) indicates that only one machine can be selected for the same workpiece at the same time.

[0117] The objective function is the maximum completion time:

[0118] C max = min{ max C i ,i=1,...,n} (11)

[0119] Given the conditions and the problems to be solved, Figure 1 The detailed steps of this algorithm are as follows:

[0120] Step 1: Set parameters, including the maximum number of iterations, population size, elite retention rate, crossover rate, mutation rate, etc.

[0121] Step 2: Encoding and initializing the population;

[0122] Step 3: Calculate the individual fitness values ​​in the population and determine whether the maximum number of iterations has been reached. If so, the algorithm ends, otherwise proceed to step 4.

[0123] Step 4: Use elite retention and tournament strategies to select the population;

[0124] Step 5: Use discrete Levy flight mechanism to optimize population quality;

[0125] Step 6: Use process coding-based crossover and two-point crossover for process coding and machine coding respectively, and introduce a decreasing dynamic crossover probability;

[0126] Step 7: Use exchange mutation and single-point mutation that tends to the minimum machine load for process coding and machine coding respectively;

[0127] Step 8: Use variable neighborhood search to develop local solutions, increase the number of iterations by 1, and go to step 3;

[0128] The step 2 comprises:

[0129] The coding method with simple structure can effectively express the relationship between chromosomes and feasible solutions and ensure the rationality of coding. Therefore, the present invention adopts MSOS coding. The machine selection string (MS) and the operation sequence string (OS) form a chromosome, and each chromosome represents a feasible solution to the problem. The specific coding structure is as follows Figure 2 As shown, the third process of workpiece 1 is processed on M3 in the optional machine set, the second process of workpiece 3 is processed on M2, and so on.

[0130] The quality of the initial population will affect the algorithm's solution speed and solution quality to a certain extent. Taking into account the iterative optimization characteristics of the genetic algorithm, it is necessary to ensure that there are a certain number of excellent solutions in the initial solution to improve the convergence speed of the population, and to ensure the randomness of the solution to avoid the algorithm from falling into the local optimum. Therefore, the present invention combines a random generation method with an initialization method based on the minimum overall load to initialize the population. The process part adopts a completely random initialization method, and the machine selection part adopts two methods: random generation and the overall load minimum strategy. The overall load minimum strategy aims to minimize the overall processing time and selects the processing machine from the optional machine set of the current process.

[0131] The step 4 comprises:

[0132] The selection operation can retain individuals with higher adaptability, ensure the optimization efficiency of the algorithm, and improve the convergence speed of the solution. The present invention adopts a method combining the elite retention strategy and the binary tournament strategy to select the population.

[0133] The objective function of the present invention is to minimize the maximum completion time, so the fitness value is set to the inverse of the objective function. The smaller the objective function value, the higher the fitness. Each iteration sorts the population according to the fitness, and retains the elite chromosomes according to a certain ratio. A pair is randomly selected from the remaining individuals for comparison, and the individuals with higher fitness are retained. This operation is repeated until the maximum population size is reached.

[0134] The step 5 comprises:

[0135] Lévy flight is a random walk with the characteristics of "small step with high probability and large step with low probability". Studies have shown that the flight behavior of many animals in nature conforms to Lévy flight. However, Lévy flight is a position update method used to solve continuous problems. If you want to apply it to solving FJSP, you need to design it discretized.

[0136] For the problem of converting continuous solution space into discrete process codes, most scholars adopt mapping rules based on some kind of order arrangement, such as the ascending order rule (Ranked Order Value, ROV), the smallest position value (Smallest Position Value, SPV), etc. These mapping rules usually use the order relationship of each position component in the solution vector, combined with the ascending process sequence or the maximum number of processes, to generate the corresponding process code. However, the distance of the position vector in the continuous space cannot directly map the difference in the solution of the discrete space. Moreover, when the position update of the solution vector changes little, the order of the solution vector remains unchanged, resulting in the generated process code remains unchanged. Therefore, the use of this mapping method reduces the local search ability of the algorithm. In order to better reflect the difference in discrete space solutions, the present invention designs the concept of process code distance, and formula (2) is its solution process, where osvs i ,osvs j The calculation method is as follows:

[0137] osvs i ,osvs j It represents the operation sequence value sequence converted from the OS sequence of the i-th and j-th chromosomes, hereinafter referred to as OSVS (Operation Sequence Values ​​Sequence), that is, the position corresponding to the operation of the first workpiece in the OS is recorded as 1, if there is a next operation, the position corresponding to the operation is recorded as 2, if there is no next operation for the current workpiece, then the first operation of the next workpiece is recorded as 3, and so on. Finally, osvs i ,osvs j The maximum value of is h. The conversion process is as follows Figure 3 shown.

[0138] The process coding distance reflects the gap between the current chromosome and the best chromosome in discrete space. The crossover operation of the genetic algorithm is used to cross the current chromosome with the best chromosome to simulate the position update of Levy flight. The process coding distance is divided by its maximum value as the probability to be crossed. Formula (3) and Formula (4) are the calculation methods.

[0139] In order to reproduce the characteristics of "small step size with high probability and large step size with low probability", the present invention adopts the method of generating a random probability matrix and comparing it with the probability to be crossed to perform a crossover operation on OSVS. The discretization design steps of Levy flight are as follows:

[0140] (1) Calculate the process coding distance between the current chromosome and the optimal chromosome;

[0141] (2) Calculate the probability of waiting to cross based on the process coding distance;

[0142] (3) Generate a 1*h random probability matrix. If the value in the current position matrix is ​​less than the probability to be crossed, the position corresponding to the OSVS of the current chromosome is deleted, otherwise it is retained;

[0143] (4) traverse the OSVS of the optimal chromosome and delete the positions in the sequence that are identical to the sequence retained by the current chromosome;

[0144] (5) Fill the remaining sequences of the optimal chromosome into the OSVS of the current chromosome in their original order to complete the crossover of the OSVS;

[0145] (6) Convert the new OSVS into an OS sequence and replace the OS sequence of the current chromosome.

[0146] The step 6 comprises:

[0147] like Figure 4 As shown, for the process part, POX crossover based on process coding is adopted, and the process is as follows:

[0148] (1) Randomly divide the workpiece set {J1, J2, ..., Jn} into two subsets, J1 and J2;

[0149] (2) Copy the artifact corresponding to J1 of the parent chromosome P1 to the offspring C1, and the artifact corresponding to J1 of the parent chromosome P2 to the offspring C2, preserving the relative positions;

[0150] (3) Copy the artifacts of parent generation P1 corresponding to J2 to child generation C2, and the artifacts of parent generation P2 corresponding to J2 to child generation C1, preserving their order.

[0151] For the machine part, two-point crossover is used, two positions are randomly selected as crossover points, and the chromosomes between the two crossover points are exchanged, such as Figure 5 shown.

[0152] The step 7 comprises:

[0153] The process part adopts exchange mutation, randomly selects two positions, and swaps the chromosomes at these positions, such as Figure 6 shown.

[0154] The machine part adopts a single-point mutation that tends to minimize the machine load. A position is randomly selected as the mutation point. The machine with the shortest processing time is selected from the corresponding optional machine set and assigned to the mutation position of the chromosome. The process is as follows: Figure 7 shown.

[0155] The step 8 comprises:

[0156] Variable neighborhood search (VNS) is an efficient local search algorithm for solving FJSP. Combining the excellent global search capability of genetic algorithms, using VNS local optimization for some individuals after each iteration of the population using genetic algorithms can effectively prevent local convergence and improve population quality. The present invention designs a variable neighborhood search strategy for OS chromosomes. First, three positions of the OS sequence are randomly selected, and then the process code corresponding to each position is fully arranged. A permutation combination is randomly selected and inserted into the original position in order. The process is as follows: Figure 8 shown.

[0157] Algorithm validity test. In order to verify the validity of the improved algorithm proposed in this paper, PyCharm2021 was used to write code to implement the improved genetic algorithm (DLGA) based on discrete Levy flight, and the MK10 example was run for comparison test with the GAVNS algorithm. The convergence curves of the average solution and the optimal solution are shown in the figure. Fig. 9 As shown in the figure, it can be seen that the DLGA algorithm proposed in the present invention has a faster convergence speed of the average solution and the optimal solution than the GAVNS algorithm, and has a stronger ability to jump out of the local optimum and search for the global optimal solution. The mutation probability is 0.01.

[0158] The Gantt chart of the MK03 scheduling solution is as follows: Fig.10 As shown, in Fig.10 In the figure, the horizontal axis is time, the vertical axis is machine, the first square in the upper left corner represents that the first process of workpiece 9 starts processing at time 0, and the adjacent square on the right represents that after the previous process is completed, the first process of workpiece 8 is processed on machine 1, and so on, the specific scheduling solution for this problem is obtained, and the optimal scheduling time is 204. The experimental results show that the convergence speed of the algorithm solution of the present invention is significantly improved compared with other algorithms, the ability to jump out of the local optimal solution is strong, and the solution speed is fast.

Claims

1. A flexible job shop scheduling method based on an improved genetic algorithm of discrete Levy flight, characterized in that: The following steps are involved: An improved genetic algorithm based on discrete Levy flight is constructed based on the flexible job shop scheduling problem model; The optimal solution of genetic algorithm is used as the optimal scheduling method for the flexible job shop scheduling problem model; Carry out workshop scheduling based on the optimal scheduling plan.

2. The flexible job shop scheduling method based on the improved genetic algorithm of discrete Levy flight according to claim 1 is characterized in that: The construction is based on an improved genetic algorithm of discrete Levy flight, specifically: Step 1: Set parameters; Step 2: Combine the machine selection string and process sequence string in the flexible job shop scheduling problem model into a chromosome representing the scheduling solution, and initialize the population; Step 3: Calculate the individual fitness values ​​in the population and determine whether the genetic algorithm has reached the maximum number of iterations. If so, the algorithm ends and the chromosome with the smallest current fitness value is taken as the optimal solution of the genetic algorithm. Otherwise, execute step 4. Step 4: Use elite retention and tournament strategies to select the population; Step 5: Use discrete Levy flight mechanism to optimize population quality; Step 6: Use process code-based crossover and two-point crossover for process code and machine code respectively, and introduce a decreasing dynamic crossover probability, compare it with the random number, and determine whether a pair of chromosomes crossover occurs; Step 7: Use exchange mutation and single-point mutation that tends to the minimum machine load for process coding and machine coding respectively; Step 8: Use variable neighborhood search to develop a local solution, increase the number of iterations by 1, and return to step 3.

3. The flexible job shop scheduling method based on the improved genetic algorithm of discrete Levy flight according to claim 2 is characterized in that: The parameters include: maximum number of iterations, population size, elite retention rate, crossover rate, and mutation rate.

4. The flexible job shop scheduling method based on the improved genetic algorithm of discrete Levy flight according to claim 2 is characterized in that: In step 2, the population is initialized by a random generation method and an initialization method based on minimum overall load, wherein: The random generation method is to randomly select a machine from the optional machine set of the current process; The initialization method based on minimizing the overall load is to select a processing machine from a set of optional machines in the current process with the goal of minimizing the overall processing time.

5. The flexible job shop scheduling method based on the improved genetic algorithm of discrete Levy flight according to claim 2 is characterized in that: The step 4 comprises the following steps: Elite retention strategy: In each iteration, the population is sorted according to fitness, and a number of individuals with the highest fitness are retained as elite chromosomes according to a set ratio; Binary tournament strategy: randomly select a pair of individuals from the remaining individuals for comparison, retain the individuals with higher fitness, and repeat this operation until the maximum population size is reached.

6. The flexible job shop scheduling method based on the improved genetic algorithm of discrete Levy flight according to claim 2 is characterized in that: The step 5 comprises the following steps: Step 5.1: Calculate the process encoding distance d between the current chromosome and the optimal chromosome ij : Where h represents the total number of processes, that is, the sum of the number of processes of all workpieces; osvs i,x ,osvs j,x To represent osvs i ,osvs j The value of the xth position above, osvs i ,osvs j It represents the process sequence value sequence converted from the OS sequence of the i-th and j-th chromosomes; Step 5.2: Calculate the probability of crossover P based on the process coding distance: Among them, d max Indicates the maximum value of process coding distance; Step 5.3: Generate a 1*h random probability matrix. If the value in the current position matrix is ​​less than the probability to be crossed, delete the position corresponding to the OSVS of the current chromosome, otherwise keep it; Step 5.4: Traverse the OSVS of all optimal chromosomes in the genetic algorithm, i.e., the chromosomes with the smallest fitness value, and delete the positions in the sequence that are the same as the sequence retained by the current chromosome; Step 5.5: Fill the remaining sequences of the optimal chromosome into the OSVS of the current chromosome in their original order to complete the crossover of OSVS; Step 5.6: Convert the new OSVS to OS sequence and replace the OS sequence of the current chromosome.

7. The flexible job shop scheduling method based on the improved genetic algorithm of discrete Levy flight according to claim 2 is characterized in that: The dynamic crossover probability p c for: Among them, p max ,p min Respectively represent the maximum and minimum values ​​of the crossover probability interval, gen, gen max Represent the current number of iterations and the maximum number of iterations respectively. When the dynamic crossover probability p c When it is greater than the random number, the two chromosomes cross over, otherwise they do not cross over.

8. The flexible job shop scheduling method based on the improved genetic algorithm of discrete Levy flight according to claim 2 is characterized in that: The single point variation towards minimum machine load comprises the following steps: Randomly select a position as a mutation point, and select the machine with the shortest processing time from the corresponding optional machine set; The variation point is assigned to the mutation position of the chromosome.

9. The flexible job shop scheduling method based on the improved genetic algorithm of discrete Levy flight according to claim 2 is characterized in that: The variable neighborhood search comprises the following steps: Three positions of the OS sequence were randomly selected; Arrange all the process codes corresponding to each position, randomly select a permutation combination, and insert it into the original position in order.

Citation Information

Cited By

  • Workshop scheduling method and system based on improved multi-objective genetic algorithm

    CN114862090A

  • Workshop scheduling method and system based on improved multi-objective genetic algorithm

    CN114862090B

  • Matrix type workshop scheduling method based on genetic algorithm

    CN119247908A

  • Intelligent dispatching method and device for flexible production workshop

    CN121436435A

  • Coal machine complete equipment production plan dynamic tuning method under demand disturbance condition

    CN121832478A