A two-level dynamic metaheuristic approach for multi-objective flexible shop scheduling

Through the double-layer dynamic meta-heuristic method, the collaborative outer and inner algorithm frameworks dynamically adjust machine assignment rules, solving the problem of multi-objective optimization in flexible job shop scheduling and improving the applicability and decision-making effect of the algorithm.

CN118348926BActive Publication Date: 2024-09-27GUANGZHOU XINGSHU CLOUD TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410386787.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-01
Publication Date
2024-09-27
Estimated Expiration
2044-04-01

AI Technical Summary

Technical Problem

When existing flexible job shop scheduling algorithms deal with multi-objective optimization problems, it is difficult to adapt to the data structures, constraints and optimization goals of different algorithms and problems, resulting in inefficient algorithm migration and easy falling into local optimal solutions.

Method used

A two-layer dynamic meta-heuristic method is proposed. The outer-layer meta-heuristic algorithm is used to determine the processing sequence of the process, and the inner-layer meta-heuristic algorithm is used to dynamically adjust the weight of the machine assignment rules to form a collaborative working algorithm framework to adapt to different scenarios. and nature of the problem.

Benefits of technology

It improves the potential of finding optimal solutions, achieves better decision-making effects and applicability, and can be flexibly embedded in various algorithms and suitable for different optimization problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118348926B
    Figure CN118348926B
Patent Text Reader

Abstract

The present invention discloses a two-layer dynamic metaheuristic method applied to multi-objective flexible job shop scheduling, and relates to the technical field of flexible job shop scheduling. The present invention develops and applies a "two-layer dynamic metaheuristic algorithm framework", which consists of two nested metaheuristic algorithm layers, namely an outer metaheuristic algorithm and an inner metaheuristic algorithm. When solving optimization problems, the two layers of algorithms work together to achieve better decision-making results. This algorithm framework does not rely on the internal structure or working principle of a specific algorithm. Instead, it focuses on the solution process of the optimization problem and dynamically adjusts the decision strategy through the synergy of the inner and outer metaheuristic algorithms.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of flexible job shop scheduling, and in particular to a double-layer dynamic meta-heuristic method applied to multi-objective flexible job shop scheduling. Background Art

[0002] With the rapid development of the global economy, scheduling plays a vital role in the decision-making of production systems and the resource allocation of intelligent manufacturing. As a classic problem in the field of scheduling, the flexible job shop scheduling problem has received extensive research attention and is closely related to actual industry [1]. For example, assembly line scheduling, interior and electronic system assembly, and parts supply scheduling in the automotive industry. Compared with job shop scheduling (JSP), flexible job shop scheduling (FJSP) not only considers the processing sequence of all workpiece processes, but also the machine allocation problem of each process, which is a more complex NP-hard problem [2]. Therefore, in-depth research on FJSP is not only of theoretical significance, but also has certain application value.

[0003] At present, the algorithms for solving FJSP are mainly divided into exact algorithms, heuristic algorithms, and meta-heuristic algorithms. Exact algorithms include branch-and-bound and dynamic programming [3]. For small-scale data problems, exact algorithms can theoretically obtain the optimal solution. However, due to their high time and space complexity, they are often difficult to apply to practical problems. Heuristic algorithms are methods of solving problems through inductive reasoning and experimental analysis of past experience, that is, using some intuitive judgment or trial method to obtain a suboptimal solution to the problem. For example, the SPT rule, that is, the workpiece with the shortest processing time is processed first [4]. Although heuristic algorithms can quickly obtain the solution to the problem, it is difficult to ensure the convergence of the algorithm. Meta-heuristic algorithms are widely used to deal with nonlinear optimization problems because of their simple principles, insensitivity to initial values, and easy implementation. In addition, meta-heuristic algorithms do not rely on the gradient of the objective function, which also makes the applicability of the solution more convincing.

[0004] Considering the advantages of metaheuristic algorithms, more and more scholars have applied metaheuristic algorithms to solve FJSP in recent years. Caldeira et al. [5] proposed a Pareto-based Jaya algorithm to solve FJSP, and added local search and mutation operators, which greatly improved the performance of the algorithm. Zhang et al. [6] studied the flexible job shop scheduling problem under different performance indicators and proposed an improved genetic algorithm with a two-layer offspring generation mode. Karthikeya et al. [7] proposed a hybrid discrete firefly algorithm to solve the multi-objective flexible job shop scheduling problem under limited resource constraints. Rylan et al. [8] designed a flexible job shop scheduling problem with completion time and total energy consumption as the objectives, and proposed an effective backtracking algorithm (Backtracking search algorithm) to solve it. The effectiveness of the method was verified by experiments. Dileeplal et al. [9] developed a multi-objective genetic algorithm based on a permutation coding scheme and designed an evolutionary operator that retains priority to solve multi-objective equipment job shop scheduling.

[0005] In order to promote sustainable development and environmental protection in the production and manufacturing fields, green scheduling has become one of the key strategies for enterprises and organizations to fully consider environmental and social responsibilities while pursuing profitability. More and more scholars have begun to study methods and techniques for green workshop scheduling to seek the best balance between resource optimization, energy efficiency and environmental protection in the production process. Gong et al.

[10] focused on factors related to worker flexibility and green production and proposed a multi-objective flexible workshop scheduling problem. In the study, a nonlinear integer programming model was constructed and a new non-dominated set adaptive ranking algorithm was introduced to solve this problem. Li et al.

[11] proposed a multi-objective green scheduling problem with constraints such as device time and transportation time, and solved it using an improved Jaya algorithm. Wu et al.

[12] developed a hybrid pigeon optimization and simulated annealing algorithm to solve the green flexible workshop scheduling problem with degradation effect. Lei et al.

