Flexible job shop scheduling method considering limited processing machine resources and multiple AGVs

By establishing mathematical models and improving genetic algorithms in a flexible work workshop, combining three-stage chromosome coding and greedy algorithms, the problems of limited resources of processing machines and multi-AGV scheduling are solved, and scheduling efficiency and adaptability are improved.

CN119940852AActive Publication Date: 2025-05-06ZHEJIANG UNIV OF TECH

Patent Information

Application Number
CN202510100232.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-22
Publication Date
2025-05-06
Estimated Expiration
2045-01-22

AI Technical Summary

Technical Problem

The existing flexible operation workshop scheduling methods are poorly adaptable in environments with limited processing machine resources, making it difficult to obtain an effective scheduling plan, and lack considerations for multi-AGV logistics scheduling.

Method used

A mathematical model is established with the goal of limiting the processing machine resources, the constraints on multi-AGV logistics rules, and minimizing the maximum completion time. An improved genetic algorithm is adopted to solve the problems of process processing order, machine selection and AGV selection through a three-stage chromosome coding strategy, and a greedy algorithm is added to the decoding.

Benefits of technology

It improves the search accuracy and convergence speed of the algorithm, significantly improves the logistics scheduling efficiency, reduces production stagnation time, and can effectively solve the problems of limited processing machine resources and multi-AGV scheduling in flexible operation workshops.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119940852A_ABST
    Figure CN119940852A_ABST
Patent Text Reader

Abstract

The invention discloses a flexible job shop scheduling method considering limited processing machine resources and multiple AGVs. The method comprises the following steps: S1, setting problem data and algorithm parameters; s2, performing three-section type coding to generate an initial population; s3, evaluating each chromosome by using an improved decoding strategy; s4, judging whether the maximum iteration number I of the algorithm is reached or not, and if so, skipping to S11; otherwise, if s = s + 1, skipping to S5; s5, calculating a fitness value and sorting the population; s6, selecting (m + 1) chromosomes through double strategies of elite retention and champion selection; s7, alternately selecting and grouping; s8, respectively selecting parent chromosomes P1 and P2 from the set X1 and the set X2 according to the crossover probability Pc; s9, selecting a parent chromosome P from the chromosome population according to the mutation probability Pm, and obtaining a filial generation C through random number optimization mutation and selection mutation; s10, updating the population, replacing a part in the initial population Xinit with the population obtained by variation, replacing the final (m + 1) chromosomes in population sorting with (m + 1) chromosomes selected by double strategies of elite retention and champion selection to obtain an evolved new population, and skipping to S3; and S11, outputting an optimal factory logistics scheduling scheme, calculating fitness values of all populations, and selecting the chromosome individual with the minimum fitness value for decoding to obtain the optimal factory logistics scheduling scheme.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of production scheduling of discrete manufacturing systems, and in particular to a flexible job shop scheduling method considering limited processing machine resources and multiple AGVs. Background Art

[0002] At present, the flexible job shop scheduling method mainly assumes that the processing machine resources are sufficient, that is, each process of the workpiece can be processed by any of the available machines. For example, Zhang Jianxin proposed a random greedy initial population genetic algorithm to solve the flexible job shop scheduling method (Inner Mongolia University of Technology: CN 202210095587.3.X[P].2022-01-26), by designing a random greedy initialization population genetic algorithm based on the relatively shortest machine processing time to solve the flexible job shop scheduling problem; Liu Zhifeng proposed a flexible job shop scheduling method based on multi-level neighborhood structure and hybrid genetic algorithm (Beijing University of Technology: CN202011056359.2[P].2024-03-22.), by designing an initialization strategy of hybrid heuristic rules and effectively searching for a new multi-level neighborhood structure based on key processes, to improve the accuracy and convergence speed of the genetic algorithm for the flexible job shop scheduling problem. However, neither of the above two methods fully considers the scenarios of limited processing machine resources and multi-AGV logistics scheduling.

[0003] However, in actual flexible job shops, the resources of processing machines are usually limited, and most processes can only be processed on some of the available machines. When dealing with such scheduling problems, traditional genetic algorithms often have difficulty matching effective processing machines during the individual decoding process, resulting in a large waste of computing resources in the search space, low optimization efficiency, and slow convergence.

