Abstract
Based on the study of multi-objective flexible workshop scheduling problem and the learning of traditional genetic algorithm, a non-dominated sorting genetic algorithm is proposed to solve and optimize the scheduling model with the objective functions of processing cycle, advance/delay penalty and processing cost. In the process of optimization, non-dominated fast ranking operator and competition operator are used to select the descendant operator, which improves the computational efficiency and optimization ability of the algorithm. Non-repetitive non-dominant solutions and frontier sets are found in the iteration operation to retain the optimal results. Finally, taking a manufacturing workshop as an example, the practicability of the proposed algorithm is verified by the simulation operation of the workshop scheduling information and the comparison with other algorithms. The results show that the algorithm can obtain the optimal solution more quickly than the unimproved algorithm. The improved algorithm is faster and more effective in searching, and has certain feasibility in solving the job shop scheduling problem, which is more suitable for industrial processing and production.
Introduction
With the development of science and technology and the application and popularization of advanced manufacturing technology, manufacturing companies are also facing the pressure of survival such as labour costs, equipment replacement and the renewal of advanced manufacturing concepts. Many manufacturing enterprises are committed to improving energy and material efficiencies. To achieve this goal, one of the high-efficiency ways is to optimize the scheduling.1,2 Facing with the diversification of market demand and the renewal of processing technology, the production and manufacturing models has also begun to change towards convenience and flexibility. In real-world manufacturing systems, production scheduling systems are often implemented under random or dynamic events like machine failure, unexpected processing times, stochastic arrival of the urgent orders, cancellation of the orders and so on. These dynamic events will lead the initial scheduling scheme to be nonoptimal and/or infeasible. Hence, appropriate dynamic rescheduling approaches are needed to overcome the dynamic events. Therefore, the quality of the scheduling scheme is of great significance to the company's revenue and to cope with the changing market environment.3,4
Multi-objective flexible workshop scheduling is an extension of single-objective scheduling. 5 In the flexible workshop scheduling problem, each process in each component is not only fixed on one machine, different machines can be selected for processing according to the specific circumstances, and the processing time of different machines is different, which is more flexible than traditional workshop scheduling. 6
Description and model construction of multi-objective flexible workshop scheduling problem
Description of the problem
Assuming that K machines in a workshop plan to produce N workpieces, each workpiece needs more than one process M processing and the processing sequence can only be arranged in sequence, also the machine equipment is intelligent equipment which can process many processes. The process can select machinery and equipment according to production needs, and the machine can only occupy once at the same time, besides that the workpiece can only be processed by one machine at the same time. The processing time depends on the performance of the selected equipment and the complexity of the process. 7 Multi-objective flexible job-shop scheduling involves mainly parallel processing and multi-function machines. 8 The machine can process multiple processes without mutual interference. The machine has high adaptability and versatility, and can be interchanged according to the needs in the process of processing. For example, the process of the set workpiece is processed on the machine, and the machine is processing other parts in an occupied state within a predetermined time. At this time, the replacement machine can also meet the processing needs. 9
A two-dimensional table is used to describe the flexible scheduling problem as shown in Table 1. The information corresponding to the values in the table is that the process of the workpiece can be processed on the machine. ‘
Two-dimensional description of flexible FJSP.
In order to simplify the problem model, it is assumed that the machine is in the state to be processed at time t = 0 and the processing objects are executed according to the original plan and processed sequentially, then the flexible job-shop scheduling problem (FJSP) can obtain the following problems from the above expression.
Fully flexible FJSP: For
Partial flexible FJSP: for
Optimized mathematical model construction
Problem model construction
The objective function is established by taking the minimum period of the workpiece flow during processing as a measure
Based on the delivery date and the punctuality of product production plan according to schedule is used to measure the delay completion penalty or the early completion penalty to establish the objective function
The objective function is established by taking the minimum processing cost as the measurement value
where ‘m’ is the serial number of the workpiece, m = 1,2,3, …, m, ‘n’ is process number, n = 1,2,3,…,n, ‘o’ is the serial number of the production machine, komn indicates that the process n of the workpiece m is processed on the machine o.
Constraints
When the workpiece is machined on the machine, the next step of the workpiece can be carried out after the process of the workpiece on the same machine is completed
After the completion of the technological process of the workpiece, the processing time is sequential and the processing time of the same process is fixed, which involves the waiting time of the machine stopping. Therefore, the processing time of the workpiece on the machine is longer than that on the machine, and the processing time of the same process is fixed. The working time should not be zero in time setting.
NSGA-II algorithm operation flow
For the multi-objective coexistence of workshop scheduling, the traditional standard genetic algorithm cannot meet the needs of multi-objective constraints. Non-dominated sorting genetic algorithm (NSGA) is proposed based on the needs of multi-objective constraints. NSGA is based on the theory of algorithm, which is the same as the recombination operator mechanism of the standard algorithm, except that the selection operation factor is different. It only uses the non-dominated sorting stratification and fitness value calculation for the population, and uses the niche technology to determine the fitness to ensure the distribution characteristics of the Pareto optimal solution set,10,11 and then performs algorithm operations. However, the computational complexity of NSGA is high and the non-deterministic elite retention mechanism is limited in use. Based on its advantages, Srinivas and Deb proposed the NSGA-II algorithm. The NSGA-II algorithm makes up for the shortcomings of NSGA in use and reduces the computational complexity. Instead of sharing radius share Q, the comparison operator of congestion degree and congestion degree is used. The population diversity is guaranteed by extending the individuals in the quasi-Pareto domain to the whole Pareto domain with uniform distribution. The elite strategy adopted also improves the speed and stability of the algorithm.12,13
When using NSGA-II, the chromosomes in the initialized population are sorted by non-dominated sorting and are only constrained by the first dominant frontier. The next order of the chromosomes is constrained by the first order, and each step has a ladder value assigned by the chromosomes and is arranged sequentially. The chromosome also uses the crowded distance as a parameter to measure the distance from other chromosomes. The smaller the distance is, the more the individual is, the lower the diversity will be; among the multiple chromosomes under the same ladder, the chromosomes with smaller ladder value and larger crowded distance have a higher probability of generating offspring as the next round of operation of the father generation. The method of selecting the father generation is to adopt the binary Championship method.
Coding and decoding
In the coding of the NSGA-II algorithm for solving the workshop scheduling, the initial population of genetic operations in NSGA-II algorithm is formed by selecting the processing procedure ‘n’ of workpiece ‘m’ to process on machine ‘o’. The chromosomal coding moments that can be performed are
The corresponding in the matrix is the arrangement of
That is, the time required to process x workpieces.
If it is the first process, the order of processing is
For example, the processing sequence in the matrix, if the second process of the workpiece 2 and 3 is simultaneously processed on the machine, since 1.25 > 1.32, the workpiece 2 is processed first and then the workpiece 3 is processed when the processing sequence is selected; when the third process of the workpiece 1 and 3 is machined on the machine, since 1.26 < 2.51, the workpiece 3 is preferentially machined in the selection process and then the workpiece 2 is processed. If the follow-up process is not started until the first process of each workpiece has been completed, since 1.26 < 1.36 < 2.51, the sequence of the completion of the first process is the workpiece 3, the workpiece 2 and the workpiece 1. The processing of the same workpiece is constrained by the routing of the process.
Fast non-dominated sorting
In the algorithm, the individual of the population is divided into different levels according to the dominance relationship, and the different grades of n individuals are represented by
Equation (9) indicates that the union of individuals in each rank is the whole population; equation (10) indicates that there is only one non-dominated set of individuals; equation (11) indicates the dominant relationship among different population grades. The maximum number of accesses in the non-dominant ordering of non-first dominance i is (N − 1), and the number of non-dominated frontiers is a non-zero constant, that is n ≥ 1.
Operator reorganization
Selecting an operation
The coding is random at the time of sorting, so the probability of the process being selected when the algorithm searches is the same. In order to improve the search efficiency of the algorithm, we usually evaluate the fitness function of the edited string to select the appropriate string for the next iteration. For example, if the string of the process
The first half shows the machining sequence of the workpiece ‘n’, and the latter shows the machining machine that the workpiece can select. [0, 1] indicates that the use conditions of the machine ‘o’ processing step ‘n’ are satisfied, ‘0’ indicates that machine ‘o’ does not satisfy the working procedure ‘n’ at the current time, and ‘1’ indicates that machine ‘o’ satisfies the working procedure ‘n’. The corresponding constraint is
Cross operation
Taking chromosome coding matrix for example
Selecting the row intersection and the intersection point is ‘1’. Getting the new matrix
The corresponding matrix represents the change of the machine usage corresponding to process A of the workpiece. Selecting column intersection and intersection point 2 to get a new matrix as follows
The corresponding matrix can be expressed as a change in the machine used for the machined workpiece.
Mutation operation
In order to preserve a better population, the two intersecting individuals with a non-dominated rank greater than 2 are calculated by Hamming distance. If the similarity is greater than the threshold value, the mutation rate parameter is increased, and vice versa. In the production scheduling, in order to improve the work efficiency, queue-insertion processing is carried out, that means the workpiece process satisfies the machine's queue insertion for the process of workpiece being processed, and the condition of the workpiece using the machine ‘o’ is
The change of the processing sequence code can be divided into the machine code changes and the process code changes, namely
If the corresponding process code of the machine is [1,3,5,2,3,4,2,2], the process code will be changed to [1,3,5,2,7,8,3,4,2,2] after inserting the process when the machine is not occupied.
Elite retention strategy
In the operation of non-dominant sorting algorithm, each generation will choose the better population of the parent to participate in the reorganization of the next generation population, retaining the non-dominated solution in the evolution process, and the speed of the algorithm searching for the optimal surface is improved.
14
Although most of the solutions in evolution will approach the non-dominated frontier surface, due to the different qualities of the surface, the surface solution set that may be approximated is the surface of the non-problem optimal solution set. In order to make the algorithm solution set to the problem surface search, the elite strategy is shown in equation (14)
Fitness function
In the algorithm operation, the feasible conditions of the processing will perform an evaluation function to evaluate the fitness and keep the optimal.
15
Fitness evaluation of processable gene strings is carried out in operator recombination, such as the fitness evaluation function (15) used in the third chapter.
Example simulation analysis
In order to verify the validity of the algorithm, a 6 × 6 × 4 optimization model is obtained after processing the data of a processing workshop production line of a bearing company. After the product information is collected, the arrangement is shown in Tables 2 to 4, ‘*’ indicates that the corresponding machine does not meet the usage requirements, and the population size is 20; the number of iterations is 200; the mutation rate is 0.1 and the crossover rate is 0.7.
Machine processing time corresponding to workpiece process.
Note: Time unit: minute.
Machine-processing costs corresponding to workpiece processes
Note: Processing cost unit: yuan.
The workpiece process corresponds to the delivery period.
Note: Delivery unit: minute; advance/penalty unit: yuan/min.
The optimized results obtained are shown in Figures 1 and 2. According to the scheduled Gantt chart and the processing information, the machine 3 is completely idle, that means the optimal scheduling result is achieved under the premise of using five machines, and it improves the use efficiency of other machines and reduces the no-load time of the machines. Because of the scheduling of four objectives, the Pareto frontier of the first three objectives is selected as shown in the following figure. There are 14 optimization solutions for the objectives. The program runs to get