[13] designed a hybrid frog leaping algorithm to study the FJSP that optimizes load balance and total energy consumption, and analyzed and verified the conflict between the two objectives. Mokhtari et al.

[14] established a multi-objective optimization model with completion time, equipment utilization and total energy consumption as targets, and proposed a hybrid algorithm combining genetic algorithm and simulated annealing algorithm to solve it.

[0006] The research results presented in the above literature are undoubtedly important, however, there are two obvious shortcomings. From the algorithmic point of view, the improvement strategies proposed in these studies are usually limited to specific algorithms or problem domains. Therefore, these strategies may be very effective in the domains for which they were originally designed, but it becomes quite challenging to migrate the same improvement strategies to other algorithms or problems. Because different algorithms and problems may involve different data structures, constraints and optimization objectives. From the perspective of FJSP, the optimal solution for scheduling depends not only on the processing sequence of the processes, but also on the allocation of machines. At present, most metaheuristic algorithms for solving FJSP are divided into three categories. The first category is to uniformly encode the processes and machines, and then search through specific metaheuristic algorithms. The second category is to encode the processes separately, and randomly select machines for processing. The third category is to encode the processes separately, introduce machine allocation rules, and assign fixed weights to these rules. However, these three types of solutions have different disadvantages. The disadvantage of the first solution: uniformly encoding the processes and machines will increase the dimension of the problem and weaken the exploration ability of the algorithm. The disadvantage of the second solution: since the machines are randomly selected, it is difficult to guarantee the convergence of the algorithm. Disadvantages of the third solution: Although the introduction of machine allocation rules increases the diversity of algorithm selection, the optimization problem changes dynamically, and the fixed weights of machine allocation rules can easily cause the algorithm to fall into a local optimal solution.

[0007] Therefore, a new solution to the above problems needs to be proposed. Summary of the invention

[0008] The purpose of the present invention is to provide a two-layer dynamic meta-heuristic method applied to multi-objective flexible shop scheduling to solve the problems raised in the background technology.

[0009] To achieve the above object, the present invention provides the following technical solution: a two-layer dynamic meta-heuristic method applied to multi-objective flexible shop scheduling, comprising at least the following steps:

[0010] S1: Model establishment for optimizing two main objective functions, wherein the two main objective functions include minimizing the maximum completion time and minimizing the total energy consumption, wherein the maximum completion time represents the maximum value of the time for all workpieces to complete processing, i.e., the completion time of the last workpiece, and the total energy consumption includes the fixed energy consumption of the workshop and the processing energy consumption of the machine;

[0011] S2: Building a two-layer dynamic meta-heuristic algorithm framework, wherein the two-layer dynamic meta-heuristic algorithm framework at least includes process encoding, machine assignment rules, process decoding, two-layer dynamic meta-heuristic algorithm, case study, multi-objective processing method and neighborhood search;

[0012] S3: Experimental analysis.

[0013] Preferably, the model is established as follows:

[0014] The objective function covers formula 1 and formula 2;

[0015] The formula 1 is:

[0016] minf1=max 1≤i≤n (C i )

[0017] The formula 2 is:

[0018]

[0019] Among them, f1 represents the maximum completion time, and f2 represents the total energy consumption;

[0020] The constraint conditions include formula 3, formula 4, formula 5, formula 6, formula 7, formula 8 and formula 9;

[0021] The formula 3 is:

[0022] s ij +x ijk ×t ijk ≤c ij

[0023] The formula 4 is:

[0024] c ij ≤s i(j+1)

[0025] The formula 5 is:

[0026]

[0027] The formula 6 is:

[0028] s ij +t ijk ≤s lh +L(1-y ijlhk )

[0029] The formula 7 is:

[0030] c ij ≤s i(j+1) +L(1-y ijl(h+1)k )

[0031] The formula 8 is:

[0032]

[0033] The formula 9 is:

[0034] sij ≥0,c ij ≥0

[0035] Formula 3 and Formula 4 represent that the processes of each workpiece have a sequence, Formula 5 represents that the completion time of each workpiece is equal to the end time of the last process of the workpiece, Formula 6 and Formula 7 represent that the same machine can only process one process at the same time, Formula 8 represents that the same process can only be processed by one machine at the same time, and Formula 9 represents that each variable must be a positive number;

[0036] The meanings of the symbols in Formula 1, Formula 2, Formula 3, Formula 4, Formula 5, Formula 6, Formula 7, Formula 8 and Formula 9 are as follows:

[0037] n is the total number of workpieces; m is the total number of machines; p is the total number of processes; k is the machine number; i, l and j, h are the workpiece numbers;

[0038]

[0039] o ij is the j-th process of workpiece i; O ijk The jth process of workpiece i is processed on machine k; p i is the total number of processes for workpiece i; m ij is the number of optional processing machines for the jth process of workpiece i; L is a sufficiently large positive number; t ijk is the processing time of the jth process of workpiece i on machine k; W Aijk W is the energy consumption per unit processing time of the jth process of workpiece i on machine k; k is the fixed energy consumption of machine k per unit time; s ij is the start time of the jth process for workpiece i; c ij is the end time of the jth process of workpiece i; C i is the completion time of job i.

[0040] Preferably, the process codes are encoded in ascending order;

[0041] The specific rules for encoding the ascending order rule are as follows:

[0042] First generate a set of continuous vectors X i =[x i1 , x i2 , ..., x iD ] and the workpiece number vector J = [j1, j2, ..., j D ];

[0043] Then select the smallest position in the continuous vector and assign it the process number 1, and select the second smallest position in the continuous vector again and assign it the process number 2;

[0044] Similarly, all continuous vectors are converted into process numbers in turn.