[0004] Moreover, in modern smart factories, AGVs are used throughout the entire production process, including the transportation, loading and unloading, and storage of raw materials, semi-finished products, and finished products. At present, the scheduling methods for flexible job shops mainly focus on production scheduling design, and lack consideration of multi-AGV logistics scheduling.

[0005] Therefore, the existing flexible job shop scheduling methods have poor adaptability in an environment with limited processing machine resources, and it is difficult to come up with an effective scheduling plan. In addition, the scheduling plan obtained lacks consideration of multi-AGV logistics scheduling between the actual production. Summary of the invention

[0006] The present invention aims to solve the problems that the existing flexible job shop scheduling methods have poor adaptability in an environment with limited processing machine resources, it is difficult to obtain an effective scheduling plan, and there is a lack of consideration for multi-AGV logistics scheduling between the obtained scheduling plan and actual production. A flexible job shop scheduling method that takes into account limited processing machine resources and multiple AGVs is provided.

[0007] The present invention simultaneously considers the flexible job shop scheduling problems of limited processing machine resources and multiple AGVs, establishes a mathematical model with the limited processing machine resource constraints, multiple AGV logistics rule constraints, and minimizing the maximum completion time as the goal, introduces a three-segment chromosome encoding strategy in the improved genetic algorithm to simultaneously solve the three sub-problems of process processing sequence, processing machines selected by the process, and logistics transportation equipment selected by the process, adopts random number optimization mutation and elite retention, tournament selection dual strategies to generate and retain excellent individual codes, improves the algorithm's search accuracy and convergence speed, and adds a greedy algorithm in decoding to further reduce the minimization of the maximum completion time.

[0008] A flexible job shop scheduling problem considering limited processing machine resources and multiple AGVs in the present invention is described as follows:

[0009] Assume there are i workpiece sets {j1,…,j i}, each workpiece contains several processes O ij (i=1,2,…,n;j=1,…,n i ), each process needs to be assigned to any one of the k machines for processing. The set of k processing machines can be represented as {M1,…,M k}, each process needs to be transported by any one of m AGVs, and the set of m AGVs can be expressed as {A1,…,A m}.

[0010] The optimization goal of the algorithm is to minimize the maximum completion time, and the objective function is: Where E ijkm The jth process of workpiece i on processing machine M k The end time when the previous processing is completed and transported to the next processing machine by the mth AGV.

[0011] In this flexible job shop scheduling problem, there are four constraints: limited processing machine resources, multi-AGV transportation rules, process sequence and workpiece resources.

[0012] The limited processing machine resource constraint means that some processes can only be processed on specific processing machines, which can be expressed as: S′ ijk =S ijk +T ijk +L(1-Pijk ), where S′ ijk For process O ij On machine M k The time to finish the processing; L represents an infinite positive number; P ijk Indicates process O ij Is it possible to process machine M k If it is possible, it is 1, otherwise it is 0;

[0013] The multi-AGV transportation rule constraint refers to the constraint relationship between the AGV and the workpiece and the processing machine during transportation. i1k ≥ST ijm +w ikm The first process of AGV transporting workpiece i must be transported from the warehouse loading area to the processing machine M k Department, ST ijm Indicates that AGV performs the delivery task O ij The start time of transportation, w ikm Indicates that the mth AGV transports workpiece i from the warehouse loading area to the processing machine M k Transportation time; E ink +w′ ikm ≤ET ijm Indicates that the last process of AGV transporting workpiece i must be from processing machine M k Transport to warehouse unloading area, ET ijm Indicates that AGV performs the delivery task O ij The end transportation time, w′ ikm Indicates that the mth AGV takes workpiece i from processing machine M k Transportation time to the warehouse loading area; max(ET ijm ,E ijk )≤S ijk +L(1-Y ijk ) indicates that the mth AGV transports workpiece i to processing machine M k When the machine completes the previous processing task, it must wait for the machine to start processing step O. ij You can leave after ijk Indicates processing machine M k Is it possible to process process O? ij , if it can be processed, it is 1, otherwise it is 0;

