Dynamic Data Scheduling of a Flexible Industrial Job Shop Based on Digital Twin Technology

Aiming at the problems of premature convergence of existing workshop dynamic data scheduling methods and the decline in product output, a exible industrial job shop dynamic data scheduling method based on digital twin technology is proposed. First, digital twin technology is proposed, which provides a design and theoretical basis for the simulation tour of a exible industrial job shop, building the all-factor digital information fusion model of a exible industrial workshop to comprehensively control the allfactor digital information of the workshops. A CGA algorithm is proposed by introducing the cloud model. e algorithm is used to solve the model, and the chaotic particle swarm optimization algorithm is used tomaintain the particle diversity to complete the dynamic data scheduling of a exible industrial job shop. e experimental results show that the designed method can complete the coordinated scheduling among multiple production lines in the least amount of time.


Introduction
e job shop dynamic data scheduling problem is a typical combinatorial optimization problem and one of the key problems to be considered in exible industrial production management technology [1]. How to nd an optimal scheduling scheme that meets the constraints is the basis and key to improving the production e ciency of a exible industry. As an extension of classical JSP (Java server page), the exible job shop dynamic data scheduling problem not only needs to sort the processes on each exible industrial job shop machine [2] but also needs to select the appropriate machine for each process before sorting, which clearly increases the di culty of solving exible job shop scheduling [3]. At present, there are many chemical enterprises with complex systems, uneven information construction levels, and inconsistent data standards. As a typical industry, exible industrial workshops are facing new situations such as large price uctuations, high gas supply pressure, and the continuous emergence of new energy. At the same time, the international market competition is becoming increasingly erce, and environmental control is becoming increasingly strict [4,5]. For the production data acquisition system of exible industrial workshops, due to the poor quality of manually collected data and the lack of dynamic data, data communication and sharing have become the bottleneck restricting its development. Nowadays, with the rapid development of social science and technology [6,7], the exible industry is also facing the situation of diversi ed demand and technology improvement. In addition, the dynamic data scheduling of a exible job shop often involves multiple con icting optimization objectives [8], and it is di cult to choose between them. erefore, scholars have conducted a great deal of research on this aspect.
Reference [9] proposed multiobjective job shop scheduling using a multipopulation genetic algorithm. e job shop scheduling problem is a challenging scheduling and optimization problem in the eld of industry and engineering. It is related to the work e ciency and operation cost of the factory. e completion time of all jobs is the most common optimization goal in the existing work. A multiobjective job shop scheduling approach is proposed for the rst time. e job shop scheduling considers ve objectives, which makes the model more practical in terms of re ecting the various needs of the factory. To optimize these five objectives at the same time, a new genetic algorithm method based on a multipopulation and multiobjective framework is proposed. First, five groups are used to optimize the five objectives, respectively. Second, to avoid each group only focusing on its corresponding single goal, a file-sharing technology is proposed to store the elite solutions collected from the five groups so that the group can obtain optimization information about other goals from the files. ird, an archive update strategy is proposed to further improve the quality of the solution in the archive. Test cases from widely used test sets are used to evaluate performance. Reference [10] proposed a new method to solve the energy-efficient flexible job shop scheduling problem. Using the improved unit-specific event time representation, a new mathematical formula for energy-efficient and energy-saving flexible job shop scheduling is proposed, and then the flexible job shop is described using the state task network. Compared with the existing models with the same or better solutions, the model can save 13.5% of the calculation time. In addition, for largescale examples that cannot be solved by the existing models, this method can generate feasible solutions. Although the above methods have made some progress, they cannot meet the requirements of diversified market demand. In the face of multiple production lines in the multiuser, small batch, and personalized customization mode, problems include the complex calculation process, low real-time efficiency, narrow application range, and unsuitability for wide promotion and use. erefore, a new dynamic data scheduling method of flexible industrial job shop based on digital twin technology is proposed. In this method, first, the digital twin technology is proposed, and at the same time, the full element digital information fusion model of the flexible industrial workshop is constructed to comprehensively control the full element digital information of the flexible industrial workshop. en the cloud model is introduced to propose a CGA algorithm, which is used to solve the model, and the chaotic particle swarm optimization algorithm is used to maintain the particle diversity, so as to complete the dynamic data scheduling of flexible industrial job shop. e innovation of the design method is to select the digital twin technology, which provides the design basis and theoretical basis for the simulation inspection of the flexible industrial workshop. e dynamic data scheduling of the flexible industrial workshop is completed with the objective of minimizing the completion time and maximizing the utilization of the production line. Experimental results show that this method has ideal scheduling efficiency and scheduling ability and can spend the least time to complete the coordinated scheduling among multiple production lines.  [11,12]. e interaction and integration of industrial physical structures and information networks have attracted increasing attention. Digital twin technology integrates the physical model, operation, and maintenance data into an information body to obtain multidimensional and multiinformation simulation data into the information body. e physical object can be reproduced in the information virtual space.

