Batch division and scheduling method for flexible production line of automobile engines
By combining genetic algorithm and tabu search algorithm, the sub-batch processing sequence of the automobile engine production line is optimized, which solves the problem of different types of workpieces and uncertain arrival times in the flexible production line, achieves efficient production line scheduling, and improves equipment utilization and production efficiency. .
Patent Information
- Application Number
- CN202011159971.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-27
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2040-10-27
AI Technical Summary
In the flexible automobile engine production line, due to the uncertainty of the arrival time of different types of cylinder heads and valve bodies and the influence of equipment mold change time, the existing scheduling control method is difficult to effectively improve production efficiency and equipment utilization, and cannot cope with complex and unpredictable situations. Determine the production environment.
Combining the genetic algorithm and tabu search algorithm, through two-stage optimization solution, multiple sub-batches are formed and their processing sequence is optimized. The sample mean approximation method is used to establish a mixed integer programming model to minimize the delay penalty and achieve batch optimization.
It effectively reduces the overdue loss of workpiece processing, improves equipment utilization and production efficiency, and meets the actual production needs of uncertain material incoming time and machine mold change time.
Smart Images

Figure CN114492895B
Abstract
Description
Technical Field
[0001] The present invention relates to a technology in the field of flexible workshop production and manufacturing, and specifically to a batching and scheduling method for a flexible production line of an automobile engine. Background Art
[0002] The engine is one of the most important parts of a car. How to improve the production efficiency of the engine production line, reduce the overdue engine orders and improve equipment utilization are important issues facing the current automobile engine production line. In recent years, China has begun to introduce flexible production lines, which has greatly improved the production efficiency of the production line. However, the one-time investment of flexible production lines is large and the maintenance cost is high. It is necessary to optimize the existing production scheduling plan to improve production efficiency and equipment utilization.
[0003] Cylinder heads and valve bodies, as key components of automobile engines, can be processed on the same flexible production line. The basic processing mode is that the position of the machine is fixed, and the object to be processed needs to pass through all the machines on the same production line, and be processed on each machine in turn until the last machine completes the processing. The cylinder heads and valve bodies processed by the flexible production line involved in the present invention have different models, that is, the production line needs to process multiple models of workpieces (each workpiece is a model of cylinder head or valve body), and the machine needs to change molds when switching workpieces to be processed. Furthermore, since the arrival time of the blanks provided by suppliers or upstream production lines and the semi-finished products to be processed is highly uncertain, the exact arrival time of each workpiece cannot be determined, so the production line scheduling is even more difficult, which is greatly affected by factors such as the material incoming time and the equipment mold change time.
[0004] At present, in flexible engine processing production lines with uncertain material arrival time, the existing scheduling control method is generally first-come-first-served, that is, the workpiece to be processed that arrives at the production line first will be processed first. Generally, multiple such workpieces that arrive are combined into one batch and processed on the production line without considering the batch processing method, which cannot cope with complex flexible and uncertain production environments. Summary of the invention
[0005] In view of the above-mentioned deficiencies in the prior art, the present invention proposes a batching and scheduling method for a flexible production line of automobile engines, which combines a genetic algorithm (GA) with a taboo search algorithm (TS), takes minimizing the penalty for delay as the goal, and targets a flexible production line in which workpieces to be processed arrive randomly and have machine mold change time. The total processing volume of each workpiece is processed in batches to form multiple sub-batches, and the processing order of the multiple sub-batches is optimized.
[0006] The present invention is achieved through the following technical solutions:
[0007] The present invention relates to a batching and scheduling method for a flexible production line of an automobile engine. With minimizing delay penalties as an optimization goal, the original optimization problem is solved in two stages, namely, the total number of sub-batches of each workpiece and the processing sequence of all sub-batches of different workpieces are solved by a genetic taboo hybrid heuristic algorithm, and then under this processing sequence, a mixed integer programming model is established by using a sample average approximation (SAA) method according to the characteristics of random arrival time, that is, a number of scenarios are generated according to the random characteristics of the workpiece arrival time, the goal is to minimize the mean of the overdue penalties of all scenarios, and batch optimization is achieved by solving the batch size of each sub-batch.
[0008] The sub-batch refers to dividing the processing task of each workpiece into several sub-batches, scheduling and entering the machine for processing in sub-batches, and each sub-batch consists of several single workpieces.
[0009] The total number of sub-batches for each workpiece is the total number of sub-batches included in each workpiece.
[0010] The processing order of the sub-batches refers to the order in which the sub-batches enter each machine for processing.
[0011] The batch size of each sub-batch refers to the number of workpieces contained in each sub-batch.
[0012] The genetic taboo hybrid heuristic algorithm refers to: after initialization, elite individual search is performed, and after the obtained individuals are evaluated, two individuals in the group are selected as parents based on the fitness size by the roulette method, and crossover and mutation operations are performed. After obtaining the second group of offspring, the exchange operation, batch increase operation and batch reduction operation are performed in sequence, and then a neighborhood search is performed. When the fitness of any individual is higher than the worst fitness in the contemporary group, the individual is exchanged and the taboo list is updated to achieve one iteration. When the iteration reaches the preset value, the individual with the maximum fitness is obtained as the optimal solution output.
[0013] The individuals are a set of solutions of the processing sequence obtained by the genetic algorithm, and each individual is a processing sequence code.
[0014] The coding is a real number coding, the number represents a sub-batch of the workpiece, the position of the number in the individual represents the order, the number of times the number appears in the individual code represents the number of sub-batches of the workpiece, the coding only represents the processing order, and does not contain sub-batch information, wherein each number in the coding is a gene of the individual, and its position is the gene position of the gene.
[0015] The initialization is to randomly generate a set of processing sequence codes each time, representing a processing sequence plan, that is, an individual, and randomly generate a number of individuals to form an initial group, that is, an initial feasible solution set.
[0016] During initialization, the individuals need to be checked for completeness to ensure that the randomly generated individuals are a set of feasible solutions, that is, to ensure that all types of artifacts exist in the individual gene encoding. When any artifact is missing in the encoding, a gene bit is randomly selected and its value is changed to the number of the missing artifact, and then a completeness check is performed until the test passes.
[0017] The elite individual search refers to: randomly selecting Gen genes from Len genes, then replacing each gene taken out, performing a completeness test after replacement, and when the fitness function value after replacement is better than the current value, replacing the current gene to obtain a new individual.
[0018] The fitness is obtained in the following way: according to the processing sequence determined by the code, the sequence is input into the mixed integer programming model, and the batch size and fitness value of each sub-batch are solved. Since the target value is a minimization function, the fitness value is the inverse of the target value.
[0019] The mixed integer programming model (MIP-SAA) corresponding to the objective function is:
[0020] Minimize the mean of delay penalties in S scenarios
[0021] The constraints include:
[0022] ① The relationship between the processing completion time of adjacent sub-batches on the same machine satisfies:
[0023] t lks -t (l-1)ks ≥n l ·PT π(l)k +ST π(l-1)π(l)k ,2≤l≤L,1≤k≤K,1 <s<S;
[0024] ② The relationship between the processing completion time of the same sub-batch on two adjacent machines satisfies:
[0025] t lks -t l(k-1)s ≥n l ·PT π(l)k +ST π(l-1)π(l)k ,1≤l≤L,1≤k≤K,1 <s<S;
[0026] ③ All workpieces can only be processed after receiving the materials: l0s ≥AT π(l)s ,1≤l≤L,1 <s<S;
[0027] ④ The constraints on the total amount of each sub-batch of various workpieces are satisfied:
[0028] ⑤ The delay T of workpiece i in scenario s is Not less than the difference between the delivery date of the workpiece and the processing completion time of the last sub-batch of the workpiece:
[0029] ⑥The constraints on the value range of all variables are satisfied:
[0030] t lks ≥0,intn l >0,r li ∈(0,1),q li ∈(0,1),T is ≥0,1≤l≤L,0≤i≤I,0≤k≤K,1≤s≤S; where: I is the type of workpiece, workpiece number i∈I; K is the number of machines, machine number k∈K; d i is the total batch of workpiece i; L is the code length, the sub-batch number l∈L; π is the processing sequence, π(l) represents the type of workpiece in the lth batch; PT ik is the single-piece processing time of workpiece i on machine k; ST ijk is the die change time from workpiece i to workpiece j on machine k; r li is an auxiliary variable, r li =1 means the type of workpiece in the lth sub-batch is i, otherwise r li =0;q li is an auxiliary variable, q li =1 means that the lth sub-batch is the last sub-batch of workpiece i, otherwise q li =0;AT is is the incoming time of workpiece i in scene s; DD i is the delivery date of workpiece i; μ i is the penalty coefficient for delay of job i; variable to be optimized: n l is an integer variable, the number of sub-batches contained in the l-th sub-batch, greater than or equal to 0; t lks is a continuous variable, the processing completion time of the lth sub-batch on the kth machine in the sth scenario; T is is a continuous variable, indicating the delay of workpiece i in scenario s.
[0031] The mixed integer programming model is preferably solved by performing the following steps on the integer variable n: l Perform linear relaxation to transform the original mixed integer programming problem into a linear programming problem, use the cplex solver to solve it, and then round the obtained linear solution to obtain an integer solution.
[0032] The roulette wheel method is selected in which the probability of each individual being selected is proportional to the value of its fitness function.
[0033] The crossover operation randomly generates subsequence lengths and exchange starting points, exchanging CH 1 and CH 2 The gene fragment of the same length after this position is obtained as the offspring CH 11 and CH 12 .
[0034] The mutation operation randomly selects CH 11 and CH 12 mutate_st gene, replacing it with a different gene number than the original one.
[0035] After the crossover and mutation operations, the individuals need to be checked for completeness to ensure that each sub-batch of workpieces appears at least once in the encoding, and that the crossover and mutation are performed under the crossover probability and mutation probability respectively.
[0036] The exchange operation refers to: starting from the first and second genes of an individual, the genes at two adjacent positions in the individual code are exchanged in sequence.
[0037] The batch addition operation refers to: starting from the 0th and 1st gene positions of the individual, inserting a sub-batch of each type of workpiece between each gene position of the individual in sequence.
[0038] The batch reduction operation refers to: deleting each gene position in sequence starting from the first gene position of the individual.
[0039] The neighborhood search is performed by tabooing individuals in the taboo list. The taboo list is updated after each iteration. When the fitness of the offspring obtained after crossover, mutation and neighborhood search is better than that of the parent, the destroyed subsequence in the parent encoding is added to the TL as a taboo. Within a certain number of iterations, when the subsequence does not appear in the neighborhood search, it will be deleted from the TL and is no longer a taboo.
[0040] The neighborhood search is preferably performed against a taboo list TL, and individuals tabooed by the taboo list are not within the search range.
[0041] The sample mean approximation method refers to generating a sample that obeys this distribution when the problem contains a random variable with a known distribution. Each sample contains several certain scenarios, and all certain scenarios are solved with the goal of minimizing the target value mean of the sample. A solution that is suitable for all scenarios and has the smallest target value mean of the sample is the optimal solution.
[0042] Technical Effects
[0043] The present invention uses batch and scheduling optimization methods to achieve the minimum penalty for production line delays as the research goal, studies automobile engine cylinder head and valve body production lines, and considers the uncertainty of the arrival time of the workpiece to be processed (a type of cylinder head or valve body) at the production line and the machine mold change time, which is in line with the actual production situation. By improving the scheduling principle of first-come-first-served processing of the existing engine production line and the non-batch production scheduling plan, the batch scheduling method can effectively reduce overdue losses, shorten working hours, and improve equipment utilization, thereby improving the production efficiency of the production line. At the same time, the present invention takes into account the uncertainty of incoming materials of the production line and meets the processing needs of uncertainty problems in actual production. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 is a flow chart of the method of the present invention;
[0045] Figure 2 Schematic diagrams of three field search methods provided for the implementation of the present invention;
[0046] Figure 3 It is a schematic diagram of the definition of subsequence in the taboo search algorithm of the present invention. DETAILED DESCRIPTION
[0047] like Figure 1 As shown, this embodiment involves a method for batching and scheduling of flexible production lines for automobile engines, and this method is implemented for a passenger car engine cylinder head and valve body production line in Shanghai. The production line realizes the processing of two types of workpieces of cylinder heads and valve bodies, that is, the number of workpiece types is 4, and the total processing batch of each workpiece is 500 pieces. The incoming material time of the cylinder head obeys the uniform distribution of 0-100, and the incoming material time of the valve body obeys the normal distribution with a mean of 200 and a variance of 20. The production line involved includes 10 equipment, and the processing equipment is CNC vertical lathe, horizontal machining center, valve seat cold assembly line, etc. The time for each machine to process a workpiece is determined. Before the workpiece enters the production line for processing, it is necessary to determine the total number of sub-batches after each workpiece is batched, the number of workpieces in each sub-batch, and the processing order of all sub-batches entering the machine for processing. After determining the batching situation and processing order, the sub-batches enter the machine in sequence for processing.
[0048] The specific batching and scheduling solution steps include:
[0049] Step S1, initialization: set the evolutionary generation counter t=0, set the maximum evolutionary generation T=2000, randomly generate a set of processing order codes each time, each code is an individual, representing a processing order scheme, randomly generate 50 individuals to form the initial population P(0), the total code length Len=20, the elite search parameter Gen=5, the mutant gene selection parameter mutate_st=5, the crossover probability CROSS_P=0.8, the mutation probability MUTATE_P=0.05, and the initial taboo list TL is empty.
[0050] The gene coding uses real number coding, and a number represents a sub-batch of workpieces. The position of the number in the individual represents the order. The number of times the number appears in the individual code represents the number of sub-batches of workpieces. The code only represents the processing order and does not contain sub-batch information. The production line processes 4 types of products, numbered 1 to 4, then (1, 2, 0, 4, 3, 3, 2, 0) is a scheduling plan, numbered 1, 2, 3, 4, and number 0 is meaningless. However, since the total number of sub-batches of workpieces is uncertain, the total number of gene positions of individuals is uncertain. The number 0 is allowed to appear in the initialization stage. After the initialization is completed, the effective code after removing 0 is (1, 4, 3, 3, 2). Workpiece 1 appears once in the code, indicating that workpiece 1 is divided into 1 batch and is in the first processing position. Workpiece 2 is divided into 1 sub-batch and is processed at the fifth position. Workpiece 3 is divided into two sub-batches and is processed at the third and fourth positions respectively. Workpiece 4 is divided into 1 batch and is processed at the second position.
[0051] Step S2, elite individual search: Randomly select 5 individuals in P(0) for neighborhood search. The neighborhood search method is to randomly select Gen genes from Len genes, and then replace each gene. When the fitness function value after replacement is better than the current value, replace the current gene. For example, there are 4 types of workpieces. The current value of a specific gene is 2. In the code, it represents a sub-batch of workpiece 2 processed at this position. Replace it with 1, 3 and 4 in turn, evaluate the fitness, and replace it when the fitness after replacement is better.
[0052] Step S3, individual evaluation: calculate the fitness of each individual in the group P(t); the fitness calculation method is to input the processing sequence determined by the code into the mixed integer programming model, solve the batch size and fitness value of each sub-batch, and since the target value is a minimization function, the fitness value takes the inverse of the target value.
[0053] The objective function is: minimize the mean of delay penalties under S scenarios
[0054] Constraints: t lks -t (l-1)ks ≥n l ·PTπ(l)k +ST π(l-1)π(l)k 2≤l≤L,1≤k≤K,1 <s<S
[0055] t lks -t l(k-1)s ≥n l ·PT π(l)k +ST π(l-1)π(l)k 1≤l≤L,1≤k≤K,1 <s<S
[0056] t l0s ≥AT π(l)s 1≤l≤L,1 <s<S
[0057]
[0058]
[0059] t lks ≥0,intn l >0,r li ∈(0,1),q li ∈(0,1),T is ≥0,1≤l≤L,0≤i≤I,0≤k≤K,1≤s≤S
[0060] The objective function is solved in the following way:
[0061] Step S301: Use the cplex solver to directly solve the linear programming as follows:
[0062] Constraints: t lks -t (l-1)ks ≥n l ·PT π(l)k +ST π(l-1)π(l)k 2≤l≤L,1≤k≤K,1 <s<S
[0063] t lks -t l(k-1)s ≥n l ·PT π(l)k +ST π(l-1)π(l)k 1≤l≤L,1≤k≤K,1 <s<S
[0064] t l0s ≥AT π(l)s 1≤l≤L,1 <s<S
[0065]
[0066]
[0067] t lks≥0,n l >0,r li ∈(0,1),q li ∈(0,1),T is ≥0,1≤l≤L,0≤i≤I,0≤k≤K,1≤s≤S.
[0068] Step S302: The obtained linear solution n l Round up.
[0069] Step S303: Adjust the rounded solution to make it a feasible solution. First, the linear solution n is obtained. l Round up and find the total batch size dd for each workpiece i , with the original total batch d i Compare, dd i Usually greater than d i , in order to make dd i Equal to d i , subtract each integer solution from the corresponding linear solution, and subtract 1 from the integer solution corresponding to the maximum difference. The total number of integer solutions is d i Then eliminate one unit of the minimum batch, and repeat until dd i Equal to d i .
[0070] For example, for the example with the processing sequence (1, 2, 1, 2, 3, 4), a set of linear feasible solutions n is obtained. l =(100.3, 200.2, 399.7, 299.8, 500, 500), n l Round up to get the integer solution nn l = (101, 201, 400, 300, 500, 500), dd 1 =101+400=501, dd 2 =201+300=501, where sub-batch 1 and sub-batch 3 are two sub-batches of workpiece 1. The difference between the linear solution 100.3 of sub-batch 1 and the rounded solution 101 is 0.7, which is greater than the difference between the linear solution 399.7 of sub-batch 3 and the rounded solution 400, so the integer solution 101 of sub-batch 1 is reduced by 1. At this time, dd 1 =100+400=500, which is a feasible solution. The same is true for workpiece 2. Finally, we get a feasible integer solution nn l =(100, 200, 400, 300, 500, 500).
[0071] Step S304, obtain the fitness, the fitness is obtained by the following method: l Substitute into the linear programming function and solve it. The fitness is the inverse of the target value.
[0072] The linear programming function is:
[0073] Constraints: t lks -t (l-1)ks ≥nn l ·PT π(l)k +ST π(l-1)π(l)k 2≤l≤L,1≤k≤K,1 <s<S
[0074] t lks -t l(k-1)s ≥nn l ·PT π(l)k +ST π(l-1)π(l)k 1≤l≤L,1≤k≤K,1 <s<S
[0075] t l0s ≥AT π(l)s 1≤l≤L,1 <s<S
[0076]
[0077] t lks ≥0,r li ∈(0,1),q li ∈(0,1),T is ≥0,1≤l≤L,0≤i≤I,0≤k≤K,1≤s≤S
[0078] Step S4, selection operation: t = t + 1, based on the fitness size, the roulette method is used to select two individuals in the population as parents, denoted as CH 1 With CH 2 ;
[0079] Step S5, crossover operation: crossover probability 0.8 for CH 1 With CH 2 Perform a crossover operation to obtain two offspring individuals CH 11 With CH 21 The crossover method is to randomly generate a gene fragment length Len_g and an exchange starting point cross_st, and exchange the gene fragments of the two individuals at the cross_st position with a length of Len_g. 11 With CH 21 Conduct integrity checks;
[0080] Step S6, mutation operation: CH 11 With CH 21 Perform mutation operations to obtain the second group of offspring CH 12 With CH 22 The mutation method is to randomly select 5 genes in the individual code and randomly replace them with gene numbers different from the original to obtain CH12 With CH 22 , and CH 12 With CH 22 Conduct integrity checks;
[0081] Step S7: 12 With CH 22 The three neighborhood searches of swapping, increasing batches and decreasing batches are performed in turn, such as Figure 2 As shown in the figure, the exchange operation process is: starting from the 1st and 2nd genes of the individual, the genes of two adjacent positions in the individual code are exchanged in turn. The batch increase is to start from the 0th and 1st gene positions of the individual, and insert a sub-batch of each artifact between each gene position of the individual in turn. The batch reduction is to delete each gene position in turn starting from the 1st gene position of the individual. Each neighborhood search requires a completeness check on the individual. During the neighborhood search process, the taboo list TL must be compared to eliminate the individuals that are tabooed by the taboo list. Tabooed individuals refer to all individuals that contain subsequences in the taboo list.
[0082] Step S8, for the two selected individuals, as long as one of them has a higher fitness than the worst individual in the contemporary group after completing the crossover, mutation and domain search operations, it will be replaced. The replacement method is to randomly select two replacements from the next best 25 individuals among all 50 individuals in the population.
[0083] The taboo method in steps S7 and S9 is to taboo individuals in the taboo list during the neighborhood search process, and update the taboo list after each iteration. The characteristic is that when a solution containing a tabooed subsequence appears in the neighborhood search, the solution is discarded. The subsequence is as follows: Figure 3 shown.
[0084] Step S9, update the taboo list TL. If the fitness of the offspring obtained after crossover, mutation and neighborhood search is better than that of the parent, the damaged subsequence in the parent code is added to TL as a taboo. Within a certain number of iterations, when the subsequence does not appear in the neighborhood search, it is deleted from TL and is no longer a taboo. Termination condition judgment: When t = T = 2000, the number of iterations reaches the specified number, the individual with the maximum fitness obtained in the evolution process is output as the optimal solution, and the calculation is terminated. Otherwise, return to step S4.
[0085] When the algorithm termination condition is reached, the optimal individual in the current population is output. Its genetic code is the processing order, and the solution obtained by solving its fitness is the optimal batch strategy under this processing order.
[0086] After specific actual experiments, the delay penalty coefficients of workpieces 1 to 4 are 0.2, 0.4, 0.25 and 0.6 respectively. The experimental results are shown in Table 1, where the calculation results before optimization are based on the existing technology, that is, scheduling according to the first-come-first-served principle and all workpieces are not processed in batches.
[0087]
[0088]
[0089] Table 1
[0090] Compared with the prior art, this method takes into account the problem of uncertain incoming material time of workpieces, and schedules the processing tasks in batches, and incorporates the batching of processing tasks into the scheduling optimization decision. Different from the existing batch scheduling method, the present invention can realize the production scheduling and scheduling decision of the flexible production line of automobile engine cylinder heads and valve bodies with uncertain incoming material time, and find and output the best feasible scheduling plan that meets the requirements in a relatively short time. Therefore, the present invention greatly reduces the overdue penalty of workpiece processing tasks and improves the average utilization rate of the machine, wherein the production tasks are batched and batch scheduling is realized, so that the same workpiece can be processed on different machines in different sub-batches at the same time, effectively improving the utilization rate of the machine.
[0091] The above-mentioned specific implementation can be partially adjusted in different ways by those skilled in the art without departing from the principle and purpose of the present invention. The protection scope of the present invention shall be based on the claims and shall not be limited by the above-mentioned specific implementation. Each implementation scheme within its scope shall be subject to the constraints of the present invention.
Claims
1. A method for batching and scheduling a flexible production line of an automobile engine, characterized in that: Taking minimizing the penalty for delay as the optimization goal, the original optimization problem is solved in two stages, namely, the total number of sub-batches of each workpiece and the processing order of all sub-batches of different workpieces are solved by a genetic taboo hybrid heuristic algorithm. Then, under this processing order, a mixed integer programming model is established by using the sample mean approximation method according to the characteristics of random arrival time. That is, several scenarios are generated according to the random characteristics of the workpiece arrival time. The goal is to minimize the mean of the overdue penalty of all scenarios. Batch optimization is achieved by solving the batch size of each sub-batch. The mixed integer programming model corresponding to the objective function is: Minimize the mean of delay penalties in S scenarios The constraints include: ① The relationship between the processing completion times of adjacent sub-batches on the same machine satisfies: t lks -t (l-1)ks ≥n l ·PT π(l)k +ST π(l-1)π(l)k , 2 ≤ l ≤ L, 1 ≤ k ≤ K, 1 < s < S; ② The relationship between the processing completion times of the same sub-batch on two adjacent machines satisfies: t lks -t l(k-1)s ≥n l ·PT π(l)k +ST π(l-1)π(l)k , 1 ≤ l ≤ L, 1 ≤ k ≤ K, 1 < s < S; ③ All workpieces can only start processing after the arrival of materials: t l0s ≥AT π(l)s , 1 ≤ l ≤ L, 1 < s < S; ④ The constraints on the total amount of each sub-batch of various workpieces are satisfied: ⑤ The tardiness T is of workpiece i in scenario s is not less than the difference between the due date of the workpiece and the processing completion time of the last sub-batch of the workpiece, satisfying: ⑥ The constraints on the value ranges of all variables are satisfied: t lks ≥0,intn l >0,r li ∈(0,1),q li ∈(0,1),T is ≥0,1≤l≤L,0≤i≤I,0≤k≤K,1≤s≤S; where: I is the type of workpiece, workpiece number i∈I; K is the number of machines, machine number k∈K; d i is the total batch of workpiece i; L is the code length, the sub-batch number l∈L; π is the processing sequence, π(l) represents the type of workpiece in the lth batch; PT ik is the single-piece processing time of workpiece i on machine k; ST ijk is the die change time from workpiece i to workpiece j on machine k; r li is an auxiliary variable, r li =1 means the type of workpiece in the lth sub-batch is i, otherwise r li =0;q li is an auxiliary variable, q li =1 means that the lth sub-batch is the last sub-batch of workpiece i, otherwise q li =0;AT is is the incoming time of workpiece i in scene s; DD i is the delivery date of workpiece i; μ i is the penalty coefficient for delay of job i; variable to be optimized: n l is an integer variable, the number of sub-batches contained in the l-th sub-batch, greater than or equal to 0; t lks is a continuous variable, the processing completion time of the lth sub-batch on the kth machine in the sth scenario; T is is a continuous variable, indicating the delay of workpiece i in scenario s.
2. The method for batching and scheduling automobile engine flexible production lines according to claim 1 is characterized in that: The genetic taboo hybrid heuristic algorithm refers to: after initialization, elite individual search is performed, and after the obtained individuals are evaluated, two individuals in the group are selected as parents based on the fitness size by the roulette method, and crossover and mutation operations are performed. After obtaining the second group of offspring, the exchange operation, batch increase operation and batch reduction operation are performed in sequence, and then a neighborhood search is performed. When the fitness of any individual is higher than the worst fitness in the contemporary group, the individual is exchanged and the taboo list is updated to achieve one iteration. When the iteration reaches the preset value, the individual with the maximum fitness is obtained as the optimal solution output.
3. The method for batching and scheduling automobile engine flexible production lines according to claim 2 is characterized in that: The coding described above uses a number to represent a sub-batch of workpieces. The position of the number in the individual represents the order. The number of times the number appears in the individual code represents the number of sub-batches of workpieces. The code only represents the processing order and does not contain sub-batch information. A completeness test is required for all individuals in the population to ensure that all workpieces in the gene code of each individual exist in the code. When any workpiece is missing during sequencing, any gene position is randomly selected and its value is changed to the number of the missing workpiece, and then a completeness test is performed until the test passes.
4. The method for batching and scheduling automobile engine flexible production lines according to claim 2 is characterized in that: The initialization is to randomly generate a set of processing sequence codes each time, representing a processing sequence plan, that is, an individual, and randomly generate a number of individuals to form an initial group, that is, an initial feasible solution set.
5. The method for batching and scheduling automobile engine flexible production lines according to claim 2 is characterized in that: The fitness is obtained by: according to the processing sequence determined by the code, the sequence is input into the mixed integer programming model, and the batch size and fitness value of each sub-batch are solved. Since the target value is a minimization function, the fitness value is the reciprocal of the target value; The elite individual search refers to: randomly selecting Gen genes from Len genes, then replacing each gene taken out, performing a completeness test after replacement, and when the fitness function value after replacement is better than the current value, replacing the current gene to obtain a new individual.
6. The method for batching and scheduling automobile engine flexible production lines according to claim 1 is characterized in that: The solution of the mixed integer programming model is obtained by l Perform linear relaxation to transform the original mixed integer programming problem into a linear programming problem, use the cplex solver to solve it, and then round the obtained linear solution to obtain an integer solution.
7. The method for batching and scheduling automobile engine flexible production lines according to claim 2 is characterized in that: The roulette wheel method selection, wherein the probability of each individual being selected is proportional to the value of its fitness function; The crossover operation randomly generates a subsequence length and an exchange starting point, and exchanges the gene fragments of the same length after CH1 and CH2 at this position to obtain the offspring CH 11 and CH 12 ; The mutation operation described above randomly selects CH 11 and CH 12 mutate_st gene, replacing it with a different gene number than the original one.
8. The method for batching and scheduling automobile engine flexible production lines according to claim 6 is characterized in that: After the crossover operation and mutation operation, the individuals need to be checked for completeness to ensure that each sub-batch of workpieces appears at least once in the encoding.
9. The method for batching and scheduling automobile engine flexible production lines according to claim 2 is characterized in that: The exchange operation refers to: starting from the first and second genes of an individual, the genes at two adjacent positions in the individual code are exchanged in sequence; The batch addition operation refers to: starting from the 0th and 1st gene positions of the individual, inserting a sub-batch of each type of workpiece between each gene position of the individual in sequence; The batch reduction operation refers to: deleting each gene position in sequence starting from the first gene position of the individual.
10. The automobile engine flexible production line batching and scheduling method according to claim 2 is characterized in that: The neighborhood search is performed by tabooing individuals in the taboo list. The taboo list is updated after each iteration. When the fitness of the offspring obtained after crossover, mutation and neighborhood search is better than that of the parent, the destroyed subsequence in the parent encoding is added to the TL as a taboo. Within a certain number of iterations, when the subsequence does not appear in the neighborhood search, it will be deleted from the TL and is no longer a taboo.
11. The method for batching and scheduling automobile engine flexible production lines according to claim 1 is characterized in that: The sample mean approximation method refers to generating a sample that obeys this distribution when the problem contains a random variable with a known distribution. Each sample contains several certain scenarios, and all certain scenarios are solved with the goal of minimizing the target value mean of the sample. A solution that is suitable for all scenarios and has the smallest target value mean of the sample is the optimal solution.