NSGA-II algorithm Gantt diagram.

NSGA-II algorithms Pareto frontier.

Gantt diagrams of genetic algorithm and particle swarm algorithm.
For the simultaneous optimization of the four targets, the comparison results of the three algorithms are shown in Table 5.
Comparison of algorithm optimization results.
Through the comparison of the above three algorithms, the following conclusions can be drawn: The algorithm saves 58 and 7 min compared to traditional genetic algorithm and particle swarm optimization when optimizing objective function 1. When optimizing the objective function 2, it is reduced by 0.1 and 29.1 yuan, respectively, compared with the traditional genetic algorithm and the particle swarm algorithm; When optimizing the objective function 3, it saves 3 and 2 yuan, respectively, compared with the traditional genetic algorithm and the particle swarm algorithm; When optimizing the objective function 4, it is reduced by 30 and 38.1 yuan, respectively, compared with the traditional genetic algorithm and the particle swarm algorithm. The comparison shows that the algorithm has good performance. From the perspective of the scheduling Gantt chart distribution, the algorithm used can maximize the use of the machine and reduce the idle waiting time of the machine. Although it takes longer to complete the machining of the workpiece at the same time than the traditional genetic algorithm, it can accomplish the processing objectives under the condition of using five machines in terms of machine occupancy.
Conclusion
Through the learning of multi-objective flexible workshop scheduling, we learned how to numerically process each production link and elements and used the learned workshop scheduling knowledge to establish a multi-objective workshop scheduling model as well as defined the symbols in the model; Through the study of the theoretical knowledge of genetic algorithm, the NSGA-II algorithm is extended, the application of the improved genetic algorithm in solving job shop scheduling and the comparison with the results of other algorithms prove that the improved genetic algorithm has good practical performance in solving multi-objective workshop scheduling problems.