Dynamic Data
rough the information interaction, the product R&D and design, production services, and other aspects can be monitored and analyzed to reduce production costs and improve product competitiveness. e digital twin technology provides the design basis and theoretical basis for the simulation inspection of the flexible industrial workshop [13]; however, safety hazards in the workshop can occur from time to time. e digital twin technology is used to establish the dynamic data scheduling model of the virtual flexible industrial workshop; access the main control, auxiliary control, security, and other equipment detection points in the flexible industrial workshop; and collect various types of status information in real time. It is not necessary for the transportation inspection personnel to go to the site of the flexible industrial operation workshop in order to master the operation status of the flexible industrial operation workshop, provide reliable support for the workshop to realize "continuous equipment inspection," provide timely warnings of abnormal equipment in the workshop, and prolong the service life of the equipment. Combined with the current workshop operation, the operation principle of the digital twin line is given, as shown in Figure 1.
When the workshop equipment is running, the service system controls the physical production line to carry out the actual production activities according to the production plan; at the same time, the twin production line maps the production operations in real time according to the real-time data of the entity; the results of analysis and calculation can be fed back into the service system in the future for alarm, control optimization, and prediction analysis of the production process. e flexible industrial operation model is constructed according to the digital twin technology [14]. e mapping between the digital space and the physical space of the industrial equipment is divided into three parts: equipment, environment, and system. e workshop equipment maps the actions, spatial positions, and working states of robots, AGVs, processing equipment, and other equipment on the production line in real time to complete the processing process of each station.

e Factor Digital Information Fusion Model of the Flexible Industrial Workshop.
To realize the digital information management of all elements and states in the flexible industrial workshop and to realize the real scene construction of digital twin equipment in the flexible industrial workshop, first, the feature classification and adaptive scheduling model of all-factor digital information in a flexible industrial job shop is constructed. e multidimensional and panoramic power grid virtual real fusion analysis method is adopted, combined with the quantitative regression statistical analysis method to realize the digital twin data fusion and regression analysis of the real scene space of the flexible industrial workshop, and the digital twin application construction realizes the integration of the "physical flexible industrial workshop" and the "virtual flexible industrial workshop" [15].
Digital technology is used to perceive and understand the digital information of all elements and states of the flexible industrial workshop, to optimize the characteristics of all elements and states of a real flexible industrial workshop, to build the digital information integration model of all elements and states of the flexible industrial workshop in combination with the four-tier architecture design, and to realize the information management of the industrial workshop in combination with three-dimensional visual management technology. e total element digital information fusion model of the flexible industrial workshop based on digital twin technology is obtained, and the structure is shown in Figure 2.
According to the all-factor digital information fusion model of the flexible industrial workshop based on digital twin technology shown in Figure 2, the fusion data are analyzed through threshold judgment. e information fusion layer is video image fusion. In the all-factor digital information fusion of the flexible industrial workshop, the data exchange process is realized through the data flow.
rough the multidimensional sensing device, the multidimensional information, environmental geographic information, and weather time state information are extracted to realize the functions of digital twin technology control, equipment monitoring, abnormal alarm, and life prediction, and to determine the all-factor digital information fusion model of the flexible industrial workshop.