[0014] The process sequence constraint means that some processes in the workpiece processing process need to be completed before the previous process can be carried out, which can be expressed as: S i(j-1)k +T ijk ≤S ijk , where S ijk For process O ij In processing machine M kThe time when processing starts; T ijk The jth process of workpiece i on processing machine M k The time required for processing;

[0015] The workpiece resource constraint means that at any time, the workpiece can only be processed by one processing machine or transported by one AGV, which can be expressed as: S ijk +T ijk ≤S i′j′k +L(1-C iji′j′k ),∑A m ,O ij ≤1, where C iji′j′k If process O ij Compared with process O i′j′ First on machine M k If the process is on, it is 1; otherwise, it is 0.

[0016] In view of the problem of flexible job shop scheduling with limited processing machine resources and multiple AGVs, the specific technical solution proposed in the present invention is a flexible job shop scheduling method considering limited processing machine resources and multiple AGVs, which includes the following steps:

[0017] S1. Set the problem data and algorithm parameters: including the number of workpieces, the number of processes corresponding to the workpieces, the processing time of the processing machines corresponding to the processes, the total number of processes, the number of processing machines, the number of AGVs, the distance between equipment, the average speed of AGVs, the population size Po, the crossover probability Pc, the mutation probability Pm, the number of elites retained m, and the number of iterations I;

[0018] S2, three-segment coding generates the initial population: including,

[0019] S201, a set of coding samples is represented by "process code + machine code + AGV code", which can simultaneously solve the three sub-problems of process processing sequence, process selected processing machine, and process selected AGV. A set of coding samples can be represented as {p1, p2, ..., p n ,m1,m2,…,m n ,a1,a2,…,a n}, p n Indicates the process code, m n Indicates machine code, a n Represents the AGV code, and n is the maximum number of processes.

[0020] S202, initialization parameters, number of iterations s = 1, number of population generation i = 1;

[0021] S203, randomly generate a chromosome X, where the random number selection range of the process code is the number of workpieces, which can be expressed as p n=Range(1,…,i), and the random number of a workpiece in the process code does not exceed the maximum number of processes for the workpiece; the random number selection range of the machine code is the number of processing machines, which can be expressed as m n =Range(1,…,k); the random number selection range of the AGV code is the number of AGVs, which can be expressed as a n =Range(1,…,m);

[0022] S204, determine whether i is equal to the population size Po, if yes, jump to step S205; otherwise, i=i+1, jump to step S203;

[0023] S205, generate initial population X init ={X1,X2,…,X Po};

[0024] S3. Evaluate each chromosome using an improved decoding strategy: including:

[0025] S301, determine the workpiece processing sequence by reading the process code, determine the processing machine selected for the process by reading the machine code, and determine the AGV selected for the process by reading the AGV code;

[0026] S302, obtaining the location data of the workpiece warehouse, finished product warehouse, workpieces, processing machines and AGV, as well as the process processing progress data;

[0027] S303, transporting the workpieces to the loading area of ​​the processing machine in sequence according to the workpiece processing sequence, and determining whether this is the first process, if so, skipping to step S304; otherwise, skipping to step S305;

[0028] S304. Set the starting point of the transportation task to the processing parts warehouse

[0029] S305, setting the starting point of the transport task to the location of the current target workpiece;

[0030] S306, judging whether the workpiece can be processed in advance during the idle time of the processing machine by a greedy algorithm, if so, jumping to step S307; otherwise, jumping to step S308;

[0031] S307, setting the transport task destination to the target idle processing machine, and setting the processing task start time to the target idle start time;

[0032] S308, the AGV performs the transport task. At this time, it is necessary to consider the location of the AGV at that time and determine whether the AGV is at the starting point of the transport task. If so, jump to S310; otherwise, jump to step S309;

[0033] S309, dispatching the AGV from the current position to the starting point of the transportation task;

[0034] S310, dispatching the AGV to transport the workpiece to the processing machine, and waiting for the processing machine to complete the previous process and start processing the current workpiece before the AGV leaves;

[0035] S311, determine whether the workpiece is in the last process, if yes, jump to step S313; otherwise, jump to step S312;

[0036] S312, after the waiting process is completed, jump to step S302;

[0037] S313, occupy the AGV selected by the last process, wait for the process to be completed and then transport the workpiece to the finished product warehouse;

