Distributed heterogeneous flexible job shop scheduling optimization method based on Q-learning
Through a knowledge-driven distribution estimation algorithm based on Q-learning, combined with a hybrid heuristic initialization and an adaptive incremental learning model, the distributed heterogeneous flexible job shop scheduling problem is optimized, which solves the slow and diverse convergence of traditional algorithms in large-scale scheduling. Solve the problem of insufficient performance and achieve efficient maximum completion time and total energy consumption optimization.
Patent Information
- Application Number
- CN202410782900.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-10-11
AI Technical Summary
In a distributed manufacturing environment, traditional evolutionary algorithms are difficult to effectively solve the distributed heterogeneous flexible job shop scheduling problem, especially due to the large-scale characteristics and the coupling of multiple sub-problems, which lead to slow convergence and lack of diversity, and the meta-heuristic algorithm is locally The computational complexity in the optimal solution search is high, making it difficult to optimize the maximum completion time and total energy consumption.
A knowledge-driven distribution estimation algorithm based on Q-learning is used to generate the initial population through mixed heuristic initialization rules and random initialization, establish an adaptive incremental learning model, and design a feature feedback operator based on Q-learning to adaptively select local Search operators, optimize machine selection, factory allocation and process sequence, and balance the diversity and convergence of the population.
It achieves the rapid construction of high-quality initial populations in distributed heterogeneous flexible job shop scheduling problems, improves the convergence and solution quality of the algorithm, effectively reduces the maximum completion time and total energy consumption, and improves the operating efficiency and performance of the scheduling system. .
Smart Images