Comprehensive Control of All Digital Information Elements in the Flexible Industrial
Workshop. Based on the above analysis, to realize the comprehensive control of allfactor digital information in flexible industrial workshops, digital twin technology is introduced. e key to digital twin technology is that the mathematical model can widely access the information of the physical production line and then drive the management and control of the research objects. e digital twin technology in the study carries out multidimensional management and control of all-factor digital information of the flexible industrial workshop. Its management and control structure is shown in Figure 3.
In the application of digital twin technology to all-factor digital information in flexible industrial job shops, priority scheduling is first used to realize the priority fusion sorting of all-factor digital information mining in flexible industrial job shops, which is recorded as follows: (1) where g v1 , g v2 , . . ., and g vn all represent priority fusion sorting sequence values. According to the detection statistical analysis results of the all-factor digital information of the flexible industrial workshop, the output fuzziness of allfactor digital mining is obtained to complete the comprehensive control of the workshop digital information.

Construction of the Buffer Area Layout Model of the Flexible Industrial
Workshop. e layout of the buffer area of the flexible industrial workshop is mainly analyzed and studied from the workshop conditions to obtain the best local optimization scheme of the buffer area of the flexible industrial workshop, to ensure the maximum improvement of the increased production and benefits.
It is assumed that the operation area required by workshop facilities is determined through layout data analysis, and the operation area of each area needs to be calculated in detail. Among them, the process of determining the working area of workshop facilities is shown in Figure 4. e workshop facility job buffer plays an essential role in the manufacturing system. In addition to completing the storage function of the layout model, it also needs to support different operations of the layout model, mainly including receiving and storage.  Discrete Dynamics in Nature and Society is paper analyzes the operation characteristics of the facility operation buffer area in a flexible industrial workshop. Generally, the buffer area is divided into several different functional areas, mainly including the following aspects: (1) Production area (2) Sorting area (3) Distribution area (4) Waiting area rough the above analysis, the layout optimization model of the workshop facility job buffer area is described as follows.
Multiple work units with known dimensions are placed in the plane of the known workshop facility work buffer area, mainly to make the layout of each work unit more reasonable. In addition, to effectively facilitate handling, it is necessary to reserve a certain activity space and aisle width for the staff of the flexible industrial workshop. At the same time, some constraints need to be considered in the layout of the buffer area.   In the process of optimizing the layout of the facility operation buffer area in a flexible industrial workshop, the following operation steps are mainly included: Step 1: Preparation of raw materials. In the process of buffer layout optimization, it is necessary to determine five basic elements such as product, output, and handling path. At the same time, the functional area is divided on the basis of the operation unit, and the area and shape of the best operation area are obtained by means of decomposition or combination.
Step 2: Dynamic data scheduling and relationship analysis between operating units. Material handling and loading and unloading in flexible industrial workshops are the main causes of operation costs, so layout optimization plays an essential role in the process of dynamic data scheduling. rough the above analysis, it is necessary to analyze the relationship between dynamic data scheduling and various operation units.
Step 3: Calculate the floor area of each unit.Analyze different factors such as equipment and personnel, obtain the floor area of the operation unit through the operation area calculation formula, and ensure that the calculated area and the actual available area match each other.
Step 4: Draw the correlation diagram of the unit area of operation. Calculate the load of the actual area of the operation unit with the corresponding position correlation diagram.
Step 5: Revise. Combined with the actual limited conditions, the area of the correlation map is adjusted in real time, and several feasible schemes are formulated at the same time.
Step 6: Scheme evaluation and selection. For a feasible scheme, it is necessary to evaluate professional technology, cost, and other aspects, modify the scheme through comparison and analysis, and obtain the final layout scheme.
Based on the above operations, the layout of the workshop facility job buffer can be described as follows: where n represents the total number of operating units; d ij and e ij , respectively, represent the average dynamic data scheduling amount and the total dynamic data scheduling amount between i and j of the operation unit; W q represents any constant; and f ij and h ij represent the material handling speed and time between i and j, respectively. (2) e constraints are where C ij represents the correlation function between activities; x i and x j represent the i and j activities, respectively; y i and y j represent the length and width of the activity, respectively; and B xij represents the handling function between each activity. e buffer area layout model of the flexible industrial workshop is given by using the following formula:

Model Solution Based on the CGA Algorithm.
e cloud model is mainly characterized by expected value, entropy, and super entropy. e traditional genetic algorithm needs to use empirically specified or fixed crossover and mutation probability for research. e detailed operating principle is that when the average fitness of the population is greater than the individual, the better individual needs to be reported as the fitness value increases; at the same time, better individuals are formed.
According to the characteristics of the normal cloud model, the disadvantages of the genetic algorithm for dynamic data scheduling of the flexible industrial job shop can be effectively improved. e calculation process of the CGA (compact genetic algorithm) algorithm is as follows: where P abc and P mnl represent the overall and local optimal solutions, respectively, and o 1 , o 2 , o 3 , and o 4 represent the control parameters, respectively; f indicates fitness value; and Ex and En represent the fitness values of the variant individuals. e detailed operation steps of the CGA algorithm are given in Figure 5. e CGA algorithm is used to solve the layout model of the facility job buffer area in a flexible industrial job shop.
e detailed operation steps are as follows: Step 1: Initialize the population Step 2: Calculate the fitness value of different individuals Step 3: Select, copy, and migrate (1) Copy the best individual to the next generation (2) Replicate the elite population (3) e worst individuals will be eliminated and replaced by randomly formed foreign individuals Step 4: Cross and mutate all elite groups: (1) e membership degree is randomly formed according to the uniform distribution (2) e fitness value is determined by both parents (3) Determine the search scope of different variables Step 5: Perform the mutation operation: (1) Determine the number of original individuals (2) Determine the variable search range Step 6: Judge whether the algorithm meets the termination conditions. If yes, stop the operation, output the optimal solution, and obtain the layout optimization scheme of the facility job buffer area in the flexible industrial job shop; otherwise, skip to step 2; thus, the model solution based on the CGA algorithm is completed.

e Flexible Industrial Job Shop Dynamic Data Scheduling Problem.
e flexible industrial job shop dynamic data scheduling problem determines the processing order of workpieces on each workshop machine through a certain optimization strategy so as to minimize the dynamic data scheduling time of the flexible industrial job shop. e corresponding known conditions are described as follows: (1) e workpiece set to be processed is K � (k 1 , k 2 , . . . , k n ), and k n is the n workpiece to be processed (2) e machine set capable of processing is M � (m 1 , m 2 , . . . , m m ), and m m is the m machine (3) e operation sets J � (J 1 , J 2 , . . . , J n ) T , J i � (j i1 , j i2 , . . . , j ik , . . . , j im ), and j im of each workpiece represent the first operation of the i workpiece e dynamic data scheduling problem of a flexible industrial job shop must meet the following two constraints: (1) Each operation must be processed in the next operation, and the processing priority of each workpiece is the same (2) Each process will not be interrupted by another process during processing

Dynamic Data Scheduling Solution of the Flexible Industrial Job Shop Based on the Chaotic Particle Swarm
Optimization Algorithm. Particle coding is the first problem to be solved in the dynamic data scheduling of a flexible industrial job shop. e particles are decoded to obtain the optimal scheduling scheme. For a 3 × 3 flexible industrial job shop dynamic data scheduling problem, each particle is composed of 3 × 3 bits. It is composed of 3 bits, and its particle code is set as follows: [1, 1, 1, 2, 2, 2, 3, 3, 3]. e processing sequence of each workpiece is shown in Figure 6.
As shown in Figure 6, according to the completion time objective of dynamic data scheduling optimization of the flexible industrial workshop, the particle fitness function of the chaotic particle swarm optimization algorithm is designed, and the corresponding fitness function is defined as follows: where E opt represents the fitness function coefficient, T i represents all operation times of the machine, and J m represents the completion time after decoding the m particle line. Particle swarm aggregation is very serious; in the process of multiple iterations, the optimal particle has no change or little change. e specific operations of chaotic operations are explained as follows. e fitness variance σ 2 of particle swarm is calculated as shown in the following formula: where F avg represents the average fitness value of the current particle swarm, F i represents the fitness value of the i particle, and F represents the total number of particle swarms. If σ 2 < 1, the particle swarm has serious aggregation and premature convergence. Some small particles are chaotic until the termination conditions are met, and the optimal solution is output to complete the dynamic data scheduling of a flexible industrial job shop based on digital twin technology.