[0045] Preferably, the machine assignment rules include giving priority to the machine with the shortest processing time, giving priority to the machine with the smallest current load, and randomly assigning machines.

[0046] Preferably, the process decoding adopts an insert greedy decoding algorithm, and the algorithm steps are as follows:

[0047] Step 1: Calculate the start time of each process. The start time of each process is equal to the maximum completion time of the previous process of the workpiece and the previous process of the machine;

[0048] Step 2: Find the available machine idle time before this process;

[0049] Step 3: Without delaying the start time of other scheduled processes, insert it into the earliest feasible processing time on the corresponding machine.

[0050] Preferably, the bi-layer dynamic metaheuristic algorithm (BLDMA) includes an outer metaheuristic algorithm and an inner metaheuristic algorithm;

[0051] The search structures of the outer metaheuristic algorithm and the inner metaheuristic algorithm are the same, but the encodings of the two are different;

[0052] The dimension of each individual in the outer metaheuristic algorithm is related to the total number of workpieces and the number of each process;

[0053] The dimension of each individual in the inner metaheuristic algorithm is the number of machine assignment rules;

[0054] Since there are three machine assignment rules, the individual dimension of each inner algorithm is 3;

[0055] The weight range of each machine assignment rule is (0, 1), and the sum of the three weights is equal to 1;

[0056] Based on this, a normalization method is added to map each weight between 0 and 1. The mathematical expression is as follows:

[0057]

[0058] Among them, q1, q2, and q3 represent the weights of the three rules assigned by the machine.

[0059] Preferably, the multi-objective processing method uses the Pareto method, and the specific method of the multi-objective processing method is as follows:

[0060] Step 1: First, determine the dominance relationship between different individuals in the population;

[0061] Step 2: Based on the results obtained in step 1, find the non-dominated optimal solution in the current population, construct the pareto front, rank the individuals in the pareto front as 1, and delete them from the population;

[0062] Step 3: Put the individuals in the Pareto front into an external archive set of size k, and randomly select an individual from it to guide the next population evolution. If the number of individuals n in the external archive set is greater than k, then randomly delete nk individuals;

[0063] Step 4: Determine whether the termination condition is met. If not, update the population and repeat the above steps.

[0064] Preferably, the neighborhood search includes at least the following steps:

[0065] First, find the machine with the largest number of assigned workpieces;

[0066] Second, randomly select a workpiece to be assigned to the machine;

[0067] Finally, the selected workpieces are reallocated to other machines with shorter processing times;

[0068] The pseudo code of the neighborhood search is as follows:

[0069] mac_pin = [];

[0070] %Count the frequency of each machine allocation

[0071] mac_pin=tabulate(Schedule(:,machine_column));

[0072] %Get the machine with the most job allocations

[0073] [mac_max_index]=max(mac_pin);

[0074] %Get the schedule of the machine with the most job allocations

[0075] mac_max_Schedule=Schedule(Schedule(:,machine_column)==mac_max_index,:);

[0076] %Randomly select a job

[0077] mac_max_temp=randperm(size(mac_max_Schedule,1));

[0078] choose_mac_job=mac_max_Schedule(mac_max_temp(1),job_column);

[0079] choose_mac_seq=mac_max_Schedule(mac_max_temp(1),operation_column);

[0080] %Check available machines for the current job and operation

[0081] choose_mac_pin=mac_pin(Mac{choose_mac_job,choose_mac_seq},:);

[0082] %Get the machine with the fewest job allocations

[0083] [~,temp_mac]=min(choose_mac_pin);

[0084] [~,ind]=ismember(Schedule,mac_max_Schedule(mac_max_temp(1),:),'rows');

[0085] %Implement the transfer of the machine where the job is beingprocessed

[0086] Schedule(find(ind,1),machine_column)=choose_mac_pin(temp_mac,1)。

[0087] Compared with the prior art, the present invention has the following beneficial effects:

[0088] The present invention develops and applies a "two-layer dynamic meta-heuristic algorithm framework", which consists of two nested meta-heuristic algorithm layers, namely the outer meta-heuristic algorithm and the inner meta-heuristic algorithm. When solving optimization problems, the two layers of algorithms work together to achieve better decision-making results;

[0089] First, in the present invention, the outer meta-heuristic algorithm plays the primary decision-making role and is responsible for determining the processing order of the processes. Once the outer layer algorithm determines the processing order, the inner layer meta-heuristic algorithm takes effect and adjusts the weight of the machine assignment rule according to the processing order of the processes determined by the outer layer.

[0090] Moreover, the above-mentioned cooperation mechanism is dynamic, that is, it is adjusted in the process of algorithm solving as the problem changes and the outer metaheuristic algorithm changes;

[0091] This means that the algorithm can adjust its decision-making strategy in real time according to the nature of the problem to better adapt to different scenarios, thereby improving the potential for finding the optimal solution.

[0092] The key point of this algorithm framework is that it does not rely on the internal structure or working principle of a specific algorithm. Instead, it focuses on optimizing the problem-solving process and dynamically adjusts the decision-making strategy through the synergy of internal and external meta-heuristic algorithms.

[0093] This design allows the framework to be flexibly embedded in various algorithms without the need to fundamentally modify these algorithms. Even for different algorithms, the algorithm framework proposed in the present invention has good applicability. BRIEF DESCRIPTION OF THE DRAWINGS

[0094] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for describing the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0095] Figure 1 It is a schematic diagram of the plug-in greedy decoding algorithm of the present invention;

[0096] Figure 2 It is a framework diagram of the double-layer dynamic meta-heuristic algorithm of the present invention;

[0097] Figure 3 Solve the FJSP Gantt chart for the SCA of the present invention;

[0098] Figure 4The Gantt chart of the FJSP solution of SCA under the BLDMA framework of the present invention;