[0038] S4, determine whether the maximum number of iterations of the algorithm I is reached, if yes, jump to step S11; otherwise s=s+1, jump to step S5;

[0039] S5, calculate the fitness value and sort the population, including,

[0040] S501, calculate the fitness value f of each population according to the objective function of minimizing the maximum completion time, and obtain a fitness value set {f1, ..., f n};

[0041] S502: Sort the population from low to high according to the fitness value to obtain the sorted population set X sort ;

[0042] S6. Select (m+1) chromosomes through the dual strategies of elite retention and tournament selection, including:

[0043] S601. The best chromosome in the sample is directly retained through the elite retention strategy, which can be expressed as

[0044] S602. Select n chromosomes each time through the tournament selection strategy, select the best one and keep it, and keep m chromosomes after m selections.

[0045] S7, alternately select groups and divide the population set X according to the fitness value sort By alternating selection, it is divided into a set X1 = {f1, f3, f5…, f n-1} and set X2={f2,f4,f6…,f n};

[0046] S8, crossover, select parent chromosomes P1 and P2 from set n1 and set X2 respectively according to the crossover probability Pc. The crossover methods include:

[0047] S801, the process code adopts workpiece crossover, by randomly selecting the crossover workpiece number set J1 and the unselected workpiece number set J2. The gene sequence containing J1 in the parent generation P1 is copied to the child generation C1, and the gene sequence containing J2 in the parent generation P2 is inserted into C1 in sequence, and the gene sequence containing J1 in the parent generation P2 is copied to the child generation C2, and the gene sequence containing J2 in the parent generation P1 is inserted into C2 in sequence, and two new process codes C1 and C2 are obtained.

[0048] S802: The machine code and AGV code are sequentially crossed, and the number of crosses N and the cross start position C are selected by random numbers. s The selected sequence crossover range must satisfy the constraint condition C s +N≤n, change P1 and P2 from C s Start to C s +N segments of gene sequences are exchanged to obtain offspring C1 and C2;

[0049] S9, mutation, select the parent chromosome P from the chromosome population according to the mutation probability Pm, the mutation methods include:

[0050] S901, the machine code uses random number optimization mutation, selects the mutation position Mu through random numbers, and then selects the machine with the shortest processing time of the process to obtain the offspring C, which can be expressed as Among them C mu Indicates the mutation position, T ijm Indicates process O ij In processing machine M k Processing time on.

[0051] S902, the process code and AGV code adopt selective mutation, select the mutation positions Mu1 and Mu2 by random numbers, and then exchange the gene sequences of P corresponding to the mutation positions Mu1 and Mu2 to obtain the offspring C;

[0052] S10, update the population, replace the initial population X with the mutated population init , and replace the last (m+1) chromosome in the population sorting with the (m+1) chromosomes selected by the dual strategies of elite retention and tournament selection to obtain the evolved new population, and jump to S3;

[0053] S11. Output the optimal factory logistics scheduling plan, calculate the fitness values ​​of all populations, and select the chromosome individual with the smallest fitness value for decoding to obtain the optimal factory logistics scheduling plan.

[0054] The present invention includes an improved genetic algorithm, which generates and retains excellent individuals through random number optimization mutation and elite retention and tournament selection dual strategies, thereby improving the algorithm's search efficiency and convergence performance; adding a greedy method in the decoding stage of the algorithm, thereby significantly improving the efficiency of logistics scheduling and reducing production downtime; using a three-segment chromosome encoding strategy when encoding the algorithm, so that the solution to each sub-problem can be optimized independently, thereby improving the scalability of the algorithm. This method can solve the problem that the existing flexible job shop scheduling method has poor adaptability in an environment with limited processing machine resources and lacks consideration for multi-AGV logistics scheduling, obtain high-quality factory logistics scheduling solutions, and help production decision makers make more reasonable and efficient decisions, thereby reducing production costs and improving production efficiency. Compared with the prior art, the beneficial effects of the present invention are:

[0055] 1. Aiming at the problems of limited processing machine resources, multiple types of processing machines and complex AGV distribution rules in the production and logistics scheduling of flexible workshops, a mathematical model with limited processing machine resources constraints, multiple AGV transportation rules constraints and the goal of minimizing the maximum completion time is established.