Experimental Analysis
To verify the effect and feasibility of flexible industrial job shop dynamic data scheduling based on digital twin technology, experiments were carried out to compare our approach with the methods in references [9,10]. e dynamic data and parameters of the flexible industrial workshop refer to a large machinery production workshop in the old industrial base in Northeast China. C++ and OpenCV2.2 were used to build a simulation experiment environment. e experimental parameters were set as shown in Table 1.
In the large-scale machinery production workshop, there are a large number of production lines, a large scheduling   Note.C * * in Table 2 represents the Pareto optimal solution, which refers to the optimal resource scheduling result in an ideal state, and C * represents the optimal solution obtained after 50 iterations of each method. scale, and very strict requirements for product output. In this paper, 10 production lines are selected. On the premise that the number of workpieces and machines are different, the methods of this paper, references [9,10] are used to schedule and adjust the production lines. e results are shown in Table 2.
It can be seen from Table 2 that among the three methods, the resource allocation result of this method after scheduling is closest to the Pareto optimal solution, which proves that the method can reasonably schedule tasks according to the number of workpieces and machinery, keep the machine on all the time, avoid outages caused by unreasonable resource scheduling, and save production time.
Experiments were carried out to verify the balance of the multiproduction line coordinated scheduling of the three methods, to verify which algorithm can avoid uneven division of labor, partial idleness, and partial work. e evaluation indexes are the maximum completion time and production line load. e experimental results are shown in Figure 7. In Figure 7, the solid line represents the maximum completion time, and the dotted line represents the load of the production line.
As can be seen from Figure 7, the maximum completion time peak appears in the method of reference [9], and the production line load peak appears in the method of reference [10]. e maximum completion time and production line load curves of the two algorithms fluctuate greatly and are generally high. e maximum completion time and production line load curve of our method change gently. is shows that this method has a certain balance for the coordinated scheduling of multiple production lines, can ensure the balanced division of labor of the production line, and will not allow it to be partially idle and partially working.
Combining the two evaluation indexes of maximum completion time and production line load, the income standard of the algorithm can be further evaluated; that is,    Discrete Dynamics in Nature and Society the final income is obtained by the machining enterprise by ensuring the coordinated scheduling of the production line. e calculation formula is shown in the following formula: where C represents comprehensive income; B s � b 1 , b 2 , b 3 corresponds to the methods in this paper, reference [9], and reference [10], respectively; M represents the maximum completion time; and C represents the line load. We used formula (9) to calculate the comprehensive income of the three methods, and the results are shown in Figure 8.
It can be seen from Figure 8 that the comprehensive income of our method is the highest and most stable, while the other two methods have large fluctuations, which shows that the coordinated scheduling of multiple production lines by our method can maximize the production benefits of flexible industrial operations and result in ideal scheduling efficiency and scheduling ability.
To sum up, the dynamic data scheduling method of the flexible industrial job shop based on digital twin technology has good scheduling performance.

Conclusions and Prospects
e innovation of the flexible industrial job shop dynamic data scheduling method based on digital twin technology is that it selects digital twin technology to complete the flexible industrial job shop dynamic data scheduling with the goal of minimizing completion time and maximizing production line utilization. In the flexible industrial workshop, the dynamic data between multiple production lines has always been one of the research focuses. e following conclusions were obtained through the research: (1) Because of its great complexity, this paper introduces a cloud computing mode to reduce the calculation difficulty and solve the problem of coordinated scheduling among multiple production lines from the perspective of case-based reasoning.
(2) e research shows that the proposed method can complete the coordinated scheduling among multiple production lines in the least amount of time.
Due to the limited time and energy, the proposed method still has shortcomings. e follow-up research will focus on the following aspects: (1) In the actual layout process, each working area of the facility operation buffer area of the flexible industrial workshop can be of various shapes. In the later research process, the changeable operation problem needs to be considered and solved by relevant algorithms. (2) Subsequently, the conditional constraints of export location and production location can be added to the all-factor digital information fusion model of the flexible industrial workshop to comprehensively analyze the impact of different constraints on the optimization results. (3) Because the service life of different products is completely different and the types of products are becoming increasingly complex, the layout optimization of the facility job buffer in a flexible industrial job shop could be studied in the future.

Data Availability
e data for all figures used to support the findings of this study are included within the article.

Conflicts of Interest
e authors declare that they have no conflicts of interest.