[0099] Figure 5 It is a schematic diagram for comparing the Pareto frontier results of the present invention. DETAILED DESCRIPTION

[0100] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.

[0101] See also Figure 1-Figure 5 , a two-level dynamic meta-heuristic method applied to multi-objective flexible shop scheduling, including at least the following steps:

[0102] S1: Model establishment, used to optimize two main objective functions, the two main objective functions include minimizing the maximum completion time and the minimum total energy consumption, where the maximum completion time refers to the maximum value of the time for all workpieces to complete processing, that is, the completion time of the last workpiece, and the total energy consumption includes the fixed energy consumption of the workshop and the processing energy consumption of the machine;

[0103] S2: Building a two-layer dynamic meta-heuristic algorithm framework, which at least includes process encoding, machine assignment rules, process decoding, two-layer dynamic meta-heuristic algorithm, case study, multi-objective processing method and neighborhood search;

[0104] S3: Experimental analysis.

[0105] The model is established as follows:

[0106] The objective function covers formula 1 and formula 2;

[0107] Formula 1 is:

[0108] minf1=max 1≤i≤n (C i )

[0109] Formula 2 is:

[0110]

[0111] Among them, f1 represents the maximum completion time, and f2 represents the total energy consumption;

[0112] The constraints include formula 3, formula 4, formula 5, formula 6, formula 7, formula 8 and formula 9;

[0113] Formula 3 is:

[0114] s ij +x ijk ×tijk ≤c ij

[0115] Formula 4 is:

[0116] c ij ≤s i(j+1)

[0117] Formula 5 is:

[0118]

[0119] Formula 6 is:

[0120] s ij +t ijk ≤s lh +L(1-y ijlhk )

[0121] Formula 7 is:

[0122] c ij ≤s i(j+1) +L(1-y ijl(h+1)k )

[0123] Formula 8 is:

[0124]

[0125] Formula 9 is:

[0126] s ij ≥0, c ij ≥

[0127] Formula 3 and Formula 4 represent that the processes of each workpiece have a sequence, Formula 5 represents that the completion time of each workpiece is equal to the end time of the last process of the workpiece, Formula 6 and Formula 7 represent that the same machine can only process one process at the same time, Formula 8 represents that the same process can only be processed by one machine at the same time, and Formula 9 represents that each variable must be a positive number;

[0128] The meanings of the symbols in Formula 1, Formula 2, Formula 3, Formula 4, Formula 5, Formula 6, Formula 7, Formula 8, and Formula 9 are as follows:

[0129] n is the total number of workpieces; m is the total number of machines; p is the total number of processes; k is the machine number; i, l and j, h are the workpiece numbers;

[0130]

[0131] o ij is the j-th process of workpiece i; O ijk The jth process of workpiece i is processed on machine k; p iis the total number of processes for workpiece i; m ij is the number of optional processing machines for the jth process of workpiece i; L is a sufficiently large positive number; t ijk is the processing time of the jth process of workpiece i on machine k; W Aijk W is the energy consumption per unit processing time of the jth process of workpiece i on machine k; k is the fixed energy consumption of machine k per unit time; s ij is the start time of the jth process for workpiece i; c ij is the end time of the jth process of workpiece i; C i is the completion time of job i.

[0132] When the process code is initialized to generate the individual process arrangement code, the process arrangement code is a discrete point in the solution space, and the metaheuristic algorithm is more suitable for solving problems in the continuous solution space. Therefore, to solve the scheduling problem through the metaheuristic algorithm, it is necessary to establish a mapping relationship between the individuals in the continuous space and the combined arrangement in the discrete space.

[0133] The ascending order rule encoding method is a relatively effective encoding method

[15] , which can realize the mapping from continuous space to discrete space. The specific rules are as follows: First, generate a set of continuous vectors X i =[x i1 ,x i2 ,…,x iD ] and the workpiece number vector J = [j1,j2,…,j D ]. Then pick out the smallest position in the continuous vector and assign it the process number 1, pick out the second smallest position in the continuous vector again and assign it the process number 2. Similarly, all continuous vectors are converted into process numbers in sequence. For example, consider a job shop scheduling problem with three machines and two workpieces. As shown in Table 1, the continuous vector X i =[0.29,2.31,5.32,3.73,1.13,0.62], then the corresponding process number is [o 11 ,o 12 ,o 13 ,o 23 ,o 22 ,o 21 ].

[0134] Table 1. Ascending order rule conversion

[0135]

[0136] Machine assignment rules include giving priority to the machine with the smallest processing time, giving priority to the machine with the smallest current load, and randomly assigning machines.

[0137] The process decoding adopts the plug-in greedy decoding algorithm, and its algorithm steps are as follows:

[0138] Step 1: Calculate the start time of each process. The start time of each process is equal to the maximum completion time of the previous process of the workpiece and the previous process of the machine;

[0139] Step 2: Find the available machine idle time before this process;

[0140] Step 3: Without delaying the start time of other scheduled processes, insert it into the earliest feasible processing time on the corresponding machine.

[0141] Figure 1 This is a scheduling diagram of the inserted greedy decoding algorithm. It can be found that this algorithm can greatly shorten the maximum completion time of the workpiece.

[0142] Two-layer dynamic metaheuristic algorithm:

[0143] In FJSP, the optimal solution depends not only on the processing sequence of the process, but also on the allocation of machines. In other words, for the same process sequence, different machine allocation strategies will lead to large differences in results. In theory, to find the optimal solution, it is necessary to try multiple different machine allocation strategies for the processing sequence of each process and select the optimal machine allocation strategy. However, this trial method is impractical because the search space is very large. Based on this, the present invention proposes to solve FJSP based on a two-layer dynamic metaheuristic algorithm. Among them, the outer metaheuristic algorithm realizes the production plan in the most optimized way by solving the processing sequence of the process; and the inner metaheuristic algorithm realizes machine scheduling in the best way by dynamically adjusting the weights of the machine assignment rules, thereby achieving optimal production efficiency.