[0056] 2. In response to the flexible job shop scheduling problem, an improved genetic algorithm is proposed, which adopts a three-segment chromosome encoding strategy to simultaneously solve the three sub-problems of process processing sequence, processing machines selected by the process, and logistics and transportation equipment selected by the process. At the same time, the solution to each sub-problem can also be optimized independently, which improves the scalability of the algorithm.

[0057] 3. In view of the constraints of limited processing machine resources and multi-AGV scheduling, the dual strategies of random number optimization mutation and elite retention and tournament selection are adopted to generate and retain excellent individuals, which improves the search efficiency and convergence performance of the algorithm, and designs a decoding method based on the greedy algorithm, thereby significantly improving the logistics scheduling efficiency and reducing production downtime. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] Figure 1 It is a schematic diagram of the algorithm flow of the present invention.

[0059] Figure 2 It is an example diagram of the problem of the present invention.

[0060] Figure 3 It is a schematic diagram of the chromosome encoding method of the present invention.

[0061] Figure 4 It is a schematic diagram of the chromosome decoding process of the present invention.

[0062] Figure 5 It is a schematic diagram of the operation of the decoding greedy algorithm of the present invention.

[0063] Figure 6 It is a scheduling Gantt chart of the problem example of the present invention. DETAILED DESCRIPTION

[0064] The following is a further detailed description of the embodiments of the present invention in conjunction with the accompanying drawings.

[0065] The present invention is a flexible job shop scheduling method considering limited processing machine resources and multiple AGVs. The algorithm flow is as follows: Figure 1 As shown. Figure 2 The following example illustrates the problem.

[0066] S1. Set the problem data and algorithm parameters: the number of workpieces is 11, the number of processing machines is 24, the number of AGVs is 8, the total number of processes is 61, the average speed of AGVs is 1.5, the population size is 1000, the crossover probability is 0.5, the mutation probability is 0.1, the number of elites retained is 50, the number of iterations is 100, and the number of workpieces corresponding to the number of processes, and the processing time of the process corresponding to the processing machine. The distance information between the equipment is shown in Table 1;

[0067] Table 1. Table of device distance data for the problem example of the present invention

[0068]

[0069]

[0070] S2, three-segment coding generates the initial population: including,

[0071] S201, a set of coding samples is represented by "process code + machine code + AGV code" Figure 3 As shown in the figure, the three sub-problems of process sequence, process selected processing machine and process selected AGV can be solved simultaneously. A set of coding samples can be represented as {p1,p2,…,p 61 ,m1,m2,…,m 61 ,a1,a2,…,a 61}, p n Indicates the process code, m n Indicates machine code, a n Represents the AGV code, and n is the maximum number of processes, which is 61.

[0072] S202, initialization parameters, number of iterations s = 1, number of population generation i = 1;

[0073] S203, randomly generate a chromosome X, where the random number selection range of the process code is the number of workpieces, which can be expressed as p n =Range(1,…,11), and the random number of a workpiece in the process code does not exceed the maximum number of processes for the workpiece; the random number selection range of the machine code is the number of processing machines, which can be expressed as m n=Range(1,…,24); The random number selection range of the AGV code is the number of AGVs, which can be expressed as a n =Range(1,…,8);

[0074] S204, determine whether i is equal to the population size 1000, if yes, jump to step S205; otherwise i=i+1, jump to step S203;

[0075] S205, generate initial population X init ;

[0076] S3. Use the improved decoding strategy to evaluate each chromosome. Figure 4 Shown: including,

[0077] S301, determine the workpiece processing sequence by reading the process code, determine the processing machine selected for the process by reading the machine code, and determine the AGV selected for the process by reading the AGV code;

[0078] S302, obtaining the location data of the workpiece warehouse, finished product warehouse, workpieces, processing machines and AGV, as well as the process processing progress data;

[0079] S303, transporting the workpieces to the loading area of ​​the processing machine in sequence according to the workpiece processing sequence, and determining whether this is the first process, if so, skipping to step S304; otherwise, skipping to step S305;

[0080] S304. Set the starting point of the transportation task to the processing parts warehouse

[0081] S305, setting the starting point of the transport task to the location of the current target workpiece;