Figure CN118760068A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of distributed production scheduling in manufacturing industry, and performs modeling optimization on the scheduling problem of distributed heterogeneous flexible job shops. Background Art
[0002] Faced with fierce market competition and changing product demands, flexible manufacturing has become the choice of many companies. Flexible manufacturing is a manufacturing system that can quickly adjust production methods and quantities according to market demand and product changes. It has the characteristics of flexibility, efficiency, environmental protection and coordination, and can meet consumers' needs for personalization, customization and effectiveness. The application scenarios of flexible manufacturing are very wide and can cover various industries. In this context, the flexible job shop scheduling problem has achieved rich research results.
[0003] In the context of globalization, as cooperative production between enterprises becomes increasingly common, distributed manufacturing has become a common intelligent production model. In a distributed manufacturing environment, multiple factories located in different geographical locations share information, collaborate, and reasonably allocate resources to complete production tasks quickly and efficiently. Distributed manufacturing can flexibly respond to market demand, reduce production costs, and promote the development of the national economy and society. Therefore, the Distributed Flexible Job Shop Scheduling Problem (DFJSP), which combines the distributed manufacturing model with the flexible job shop scheduling problem, has received extensive attention and research. DFJSP studies the distribution of workpieces among multiple factories, completes the allocation of production resources within the factory and the scheduling of multiple processes, and optimizes the scheduling indicators. Its research facilitates the management of factories by enterprises and can directly create economic benefits for the future development of the manufacturing industry. It has important research significance and application value. In addition, among the multiple manufacturing factories in DFJSP, each factory may have machines with different numbers and different processing capabilities, and the number of optional machines for each process may also be different, so that the processing capacity and processing efficiency of each factory are different, and the collaborative production process between factories is abstracted as a heterogeneous factory problem. Therefore, studying the distributed flexible job shop scheduling problem (DHFJSP) in a heterogeneous production environment can provide theoretical guidance for the actual production process and has certain research significance.
[0004] DHFJSP has three different sub-problems, including 1) Factory Assignment (FA): determine the processing factories for all workpieces; 2) Machine Selection (MS): select the appropriate machine for each process from the set of feasible processing machines; 3) Operation Sequencing (OS): arrange a reasonable sequence for the processes of all workpieces assigned to each factory. When solving, it is necessary to search for a reasonable scheduling solution to reduce the idle time and energy consumption of the machine, so as to achieve the purpose of reducing the maximum completion time (makespan) and total energy consumption (TEC). The Gantt chart of DHFJSP is described as follows Figure 1 shown.
[0005] The solution methods for distributed workshop scheduling problems can be divided into exact methods and approximate methods. Although the exact method has the advantage of high solution accuracy, it is difficult to apply to large-scale scheduling problems in real life due to its high computational complexity. The approximate method can effectively balance the solution accuracy and solution efficiency, obtain satisfactory results within a reasonable time, and is widely used in practical problems. The metaheuristic algorithm in the approximate method has the characteristics of fast solution speed, strong robustness, and independence from specific problems. It stands out in the optimization methods of scheduling problems and is conducive to improving the production efficiency of the actual production process.
[0006] The Estimation of Distribution Algorithm (EDA) is an evolutionary algorithm based on statistical learning theory. It describes the distribution information of candidate solutions in the search space by establishing a probability model, and uses statistical learning methods to establish a probability model that describes the distribution of solutions from a macroscopic perspective of the population. Then, the probability model is randomly sampled to generate a new population, and the population evolution is achieved repeatedly. The two key operations of EDA are learning the probability model and sampling from the probability model to generate new individuals. The information of the dominant population is implicit in the probability model, which helps to generate promising individuals in the next iteration.
[0007] Due to the large-scale characteristics and multi-subproblem coupling characteristics brought by the distributed manufacturing environment, as well as the multi-objective optimization characteristics of green scheduling, traditional evolutionary algorithms have shortcomings such as slow convergence and lack of diversity. Reinforcement Learning (RL) has strong decision-making and optimization capabilities. The combination of RL and evolutionary algorithms is a valuable research direction for solving complex scheduling problems. In addition, when using metaheuristic algorithms to solve the optimal solution of a problem, the specific characteristics of the problem cannot be obtained in advance. Blindly searching the solution space not only increases the computational complexity, but also causes the algorithm to fall into the local optimal solution. Therefore, it is worthwhile to consider guiding the optimization process according to the characteristics of the problem. Fitness landscape analysis is a powerful tool for understanding the characteristics of complex optimization problems. Fitness landscape analysis has many applications in understanding complex problems, explaining algorithm behavior, predicting algorithm performance, and automatic algorithm configuration. In summary, using a knowledge-driven EDA to solve the distributed heterogeneous flexible job shop scheduling problem has a certain research basis and advantages. Summary of the invention
[0008] The present invention provides a distributed heterogeneous flexible job shop scheduling optimization method based on Q-learning, comprising the following steps:
[0009] Step 1: Initialize the population: Generate the initial machine selection sequence by mixing three heuristic initialization rules and random initialization methods. The three heuristic initialization rules aim to reduce the maximum completion time and select the most suitable machine for each process. The three heuristic initialization rules include: minimum processing time rule, minimum machine load rule and minimum completion time rule. For the factory allocation sequence and process processing sequence, they are generated according to the random initialization method.
[0010] Step 2: Generate a new population based on the incremental learning model: The population learning rate controls the information that the offspring population learns from the parent population. In this step, incremental learning models with adaptive learning rates are established for the three sub-problems. According to the number of iterations of the current population, the population learning rate decreases linearly within a certain range. The probability matrix obtained based on the dominant population can effectively imply the information of the previous generation population, which is conducive to the evolution of the population.
[0011] Step 3: Adaptive selection of operators based on feature feedback of Q-learning: Four neighborhood search operators are designed based on problem knowledge; for each non-dominated solution in the elite archive, the most effective local search operator is adaptively selected through feedback of multi-objective local fitness terrain features.
[0012] Preferably, in step 1, the basic sequence of factory allocation and process processing is randomly disrupted to obtain the factory allocation sequence and process processing sequence of all individuals in the initial population; for the machine selection sequence, three heuristic initialization rules and random initialization methods are used to jointly generate it, which is conducive to improving the quality and diversity of the initial population.
[0013] Preferably, in step 2, part of the constructed probability model comes from the distribution information of the current population and part comes from the distribution information of the previous generation population. The population learning rate controls the proportion of the two parts of information. Adaptively adjusting the population learning rate during the evolution process is conducive to balancing the diversity of the population and the convergence of the algorithm.
[0014] Preferably, in step 3, under different neighborhood structures, multi-objective local fitness terrain features are extracted from the sequence obtained by random walk, and the local search operator is adaptively selected based on feature feedback.
[0015] A distributed heterogeneous flexible job shop scheduling optimization system based on Q-learning.
[0016] include:
[0017] Population initialization module: Generates the initial machine selection sequence by mixing three heuristic initialization rules and random initialization methods. The three heuristic initialization rules aim to reduce the maximum completion time and select the most suitable machine for each process. The three heuristic initialization rules include: minimum processing time rule, minimum machine load rule and minimum completion time rule.
[0018] New population generation module based on incremental learning model: The population learning rate controls the information that the offspring population learns from the parent population. An incremental learning model with adaptive learning rate is established for the three sub-problems.
[0019] Operator adaptive selection module based on feature feedback of Q-learning: Four neighborhood search operators are designed based on problem knowledge; for each non-dominated solution in the elite archive, the most effective local search operator is adaptively selected through feedback of multi-objective local fitness terrain features.
[0020] A computer-readable storage medium stores a computer program, which can implement the steps of the above method when processed by a CPU.
[0021] The present invention provides a knowledge driven distribution estimation algorithm (KDEDA), which takes minimizing the maximum completion time and total energy consumption as the optimization goal to solve the distributed heterogeneous flexible job shop scheduling problem (DHFJSP). The algorithm can optimize the operating efficiency and performance of the distributed heterogeneous flexible job shop scheduling system. The present invention is a solver for solving the distributed heterogeneous flexible job shop scheduling problem, which includes the following three steps:
[0022] Step 1: Design a hybrid heuristic initialization strategy to obtain a high-quality initialization population;
[0023] Step 2: Design a parameter-adaptive incremental learning model to generate new solutions;
[0024] Step 3: Propose an operator selection model based on multi-objective fitness landscape, and use Q-learning to adaptively select local search operators based on fitness landscape feature feedback.
[0025] In step 1, the hybrid heuristic initialization strategy includes three heuristic initialization rules. (1) Minimum processing time rule: Randomly generate FA vectors and OS vectors. When generating MS vectors, select the machine with the minimum processing time for each process. Selecting the minimum processing time can be close to C max (2) Minimum machine load rule: Randomly generate FA vectors and OS vectors. When generating MS vectors, select the machine with the smallest machine load in the current scheduling sequence for each process to balance the machine load in the production workshop so that the task volume of each machine is similar, which helps to reduce C max (3) Minimum completion time rule: Randomly generate FA vectors and OS vectors. When generating MS vectors, select the machine with the smallest completion time in the current scheduling sequence for each process. The maximum completion time is directly related to the machine completion time. Greedily selecting the machine with the smallest completion time helps reduce C max Three heuristic initialization rules and random initialization rules are used to generate sub-populations of ps / 4 respectively, and the final initial population is obtained by merging the sub-populations.
[0026] In step 2, since the population learning rate in the incremental learning model controls the information learned by the offspring population from the parent population, it affects the distribution of the offspring population. In order to adaptively adjust the diversity of the population and improve the convergence of the algorithm, the population learning rate in the incremental learning model is linearly reduced according to the number of iterations of the population. For each sub-problem of DHFJSP, three incremental learning models are used to generate new solutions, and each incremental learning model is parameter-adaptive.
[0027] In step 3, since the maximum completion time is related to the key plant, reducing the completion time of the key plant can directly reduce the maximum completion time. Therefore, four local search operators are designed based on problem knowledge. For each solution in the new population, a variable neighborhood search operation is performed. In the selection of local search operators, through random walk sampling and measurement, local features are calculated based on the neighborhood of the sample, and an operator adaptive selection strategy based on feature feedback of Q-learning is proposed to select the most effective local search operator for each non-dominated solution in the elite archive, thereby increasing the probability of obtaining a high-quality solution.
[0028] The present invention has the following beneficial effects:
[0029] (1) The present invention uses heuristic rules to quickly construct a sub-population with good convergence, and uses random initialization to ensure the distribution of the population, thus well balancing convergence and distribution and obtaining a high-quality initialized population.
[0030] (2) Setting the population learning rate in the incremental learning model to adaptive can adaptively adjust the learning information obtained from the previous generation of population, and then adjust the diversity of the population during the algorithm iteration process to improve the convergence of the algorithm.
[0031] (3) According to the characteristics of the problem, a variety of local search operators are designed, and an operator adaptive selection strategy based on feature feedback of Q-learning is used to enhance the success rate of local search and improve the quality of the solution.
[0032] (4) The present invention has simple logic, is easy to implement and expand, and can expand the optimizer to meet most scheduling problems in the current intelligent manufacturing production field. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 It is a Gantt chart for the distributed heterogeneous flexible job shop scheduling problem.
[0034] Figure 2 It is a schematic diagram of the encoding and decoding method.
[0035] Figure 3 It is a schematic diagram of multi-target terrain feature extraction.
[0036] Figure 4This is a schematic diagram of operator adaptive selection based on Q-learning feature feedback.
[0037] Figure 5 It is the algorithm flow chart. DETAILED DESCRIPTION
[0038] The present invention discloses a distributed heterogeneous flexible job shop scheduling optimization system based on Q-learning, comprising:
[0039] 1. Population initialization module
[0040] First, a new solution is generated according to the random initialization rule, from 1 to the number of workpieces n for the number of heterogeneous factories n f Take the remainder and randomly shuffle the vectors assigned to each workpiece to form the factory code FA vector. Arrange the workpieces and processes in order to get the basic sequence OS0, and then randomly shuffle to generate ps OS vectors. For each process in each process code, randomly select a machine within the optional range to form the MS vector. Generate ps / 4 groups (OS i ,MS i ,FA i ), as the subpopulation. Afterwards, the minimum processing time rule, the minimum machine load rule, and the minimum completion time rule are used to generate the ps / 4 subpopulation. The generation method of the FA vector and the OS vector is the same as the random initialization rule. Finally, the subpopulations generated by the four rules are merged to obtain the final initial population; Figure 2 The encoding and decoding methods of the algorithm are explained.
[0041] 2. New population generation module based on incremental learning model
[0042] The incremental learning model aims to estimate the distribution model of the problem based on the probability matrix and use the dominant population to generate new offspring. In order to obtain the estimate, a parameter-adaptive incremental learning probability model is used. Taking the generation of MS vector as an example, let the probability matrix A control the generation of MS, A ijk (g) is an element of the probability matrix A, indicating that process O i,j The probability of being assigned to the kth available machine for processing. The probability matrix A is initialized as shown in formula (1), where I is the process O i,j The number of available machines. The update of A is based on equation (2), where α is the population learning rate of the probability matrix A.
[0043]
[0044] The convergence process of the population learning rate is adaptive according to the number of function evaluations. The larger the value of α, the more excellent features the next generation will learn. The update method of α is shown in formula (4).
[0045]
[0046] Among them, α max is a constant greater than 0.01, indicating the maximum value of α in the adaptive iteration process, and FEs indicates the number of function evaluations. From formula (4), it can be concluded that in the iterative process of the algorithm, α increases from a max It decreases evenly to 0.01.
[0047] The generation of FA and OS vectors is similar to the generation of MS vectors and follows the following steps: (1) Initialize the probability matrix; (2) Adaptively update the population learning rate and update the probability matrix based on the dominant population; (3) Generate new vectors based on the probability matrix.
[0048] 3. Local search module based on problem features
[0049] After the algorithm executes the new population generation module based on the incremental learning model, it randomly selects one of the four proposed local search operators to execute, produces a new neighborhood solution, and calculates its objective function value. If the objective function values of the new solution are better, the original solution is replaced. If only one objective value is better and other dimensions are worse, it is added to the experience archive Ω. If the objective function values of each solution are worse, the original solution is abandoned. The four local search operators are as follows:
[0050] (1) Local search operator L1: A workpiece is randomly selected in a key factory and randomly assigned to another factory.
[0051] (2) Local search operator L2: randomly selects a process in the key factory and chooses another selectable machine to balance the machine load in the key factory.
[0052] (3) Local search operator L3: Randomly exchange the processing order of two processes in the key factory, and the machine selected for each process remains unchanged.
[0053] (4) Local search operator L4: Randomly select two processes in the key factory and insert the latter process into the front position of the former process. The machine selected for each process remains unchanged. 4. Operator adaptive selection module based on feature feedback of Q-learning
[0054] The adaptive selection of operators based on feature feedback of Q-learning regards the random walk sequence as an intelligent agent. The local dominance metric and local hypervolume metric are used to extract the multi-objective local fitness terrain features to measure the effectiveness of the local search operator. Figure 3The figure shows the process of multi-objective terrain feature extraction. After obtaining the current state of the agent, a certain reward is given according to the feedback of the multi-objective local fitness terrain features. At the same time, the agent enters the next state and selects the local search operator with the largest reward in the current state according to the Q table, so that the algorithm evolves in a more promising direction. The operator adaptive selection process based on Q-learning feature feedback is shown in Figure 1. Figure 4 shown.
[0055] (1) State set definition: The local domination measure (LDM) and the local hypervolume metric (LHM) are used to measure the terrain characteristics of the random walk sequence. The larger the LDM, the higher the proportion of the random walk sequence dominating the current solution, and the larger the LHM, the better the distribution of the random walk sequence. The state of the agent is divided by the change in LDM ΔLDM and the change in LHM ΔLHM. According to the two changes, four states of the agent can be combined, namely: State 1: ΔLDM>0, ΔLHM>0; State 2: ΔLDM>0, ΔLHM≤0; State 3: ΔLDM≤0, ΔLHM>0; State 4: ΔLDM≤0, ΔLHM≤0. In this way, four closed-loop states are formed, and the state is transferred between the four states after the change of the environment.
[0056] (2) Action set definition: In this module, four actions are set for the agent, namely, the parameters LS t ={1,2,3,4}. Each parameter corresponds to a different local search operator, making the algorithm show different performance.
[0057] (3) Reward definition: In order to guide the algorithm to select local operators to enhance the distribution of the population, after a local search of the current solution, if ΔLHM>0, indicating that LHM becomes larger, the distribution of adjacent solutions is more uniform and the distribution is better, then the reward R=10. The Q table is updated by the following formula:
[0058] Q(S t ,A t )=Q(A t ,A t )+α×(R t +γ×max(Q(S t+1 ,:))-Q(S t ,A t )) (5)
[0059] Among them, α represents the learning rate and γ represents the actual discount rate.
[0060] System process:
[0061] KDEDA mainly consists of three parts: a hybrid heuristic initialization strategy, an incremental learning model based on parameter adaptation to generate new solutions, and an adaptive selection of local operators based on feature feedback of Q-learning. In the initialization stage, a hybrid heuristic initialization strategy combining four generation rules is used to generate a high-quality initial population. For the three sub-problems, an incremental learning model based on parameter adaptation is established to generate new solutions, and the learning information obtained by the offspring population from the parent population is adaptively adjusted to enhance the diversity and convergence of the population. For the adaptive selection of local operators based on feature feedback of Q-learning, a sequence is obtained through random walks to extract multi-objective local fitness terrain features. Through feature feedback, Q-learning is used to adaptively select the most effective local search operator for each non-dominated solution, guiding the individual to search in the potential advantage area of the solution space, thereby increasing the probability of obtaining a high-quality solution. The algorithm pseudocode is shown in Algorithm 1, and the algorithm flow chart is shown in Figure 5 shown.
[0062]
[0063] The invention discloses a distributed heterogeneous flexible job shop scheduling optimization method based on Q-learning. The method is based on a knowledge-driven distribution estimation algorithm, takes minimizing total energy consumption and maximum completion time as the goal, and solves a type of scheduling problem in discrete manufacturing: distributed heterogeneous flexible job shop scheduling problem. First, in order to obtain a high-quality initial population, three heuristic initialization rules are designed, and the diversity of the population and the convergence of the algorithm are balanced by a mixed heuristic initialization strategy. Secondly, for the three sub-problems of the distributed heterogeneous flexible job shop scheduling problem, three parameter adaptive incremental learning models are established to generate new solutions and adaptively improve the distribution of the population. At the same time, based on the problem characteristics, four local search operators are designed to perform local search on non-dominated solutions in elite archives to enrich the diversity of the population. In the selection of local search operators, the local terrain features of the solution are obtained by random walk and multi-objective measurement, and an operator adaptive selection strategy based on feature feedback of Q-learning is proposed. Its beneficial effect is that: the experimental results show the effectiveness and practicality of the scheduling optimization method of the invention in solving the distributed heterogeneous flexible job shop scheduling problem.
Claims
1. A distributed heterogeneous flexible job shop scheduling optimization method based on Q-learning, characterized in that: The following steps are involved: Step 1: Initialize the population: Generate the initial machine selection sequence by mixing three heuristic initialization rules and random initialization methods. The three heuristic initialization rules aim to reduce the maximum completion time and select the most suitable machine for each process. The three heuristic initialization rules include: minimum processing time rule, minimum machine load rule and minimum completion time rule. For the factory allocation sequence and process processing sequence, they are generated according to the random initialization method. Step 2: Generate a new population based on the incremental learning model: The population learning rate controls the information that the child population learns from the parent population. In this step, an incremental learning model with adaptive learning rate is established for each of the three sub-problems. Step 3: Adaptive selection of operators based on feature feedback of Q-learning: Four neighborhood search operators are designed based on problem knowledge; for each non-dominated solution in the elite archive, the most effective local search operator is adaptively selected through feedback of multi-objective local fitness terrain features.
2. According to the Q-learning-based distributed heterogeneous flexible job shop scheduling optimization method of claim 1, it is characterized in that: In step 1, the basic sequence of factory allocation and process processing is randomly disrupted to obtain the factory allocation sequence and process processing sequence of all individuals in the initial population.
3. The distributed heterogeneous flexible job shop scheduling optimization method based on Q-learning according to claim 1 is characterized in that: In step 2, for the constructed probability model, part of it comes from the distribution information of the current population, and part of it comes from the distribution information of the previous generation of population. The population learning rate controls the proportion of the two parts of information.
4. The distributed heterogeneous flexible job shop scheduling optimization method based on Q-learning according to claim 1 is characterized in that: In step 3, under different neighborhood structures, multi-objective local fitness terrain features are extracted from the sequences obtained by random walks, and local search operators are adaptively selected based on feature feedback.
5. A distributed heterogeneous flexible job shop scheduling optimization system based on Q-learning, characterized in that: include: Population initialization module: Generates the initial machine selection sequence by mixing three heuristic initialization rules and random initialization methods. The three heuristic initialization rules aim to reduce the maximum completion time and select the most suitable machine for each process. The three heuristic initialization rules include: minimum processing time rule, minimum machine load rule and minimum completion time rule. New population generation module based on incremental learning model: The population learning rate controls the information that the offspring population learns from the parent population. An incremental learning model with adaptive learning rate is established for the three sub-problems. Operator adaptive selection module based on feature feedback of Q-learning: Four neighborhood search operators are designed based on problem knowledge; for each non-dominated solution in the elite archive, the most effective local search operator is adaptively selected through feedback of multi-objective local fitness terrain features.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is processed by a CPU, the steps of the method according to any one of claims 1 to 4 can be implemented.
Citation Information
Cited By
Distributed blocking multi-product batch process production scheduling method
CN120031351A