[0144] Specifically, the inner meta-heuristic algorithm can dynamically adjust the weight of the machine assignment rules. By real-time monitoring of indicators such as the busyness and production efficiency of each machine, the weight value of each machine is calculated, and the processing priority of the machine is adjusted according to the new weight value. In this way, production resources can be reasonably allocated according to actual conditions, production efficiency can be improved, and production costs can be reduced. The algorithm flow chart is as follows Figure 2 shown.

[0145] The two-layer dynamic metaheuristic algorithm includes an outer metaheuristic algorithm and an inner metaheuristic algorithm;

[0146] The search structure of the outer metaheuristic and the inner metaheuristic is the same, but the encoding of the two is different;

[0147] The dimension of each individual in the outer metaheuristic algorithm is related to the total number of workpieces and the number of each process;

[0148] The dimension of each individual in the inner metaheuristic is the number of machine assignment rules;

[0149] Since there are three machine assignment rules, the individual dimension of each inner algorithm is 3;

[0150] The weight range of each machine assignment rule is (0, 1), and the sum of the three weights is equal to 1;

[0151] Based on this, a normalization method is added to map each weight between 0 and 1. The mathematical expression is as follows:

[0152]

[0153] Among them, q1, q2, and q3 represent the weights of the three rules assigned by the machine.

[0154] Case studies, see Figure 3 and Figure 4 :

[0155] In order to better explain how BLDMA solves FJSP, the present invention is illustrated by examples. The metaheuristic algorithm selected is the sine-cosine optimization algorithm (SCA), and the test set is MK01. The comparative experiment is divided into two groups. The weights of the machine assignment rules in the first group are fixed (the weights are selected from the literature

[16] ), and the weights of the three machine assignment rules are 0.1, 0.1, and 0.8 respectively.

[0156] The weights of the second set of machine assignment rules change dynamically, which is the sine-cosine optimization algorithm + two-layer metaheuristic algorithm framework (SCA+BLDMA).

[0157] First, use the coding technique in 3.1 to randomly generate a set of process codes. The processes are shown in Table 2.

[0158] When the machine assignment weight is fixed, the minimum completion time is 82 and the minimum energy consumption is 20.1942. The Gantt chart is as follows Figure 3 shown.

[0159] The SCA+BLDMA algorithm can dynamically adjust the weight of the machine assignment rule according to the processing order of the current process, thereby optimizing the production plan. Under the optimization of this algorithm (i.e., dynamically adjusting the weight of the machine assignment rule through the sine function or cosine function in SCA). After only one iteration, the weight of the machine assignment rule is adjusted to [0.196, 0.584, 0.219]. The maximum completion time is minimized to 67, and the energy consumption is also minimized to 18.5625. The Gantt chart is as follows Figure 4 shown.

[0160] Comparing the Gantt charts of the two algorithms, it can be found that the SCA+BLDMA algorithm obtains a more optimized production plan under the same resource constraints. Specifically, the SCA+BLDMA algorithm effectively balances the load of each machine by dynamically adjusting the weight of the machine assignment rules, avoiding the situation where some machines are busy while other machines are idle, thereby improving the utilization efficiency of the entire production line.

[0161] Table 2. Encoding results

[0162]

[0163] The multi-objective processing method uses the Pareto method. The specific method of the multi-objective processing method is as follows:

[0164] Step 1: First, determine the dominance relationship between different individuals in the population;

[0165] Step 2: Based on the results obtained in step 1, find the non-dominated optimal solution in the current population, construct the pareto front, rank the individuals in the pareto front as 1, and delete them from the population;

[0166] Step 3: Put the individuals in the Pareto front into an external archive set of size k, and randomly select an individual from it to guide the next population evolution. If the number of individuals n in the external archive set is greater than k, then randomly delete nk individuals;

[0167] Step 4: Determine whether the termination condition is met. If not, update the population and repeat the above steps.

[0168] Neighborhood search includes at least the following steps:

[0169] First, find the machine with the largest number of assigned workpieces;

[0170] Second, randomly select a workpiece to be assigned to the machine;

[0171] Finally, the selected workpieces are reallocated to other machines with shorter processing times;

[0172] The pseudo code for neighborhood search is as follows:

[0173] mac_pin = [];

[0174] %Count the frequency of each machine allocation

[0175] mac_pin=tabulate(Schedule(:,machine_column));

[0176] %Get the machine with the most job allocations

[0177] [mac_max_index]=max(mac_pin);

[0178] %Get the schedule of the machine with the most job allocations

[0179] mac_max_Schedule=Schedule(Schedule(:,machine_column)==mac_max_index,:);

[0180] %Randomly select a job

[0181] mac_max_temp=randperm(size(mac_max_Schedule,1));

[0182] choose_mac_job=mac_max_Schedule(mac_max_temp(1),job_column);

[0183] choose_mac_seq=mac_max_Schedule(mac_max_temp(1),operation_column);

[0184] %Check available machines for the current job and operation

[0185] choose_mac_pin=mac_pin(Mac{choose_mac_job,choose_mac_seq},:);

[0186] %Get the machine with the fewest job allocations

[0187] [~,temp_mac]=min(choose_mac_pin);

[0188] [~,ind]=ismember(Schedule,mac_max_Schedule(mac_max_temp(1),:),'rows');

[0189] %Implement the transfer of the machine where the job is being processed