[0082] S306, such as Figure 5 As shown, a greedy algorithm is used to determine whether the workpiece can be processed in advance during the idle time of the processing machine. If so, jump to step S307; otherwise, jump to step S308;

[0083] S307, setting the transport task destination to the target idle processing machine, and setting the processing task start time to the target idle start time;

[0084] S308, the AGV performs the transport task. At this time, it is necessary to consider the location of the AGV at that time and determine whether the AGV is at the starting point of the transport task. If so, jump to step S310; otherwise, jump to step S309;

[0085] S309, dispatching the AGV from the current position to the starting point of the transportation task;

[0086] S310, dispatching the AGV to transport the workpiece to the processing machine, and waiting for the processing machine to complete the previous process and start processing the current workpiece before the AGV leaves;

[0087] S311, determine whether the workpiece is in the last process, if yes, jump to step S313; otherwise jump to step S312;

[0088] S312, after the waiting process is completed, jump to step S302;

[0089] S313, occupy the AGV selected by the last process, wait for the process to be completed and then transport the workpiece to the finished product warehouse;

[0090] S4, determine whether the maximum number of iterations of the algorithm is 100, if yes, jump to step S11; otherwise s=s+1, jump to step S5;

[0091] S5, calculate the fitness value and sort the population, including,

[0092] S501, calculate the fitness value f of each population according to the objective function of minimizing the maximum completion time, and obtain a fitness value set {f1, ..., f 1000};

[0093] S502: Sort the population from low to high according to the fitness value to obtain the sorted population set X sort ;

[0094] S6, 51 chromosomes were selected through the dual strategies of elite retention and tournament selection, including:

[0095] S601. The best chromosome in the sample is directly retained through the elite retention strategy, which can be expressed as

[0096] S602. Select 20 chromosomes each time through the tournament selection strategy, select the best one and keep it, and keep 50 chromosomes after 50 selections.

[0097] S7, alternate selection grouping, according to the fitness value, the population is divided into a set X1 = {f1, f3, f5 ..., f 999} and set X2={f2,f4,f6…,f 1000};

[0098] S8, crossover, generate a random number of 0 to 1 for each chromosome in set X1 and set X2, retain the chromosomes with random numbers less than 0.5 in each set, and then select parent chromosomes P1 and P2 from set X1 and set X2 respectively for crossover to generate daughter chromosomes C1 and C2, until 500 chromosomes are generated. The crossover methods include:

[0099] S801, the process code adopts workpiece crossover, by randomly selecting the crossover workpiece number set J1 and the unselected workpiece number set J2. The gene sequence containing J1 in the parent generation P1 is copied to the child generation C1, and the gene sequence containing J2 in the parent generation P2 is inserted into C1 in sequence, and the gene sequence containing J1 in the parent generation P2 is copied to the child generation C2, and the gene sequence containing J2 in the parent generation P1 is inserted into C2 in sequence, and two new process codes C1 and C2 are obtained.

[0100] S802: The machine code and AGV code are sequentially crossed, and the number of crosses N and the cross start position C are selected by random numbers. s The selected sequence crossover range must satisfy the constraint condition C s +N≤61, change P1 and P2 from C s Start to C s +N segments of gene sequences are exchanged to obtain offspring C1 and C2;

[0101] S9, mutation, generating a random number between 0 and 1 for each chromosome generated by the above crossover, and mutating the chromosomes with random numbers less than 0.1. The mutation methods include:

[0102] S901, the machine code uses random number optimization mutation, selects the mutation position Mu through random numbers, and then selects the machine with the shortest processing time of the process to obtain the offspring C, which can be expressed as Among them C mu Indicates the mutation position, T ijm Indicates process O ij In processing machine M k Processing time on.

[0103] S902, the process code and AGV code adopt selective mutation, select the mutation positions Mu1 and Mu2 by random numbers, and then exchange the gene sequences of P corresponding to the mutation positions Mu1 and Mu2 to obtain the offspring C;

[0104] S10, update the population, replace the initial population X with the new chromosome after crossover and mutation init The first 500 chromosomes of population X are replaced by 51 chromosomes selected by the elite retention and tournament strategies. init Sort the last 51 chromosomes to obtain the evolved new population, and jump to step S3;

