A flexible job shop scheduling method based on orthogonal and fuzzy theory
By using orthogonal and fuzzy theory methods in flexible job shop scheduling to optimize the scheduling sequence, the problem of low equipment utilization is solved, and more efficient production efficiency and shorter completion time are achieved.
Patent Information
- Application Number
- CN202310078848.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-17
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2043-01-17
AI Technical Summary
The existing flexible job shop scheduling method has low equipment utilization and is difficult to effectively optimize, resulting in low production efficiency.
A flexible job shop scheduling method based on orthogonal and fuzzy theory is adopted. By constructing a scheduling model, the objective function and constraints are determined, combined with the balanced optimization algorithm, the orthogonal theory and fuzzy theory update operation sequence are executed, and the scheduling sequence is optimized to minimize the maximum completion. time.
Improved equipment utilization, reduced completion time, and achieved more efficient production efficiency.
Smart Images

Figure CN116050782B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of workshop scheduling, and in particular relates to a flexible job shop scheduling method based on orthogonal and fuzzy theory. Background Art
[0002] With the development of the economy, enterprises have strict requirements on equipment, production efficiency, equipment quality, and user experience, making it more difficult for most enterprises to plan and arrange production operations. The classic job shop scheduling problem is to assign predetermined operation sequence operations to a group of machines to minimize the time to complete all operations. In the traditional job shop scheduling problem (JSP), each process can only be run on one machine at a time, and can only be processed once, and the processing time is fixed.
[0003] Compared with traditional job scheduling, flexible job shop scheduling has higher flexibility and can be run on multiple machines. However, the current flexible job shop scheduling method has low equipment utilization and needs to be optimized. Summary of the invention
[0004] In order to solve the above problems, the present invention proposes a flexible job shop scheduling method based on orthogonal and fuzzy theory, which aims to minimize the maximum completion time, improve equipment utilization and reduce completion time.
[0005] The technical solution of the present invention is as follows:
[0006] A flexible job shop scheduling method based on orthogonal and fuzzy theory includes the following steps:
[0007] Step 1: Build a flexible job shop scheduling model and determine the objective function and constraints;
[0008] Step 2: Determine the coding method to obtain the processing order and processing time of each machine where the job is located in the flexible job shop scheduling;
[0009] Step 3: Initialize the parameters of the equilibrium optimization algorithm and the position of each process in the operation sequence;
[0010] Step 4: Execute the update operation sequence of the equilibrium optimization algorithm to optimize the scheduling order. During the iteration of the equilibrium optimization algorithm, the update operation sequence of the orthogonal theory and the fuzzy theory are executed in sequence.
[0011] Step 5: After the iteration of the equilibrium optimization algorithm is completed, the optimal scheduling plan and optimal completion time of the current flexible workshop in the scheduling optimization process are obtained.
[0012] Furthermore, in step 1, there is a set of n jobs to be processed on m machines, and the operation O of each process i,jProcessing is performed continuously on a group of machines. i,j On machine M k The processing time is recorded as T i,j,k , S i,j,k represents the start time of the jth process of the i-th job on the k-th machine. The ultimate goal is to minimize the completion time of the job;
[0013] The objective function is defined as follows:
[0014] C max =max{T i,j,k +S i,j,k}, 1≤i≤n 1≤k≤m (1)
[0015] Among them, C max The final completion time;
[0016] The constraints are as follows:
[0017] All machines start at time 0;
[0018] A certain operation sequence of a process can only be processed on one machine, and the work cannot be preempted or interrupted;
[0019] A job can only process one process at a time;
[0020] All setup and shipping times are excluded.
[0021] Furthermore, in step 2, a segmented coding method is used, specifically, the operation sequence is divided into three segments, the first segment represents the process sequence, the second segment represents the machine sequence, and the third segment represents the processing time of the machine.
[0022] Furthermore, in step 3, the parameters of the equilibrium optimization algorithm include the operation sequence P, the number of jobs n, the number of processes O, the number of machines m, the number of iterations MAX_Iter and the dimension Dim=n×O; the position of each process is initialized so that it is evenly distributed in the area of (-100,100).
[0023] Furthermore, in step 4, the specific process of the equilibrium optimization algorithm is as follows:
[0024] Step 4.1.1: Calculate the objective function values of all operation sequences in the operation sequence according to the objective function, and find the four optimal sequences C according to the function values. eq1 , C eq2 , C eq3 , C eq4 , construct the balancing pool C eq,pool :
[0025]
[0026] C eq,pool ={C eq1 ,C eq2 ,C eq3 ,C eq4 ,C eq(ave)} (3)
[0027] Among them, C eq(ave) represents the average of the four optimal sequences;
[0028] Step 4.1.2: Update the operation sequence C using formula (4):
[0029]
[0030] Among them, C and C eq Represent the current operation sequence and the equilibrium candidate operation sequence respectively; F represents the index; G represents the generation rate of the exploration phase; λ represents a random vector between [0, 1]; V represents a constant.
[0031] Furthermore, in step 4, when executing the orthogonal theory, two operation sequences a and b are randomly selected and averaged, and then orthogonalized with the current global optimal operation sequence. The specific process is as follows:
[0032] Step 4.2.1, select an orthogonal table according to the number and dimension of orthogonal operation sequences;
[0033] Step 4.2.2: Execute the orthogonal process. The specific execution process is as follows:
[0034] First, consider the orthogonal table as a matrix, and the values in the matrix as the values of the operation sequence in a certain dimension;
[0035] Then, calculate the time consumed by the operation sequence after each row combination in the orthogonal table, and then accumulate each column according to the different values;
[0036] Then, compare the orthogonal operation sequences a and b, compare each dimension, and select the one with the smaller value as the orthogonal operation sequence;
[0037] Finally, the orthogonal operation sequence replaces the operation sequence whose current fitness value ranks last c.
[0038] Furthermore, in step 4, the specific process of executing the fuzzy theory is as follows:
[0039] All operation sequences are divided into three parts equally. When executing the first part, the operation sequence is updated according to strategy 1 in fuzzy theory; when executing the second part, the operation sequence is updated according to strategy 2 in fuzzy theory; when executing the third part, the operation sequence is updated according to strategy 3 in fuzzy theory; among them,
[0040] Strategy 1: Divide P operation sequences into groups. For each current operation sequence i, i ranges from 1 to 1-P / 2, and j is a random operation sequence (1≤j≤P). Then compare the current running time of the two operation sequences and save the operation sequence with the larger time. When all operation sequences are executed, replace the current operation sequence with the saved P / 2 operation sequences.
[0041] Strategy 2: Divide P operation sequences into groups. For each current operation sequence i, i ranges from 1 to 1-P / 2, and j is a random operation sequence (1≤j≤P). Then compare the current running times of the two operation sequences, replace the operation sequence with the larger one with the symmetrical one, and operate on the original operation sequence.
[0042] Strategy 3: Divide the P operation sequences into P sequences. For each current operation sequence i, i ranges from 1 to 1-P / 2, and j is a random operation sequence (1≤j≤P). Then compare the current running time of the two operation sequences, and directly replace the worse operation sequence with the one with the larger time, and operate directly on the original operation sequence.
[0043] Furthermore, the specific process of step 5 is: when the maximum number of iterations of the equilibrium optimization algorithm is reached, the optimal scheduling solution is output, which corresponds to the best scheduling plan for the current flexible job shop and the optimal completion time; otherwise, go to step 4 to continue updating until the maximum number of iterations is reached.
[0044] Beneficial technical effects brought by the present invention:
[0045] The present invention adopts a flexible job shop scheduling method, which integrates orthogonal theory and fuzzy theory on the basis of balanced optimization algorithm, and gets rid of the traditional job shop scheduling mode. The present invention expands on the original JSP, flexibly selects resources (each process of the workpiece can be processed on multiple machines, and the processing time is not necessarily the same), effectively improves equipment utilization, and minimizes the maximum completion time. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 The present invention is a flow chart of a flexible job shop scheduling method based on orthogonal and fuzzy theory. DETAILED DESCRIPTION
[0047] The present invention is further described in detail below with reference to the accompanying drawings and specific embodiments:
[0048] The flexible job shop scheduling problem (FJSP) can be simply described as follows: there are n jobs, and the job sequence J = {J1, J2, …, J n}, each job has one or more processes, and the process of the job is completed by m machines, the machine sequence M = {M1, M2, ..., M m Each job J i (i=1,2,…,n) consists of a predetermined sequence of operations. Each operation requires selecting a machine from a set of available machines. The order in which the process operations are run is uncertain.
[0049] A flexible job shop scheduling method based on orthogonal and fuzzy theory includes the following steps:
[0050] Step 1: Build a flexible job shop scheduling model and determine the objective function and constraints.
[0051] Suppose a set of n jobs is processed on m machines, and the operation of each process (O i,j ) can be processed uninterruptedly on a group of machines. i,j On machine M k The processing time is recorded as T i,j,k , S i,j,k It represents the start time of the jth process of the ith job on the kth machine. The ultimate goal is to minimize the completion time of the job and improve production efficiency.
[0052] The objective function is defined as follows:
[0053] C max =max{T i,j,k +S i,j,k}, 1≤i≤n 1≤k≤m(1)
[0054] Among them, C max The final completion time.
[0055] The constraints are as follows:
[0056] All machines start at time 0;
[0057] A certain operation sequence of a process can only be processed on one machine, and the work cannot be preempted or interrupted;
[0058] A job can only process one process at a time;
[0059] All setup and shipping times are excluded.
[0060] Step 2, determine the coding method, so as to obtain the processing order and processing time of the machine where each job is located in the flexible job shop scheduling. The present invention adopts the coding method of segmented coding. For example, there are 5 machines, 3 jobs, and each job contains 2 processes. The representation of an operation sequence is: (2 1 3 1 3 2, 1 3 4 5 1 2, 2 6 5 3 4 1). Among them, the operation sequence is divided into three sections, the first section represents the process sequence, the second section represents the machine sequence, and the third section represents the processing time of the machine. The first 2 in the first section represents the first process of job 2 (the second 2 represents the second process of job 2, and so on), and the processing machine where it is located is the corresponding position of the second section, so the processing machine is 1; the processed time is the corresponding position of the third section, that is, the processing time is 2.
[0061] Step 3: Initialize the parameters of the equilibrium optimization algorithm and the position of each process in the operation sequence.
[0062] In the embodiment of the present invention, the parameters of the balanced optimization algorithm include the operation sequence P, the number of jobs n, the number of processes O, the number of machines m, the number of iterations MAX_Iter and the dimension Dim=n×O, and the position of each process is initialized so that it is evenly distributed in the area of (-100,100).
[0063] Step 4: Execute the update operation sequence of the equilibrium optimization algorithm to optimize the scheduling order. During the iteration of the equilibrium optimization algorithm, the orthogonal theory and fuzzy theory update operation sequences are executed in sequence.
[0064] The specific process of the equilibrium optimization algorithm is as follows:
[0065] Step 4.1.1: Calculate the objective function values of all operation sequences in the operation sequence according to the objective function, and find the four optimal sequences C according to the function values. eq1 , C eq2 , C eq3 , C eq4 , construct the balancing pool C eq,ool :
[0066]
[0067] C eq,pool ={C eq1 ,C eq2 ,C eq3 ,C eq4 ,C eq(ave)} (3)
[0068] Among them, C eq(ave) represents the average of the four optimal sequences;
[0069] Step 4.1.2: Update the operation sequence C using formula (4):
[0070]
[0071] Among them, C and C eq Represent the current operation sequence and the balanced candidate operation sequence respectively; F is an index used to balance the relationship between exploration and development; G represents the generation rate of the exploration phase; λ is a random vector between [0, 1]; the constant V=1 is set to prevent falling into the local optimum.
[0072] In the embodiment of the present invention, the orthogonal theory and the fuzzy theory are executed once every 50 iterations.
[0073] When executing the orthogonal theory, two operation sequences are randomly selected and averaged, and then orthogonalized with the current global optimal operation sequence. The specific process is as follows:
[0074] Step 4.2.1, select a suitable orthogonal table. In the embodiment of the present invention, the orthogonal table L8 (2 7 ), as shown in Table 1. The number of processes D is one third of the operation sequence; the number of experiments E is determined by the number of processes,
[0075] Table 1 Orthogonal table
[0076]
[0077] Step 4.2.2: Execute the orthogonal process. The specific execution process is as follows:
[0078] First, consider the orthogonal array as a matrix and the values in the matrix as the values of the operation sequence in a certain dimension.
[0079] For example, the number 1 in the first row and first column of Table 1 is regarded as the value corresponding to the first dimension of the operation sequence 1, and the number 1 in the first row and second column is regarded as the value corresponding to the second dimension of the operation sequence 1, and so on. Then, the time consumed by the operation sequence after each row combination in the orthogonal table (i.e., the running time) is calculated, and then each column is accumulated according to the different values, for example:
[0080] Ea1=5+7+5+3, where Ea1 represents the number of the first dimension obtained by orthogonalizing the operation sequence a.
[0081] Eb1=5+3+5+3, and Ea2 represents the number of the first dimension obtained by orthogonalizing the operation sequence b.
[0082] In the embodiment of the present invention, the result after executing the orthogonal process is shown in Table 2.
[0083] Table 2 Results after executing the orthogonal process
[0084]
[0085] Then, compare the orthogonal operation sequences a and b, compare each dimension, and select the one with the smaller value as the orthogonal operation sequence.
[0086] Finally, the orthogonal operation sequence replaces the operation sequence with the last c worst current fitness values.
[0087] The specific process of implementing fuzzy theory is:
[0088] All operation sequences are divided into three parts equally. When executing the first part, the operation sequence is updated according to strategy 1 in fuzzy theory; when executing the second part, the operation sequence is updated according to strategy 2 in fuzzy theory; when executing the third part, the operation sequence is updated according to strategy 3 in fuzzy theory.
[0089] Strategy 1: Divide P operation sequences into P sequences. For each current operation sequence i, i ranges from 1 to 1-P / 2, and j is a random operation sequence (1≤j≤P). Then compare the current running time of the two operation sequences and save the operation sequence with the longer time. After all operation sequences are executed, replace the current operation sequence with the saved P / 2 operation sequences.
[0090] Strategy 2: Divide P operation sequences. For each current operation sequence i, i ranges from 1 to 1-P / 2, j is a random operation sequence (1≤j≤P). Then compare the current running time of the two operation sequences, replace the operation sequence with the larger one with the symmetrical one, and operate on the original operation sequence.
[0091] Strategy 3: Divide the P operation sequences into P sequences. For each current operation sequence i, i ranges from 1 to 1-P / 2, and j is a random operation sequence (1≤j≤P). Then compare the current running time of the two operation sequences, and directly replace the worse operation sequence with the one with the larger time, and operate directly on the original operation sequence.
[0092] Step 5: After the iteration of the equilibrium optimization algorithm is completed, the optimal scheduling plan and optimal completion time of the current flexible workshop in the scheduling optimization process are obtained. The specific process is as follows:
[0093] When the maximum number of iterations of the equilibrium optimization algorithm is reached, the optimal scheduling solution is output, which corresponds to the best scheduling plan for the current flexible job shop and the optimal completion time; otherwise, go to step 4 to continue updating until the maximum number of iterations is reached.
[0094] Of course, the above description is not a limitation of the present invention, and the present invention is not limited to the above examples. Changes, modifications, additions or substitutions made by technicians in this technical field within the essential scope of the present invention should also fall within the protection scope of the present invention.
Claims
1. A flexible job shop scheduling method based on orthogonal and fuzzy theory, characterized in that: The steps include: Step 1: Build a flexible job shop scheduling model and determine the objective function and constraints; Step 2: Determine the coding method to obtain the processing order and processing time of each machine where the job is located in the flexible job shop scheduling; Step 3: Initialize the parameters of the equilibrium optimization algorithm and the position of each process in the operation sequence; Step 4: Execute the update operation sequence of the equilibrium optimization algorithm to optimize the scheduling order. During the iteration of the equilibrium optimization algorithm, the update operation sequence of the orthogonal theory and the fuzzy theory are executed in sequence. Step 5: After the iteration of the equilibrium optimization algorithm is completed, the optimal scheduling plan and optimal completion time of the current flexible workshop in the scheduling optimization process are obtained; In step 1, a set of n jobs is processed on m machines, and the operation O of each process i,j Processing is performed continuously on a group of machines. i,j On machine M k The processing time is recorded as T i,j,k , S i,j,k represents the start time of the jth process of the i-th job on the k-th machine. The ultimate goal is to minimize the completion time of the job; The objective function is defined as follows: C max = max{T i,j,k +S i,j,k },1≤i≤n 1≤k≤m (1) Among them, C max The final completion time; The constraints are as follows: All machines start at time 0; A certain operation sequence of a process can only be processed on one machine, and the work cannot be preempted or interrupted; A job can only process one process at a time; All setup and shipping times are negligible; In step 2, a segmented coding method is used, specifically, the operation sequence is divided into three segments, the first segment represents the process sequence, the second segment represents the machine sequence, and the third segment represents the processing time of the machine; In step 3, the parameters of the equilibrium optimization algorithm include the operation sequence P, the number of jobs n, the number of processes O, the number of machines m, the number of iterations MAX_Iter and the dimension Dim=n×O; the position of each process is initialized so that it is evenly distributed in the area of (-100,100); In step 4, the specific process of the balanced optimization algorithm is as follows: Step 4.1.1: Calculate the objective function values of all operation sequences in the operation sequence according to the objective function, and find the four optimal sequences C according to the function values. eq1 , C eq2 , C eq3 , C eq4 , construct the balancing pool C eq,pool : C eq,pool ={C eq1 ,C eq2 ,C eq3 ,C eq4 ,C eq(ave) } (3) Among them, C eq(ave) represents the average of the four optimal sequences; Step 4.1.2: Update the operation sequence C using formula (4): Among them, C and C eq Represent the current operation sequence and the equilibrium candidate operation sequence respectively; F represents the index; G represents the generation rate of the exploration phase; λ represents a random vector between [0, 1]; V represents a constant; In step 4, when executing the orthogonal theory, two operation sequences a and b are randomly selected to be averaged, and then orthogonalized with the current global optimal operation sequence. The specific process is as follows: Step 4.2.1, select an orthogonal table according to the number and dimension of orthogonal operation sequences; Step 4.2.2: Execute the orthogonal process. The specific execution process is as follows: First, consider the orthogonal table as a matrix, and the values in the matrix as the values of the operation sequence in a certain dimension; Then, calculate the time consumed by the operation sequence after each row combination in the orthogonal table, and then accumulate each column according to the different values; Then, compare the orthogonal operation sequences a and b, compare each dimension, and select the one with the smaller value as the orthogonal operation sequence; Finally, the orthogonal operation sequence replaces the operation sequence whose current fitness value ranks last c; In step 4, the specific process of executing the fuzzy theory is as follows: All operation sequences are divided into three parts equally. When executing the first part, the operation sequence is updated according to strategy 1 in fuzzy theory; when executing the second part, the operation sequence is updated according to strategy 2 in fuzzy theory; when executing the third part, the operation sequence is updated according to strategy 3 in fuzzy theory; among them, Strategy 1: Divide P operation sequences into groups. For each current operation sequence i, i ranges from 1 to 1-P / 2, and j is a random operation sequence (1≤j≤P). Then compare the current running time of the two operation sequences and save the operation sequence with the larger time. When all operation sequences are executed, replace the current operation sequence with the saved P / 2 operation sequences. Strategy 2: Divide P operation sequences into groups. For each current operation sequence i, i ranges from 1 to 1-P / 2, and j is a random operation sequence (1≤j≤P). Then compare the current running times of the two operation sequences, replace the operation sequence with the larger one with the symmetrical one, and operate on the original operation sequence. Strategy 3: Divide P operation sequences into groups. For each current operation sequence i, i ranges from 1 to 1-P / 2, and j is a random operation sequence (1≤j≤P). Then compare the current running times of two operation sequences, and directly replace the poor operation sequence with the one with the larger time, and operate directly on the original operation sequence. The specific process of step 5 is: when the maximum number of iterations of the equilibrium optimization algorithm is reached, the optimal scheduling solution is output, which corresponds to the best scheduling plan for the current flexible job shop and the optimal completion time; otherwise, go to step 4 to continue updating until the maximum number of iterations is reached.
