This application claims priority of Chinese Patent Application No. 202311477216.2, filed on Nov. 8, 2023, the entire contents of which are incorporated herein by reference.
The present disclosure belongs to the field of flexible job shop scheduling, and specifically relates to a dual-effect scheduling method for heterogeneous robots in a flexible job shop.
In response to the requirement of future manufacturing, manufacturing enterprises are required to increasingly improve process, enhance production efficiency, and reduce cost to achieve unmanned intelligent production. To provide seamless transportation of products in manufacturing environment, a potential solution emerged from the rushed industrial environment involves researching and integrating material processing system with automated guided vehicle (AGV).
With the economic advance, the demand for green development is on the rise. Accordingly, energy conservation and low carbon are incorporated as new evaluation criteria for green manufacturing in scheduling of hardware manufacturing shops, requiring a comprehensive consideration of reducing environmental cost, enhancing production efficiency, and lowering energy consumption during studying job shop scheduling problems, thereby optimizing both green and economic criteria. In the production process, the rational and prompt scheduling of automated vehicles is crucial to the acceleration of production progress, because the scheduling results can affect the allocation and consumption of resources such as processing robots and transfer vehicles.
As the production demand on modern job shops increases, the production environment has become more complex, and traditional scheduling methods fail to efficiently deal with contradictions and conflicts risen from flexible manufacturing during large-scale and multi-variety production. Such production requires flexible manufacturing cell (FMC), a technically sophisticated, automated, and integrated high-end manufacturing equipment for completing multiple processing tasks with multiple procedures and varying batches.
Therefore, on the basis of research on traditional job shop scheduling, it is necessary to incorporate the characteristics of FMC with economic and green criteria to align with development trends, which gives prominence to the importance of research on multi-robot scheduling mechanism and algorithm for FMC in modern manufacturing.
Although multi-robot scheduling for FMC is one of the cores of intelligent manufacturing, there is still a big research gap in this field. In flexible manufacturing job shops, various types of robots are widely used, including processing robots for workpiece processing and AGV for transferring workpieces between processing robots during production. To address the scheduling problem in intelligent job shops, the present disclosure provides a dual-effect scheduling method for heterogeneous robots in a flexible job shop.
To solve the technical problem that scheduling schemes designed for the joint dynamic job shop scheduling of processing robots and AGVs fail to be considered in prior art, the present disclosure provides a dual-effect scheduling method for heterogeneous robots in a flexible job shop. Compared with the traditional genetic algorithm, this method is improved in encoding schemes and genetic operators. By comprehensively considering flexible constraints on FMC, time constraints on workpiece transferring by AGV, and constraints on processing resource waste, and taking order completion time and minimization of resource consumption as evaluation criteria, an optimal scheduling scheme for intelligent job shops that satisfies demand preferences is generated, ensuring efficient and green operation of a flexible manufacturing system in multi-process and multi-variety production. Compared with the existing job shop scheduling algorithm, this method is better in scheduling results, easier to escape from local optimal solution, and stronger in global search capability. Furthermore, this method allows for the conduction of large-scale, multi-variety, and multi-process production by flexible manufacturing systems, enabling unmanned intelligent job shops and possessing tremendous development potential.
The present disclosure provides the following technical solutions.
A dual-effect scheduling method for heterogeneous robots in a flexible job shop includes the following steps:
step 1: encoding each individual in three layers using a symbolic coding method, the encoding of each individual including three layers, namely, workpiece procedure-based encoding, processing robot-based encoding, and AGV-based encoding;
step 2: acquiring processing robot information, AGV information and to-be-processed workpiece information, integrating two objective functions for respectively minimizing order completion time and minimizing resource consumption into a single composite function using a weighted optimization method, and designing a fitness function;
step 3: calculating fitness of each individual encoded in step 1 using the fitness function designed in step 2, and selecting individuals for the next generation according to fitness values using a roulette wheel selection method with an elitism strategy;
step 4: performing crossover operation on the workpiece procedure-based encoding and the AGV-based encoding of the individual in step 1 using precedence operation crossover (POX), and performing two-point crossover operation on the processing robot-based encoding of the individual;
step 5: performing swap mutation operation on the workpiece procedure-based encoding and the AGV-based encoding of the individual in step 1, and performing uniform mutation operation on the processing robot-based encoding of the individual; and
step 6: together forming the individual selected in step 3, the individual after the crossover operation in step 4, and the individual after the mutation operation in step 5 into a new population for the next generation, repeating steps 3 to 5 for individuals in the new population for the next generation to obtain optimal scheduling schemes and fitness values, and selecting a suitable scheduling scheme according to the demand preferences to perform dual-effect scheduling on heterogeneous robots in a flexible job shop.
In step 1, the first layer of encoding is based on workpiece procedure, for clarifying the order of various workpieces and various procedures in a processing scheme; each gene of the individual represents a specific procedure of a specific workpiece; various procedures of a workpiece are represented by the order in which the workpiece appears in the individual; and the nth presence of a specific workpiece in the individual represents the nth procedure of the specific workpiece;
the second layer of encoding is based on processing robot, for clarifying the order of selected processing robots corresponding to various procedures of workpieces in the processing scheme; each gene of the individual represents a corresponding processing robot selected for a specific procedure of a specific workpiece; and the order of genes follows the order of processing workpiece numbers and the order of procedure numbers of a specific workpiece; and
the third layer of encoding is based on AGV, for clarifying the order of AGVs corresponding to various workpiece procedures in the processing scheme; each gene of the individual represents an AGV number corresponding to a specific procedure of transferring a specific workpiece; and the order of genes corresponds to the order of the workpiece procedure-based encoding.
In step 2, the processing robot information includes: the number of processing robots, the process processing capability of processing robots, and fixed-point positions of processing robots; the AGV information includes: the number of AGVs, the running speed of AGVs, and initial positions of AGVs; and the to-be-processed workpiece information includes: the number of workpieces to be processed, the number of procedures of the workpieces to be processed, and available processing robots and processing time for each procedure; and the fitness function is defined as:
where F(k) is a fitness value of a kth individual; ω is a weight coefficient for completion time, ranging from [0,1], and the allocation of weight is determined by a decision-maker of a job shop; in a case that 0.6≤ω≤1, the job shop operates in an efficient processing mode; in a case that 0.4≤ω≤0.6, the job shop operates in a comprehensive processing mode; and in a case that 0.2≤ω≤0.4, the job shop operates in a green processing mode; f1max is a maximum order completion time in a job shop of a current population; f1(k) is an order completion time in a job shop of the kth individual; f1min is a minimum order completion time in the job shop of the current population; f2max is a maximum energy consumption of the current population; f2(k) is energy consumption of the kth individual; f2min is a minimum energy consumption of the current population; and N is the total number of individuals in the current population.
In step 3, individuals with the highest fitness values in the current population are elite individuals; the first quarter of individuals with the highest fitness values in the current population are kept from undergoing the roulette wheel selection, and the remaining three-quarters undergo the roulette wheel selection, crossover, and mutation to generate a new generation of population; and if a fitness value of an optimal individual in the new generation of population is better than that of a reserved parent, it indicates that the population has been optimized, and the worst individual in offspring is replaced with the reserved elite individual.
In step 4, a method for performing crossover operation on the workpiece procedure- based encoding of the individual using POX is as follows:
randomly dividing all workpieces into two sets Q1 and Q2; copying workpieces of parent P1 that are contained in Q1 to corresponding positions in an offspring individual J1, copying workpieces of parent P2 that are contained in Q2 to corresponding positions in an offspring individual J2, and fixing the position of each gene in the individual; and copying workpieces of the parent P2 that are contained in Q2 to corresponding positions in the offspring individual J1, and copying workpieces of the parent P1 that are contained in Q1 to corresponding positions in the offspring individual J2, and keeping the order of genes to obtain two offspring individuals J1 and J2 after crossover.
In step 4, a method for performing crossover operation on the AGV-based encoding of the individual using POX is as follows:
randomly dividing all AGVs into two sets Q1 and Q2; copying workpieces of parent P1 that are contained in Q1 to corresponding positions in an offspring individual C1, copying workpieces of parent P2 that are contained in Q2 to corresponding positions in an offspring individual C2, and fixing the position of each gene in the individual; and copying workpieces of the parent P2 that are contained in Q2 to corresponding positions of the offspring individual C1, and copying workpieces of the parent P1 that are contained in Q1 to corresponding positions of the offspring individual C2, keeping the order of genes to obtain two offspring individuals C1 and C2 after crossover.
In step 4, a method for performing two-point crossover operation on the processing robot-based encoding of the individual is as follows:
selecting two different points p1 and p2 as crossover points, and swapping genes g1 and g2 in p1 and p2 of two individuals respectively.
In step 5: a method for performing swap mutation operation on the workpiece procedure-based encoding of the individual is as follows: selecting two different random numbers within the length of two procedures, and swapping genes of the two procedures;
a method for performing swap mutation operation on the AGV-based encoding is as follows: selecting two different random numbers within the length of two AGVs, and swapping genes of the two AGVs; and
a method for performing uniform mutation operation on the processing robot-based encoding of the individual is as follows: randomly selecting a procedure, directly returning without changing the gene if only one robot is selectable for the procedure, otherwise, randomly generating a serial number different form the currently selected machine within a selectable machine set for the procedure, and performing swap.
In step 6, a suitable scheduling scheme is selected according to demand preferences, the demand preference referring to the balance between the two objectives of order completion time and energy consumption, a desired scheme is selected and implemented, and a method for obtaining the optimal scheduling scheme is as follows:
gradually iterating, and obtaining the optimal scheduling scheme in a case that the change in fitness values is less than a set threshold or the number of generations is greater than the set number of iterations
The present disclosure has the following beneficial effects over the prior art.
Firstly, the flexible constraints on FMC, time constraints on workpiece transferring by AGV, and constraints on processing resource waste are comprehensively considered in the present disclosure, making the method of the present disclosure more suitable for the integrated scheduling of processing robots and AGV in flexible manufacturing job shops than traditional job shop scheduling method.
Secondly, the order completion time and minimization of resource consumption are taken as evaluation criteria in the present disclosure, allowing customers to select processing modes as required, thus generating the optimal scheduling scheme for intelligent job shops, which ensures the efficient and green operation of flexible manufacturing systems for multi-process and multi-variety production.
Thirdly, in the design process of the method of the present disclosure, the processing time for some processing robots is a random number, proving that the scheduling scheme generated by this method allows customers to customize personalized processing flow as required.
Fourthly, compared with other scheduling methods, the method proposed in the present disclosure exhibits faster global convergence and prevents the illegal and infeasible solutions after crossover operation, ensuring the feasibility and validity of the solutions corresponding to the crossover offspring. Additionally, this method can ensure that the number of AGVs remains unchanged after crossover and mutation operation.
Fifthly, the method of the present disclosure allows for the flexible manufacturing system conducting large-scale, multi-variety, and multi-process production, enabling unmanned intelligent job shops. Therefore, this method has great potential for development.
The present disclosure is further described by reference to the accompanying drawings and examples below.
A dual-effect scheduling method for heterogeneous robots in a flexible job shop includes the following steps.
Step 1: each individual is encoded in three layers using a symbolic coding method, with the encoding of each individual including three layers, namely, workpiece procedure-based encoding, processing robot-based encoding, and AGV-based encoding.
Step 2: processing robot information, AGV information and to-be-processed workpiece information are acquired, two objective functions for respectively minimizing order completion time and minimizing resource consumption are integrated into a single composite function using a weighted optimization method, and a fitness function is designed.
Step 3: fitness of each individual encoded in step 1 is calculated using the fitness function designed in step 2, and individuals for the next generation are selected according to fitness values using a roulette wheel selection method with an elitism strategy. Step 4: crossover operation is performed on the workpiece procedure-based encoding and the AGV-based encoding of the individual in step 1 using POX, and two-point crossover operation is performed on the processing robot-based encoding of the individual.
Step 5: swap mutation operation is performed on the workpiece procedure-based encoding and the AGV-based encoding of the individual in step 1, and uniform operation is performed on the processing robot-based encoding of the individual.
Step 6: the individual selected in step 3, the individual after the crossover operation in step 4, and the individual after the mutation operation in step 5 are together formed into a new population for the next generation, steps 3 to 5 are repeated for individuals in the new population for the next generation to obtain optimal scheduling schemes and fitness values, and a suitable scheduling scheme is selected according to the demand preferences to perform dual-effect scheduling on heterogeneous robots in a flexible job shop.
In step 1, the first layer of encoding is based on workpiece procedure, for clarifying the order of various workpieces and various procedures in a processing scheme. Each gene of the individual represents a specific procedure of a specific workpiece; various procedures of a workpiece are represented by the order in which the workpiece appears in the individual; and the nth presence of a specific workpiece in the individual represents the nth procedure of the specific workpiece. For example, for a processing order containing three workpieces to be processed {J1,J2,J3}, with each workpiece containing three procedures, the number for each workpiece is multiplied by the corresponding number for procedure, and the result serves as a set of numbers. Those numbers are randomly arranged to obtain workpiece procedure-based encoding, as shown in
In
The second layer of encoding is based on processing robot, for clarifying the order of selected processing robots corresponding to various procedures of workpieces in the processing scheme. Each gene of the individual represents a corresponding processing robot selected for a specific procedure of a specific workpiece; and the order of genes follows the order of processing workpiece numbers and the order of procedure numbers of a specific workpiece. Similarly, taking an order containing three workpieces to be processed as an example, with each workpiece containing three procedures, assuming that five processing robots {R1, R2, R3, R4, R6} are used for processing, an example showing processing robot-based encoding for a particular processing scheme is shown in
In
The third layer of encoding is based on AGV, for clarifying the order of AGVs corresponding to various workpiece procedures in the processing scheme. Each gene of the individual represents an AGV number corresponding to a specific procedure for transferring a specific workpiece; and the order of genes corresponds to the order of the workpiece procedure-based encoding. Similarly, taking an order containing three workpieces to be processed as an example, with each workpiece containing three procedures, assuming that two AGVs {A1, A2} are used for transferring, for the AGV-based encoding in a specific processing scheme, the three layers of encoding are summarized to obtain three gene strings, and the corresponding relationship of the three layers of encoding is shown in
In
In step 2, the processing robot information includes: the number of processing robots, the process processing capability of processing robots, and fixed-point positions of processing robots; the AGV information includes: the number of AGVs, the running speed of AGVs, and initial positions of AGVs; and the to-be-processed workpiece information includes: the number of workpieces to be processed, the number of procedures of the workpieces to be processed, and available processing robots and processing time for each procedure; and the fitness function is defined as:
where F(k) is a fitness value of a kth individual; ω is a weight coefficient for completion time, ranging from [0,1], and the allocation of weight is determined by a decision-maker of a job shop; in a case that 0.6≤ω≤1, the job shop operates in an efficient processing mode; in a case that 0.4≤ω≤ 0.6, the job shop operates in a comprehensive processing mode; and in a case that 0.2≤ω≤0.4, the job shop operates in a green processing mode; f1max is a maximum order completion time in the job shop of a current population; f1(k) is an order completion time in the job shop of the kth individual; f1min is a minimum order completion time in the job shop of the current population; f2max is a maximum energy consumption of the current population; f2(k) is energy consumption of the kth individual; f2min is a minimum energy consumption of the current population; and N is the total number of individuals in the current population.
In step 3, individuals with the highest fitness values in the current population are elite individuals. The first quarter of individuals with the highest fitness values in the current population are kept from undergoing the roulette wheel selection, and the remaining three-quarters undergo the roulette wheel selection, crossover, and mutation to generate a new generation of population. If a fitness value of an optimal individual in the new generation of population is better than that of a reserved parent, it indicates that the population has been optimized, and the worst individual in offspring is replaced with the reserved elite individual. This selection method allows for better convergence to the global optimal solution, avoiding the loss of the global optimal solution caused by the subsequent crossover and mutation operations. In addition, this selection method improves the search speed of the genetic algorithm, enabling a faster global convergence.
In step 4, a method for performing crossover operation on the workpiece procedure-based encoding of the individual using POX is as follows.
All workpieces are randomly divided into two sets Q1 and Q2. Workpieces of parent P1 that are contained in Q1 are copied to corresponding positions in an offspring individual C1, workpieces of parent P2 that are contained in Q2 are copied to corresponding positions in an offspring individual C2, and the position of each gene in the individual is fixed. Workpieces of the parent P2 that are contained in Q2 are copied to corresponding positions in the offspring individual C1, and workpieces of the parent P1 that are contained in Q1 are copied to corresponding positions in the offspring individual C2, and the order of genes is kept to obtain two offspring individuals C1 and C2 after crossover, as shown in
In step 4, a method for performing crossover operation on the AGV-based encoding of the individual using POX is as follows.
All AGVs are randomly divided into two sets Q1 and Q2. Workpieces of parent P1 that are contained in Q1 are copied to corresponding positions in an offspring individual C1, workpieces of parent P2 that are contained in Q2 are copied to corresponding positions in an offspring individual C2, and the position of each gene in the individual is fixed. Workpieces of the parent P2 that are contained in Q2 are copied to corresponding positions of the offspring individual C1, and workpieces of the parent P1 that are contained in Q1 are copied to corresponding positions of the offspring individual C2, and the order of genes is kept to obtain two offspring individuals C1 and C2 after crossover, as shown in
In step 4, a method for performing two-point crossover operation on the processing robot-based encoding of the individual is as follows.
Two different points p1 and p2 are selected as crossover points, and genes g1 and g2 in p1 and p2 of two individuals are swapped, respectively. This crossover method can prevent the illegal and infeasible solutions after crossover operation, ensure the feasibility and validity of the solutions corresponding to the crossover offspring, and guarantees that the number of AGVs remains unchanged after crossover operation.
In step 5: a method for performing swap mutation operation on the workpiece procedure-based encoding of the individual is as follows. Two different random numbers within the length of two procedures are randomly selected, and genes of the two procedures are swapped.
A method for performing swap mutation operation on the AGV-based encoding is as follows. Two different random numbers within the length of two AGVs are selected, and genes of the two AGVs are swapped.
A method for performing uniform mutation operation on the processing robot-based encoding of the individual is as follows. A procedure is randomly selected. Direct returning is performed without changing the gene if only one machine is selectable for the procedure, otherwise, a serial number different from a currently selected machine is randomly generated within a selectable machine set of the procedure, and swap is performed.
This mutation method can ensure that the number of AGVs remains unchanged after the mutation
In step 6, a suitable scheduling scheme is selected according to demand preferences, the demand preference referring to the balance between the two objectives of order completion time and energy consumption, a desired scheme is selected and implemented, and a method for obtaining the optimal scheduling scheme is as follows.
Gradual iteration is performed, and the optimal scheduling scheme is obtained in a case that the change in fitness values is less than a set threshold or the number of generations is greater than the set number of iterations
In this section, the effect achieved by the present disclosure is explained through simulation data experiments. To evaluate the performance of the proposed detection method, a simulation operation interface for a flexible manufacturing job shop is designed using AnyLogic simulation software, shown in
The layout of processing robots and charging stations in the job shop is shown in
The workpieces to be processed include double-bottomed pot, stove top, right-angle adapter, cylindrical rod, cutter, and cover of kitchen hood. Each type of workpiece undergoes different processing processes and requires different processing times, demonstrating that a flexible manufacturing job shop is capable of processing small batches of parts with simple procedures and long processing times. The procedure information of hardware kitchenware workpieces produced in the job shop is shown in Table 2. The processing times for each procedure corresponding to the selectable processing robots are shown in Table 3.
For easy calculation, both processing times and position coordinates of the processing robots are converted to unit time and unit distance. Each unit time is 4 min, every 20 unit distances represent 1 meter, and the transferring speed of AGV is 30 unit distances per unit time. The transferring time required for AGV transferring workpieces during the production and processing in the intelligent job shop is determined by the position of the processing robot, and the position coordinates of the processing robots are shown in Table 4.
Each processing robot has two buffer areas and one processing area, as shown in
When the power level of an AGV drops below 40%, it will head to the nearest charging station for charging, as shown in
Taking the processing process of a small-scale job shop with four workpieces, ten processing robots, and two AGVs as the background, the designed genetic algorithm (with an online scheduling algorithm flowchart shown in
The dual-effect scheduling method is explained in conjunction with the simulation results.
Table 9 shows the final operation results for the three modes. It can be seen from the table that as the value of w increases, the completion time for processing is prolonged, and the total energy consumption is decreased. The value obtained from the optimal scheduling scheme is not much different from the average value, indicating that the corresponding algorithm has a better convergence.
The embodiment disclosed above is implemented according to the technical solutions of the present disclosure, and detailed implementation and specific operation processes are provided, but the scope of protection of the present disclosure is not limited to the forgoing embodiment. It can be known from the above description that the present disclosure can be modified and substituted in many aspects. The specific values fixed in this embodiment are solely for the purpose of better illustrating the principles and applications of the present disclosure, thereby facilitating easier understanding and implementation. Any local modifications, equivalents and improvements made on the basis of the technical solutions of the present disclosure are included in the scope of protection of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
202311477216.2 | Nov 2023 | CN | national |