[0105] S11. Output the optimal factory logistics scheduling plan, calculate the fitness values ​​of all populations, and select the chromosome individual with the smallest fitness value for decoding to obtain the optimal factory logistics scheduling plan, and draw it into a scheduling Gantt chart as shown below: Figure 6 shown.

[0106] The contents described in the examples of this specification are only used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention should not be regarded as limited to the specific forms of implementation described. Ordinary technicians in this field should understand that they can still modify the technical solutions recorded in the aforementioned embodiments, or replace some of the technical features therein with equivalents. However, these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A flexible job shop scheduling method considering limited processing machine resources and multiple AGVs, characterized in that: It includes the following steps: S1. Set the problem data and algorithm parameters: including the number of workpieces, the number of processes corresponding to the workpieces, the processing time of the processing machines corresponding to the processes, the total number of processes, the number of processing machines, the number of AGVs, the distance between equipment, the average speed of AGVs, the population size Po, the crossover probability Pc, the mutation probability Pm, the number of elites retained m, and the number of iterations I; S2, three-segment coding generates the initial population; S3, evaluate each chromosome using the improved decoding strategy; S4, determine whether the maximum number of iterations of the algorithm I is reached, if yes, jump to S11; Otherwise s=s+1, jump to S5; S5, calculate the fitness value and sort the population, include, S51, calculate the fitness value f of each population according to the objective function of minimizing the maximum completion time, and obtain the fitness value set {f1, ..., f n }; S52. Sort the population from low to high according to the fitness value to obtain the sorted population set X sort ; S6, select (m+1) chromosomes through the dual strategies of elite retention and tournament selection; S7, alternately select groups and divide the population set X according to the fitness value sort By alternating selection, it is divided into a set X1 = {f1, f3, f5…, f n-1 } and set X2={f2,f4,f6…,f n }; S8, crossover, select parent chromosomes P1 and P2 from set X1 and set X2 respectively according to the crossover probability Pc, and the crossover methods include: S81, the process code adopts workpiece crossover, by randomly selecting the crossover workpiece number set J1 and the unselected workpiece number set J2. The gene sequence containing J1 in the parent generation P1 is copied to the child generation C1, and the gene sequence containing J2 in the parent generation P2 is inserted into C1 in sequence, and the gene sequence containing J1 in the parent generation P2 is copied to the child generation C2, and the gene sequence containing J2 in the parent generation P1 is inserted into C2 in sequence, and two new process codes C1 and C2 are obtained. S82, machine code and AGV code are sequentially crossed, and the number of crosses N and the starting position C of the cross are selected by random numbers. s The selected sequence crossover range must satisfy the constraint condition C s +N≤n, change P1 and P2 from C s Start to C s +N segments of gene sequences are exchanged to obtain offspring C1 and C2; S9, mutation, select the parent chromosome P from the chromosome population according to the mutation probability Pm, and obtain the offspring C through random number optimization mutation and selection mutation; S10, update the population, replace the initial population X with the mutated population init , and replace the last (m+1) chromosome in the population sorting with the (m+1) chromosomes selected by the dual strategies of elite retention and tournament selection to obtain the evolved new population, and jump to S3; S11. Output the optimal factory logistics scheduling plan, calculate the fitness values ​​of all populations, and select the chromosome individual with the smallest fitness value for decoding to obtain the optimal factory logistics scheduling plan.

2. A flexible job shop scheduling method considering limited processing machine resources and multiple AGVs according to claim 1, characterized in that: It also includes step S0. Establishing a mathematical model with the goal of limited processing machine resources constraints, multiple AGV transportation rule constraints, and minimizing the maximum completion time, and fully describing the flexible job shop scheduling problem with limited processing machine resources and multiple AGVs.