[0190] Schedule(find(ind,1),machine_column)=choose_mac_pin(temp_mac,1).

[0191] When implementing S3;

[0192] Parameter settings:

[0193] In order to verify the effectiveness of the BLDMA framework proposed in this paper, four well-known metaheuristic algorithms (AOA, AO, SCA, WOA) are selected as comparison benchmarks. They are applied to FJSP, and 10 problem instances (MK01-MK10) from Brandimarte

[16] are used as test sets. In the experiment, we keep the population size and iteration number consistent, that is, the population size of each algorithm is 20 and the iteration number is 100. The algorithm parameters are shown in Table 3. The machine processing energy consumption and fixed energy consumption are shown in Table 4.

[0194] Table 3. Algorithm parameters

[0195]

[0196] Table 4. Machine energy consumption table

[0197]

[0198] Algorithm performance test:

[0199] In multi-objective optimization problems, the impact of randomness on the results needs to be considered when evaluating algorithm performance. In order to obtain more accurate and reliable results, each algorithm is usually run multiple times, and non-dominated solutions are selected from the obtained result set for comparison. In the experiment of the present invention, different multi-objective optimization algorithms were run 10 times respectively, and the Pareto frontier was selected from the obtained non-dominated solution set.

[0200] Table 5 shows the experimental results of four basic algorithms (AOA, AO, WOA, SCA) and their algorithms under the BLDMA framework (AOA+BLDMA, AO+BLDMA, WOA+BLDMA, SCA+BLDMA).

[0201] Experimental results show that the improved algorithm based on BLDMA framework has significant advantages in many aspects. Take AOA+BLDMA and AOA algorithms as examples.

[0202] (1) First, the Pareto solution set of the AOA+BLDMA algorithm dominates the Pareto solution set of the AOA algorithm. This means that it is more likely to find the global optimal solution rather than just the local optimal solution during the entire search process.

[0203] (2) Secondly, the number of non-dominated solutions generated by the AOA+BLDMA algorithm is greater than that of the AOA algorithm. These more solutions provide more options, enabling decision makers to make better decisions between different trade-off requirements.

[0204] (3) In addition, even on different test sets, the AOA+BLDMA algorithm can maintain its performance advantage. This shows that the algorithm has good robustness when facing different problems and can adapt to different problem requirements and feature changes.

[0205] (4) Figure 5 The Pareto frontier results of eight algorithms on the MK01-mk04 test set are shown. It can be found that the AOA+BLDMA algorithm shows better superiority in terms of both the number and quality of solution sets.

[0206] Table 5 Comparison of the four basic algorithms and their results under the BLDMA framework

[0207]

[0208]

[0209]

[0210]

[0211]

[0212] Table 5 (continued) Comparison of the four basic algorithms and their results under the BLDMA framework

[0213]

[0214]

[0215]

[0216]

[0217] Evaluation indicators:

[0218] In order to further evaluate the superiority of the algorithm based on the BLDMA framework, this study selected two comprehensive evaluation indicators for analysis, namely, Generational Distance (GD) and Spacing. An overview of each indicator is as follows.

[0219] Generation distance: A metric used to measure the distance between the solution generated by the optimization algorithm and the true Pareto frontier in FJSP. Generally, the smaller the GD, the better, indicating that the solution set generated by the algorithm is closer to the actual Pareto frontier. Since the actual Pareto frontier of the FJSP test data set is unknown, calculating GD requires using some solution to replace the theoretically required Pareto frontier. * (True Pareto front). In order to solve this problem, the present invention mixes the non-dominated solution sets obtained by all the comparison algorithms to form a mixed solution set, and then selects the non-dominated solutions in the mixed solution set as P * The mathematical expression of GD is shown in formula 10:

[0220]

[0221] Among them, y∈P represents a solution in the solution set P; x∈P * Denotes the true frontier set P * dis(x, y) represents the distance between solution x and solution y; |P| represents the number of solutions in the solution set P.

[0222] Spacing: Measures the standard deviation of the minimum distance between each solution and other solutions. The smaller the Spacing value, the more uniform the solution set. The larger the Spacing value, the more dispersed the solution set.

[0223]

[0224] Among them, d i represents the minimum distance between the i-th solution in solution P and other solutions in P, Indicates all d i The mean of .

[0225] Results Analysis

[0226] Tables 6 and 7 show the GD and spacing values ​​of the results obtained by the eight algorithms. Tables 8 and 9 show the weights of the three machine scheduling rules for the four improved algorithms based on the BLDMA framework for different test sets.

[0227] The results in Table 6 show that the improved algorithms based on the BLDMA framework have achieved different degrees of improvement in generation distance. This indicates that the algorithm approaches the real frontier of the problem faster within a limited number of iterations. The experimental data in Tables 8 and 9 show that the improved algorithms can dynamically change the weight of their search strategies for different problems. This dynamism means that the framework can not only be used to improve specific algorithms, but also has universality for different algorithms, providing significant improvements to their Pareto solution sets. From the perspective of solution uniformity, by analyzing Tables 7 and Figure 5 The experimental results show that the spacing value of the improved algorithm using the BLDMA framework is larger, which means that the solution set of the improved algorithm is more dispersed and diverse.

[0228] Table 6 Comparison of generation distance results

[0229]

[0230] Table 7. Spacing value comparison

[0231]

[0232]

[0233] Table 8. Weights of the four improved algorithms of the BLDMA framework for the three machine scheduling rules in different test sets

[0234]

[0235] Table 9. Weights of the three machine allocation rules

[0236]

[0237]

[0238] Summarize:

[0239] The present invention proposes a two-layer dynamic metaheuristic algorithm framework (BLDMA) for FJSP. In order to avoid the problem of metaheuristic algorithms falling into local optimality in various optimization problems in response to the unique challenges faced by FJSP, the present invention develops a two-layer algorithm structure. In this framework, the outer algorithm is responsible for optimizing the processing sequence, while the inner algorithm dynamically adjusts the weight parameters of the machine allocation rules. This dynamic collaboration mechanism is designed to make real-time adjustments based on the nature of the problem and the changes in the outer algorithm. Extensive experiments confirm the effectiveness of the BLDMA algorithm and prove that it can flexibly find the best solution based on the characteristics of different optimization problems.

[0240] References:

[0241] [1]Zhang J F,Wang F,Ge T T.Dynamic Arrival Sequencing and SchedulingBased on Branch and Bound Algorithm[J].Journal of System Simulation,2016,28(08):1909-1914.

[0242] [2]Zhao T,Nong Q Q,Fang Q Z.Coordination mechanism of two parallelmachines scheduling game problem[J].Periodical of Ocean University of China,(Natural Science),2013,43(07):110-114.

[0243] [3]Brucker P,Jurisch B,Sievers B.A branch and bound algorithm for thejob-shop scheduling problem[J].Discrete applied mathematics,1994,49(1-3):107-127.

[0244] [4]Lee K,Leung J Y T,Pinedo M L.Coordination mechanisms for parallelmachine scheduling[J].European Journal of Operational Research,2012,220(2):305-313.

[0245] [5]Caldeira R H,Gnanavelbabu A.A Pareto based discrete Jaya algorithmfor multi-objective flexible job shop scheduling problem[J].Expert Systemswith Applications,2021,170:114567.

[0246] [6]Zhang C Y,Rao Y Q,Li P G,et al.Bilevel genetic algorithm for theflexible job-shop scheduling problem[J].Chinese Journal of MechanicalEngineering,2007,43(4):119-124.

[0247] [7]Karthikeyan S,Asokan P,Nickolas S.A hybrid discrete fireflyalgorithm for multi-objective flexible job shop scheduling problem withlimited resource constraints[J].The International Journal of AdvancedManufacturing Technology,2014,72(9):1567-1579.

[0248] [8]Caldeira R H,Gnanavelbabu A,Vaidyanathan T.An effectivebacktracking search algorithm for multi-objective flexible job shopscheduling considering new job arrivals and energy consumption[J].Computers&Industrial Engineering,2020,149:106863.

[0249] [9]Dileeplal J,Narayanan K P.Multi-objective assembly job shopscheduling using genetic algorithm and tabu search[D].Cochin University ofScience And Technology,2012.

[0250]

[10] Gong,G.,Deng,Q.,Gong,X.,&Huang,D.(2021).A non-dominated ensemblefitness ranking algorithm for multi-objective flexible job-shop schedulingproblem considering worker flexibility and green factors.Knowledge-BasedSystems,231,107430.

[0251]

[11] Li,J.Q.,Deng,J.W.,Li,C.Y.,Han,Y.Y.,Tian,J.,Zhang,B.,&Wang,C.G.(2020).An improved Jaya algorithm for solving the flexible job shopscheduling problem with transportation and setup times.Knowledge-BasedSystems,200,106032.

[0252]

[12] Wu,X.,Shen,X.,&Li,C.(2019).The flexible job-shop schedulingproblem considering deterioration effect and energy consumptionsimultaneously.Computers&Industrial Engineering,135,1004-1024.

[0253]

[13] Lei,D.,Zheng,Y.,&Guo,X.(2017).A shuffled frog-leaping algorithmfor flexible job shop scheduling with the consideration of energyconsumption.International Journal of Production Research,55(11),3126-3140.

[0254]

[14] Mokhtari,H.,&Hasani,A.(2017).An energy-efficient multi-objectiveoptimization for flexible job-shop scheduling problem.Computers&ChemicalEngineering,104,339-352.

[0255]

[15] Abualigah L,Diabat A,Sumari P,et al.A novel evolutionary arithmetic optimization algorithm for multilevel thresholding segmentation of covid-19 ct images[J].Processes,2021,9(7):1155.

[0256]

[16] Brandimarte, P. (1993). Routing and scheduling in a flexible jobshop by tabu search. Annals of Operations research, 41 (3), 157-183.

[0257] It will be apparent to those skilled in the art that the invention is not limited to the details of the exemplary embodiments described above and that the invention can be implemented in other specific forms without departing from the spirit or essential features of the invention. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description, and it is intended that all variations falling within the meaning and scope of the equivalent elements of the claims be included in the invention. Any reference numeral in a claim should not be considered as limiting the claim to which it relates.

Claims

