An intelligent production scheduling method for mixed production lines based on group immunity-genetic algorithm
Through the intelligent production scheduling method of mixed production lines based on the herd immunity-genetic algorithm, the problem of too fixed optimization targets in the production plan optimization of the flow workshop is solved, adaptive production plan adjustment and data update are realized, and the practicality of the production plan is improved. and efficiency.
Patent Information
- Application Number
- CN202210415035.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-20
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2042-04-20
AI Technical Summary
It is difficult to effectively optimize the production plan of the flow workshop with the existing technology, especially when the production line is changeable. The optimization target is too fixed and cannot well match the actual production situation.
The mixed production line intelligent production scheduling method based on the herd immunity-genetic algorithm is used to evaluate the priority of the multi-objective model by collecting production orders, delivery dates and parts inventory information, and determine the infected population and optimization in the herd immunity-genetic algorithm. The main goal is to perform optimization calculations and generate the optimal production plan that conforms to actual production conditions.
It is possible to adaptively change the production scheduling target according to the current demand of the production line, collect statistical basic production data, and realize self-updating of the basic data of the production schedule, making the production plan more in line with the actual production capacity, and improving the flexibility and efficiency of the production plan.
Smart Images

Figure CN114707748B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of intelligent factory production planning, and specifically relates to an intelligent production scheduling method for a mixed flow production line based on group immunity-genetic algorithm. Background Art
[0002] In order to achieve efficient production in assembly lines, the scheduling method of assembly line production planning using intelligent optimization algorithms is gaining more and more attention.
[0003] For the optimization research of production planning and scheduling problems in assembly lines, one method is to establish a simple mathematical model and use linear programming methods to solve it, but this method cannot solve more complex workshop problems. Another method is to use intelligent optimization algorithms to solve specific goals. Because production lines are changeable, the theoretical data of production and processing are different from the actual production capacity of the current production lines, which often leads to production scheduling that does not conform to the actual situation well. The main reason is that the optimization goals are relatively fixed, and the production goals should be flexibly selected according to the production situation. Summary of the invention
[0004] In view of the shortcomings in the prior art, the present invention provides an intelligent production scheduling method for a mixed flow production line based on group immunity-genetic algorithm.
[0005] The present invention achieves the above technical objectives through the following technical means.
[0006] An intelligent production scheduling method for mixed production lines based on group immunity-genetic algorithm, specifically:
[0007] Collect the delivery completion volume, delivery date and spare parts inventory information of production orders, judge the priority of the multi-objective model, determine the infected population in the group immunity-genetic algorithm and optimize the main objective;
[0008] Collect the production and processing time data of each workstation for different products within a cycle, and determine whether the basic data set needs to be updated;
[0009] The updated basic data set and the main optimization target are input into the swarm immunity-genetic algorithm for optimization calculation, the optimal solution that meets the actual production situation is calculated, and the production plan is output.
[0010] A further technical solution is to judge the priority of the multi-objective model, determine the infected population in the herd immunity-genetic algorithm and optimize the main objective, specifically:
[0011] The current production situation of the production line is that the product delivery date is urgent, then population 1 is the infected population, and population 1 is prioritized for iteration, while populations 2 and 3 are uninfected populations;
[0012] The current production situation of the production line is that the supply of accessories is insufficient, then population 2 is the infected population, and population 2 is prioritized for iteration, while populations 1 and 3 are uninfected populations;
[0013] If the current production situation of the production line is normal, then populations 1 and 2 have recovered or are not infected, and population 3 is prioritized for iteration;
[0014] The current production situation of the production line is that the product delivery date is urgent and the supply of accessories is insufficient. In this case, the infection is carried out according to the priority of the two populations. Population one is the infected population, which is prioritized for iteration until recovery. Population two is the susceptible population, which is infected after population one recovers and is prioritized for iteration until recovery.
[0015] The population 1 corresponds to the total processing time considering the changeover time, and the main optimization goal of the population 1 is to minimize the total processing time considering the changeover time;
[0016] The second population corresponds to the satisfaction of inventory parts, and the optimization main goal of the second population is to minimize the satisfaction of inventory parts;
[0017] The population three corresponds to the normal production of the production line, and the main optimization objectives of the population three are to minimize the total processing time considering the changeover time, minimize the satisfaction of inventory parts and minimize the number of product switching times.
[0018] Further technical solutions, the product delivery period urgently meets:
[0019]
[0020] Where: SumNum m EndNum is the total amount of each type of product in this batch of orders. m is the completion quantity of each type of product in this batch of orders, CycProduction is the production cycle output of each type of product in this batch of orders, SurCycle is the remaining production cycles of this batch of orders, and A is the interference coefficient.
[0021] A further technical solution is that the accessories supply is insufficient to meet:
[0022]
[0023] Where: NeedNum m Indicates the demand for accessories for each type of product, AllNum m Indicates the remaining amount of accessories in the storage area.
[0024] A further technical solution is that when the production situation is normal, the production plan is solved according to a multi-objective problem.
[0025] In a further technical solution, the total processing time objective function considering the refitting time is:
[0026] F1=min E
[0027] The constraints are:
[0028]
[0029]
[0030] Constraint 1 means that at position k, there is only one product type m;
[0031] Constraint 2 means that the input quantity of all product types in this production is the same as the planned quantity;
[0032] Constraint three means that the s-1th station of the kth position product must be processed after the sth station;
[0033] Constraint 4 means that the sth station of the product at position k must be processed after the sth station of the product at position k-1;
[0034] Constraint five represents the end time of processing at the first station in the first position;
[0035] Constraint six represents the processing end time of the product with production position 1;
[0036] Constraint seven represents the processing completion time of the first workstation of all products put into production;
[0037] Constraint eight represents the processing end time when the product position is not 1 and the workstation is not 1;
[0038] Constraint nine represents a 0-1 decision variable that determines whether the types of outfit changes are the same;
[0039] Constraint ten means that the preparation time of the first product is not counted;
[0040] Constraint 11 represents the constraint between the objective function E and the processing completion time of each job at the last station;
[0041] Where: x k,m is a 0-1 decision variable used to determine whether the k position is product type m; K represents the total number of production positions; is the processing start time; It represents the processing time of the product with production position k at workstation s; S represents the total number of workstations; represents the changeover time of the product at position k at station s; θ (k-1)l,kl is a 0-1 decision variable, which determines whether the product at position k and the product at position k-1 have the same replacement type; is the processing end time; L represents the total number of cycles.
[0042] According to a further technical solution, the process of updating the basic data set is as follows:
[0043] The T test is used to determine whether the production and processing time of each workstation for different products in a cycle has changed significantly. If a significant change occurs, the corresponding workstation is marked and recorded, and the data collected in a cycle is used to replace the data of the corresponding workstation in the basic data set.
[0044] In a further technical solution, the process of performing optimization calculation in the population immunity-genetic algorithm is as follows:
[0045] Parameter setting and population initialization;
[0046] According to the collected production data, the production line status variables are updated to determine the infection status of the three populations. The iterative main population in this production cycle is determined based on the population infection status.
[0047] Calculate the fitness of the parent population and select the particle with the highest current fitness value as the global optimal solution within the minimum cycle of the production line;
[0048] Update particles in various groups and use elite retention strategy to retain particles;
[0049] If a particle dies, a particle is randomly selected from other populations to replace the dead particle.
[0050] When the termination conditions are met, the global optimal solution within the minimum production cycle is output and a production plan is generated.
[0051] A further technical solution is that when initializing the population, a workpiece-based encoding method is used to form the population particles, and three HIS×n arrays are generated as the iterative initial population through the Tent mapping formula. At the same time, the production scheduling basic data set is used as the initial data for calculating the target fitness value, and the number of production cycles of the production line is increased by one.
[0052] According to a further technical solution, the production order delivery completion quantity, production order delivery date and spare parts inventory information are collected and obtained by the MES system.
[0053] According to a further technical solution, the production and processing time of each workstation for different products within one cycle is collected and acquired by an RFID scanner.
[0054] The beneficial effects of the present invention are as follows: the present invention uses the multi-particle iteration function in the coronavirus herd immunity optimization algorithm, which can adaptively change the production scheduling target according to the current demand of the production line. At the same time, it can also collect statistical basic production scheduling data to realize self-update of the basic production scheduling data, so that the production plan is more in line with the actual production capacity. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1This is a structural schematic diagram of the production line data acquisition module of the present invention;
[0056] Figure 2 This is a production line status data decision flow chart of the present invention. DETAILED DESCRIPTION
[0057] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments, but the protection scope of the present invention is not limited thereto.
[0058] 1. Establishing the target model of the assembly line
[0059] First, it is necessary to find the production goals that affect the production line and establish a target model, which will be used to make decisions and solve the goals later. Currently, the production goals that affect the production line are mainly: the total processing time F1 considering the changeover time, the inventory parts satisfaction F2, and the number of product switching times F3.
[0060] 1. Establish a total processing time model that takes into account the changeover time
[0061] Because it takes a considerable amount of time to adjust the production line's fixtures and other production conditions when switching between different types of packaging products, this model takes the production line fixture changeover time into account in the total processing time to solve the problem of minimizing the production time of the production line.
[0062] Suppose a mixed assembly line needs to produce m types of products, the position of the product in the production is represented by k, and s represents the workstation of the product on the mixed assembly line; where m = 1, 2, …, M, M represents the total number of product types; k = 1, 2, …, K, K represents the total number of production positions; s = 1, 2, …, S, S represents the total number of workstations.
[0063] In cycle l, product type m with production position k is used by y kl express, It represents the processing time of the product at the production location k at the workstation s, It represents the operation time of product type m being decomposed to workstation s. Therefore, the processing time of product at production position k at workstation s is where x k,m is a 0-1 decision variable used to determine whether the k position is product type m.
[0064] represents the changeover time of the product at position k at station s, θ (k-1)l,kl is a 0-1 decision variable, which determines whether the product at position k has the same changeover type as the product at position k-1. It is assumed that the changeover time of the product at the first position at each station is 0, and is not considered during the processing time.
[0065] The processing start time of the product with production position 1 at station 1 is The processing end time is
[0066] The product with production position 1 starts processing at other stations at Processing end time i represents an intermediate quantity.
[0067] When the product whose production position is not 1 is in station 1, the processing starts at Processing end time
[0068] Where k=2,3,…,K; s=1.
[0069] When the product whose production position is not 1 is not in the workstation 1, it is necessary to determine whether the next workstation is idle, so the processing start time Processing end time
[0070] Where k = 2, 3,…, K; s = 2, 3,…, S.
[0071] The total processing time objective function considering the changeover time is:
[0072] F1=min E
[0073] The corresponding constraints are:
[0074]
[0075] in:
[0076] Constraint 1 means that at position k, there is only one product type m;
[0077] Constraint 2 means that the input quantity of all product types in this production is the same as the planned quantity;
[0078] Constraint three means that the s-1th station of the kth position product must be processed after the sth station;
[0079] Constraint 4 indicates that the sth station of the product at position k must be processed after the sth station of the product at position k-1; Constraint 5 indicates the end time of processing at the first station at the first position;
[0080] Constraint six represents the processing end time of the product with production position 1;
[0081] Constraint seven represents the processing completion time of the first workstation of all products put into production;
[0082] Constraint eight represents the processing end time when the product position is not 1 and the workstation is not 1;
[0083] Constraint nine represents a 0-1 decision variable that determines whether the types of outfit changes are the same;
[0084] Constraint ten means that the preparation time of the first product is not counted;
[0085] Constraint 11 represents the constraint between the objective function E and the processing completion time of each job at the last station;
[0086] L represents the total number of cycles.
[0087] 2. Inventory Parts Satisfaction Model
[0088] During assembly on the production line, giving priority to processing product types with sufficient parts in the storage area can effectively alleviate inventory pressure and leave time for the allocation of insufficient parts.
[0089] The objective function of inventory parts satisfaction is:
[0090]
[0091] The corresponding constraints are:
[0092]
[0093] Constraint 1 means that at position k, there is only one product type m;
[0094] Constraint 2 means that the production quantity of each type of product is consistent with the planned quantity;
[0095] Constraint three indicates that Y is the number of insufficient accessory types;
[0096] Constraint 4 represents a 0-1 decision variable for determining whether the accessories of type m products are sufficient;
[0097] Constraint five represents a 0-1 decision variable that determines whether the product type at position k is m.
[0098] Symbols in the formula:
[0099] y m : 0-1 decision variable, judging whether the accessories of type m product are sufficient;
[0100] Y: the number of products with insufficient accessories;
[0101] d m : The number of m type products put into production.
[0102] 3. Product switching frequency target model
[0103] In the actual production process, continuous assembly of products of the same type will reduce assembly time and make assembly efficiency more stable. When other conditions are met, try to assemble products of the same type together.
[0104] Therefore, to ensure that the number of daily switching is minimized, the objective function is:
[0105]
[0106] The corresponding constraints are:
[0107]
[0108] Constraint 1 means that at position k, there is only one product type m;
[0109] Constraint 2 means that the production quantity of each type of product is consistent with the planned quantity;
[0110] Constraint three is a 0-1 decision variable, which determines whether the product type at position k is the same as the product type at position k+1;
[0111] Constraint four is a 0-1 decision variable that determines whether the product at position k is of type m.
[0112] Symbols in the formula:
[0113] 0-1 decision variable, determines whether the product type at position k and the product type at position k+1 within production cycle l are the same.
[0114] 2. Production Line Data Collection and Decision-making
[0115] In order to make the solution of the objective function more consistent with the actual production capacity, a production line data acquisition module is established, and decisions are made on the selection of the target model based on the information collected by the production line data acquisition module.
[0116] 1. Composition of acquisition module
[0117] The production line data collection module is mainly composed of MES system, RFID scanner, PLC and computer. MES system can collect production order delivery completion, production order delivery date and spare parts inventory information. RFID scanner can collect production and processing time of different products at each station within a cycle. PLC acts as a controller to read, write and receive data from IO devices. Figure 1As shown in the figure, the RFID scanner is connected to the bus as an IO device, and the PLC is used as an IO controller to read, write and receive data from the IO device. The collected data is sent to the host computer for processing, and the data in the MES system is directly sent to the host computer via Ethernet communication. The IP addresses of each device in the acquisition module must be in the same network segment, and the subnet masks must be the same to ensure successful communication.
[0118] 2. Production line status data decision-making main goal
[0119] The production data collected by the production line data collection module for decision-making includes: ① Accessories inventory information: the number of accessories required for each type of product NeedNum m And the remaining number of accessories in the storage area AllNum m ; ② The number of remaining production cycles for this batch of orders SurCycle; ③ The total amount of each type of products in this batch of orders SumNum m 、Completion amount EndNum m , production cycle output CycProduction and production order delivery date; the above data is collected by the MES system. According to the collected production data, the current production situation of the production line is judged, and the priority of the three target models is determined:
[0120] if It is determined that the production line task cannot be completed within the delivery period, and the goal of minimizing the total processing time considering the changeover time is set as the first priority goal of the current production plan; the interference coefficient is 0 <A≤1;
[0121] if If it is judged that the storage area accessories cannot meet the requirements, the products that can be processed by the storage area accessories will be given priority. At this time, the inventory parts satisfaction is the first priority target;
[0122] If the first two situations occur at the same time, priority is given to ensuring that the total processing time of the product is as short as possible, and then the production cycle is arranged according to the satisfaction of inventory parts after the delivery date is met. If there is no abnormality in the production line, the production plan is solved according to the normal multi-objective (including F1, F2, and F3) problem. The decision-making process is as follows: Figure 2 As shown in the figure, the multi-objective problem is solved by using the Pareto optimization strategy to make optimal judgment.
[0123] 3. Automatic update of production scheduling basic data set
[0124] The basic data set for production scheduling is M A×B matrices Matrix element x abmIndicates the processing time required for the bth (1, 2, ..., B)th station in the processing time data of each station for the ath (a = 1, 2, ..., A)th group of products in the mth type of product;
[0125] The RFID scanner is used to collect the production and processing time of each station of different products in a cycle, and a single sample T test is used to determine whether the processing time of a station on the production line has changed significantly in a cycle, that is, to calculate The relationship between the value of t and the significance level c. If t is greater than the significance level c, it means there is no significant change. If a significant change occurs, the corresponding workstation is marked and recorded, and the data collected within a cycle is used to replace the data of the corresponding workstation in the basic data set. In the formula, D is the difference between the mean of the data set collected within a cycle and the target test value, S' is the variance of the basic data set, and n is the number of samples of the data set collected within a cycle.
[0126] 3. Dynamic solution of multi-objective model of flow shop
[0127] Step (1): Collect processing information of each workstation and analyze the production line positions;
[0128] Step (2): Establish a production planning multi-objective model based on the production line production rules;
[0129] Step (3): The production order delivery completion quantity, production order delivery date, spare parts inventory information and production and processing time of each workstation for different products in a cycle collected by the data collection module are uploaded to the computer database via the network;
[0130] Step (4): judging the priority of the multi-objective model based on the production order delivery completion quantity, production order delivery date and spare parts inventory information collected in step (3), determining the infected population in the herd immunity-genetic algorithm and optimizing the main objective;
[0131] Setting: The total processing time population considering the changeover time corresponds to population one, and the optimization main goal of population one is to minimize the total processing time considering the changeover time; the inventory parts satisfaction population corresponds to population two, and the optimization main goal of population two is to minimize the inventory parts satisfaction; the normal production population of the production line corresponds to population three, and the optimization main goals of population three are to minimize the total processing time considering the changeover time, minimize the inventory parts satisfaction and minimize the number of product switching;
[0132] The production data is collected through the data collection module to judge the current production situation of the production line: if the current production situation of the production line is that the product delivery date is relatively urgent, then population one is the infected population, and population one is prioritized for iteration, while populations two and three are uninfected populations; if the current production situation of the production line is that the parts supply is insufficient, then population two is the infected population, and population two is prioritized for iteration, while populations one and three are uninfected populations; if the current production situation of the production line is normal, it means that populations one and two have recovered or are not infected, and population three is prioritized for iteration; if the current production situation of the production line is that the product delivery date is relatively urgent and the parts supply is insufficient, then the infection is carried out according to the priority of the two populations, population one is the infected population, and it is prioritized for iteration until recovery, and population two is the susceptible population, which is infected after population one recovers, and it is prioritized for iteration until recovery;
[0133] Step (5): Based on the production processing time data of each workstation of different products in a cycle collected in step (3), a single sample T test is used to determine whether the processing time of a certain workstation on the production line has changed significantly in a cycle, and whether the basic data set needs to be updated;
[0134] Step (6): input the basic data set updated in step (5) and the optimization main target determined in step (4) into the swarm immunity-genetic algorithm for optimization calculation, calculate the optimal solution that meets the actual production situation, and output the production plan;
[0135] The group immunity-genetic algorithm performs optimization calculation, and the specific steps are as follows:
[0136] Step 1): Parameter setting, including: initial population size HIS, production line state variable LineState, population infection state variable PopState, maximum number of iterations MaxItr, maximum number of production cycles MaxCycleNum, number of production cycles CycleNum, minimum production cycle Cycle, infection generation number Age, maximum infection generation number MaxAge, crossover probability CrossRate, mutation probability InvRate; iteration target fitness value: total processing time F1, inventory parts satisfaction F2, product switching times F3,
[0137] Step 2): Initialize the population, use artifact-based encoding to form population particles, and use the Tent mapping formula:
[0138]
[0139] Generate three HIS×n arrays as the initial population for iteration:
[0140] At the same time, the production scheduling basic data set is used as the initial data for calculating the target fitness value, and the number of production cycles of the production line is increased by one;
[0141] in: It represents the zth (i=1,2,…,n) element of the eth (e=1,2,…,HIS) particle in the gth (g=1,2,3) population, where g represents the number of populations, e represents the number of particles, z represents the number of elements, n represents the maximum number of elements in a particle, and rand represents a random number.
[0142] Step 3): Obtain the production data collected by the data acquisition module, update the production line status variables (including whether the product delivery period is urgent and whether the spare parts supply is sufficient), determine the infection status of the three populations, and determine the iterative main population in this production cycle according to the population infection status (the goal of the iterative main population is to optimize the main goal);
[0143] Step 4): Calculate the fitness of the parent population and select the particle with the highest current fitness value (i.e., objective function value) as the global optimal solution within the minimum cycle of the production line;
[0144] Step 5): Update the particles in various groups through the social distance formula between particles. The particle retention mechanism adopts the elite retention strategy, that is, if the offspring fitness value is calculated to be better than the parent, the parent particle is replaced by the offspring particle, and the infection generation of the particle is updated at the same time. If the parent particle is not replaced in this round and the fitness value is lower than the average value, the infection generation is increased by one;
[0145] Step 6): Determine whether the infection generation number of each particle in the population exceeds the maximum infection generation number. If it exceeds, the particle is considered dead and a particle is randomly selected from other populations to replace the dead particle.
[0146] Step 7): Perform partial mapping crossover and mutation search operations on particles in the population according to the crossover probability and mutation probability to further optimize the particles, strengthen the local search ability and global search ability of the algorithm, and use the elite retention strategy to update the particles;
[0147] Step 8): Determine whether the termination condition of this round of iteration is met, that is, whether this iteration has iterated to the maximum number of generations. If the termination condition is met, output the global optimal solution within the minimum production cycle and generate a production plan, and then go to step 2) to perform iterative optimization within the next production cycle; otherwise, return to step 4) to continue iterative optimization.
[0148] The embodiments are preferred implementations of the present invention, but the present invention is not limited to the above-mentioned implementations. Any obvious improvements, substitutions or modifications that can be made by those skilled in the art without departing from the essential content of the present invention belong to the protection scope of the present invention.
Claims
1. A method for intelligent production scheduling of mixed production lines based on group immunity-genetic algorithm, characterized by: Collect the delivery completion volume, delivery date and spare parts inventory information of production orders, judge the priority of the multi-objective model, determine the infected population in the group immunity-genetic algorithm and optimize the main objective; Collect the production and processing time data of each workstation for different products within a cycle, and determine whether the basic data set needs to be updated; The updated basic data set and the optimization main target are input into the swarm immunity-genetic algorithm for optimization calculation, the optimal solution that meets the actual production situation is calculated, and the production plan is output; The priority of the multi-objective model is determined to determine the infected population and optimize the main objective in the herd immunity-genetic algorithm, specifically: The current production situation of the production line is that the product delivery date is urgent, then population 1 is the infected population, and population 1 is prioritized for iteration, while populations 2 and 3 are uninfected populations; The current production situation of the production line is that the supply of accessories is insufficient, then population 2 is the infected population, and population 2 is prioritized for iteration, while populations 1 and 3 are uninfected populations; If the current production situation of the production line is normal, then populations 1 and 2 have recovered or are not infected, and population 3 is prioritized for iteration; The current production situation of the production line is that the product delivery date is urgent and the supply of accessories is insufficient. In this case, the infection is carried out according to the priority of the two populations. Population one is the infected population, which is prioritized for iteration until recovery. Population two is the susceptible population, which is infected after population one recovers and is prioritized for iteration until recovery. The population 1 corresponds to the total processing time considering the changeover time, and the main optimization goal of the population 1 is to minimize the total processing time considering the changeover time; The second population corresponds to the satisfaction of inventory parts, and the optimization main goal of the second population is to minimize the satisfaction of inventory parts; The population three corresponds to normal production of the production line. The main optimization objectives of the population three are to minimize the total processing time considering the changeover time, minimize the satisfaction of inventory parts, and minimize the number of product switching; The group immunity-genetic algorithm performs optimization calculation, and the specific steps are as follows: Step 1): Parameter setting, including: initial population size HIS, production line state variable LineState, population infection state variable PopState, maximum number of iterations MaxItr, maximum number of production cycles MaxCycleNum, number of production cycles CycleNum, minimum production cycle Cycle, infection generation number Age, maximum infection generation number MaxAge, crossover probability CrossRate, mutation probability InvRate; iteration target fitness value: total processing time F1, inventory parts satisfaction F2, product switching times F3; Step 2): Initialize the population, use artifact-based encoding to form population particles, and use the Tent mapping formula: Generate three HIS×n arrays as the initial population for iteration: At the same time, the production scheduling basic data set is used as the initial data for calculating the target fitness value, and the number of production cycles of the production line is increased by one; in: represents the zth element of the eth particle in the gth population, g represents the population number, e represents the number of particles, z represents the number of elements, and rand represents a random number; g = 1, 2, 3; e = 1, 2, ..., HIS; z = 1, 2, ..., n, where n represents the maximum number of elements in a particle; Step 3): Obtain the production data collected by the data acquisition module, update the production line state variables, determine the infection status of the three populations, and determine the iterative main population in this production cycle according to the population infection status; Step 4): Calculate the fitness of the parent population and select the particle with the highest current fitness value as the global optimal solution within the minimum cycle of the production line; Step 5): Update the particles in various groups through the social distance formula between particles. The particle retention mechanism adopts the elite retention strategy, that is, if the offspring fitness value is calculated to be better than the parent, the parent particle is replaced by the offspring particle, and the infection generation of the particle is updated at the same time. If the parent particle is not replaced in this round and the fitness value is lower than the average value, the infection generation is increased by one; Step 6): Determine whether the infection generation number of each particle in the population exceeds the maximum infection generation number. If it exceeds, the particle is considered dead and a particle is randomly selected from other populations to replace the dead particle. Step 7): Perform partial mapping crossover and mutation search operations on particles in the population according to the crossover probability and mutation probability to further optimize the particles, strengthen the local search ability and global search ability of the algorithm, and use the elite retention strategy to update the particles; Step 8): Determine whether the termination condition of this round of iteration is met, that is, whether this iteration has iterated to the maximum number of generations. If the termination condition is met, output the global optimal solution within the minimum production cycle and generate a production plan, and then go to step 2) to perform iterative optimization within the next production cycle; otherwise, return to step 4) to continue iterative optimization.
2. The intelligent production scheduling method for mixed production lines based on group immunity-genetic algorithm according to claim 1 is characterized in that: The product delivery period is urgently met: Where: SumNum m EndNum is the total amount of each type of product in this batch of orders. m is the completion quantity of each type of product in this batch of orders, CycProduction is the production cycle output of each type of product in this batch of orders, SurCycle is the remaining production cycles of this batch of orders, and A is the interference coefficient.
3. The intelligent production scheduling method for mixed production lines based on group immunity-genetic algorithm according to claim 1 is characterized in that: The accessories are not in sufficient supply to meet the following requirements: Where: NeedNum m Indicates the demand for accessories for each type of product, AllNum m Indicates the remaining accessories in the storage area.
4. The intelligent production scheduling method for mixed production lines based on group immunity-genetic algorithm according to claim 1 is characterized in that: When the production situation is normal, the production plan is solved according to the multi-objective problem.
5. The intelligent production scheduling method for mixed production lines based on group immunity-genetic algorithm according to claim 1 is characterized in that: The total processing time objective function considering the refitting time is: F1=minE The constraints are: Constraint (1) indicates that at position k, there is only one product type m; Constraint (2) means that the input quantity of all product types in this production is the same as the planned quantity; Constraint (3) indicates that the s-1th station of the kth position product must be processed after the sth station; Constraint (4) means that the sth station of the product at position k must be processed after the sth station of the product at position k-1; Constraint (5) represents the end time of processing at the first station in the first position; Constraint (6) indicates the end time of processing of the product with production position 1; Constraint (7) represents the processing completion time of the first workstation of all products put into production; Constraint (8) represents the processing end time when the product position is not 1; Constraint (9) represents a 0-1 decision variable that determines whether the types of clothing changes are the same; Constraint (10) means that the preparation time of the first product is not calculated; Constraint (11) represents the constraint between the objective function E and the processing completion time of each job at the last station; Where: x k,m is a 0-1 decision variable used to determine whether the k position is product type m; K represents the total number of production positions; is the processing start time; It represents the processing time of the product with production position k at workstation s; S represents the total number of workstations; represents the changeover time of the product at position k at station s; θ (k-1)l,kl is a 0-1 decision variable, which determines whether the product at position k and the product at position k-1 have the same replacement type; is the processing end time; L represents the total number of cycles.
6. The intelligent production scheduling method for mixed production lines based on group immunity-genetic algorithm according to claim 1 is characterized in that: The process of updating the basic data set is: The T test is used to determine whether the production and processing time of each workstation for different products in a cycle has changed significantly. If a significant change occurs, the corresponding workstation is marked and recorded, and the data collected in a cycle is used to replace the data of the corresponding workstation in the basic data set.
7. The intelligent production scheduling method for mixed production lines based on group immunity-genetic algorithm according to claim 1 is characterized in that: The process of optimizing calculation in the group immunity-genetic algorithm is as follows: Parameter setting and population initialization; According to the collected production data, the production line status variables are updated to determine the infection status of the three populations. The iterative main population in this production cycle is determined based on the population infection status. Calculate the fitness of the parent population and select the particle with the highest current fitness value as the global optimal solution within the minimum cycle of the production line; Update particles in various groups and use elite retention strategy to retain particles; If a particle dies, a particle is randomly selected from other populations to replace the dead particle. When the termination conditions are met, the global optimal solution within the minimum production cycle is output and a production plan is generated.
8. The intelligent production scheduling method for mixed production lines based on group immunity-genetic algorithm according to claim 7 is characterized in that: When the population is initialized, the population particles are formed by using an artifact-based encoding method, and three HIS×n arrays are generated as the iterative initial population through the Tent mapping formula. At the same time, the production scheduling basic data set is used as the initial data for calculating the target fitness value, and the number of production cycles of the production line is increased by one.
9. The intelligent production scheduling method for mixed production lines based on group immunity-genetic algorithm according to claim 1 is characterized in that: The production order delivery completion quantity, production order delivery date and accessories inventory information are collected and obtained by the MES system; the production and processing time of each workstation for different products within one cycle is collected and obtained by the RFID scanner gun.