3. A flexible job shop scheduling method considering limited processing machine resources and multiple AGVs according to claim 1, characterized in that: The three-stage encoding process of step S2 is as follows: Step S201: A set of code samples is represented by "process code + machine code + AGV code", which can simultaneously solve the three sub-problems of process processing sequence, process selected processing machine, and process selected AGV. A set of code samples can be represented as {p1, p2, ..., p n ,m1,m2,…,m n ,a1,a2,…,a n }, p n Indicates the process code, m n Indicates machine code, a n Represents the AGV code, and n is the maximum number of processes. Step S202: Initialize parameters, the number of iterations s=1, the number of populations generated i=1; Step S203: randomly generate a chromosome X, where the random number selection range of the process code is the number of workpieces, which can be expressed as p n =Range(1,…,i), and the random number of a workpiece in the process code does not exceed the maximum number of processes for the workpiece; the random number selection range of the machine code is the number of processing machines, which can be expressed as m n =Range(1,…,k); the random number selection range of the AGV code is the number of AGVs, which can be expressed as a n =Range(1,…,m); Sub-step S204: determine whether i is equal to the population size Po, if yes, jump to sub-step S205; otherwise, i=i+1, jump to sub-step S3; Sub-step S205: Generate initial population X init ={X1,X2,…,X Po }.

4. A flexible job shop scheduling method considering limited processing machine resources and multiple AGVs according to claim 1, characterized in that: The improved decoding strategy process of step S3 is as follows: Step S301: Determine the workpiece processing sequence by reading the process code, determine the processing machine selected for the process by reading the machine code, and determine the AGV selected for the process by reading the AGV code; Step S302: Obtaining the location data of the workpiece warehouse, finished product warehouse, workpieces, processing machines and AGV, as well as the process processing progress data; Step S303: transport the workpieces to the loading area of ​​the processing machine in sequence according to the workpiece processing sequence, and determine whether it is the first process at this time. If so, jump to step S304; otherwise, jump to step 305; Step S304: Set the starting point of the transport task to the processed parts warehouse Step S305: setting the starting point of the transport task to the location of the current target workpiece; Step S306: using a greedy algorithm to determine whether the workpiece can be processed in advance during the idle time of the processing machine, if so, jump to step 7; otherwise, jump to step S308; Step S307: setting the destination of the transport task to the target idle processing machine, and setting the start time of the processing task to the target idle start time; Step S308: The AGV performs the transport task. At this time, it is necessary to consider the location of the AGV at that time and determine whether the AGV is at the starting point of the transport task. If so, jump to step S310; otherwise, jump to step S309; Step S309: dispatching the AGV from the current position to the starting point of the transport task; Step S310: dispatching the AGV to transport the workpiece to the processing machine, and waiting for the processing machine to complete the previous process and start processing the current workpiece before the AGV leaves; Step S311: Determine whether the workpiece is in the last process, if yes, jump to step S313; otherwise, jump to step S312; Step S312: After the waiting process is completed, jump to step S302; Step S313: Occupy the AGV selected for the last process and wait for the process to be completed before transporting the workpiece to the finished product warehouse.

5. The flexible job shop scheduling method considering limited processing machine resources and multiple AGVs according to claim 1, characterized in that: The dual strategy process of elite retention and tournament selection in step S6 is as follows: Step S601: directly retain the best chromosome in the sample through the elite retention strategy, which can be expressed as Step S602: n chromosomes are selected each time through the tournament selection strategy, and the best one is selected and retained, and m chromosomes are retained after m selections.

6. The flexible job shop scheduling method considering limited processing machine resources and multiple AGVs according to claim 1, characterized in that: The random number optimization mutation and selection mutation process of step S9 is as follows: Step S901: The machine code uses random number optimization mutation, selects the mutation position Mu through random numbers, and then selects the machine with the shortest processing time of the process to obtain the offspring C, which can be expressed as Among them C mu Indicates the mutation position, T ijm Indicates process O ij In processing machine M k Processing time on. Step S902: The process code and the AGV code are selectively mutated, and the mutation positions Mu1 and Mu2 are selected by random numbers. Then, the gene sequences of P corresponding to the mutation positions Mu1 and Mu2 are exchanged to obtain the offspring C.

Citation Information

Patent Citations

  • A flexible job shop scheduling method adopting an improved immune genetic algorithm

    CN109816262A

  • Multi-robot joint scheduling method of flexible manufacturing system

    CN113935610A

  • Collaborative optimization method for flexible job shop AMR path planning and production scheduling

    CN116523165A

  • Large-scale dynamic double-effect scheduling method for flexible job shop based on genetic programming

    US12099346B1

Cited By

  • Flow shop article buffer scheduling method, equipment, medium and product

    CN120851556A