1. A two-level dynamic meta-heuristic approach for multi-objective flexible shop scheduling, Features: At least the following steps are included: S1: Model establishment for optimizing two main objective functions, wherein the two main objective functions include minimizing the maximum completion time and minimizing the total energy consumption, wherein the maximum completion time represents the maximum value of the time for all workpieces to complete processing, i.e., the completion time of the last workpiece, and the total energy consumption includes the fixed energy consumption of the workshop and the processing energy consumption of the machine; The model is established as follows: The objective function covers formula 1 and formula 2; The formula 1 is: min f 1 =max 1≤i≤n (C i ) The formula 2 is: Among them, f 1 represents the maximum completion time, f 2 represents the total energy consumption; The constraints include formula 3, formula 4, formula 5, formula 6, formula 7, formula 8 and formula 9; The formula 3 is: s ij +x ijk ×t ijk ≤c ij The formula 4 is: c ij ≤s i(j+1) The formula 5 is: The formula 6 is: s ij +t ijk ≤s lh +L(1-y ijlhk The formula 7 is: c ij ≤s i(j+1) +L(1-y ijl(h+1)k ) Formula 8 is: The formula 9 is: s ij ≥0,c ij ≥ Formula 3 and Formula 4 represent that the processes of each workpiece have a sequence, Formula 5 represents that the completion time of each workpiece is equal to the end time of the last process of the workpiece, Formula 6 and Formula 7 represent that the same machine can only process one process at the same time, Formula 8 represents that the same process can only be processed by one machine at the same time, and Formula 9 represents that each variable must be a positive number; The meanings of the symbols in Formula 1, Formula 2, Formula 3, Formula 4, Formula 5, Formula 6, Formula 7, Formula 8 and Formula 9 are as follows: n is the total number of workpieces; m is the total number of machines; p is the total number of processes; k is the machine number; i, l and j, h are the workpiece numbers; o ij is the j-th process of workpiece i; O ijk The jth process of workpiece i is processed on machine k; p i is the total number of processes for workpiece i; m ij is the number of optional processing machines for the jth process of workpiece i; L is a sufficiently large positive number; t ijk is the processing time of the jth process of workpiece i on machine k; W Aijk W is the energy consumption per unit processing time of the jth process of workpiece i on machine k; k is the fixed energy consumption of machine k per unit time; s ij is the start time of the jth process of workpiece i; c ij is the end time of the jth process of workpiece i; C i is the completion time of job i; S2: Building a two-layer dynamic meta-heuristic algorithm framework, wherein the two-layer dynamic meta-heuristic algorithm framework at least includes process encoding, machine assignment rules, process decoding, two-layer dynamic meta-heuristic algorithm, case study, multi-objective processing method and neighborhood search; The machine assignment rules include giving priority to the machine with the shortest processing time, giving priority to the machine with the smallest current load, and randomly assigning machines; The two-layer dynamic meta-heuristic algorithm includes an outer meta-heuristic algorithm and an inner meta-heuristic algorithm; The search structures of the outer metaheuristic algorithm and the inner metaheuristic algorithm are the same, but the encodings of the two are different; The dimension of each individual in the outer metaheuristic algorithm is related to the total number of workpieces and the number of each process; The dimension of each individual in the inner metaheuristic algorithm is the number of machine assignment rules; Since there are three machine assignment rules, the individual dimension of each inner algorithm is 3; The weight range of each machine assignment rule is (0, 1), and the sum of the three weights is equal to 1; Based on this, a normalization method is added to map each weight between 0 and 1. The mathematical expression is as follows: where q 1 ,q 2 ,q 3 Represents the weights of the three rules assigned by the machine S3: Experimental analysis.

2. The two-layer dynamic meta-heuristic method for multi-objective flexible shop floor scheduling according to claim 1, Features: The process codes are encoded in ascending order; The specific rules for encoding the ascending order rule are as follows: First generate a set of continuous vectors X i =[x i1 , x i2 ,...,x iD ] and the workpiece number vector J = [j 1 ,j 2 , …, j D ]; Then select the smallest position in the continuous vector and assign it the process number 1, and select the second smallest position in the continuous vector again and assign it the process number 2; Similarly, all continuous vectors are converted into process numbers in turn.

3. The two-layer dynamic meta-heuristic method for multi-objective flexible shop floor scheduling according to claim 2, Features: The process decoding adopts an inserted greedy decoding algorithm, and the algorithm steps are as follows: Step 1: Calculate the start time of each process. The start time of each process is equal to the maximum completion time of the previous process of the workpiece and the previous process of the machine; Step 2: Find the available machine idle time before this process; Step 3: Without delaying the start time of other scheduled processes, insert it into the earliest feasible processing time on the corresponding machine.

4. The two-layer dynamic meta-heuristic method for multi-objective flexible shop scheduling according to claim 3, Features: The multi-objective processing method adopts the Pareto method, and the specific method of the multi-objective processing method is as follows: Step 1: First, determine the dominance relationship between different individuals in the population; Step 2: Based on the results obtained in step 1, find the non-dominated optimal solution in the current population, construct the Pareto front, rank the individuals in the Pareto front as 1, and delete them from the population; Step 3: Put the individuals in the Pareto front into an external archive set of size k, and randomly select an individual from it to guide the next population evolution. If the number of individuals n in the external archive set is greater than k, then randomly delete nk individuals; Step 4: Determine whether the termination condition is met. If not, update the population and repeat the above steps.

5. The two-layer dynamic meta-heuristic method for multi-objective flexible shop scheduling according to claim 4, Features: The neighborhood search comprises at least the following steps: First, find the machine with the largest number of assigned workpieces; Second, randomly select a workpiece to be assigned to the machine; Finally, the selected workpieces are reallocated to other machines with shorter processing times; The pseudo code of the neighborhood search is as follows: mac_pin = []; %Count the frequency of each machine allocation mac_pin=tabulate(Schedule(:,machine_column)); %Get the machine with the most job allocations [mac_max_index]=max(mac_pin); %Get the schedule of the machine with the most job allocations mac_max_Schedule=Schedule(Schedule(:,machine_column)==mac_max_index,:); %Randomly select a job mac_max_temp=randperm(size(mac_max_Schedule,1)); choose_mac_job=mac_max_Schedule(mac_max_temp(1),job_column); choose_mac_seq=mac_max_Schedule(mac_max_temp(1),operation_column); %Check available machines for the current job and operation choose_mac_pin=mac_pin(Mac{choose_mac_job,choose_mac_seq},:); %Get the machine with the fewest job allocations [~,temp_mac]=min(choose_mac_pin); [~,ind]=ismember(Schedule,mac_max_Schedule(mac_max_temp(1),:),'rows'); %Implement the transfer of the machine where the job is being processed Schedule(find(ind,1),machine_column)=choose_mac_pin(temp_mac,1)。