Flow shop scheduling method based on scheduling rule combination
By building a scheduling model in the Flow shop production system and using simulation technology to generate or update scheduling strategies, the problem that traditional scheduling methods cannot efficiently generate strategies and respond to disturbances in real time is solved, and the robustness and efficiency of the production process are improved.
Patent Information
- Application Number
- CN202211156108.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-22
- Publication Date
- 2024-08-27
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The traditional flow shop scheduling method cannot generate scheduling strategies in real time and efficiently, and it is difficult to deal with disturbances in the production process, resulting in a decrease in production process efficiency.
A method based on a combination of scheduling rules is used to obtain real-time job data, build a scheduling model, and use simulation technology and multi-label classification algorithms to generate or update scheduling strategies to ensure the continuous and efficient operation of the production process.
It realizes the rapid generation of superior scheduling strategies in the flow shop production system, improves the robustness of the production process, enables effective rescheduling when disturbances occur, and reduces or avoids the negative impact of disturbances on the production process.
Smart Images

Figure CN115328067B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of industrial engineering and intelligent scheduling, and in particular relates to a Flow shop scheduling method based on a combination of scheduling rules. Background Art
[0002] In the context of the new generation of intelligent manufacturing, using intelligent means to solve problems encountered in the manufacturing production process has become one of the effective ways to optimize the production process of manufacturing enterprises and promote transformation and upgrading. Flow shop, as a common type of production workshop, plays an important role in the manufacturing industry. Big data technology, discrete event simulation technology and data mining technology provide technical support for the transformation and upgrading of production workshops such as Flow shop.
[0003] Scheduling is one of the core modules of the workshop production system. The generated scheduling strategy ensures the continuous and efficient operation of the production process. In the actual production process, on the one hand, it is necessary to quickly generate scheduling strategies with superior performance, and on the other hand, it is necessary to efficiently deal with disturbance problems. Therefore, the scheduling module needs to have the ability to quickly generate scheduling strategies and resist interference, which leads to the scheduling and rescheduling methods needing to consider the performance of the initial scheduling strategy, the time of rescheduling, ensuring the efficiency of the rescheduling model, and the performance of generating new scheduling strategies. Traditional optimization algorithms are difficult to meet the above requirements at the same time due to their poor migration capabilities and easy to fall into local optimality, resulting in the scheduling strategy solved may have a negative impact on the production process. Summary of the invention
[0004] In order to solve the problem that traditional scheduling methods cannot generate scheduling strategies and respond to disturbances in real time and efficiently during the Flow shop production scheduling process, and cannot ensure the continuous and efficient operation of the production process, the present invention provides a Flow shop scheduling method based on scheduling rule combination. The method generates a scheduling strategy at the initial moment. During its execution, when the scheduling process encounters a disturbance, the scheduling strategy is quickly updated by constructing a scheduling model to intelligently select the scheduling rule combination, thereby improving the robustness of the Flow shop production process.
[0005] The technical solutions adopted by the present invention to solve the above-mentioned technical problems are as follows:
[0006] A flow shop scheduling method based on a combination of scheduling rules comprises the following steps:
[0007] Step 1: Obtain real-time operation data of the Flow shop production system;
[0008] Step 2: Determine whether the Flow shop production system performs initial scheduling or rescheduling. If the initial scheduling is performed, the real-time operation data is processed to obtain the initial scheduling data set; if the rescheduling is performed, the real-time operation data is first processed with initial data, and then the data after the initial data processing is completed is processed with operation data to finally obtain the rescheduling data set;
[0009] Step 3: Determine whether there is a scheduling model. If so, input the initial scheduling data set or the rescheduling data set into the scheduling model. The scheduling model outputs the corresponding scheduling rule combination code, and then execute step 5; if not, execute step 4;
[0010] Step 4: Call historical job data, build a scheduling model based on the historical job data, and then return to step 3;
[0011] Step 5: Decode the dispatch rule combination code to obtain multiple dispatch rule combinations;
[0012] Step 6: Use simulation technology to select the optimal scheduling rule combination, and generate or update the scheduling strategy based on the optimal scheduling rule combination.
[0013] The beneficial effects of the Flow shop scheduling method based on scheduling rule combination proposed in the present invention are:
[0014] The Flow shop scheduling method of the present invention uses different data processing methods to process real-time operation data according to the characteristics of initial scheduling and rescheduling, and fixes it into a unified structure to ensure data regularity; the constructed scheduling model outputs a code that can represent the scheduling rule combination according to the processed operation data, ensuring the real-time assignment of the scheduling rule combination; the code output by the scheduling model is converted into the represented scheduling rule combination after decoding, and the optimal scheduling rule combination is selected by simulation technology, and the scheduling rule strategy is generated or updated by the optimal scheduling rule combination, ensuring the continuous and efficient operation of the production process. The present invention integrates simulation technology, machine learning algorithms, and scheduling rules, and can not only generate scheduling strategies for the Flow shop production system efficiently and in real time, but also reschedule the Flow shop system when encountering disturbances, reducing or avoiding the negative impact of disturbance factors on the production process. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 It is a flow chart of the Flow shop scheduling method based on scheduling rule combination of the present invention;
[0016] Figure 2 A flowchart for processing real-time job data during initial scheduling;
[0017] Figure 3 Build a flow chart for the scheduling model;
[0018] Figure 4 In the embodiment of the present invention, i 'Diagram showing the relationship between value and Accuracy of the scheduling model. DETAILED DESCRIPTION
[0019] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0020] In one embodiment, if Figure 1 As shown, the present invention provides a Flowshop scheduling method based on a scheduling rule combination, which mainly includes processing of job data, construction of a scheduling model and application of the scheduling model. The Flowshop scheduling method based on a scheduling rule combination of this embodiment includes the following steps:
[0021] Step 1: Obtain the real-time operation data of the Flow Shop production system. The operation data is the process flow of each operation in the Flow Shop production system and the processing time of each operation in each process. When the production process needs to be scheduled or rescheduled, the operation data of the Flow Shop production system is called real-time operation data.
[0022] Step 2: Determine whether the Flow shop production system performs initial scheduling or rescheduling. If the initial scheduling is performed, the real-time operation data is processed to obtain the initial scheduling data set; if the rescheduling is performed, the real-time operation data is first processed with initial data, and then the data after the initial data processing is completed is processed with operation data to finally obtain the rescheduling data set;
[0023] Step 3: Determine whether a scheduling model exists. If so, input the initial scheduling data set or the rescheduling data set into the scheduling model. The scheduling model outputs the corresponding scheduling rule combination code, and then executes step 5. If not, execute step 4. The difference between the two scheduling models in implementing the two scheduling methods is that the real-time job data is processed differently. The initial scheduling processes the real-time job data in the same way as the job data when the scheduling model is constructed.
[0024] Step 4: Call historical job data, build a scheduling model based on the historical job data, and then return to step 3;
[0025] Step 5, decoding the dispatch rule combination code to obtain multiple dispatch rule combinations; decoding the dispatch rule combination code is to convert the numerical value output by the dispatch model into an interpretable dispatch rule combination by using an ordinal decoding method;
[0026] Step 6: Use simulation technology to select the optimal scheduling rule combination, and generate or update the scheduling strategy based on the optimal scheduling rule combination. The optimization of the scheduling rule combination is to use simulation technology to select the optimal scheduling rule combination from all scheduling rule combinations recommended based on the scheduling model, and then generate or update the scheduling strategy and directly apply it to the scheduling process of the production system.
[0027] Further, in step 2, the operation data processing mainly includes two parts: matching the operation data with the scheduling rule combination and transforming the data structure after matching. When the operation data is processed for the real-time operation data, the following steps are included: Figure 2 As shown:
[0028] Real-time job data includes the process flow of each job in the Flow Shop production system and the processing time of each job in each process. The process flow and the corresponding processing time are combined to define attribute data. The data structure of attribute data is n i ×m, where n i is the number of jobs contained in the ith Flow shop production system, which varies with the number of jobs in the production system; m is the number of processes in the Flow shop process, which is a fixed value;
[0029] After selecting multiple scheduling rules from a pre-defined scheduling rule library and combining them, a scheduling rule combination is obtained, and the number of scheduling rules in the scheduling rule combination is the same as the number of processes in the Flow Shop process flow, which is m, and the scheduling rule combination is defined as label data;
[0030] Taking the maximum completion time (also called optimal makespan) of the Flow shop production system as the matching target, data matching is performed, that is, the attribute data and the label data are matched one-to-one or one-to-many to obtain the matched data; the matching technology is discrete event simulation technology, in which the corresponding relationship between the attribute data and the label data is one-to-one or one-to-many, and one job data can correspond to one or more scheduling rule combinations, so the data structure of the label data is 1×l i , where l i Indicates the number of dispatch rule combinations matched by the i-th attribute data;
[0031] The attribute data in the matched data are sequentially transformed in data structure and dimension to obtain a new attribute data set, and the label data in the matched data are transformed in data structure and encoded to obtain a new label data set;
[0032] The new attribute dataset and the new label dataset are merged to form the initial scheduling dataset.
[0033] Furthermore, the process of sequentially transforming the data structure and changing the dimensions of the attribute data in the matched data in the above steps is as follows:
[0034] The data structure transformation process of attribute data includes: finding n i The maximum value n max , transform the data structure of all attribute data into n max ×m, the transformation method is shown in formula (1):
[0035]
[0036] in, Represents the data after the structure transformation of the i-th attribute data. represents the i-th attribute data, Indicates the n set during the transformation of the i-th attribute data structure i dimensional identity matrix, Indicates the (n max -n i )×n i Dimension 0 matrix;
[0037] The dimension change process includes: the attribute data contains n max ×m elements, each attribute data after the data structure transformation is flattened to achieve the dimension change of the attribute data. The dimension of the changed data is 1×(n max *m), the structure of the new attribute data set finally obtained is k×(n max *m), where k represents the number of attribute data in the new attribute data set. All attribute data in the matched data undergo the above data structure transformation and dimension change processing to form a new attribute data set.
[0038] Furthermore, the process of data structure transformation and encoding of the label data in the matched data in the above steps is as follows:
[0039] The data structure transformation process of the label data includes: setting a label data structure processing target 1×l i ',l i' is a pre-set hyperparameter, and its default value can be set as needed. i 'Less than l i , then the data structure transformation method of the label data is as shown in formula (2):
[0040]
[0041] in, Represents the data after the structure transformation of the i-th label data. Represents the i-th label data, Indicates the l set during the transformation of the i-th tag data structure i dimensional identity matrix, Indicates the (l i '-l i )×l i Dimension 0 matrix;
[0042] If l i 'Greater than l i , then the data structure transformation method of the label data is as shown in formula (3):
[0043]
[0044] in, The i-th label data is randomly selected from Select l i '-l i elements; after the label data is structurally processed through the above process, the structure of the new label data set is k×l';
[0045] The encoding process includes: encoding the label data is to digitize each scheduling rule combination. First, the scheduling rule combination is arranged according to the process flow, and the scheduling rule combination is converted into a corresponding string type of data, so each label data has multiple string data; then ordinal encoding is used to encode all string data, thereby completing the encoding of the label data after the data structure transformation. All label data in the matched data are transformed and encoded as above to form a new label data set.
[0046] The new attribute dataset and the new label dataset are combined to form the initial scheduling dataset. The structure of the initial scheduling dataset is k×(m max +l').
[0047] When the production process needs to be rescheduled, the real-time operation data needs to undergo initial data processing first. After the initial data processing is completed, the data is converted into data that can be input into the scheduling model after operation data processing. The initial data processing process includes:
[0048] The job attribute data values of the real-time job data at the time of rescheduling are changed in the following way: if the machines in the process flow do not have any processing tasks at the time of rescheduling, the job attribute data values of the completed job data are changed to 0; if some machines in the process flow have processing tasks at the time of rescheduling, on the one hand, the job attribute data values of all completed job data are changed to 0. The reason for changing to 0 is that the processing time of the completed job will become 0. On the other hand, for the task being processed, the job attribute data values of the job data are changed to the remaining processing time of the machine's current processing task, and the processing priority of the job being processed is set to the highest. The reason for using the remaining time is to retain the task being processed, and the reason for setting the processing priority of the job being processed to the highest is to ensure that the processing is not interrupted.
[0049] The process of performing job data processing on the data after the initial data processing is completed is the same as the process of performing job data processing on the real-time job data in step 2, the only difference being that the processing object data is different. In step 2, the job data processing is performed on the acquired real-time job data to obtain the initial scheduling data set, while during rescheduling, the job data processing is performed on the data after the initial data processing is completed to obtain the rescheduling data set. Since the job data processing process used is the same and has been described in detail in the aforementioned embodiment, it will not be repeated here.
[0050] Furthermore, if Figure 3 As shown, the process of building a scheduling model based on historical job data in step 4 specifically includes the following steps:
[0051] Replace the real-time job data in the initial scheduling in step 2 with historical job data, process the historical job data, and finally obtain the historical data set. The specific process of job data processing can be found in Figure 2 The process of processing the real-time operation data is shown in FIG. 1 , so it will not be repeated here.
[0052] A multi-label multi-classification algorithm is used to mine scheduling knowledge from historical data sets, and a model is constructed that inputs a set of processed job data and outputs multiple codes representing the combination of scheduling rules; preferably, the base classification algorithm of the multi-label classification algorithm is a decision tree algorithm;
[0053] The constructed model is trained using historical data sets to determine the optimal parameters of the model, and the model with the optimal parameters is used as the scheduling model.
[0054] When using the historical data set to train the constructed model, the historical data set is first divided into a training set and a test set. For example, the historical data set is divided into a training set and a test set in a ratio of 8:2. Then the constructed model is trained with the training set. The evaluation index when training the model is that if one of the labels predicted by the model belongs to the true label, the prediction is considered correct. The loss function of the model is composed of equations (4) and (5):
[0055]
[0056]
[0057] Among them, y_pred is Represents the sth predicted label among multiple predicted labels output for the i-th attribute data, y i Indicates that the i-th attribute data corresponds to the true label, I indicates the number of predicted attribute data, the greater the accuracy, the better the model effect.
[0058] Scheduling rules have the characteristics of many types and few parameters, and can quickly generate scheduling strategies, meet various scheduling goals and deal with various scheduling problems; simulation technology can express the performance of all alternative scheduling solutions in a relatively short time, and can achieve high-quality matching of job data and scheduling rules, providing a data basis for building scheduling models; data mining technology can directly mine scheduling knowledge from data, and then build a model with strong migration ability, strong adaptability, and fast scheduling problem solving. The present invention integrates scheduling rules, simulation technology, and data mining technology to solve the scheduling and rescheduling problems in Flow shop in real time and efficiently.
[0059] The present invention integrates the advantages of simulation technology, multi-label classification algorithm and scheduling rules, and can generate or update scheduling strategies in real time and quickly, realize the scheduling and rescheduling of production systems, and avoid the adverse effects of disturbance factors on the production process. It is mainly manifested in: when processing job data, the structure of the data during rescheduling is kept consistent with the initial data results, ensuring the reusability of the constructed scheduling model in the scheduling and rescheduling process; the scheduling model can recommend multiple scheduling rule combinations, and select the optimal scheduling rule combination from these multiple scheduling rule combinations, thereby improving the performance of the model.
[0060] The scheduling method of the present invention is described in detail below by taking the Flow shop 4-machine scheduling problem as an example.
[0061] In the Flow Shop 4-machine scheduling problem, one process corresponds to one machine, and the structure of the job data set is n i ×4,n max=20, here are two sets of job data examples as shown in Table 1, the processing time and process flow required to complete the job of a Flow shop production system, the structure of job data 1 is 18×4, and the structure of job data 2 is 11×4, that is, n1=18, n2=11.
[0062] Table 1 Example of job data
[0063]
[0064] The scheduling rule base set in this embodiment is shown in Table 2. Figure 2 Data matching is to use simulation technology to match the maximum completion time (makespan) as the matching target, select a scheduling rule from the scheduling rule library and assign it to the machine responsible for the process. In this example, 4 machines are assigned 4 scheduling rules, and the number of simulations is 6. 4 = 1296 times, and the four scheduling rules corresponding to the maximum completion time are the scheduling rule combinations finally matched. The scheduling rules and scheduling rule combinations corresponding to the example job data in Table 1 are shown in columns 2-6 of Table 3. There are 18 scheduling rule combinations in job data 1 that reach the optimal value of makespan, and there are 6 scheduling rule combinations in job data 2 that reach the optimal value of makespan.
[0065] Table 2 Scheduling rule base
[0066]
[0067]
[0068] Table 3 Scheduling rule combinations matching sample data
[0069]
[0070] The job data set obtained after matching is the attribute data set, and the combination set of scheduling rules corresponding to the job data set is the label data set.
[0071] In this embodiment, the attribute data set n max =20, all the attribute data are structurally changed as in formula (1), and the corresponding two groups of attribute data in Table 1 after structural change are shown in Table 4. After structural change, the structure of each group of attribute data is 20×4.
[0072] Table 4 Example of attribute data structure transformation data
[0073]
[0074]
[0075] Figure 2The mid-dimensional change adopts a flattening operation on all attribute data, and finally obtains a k×80 data set. Since there are 6000 historical scheduling data in this embodiment, the structure of the new attribute data set obtained after data processing is 6000×80, as shown in Table 5, where Pi_j represents the time required for job i to be processed on machine j.
[0076] Table 5 New attribute dataset
[0077]
[0078] Figure 2 The structural transformation of the label data is to transform the structure of the label data into 1×l through equations (2) and (3). i ', where l i 'As a hyperparameter, it affects the performance of the scheduling model finally constructed. During the model training process, this embodiment sets l i 'The default value is 10.
[0079] After the tag data structure is changed, it is encoded using ordinal encoding. All string-formatted scheduling rule combinations are converted into integer values between [0, n-1], where n represents the number of types of scheduling rules. The scheduling rule combination encoding corresponding to the attribute data composed of job data 1 and job data 2 is shown in the seventh column of Table 3.
[0080] After structural transformation and data encoding, the label data is transformed into new label data. The new attribute data set and the new label data set are combined into Figure 2 The historical dataset shown in .
[0081] The historical data set is divided into a training set and a test set at a ratio of 8:2.
[0082] The evaluation index for training the scheduling model is that if one of the predicted values of the scheduling model is the same as the true value, the prediction is considered correct. The loss function is shown in Equation (4) and Equation (5).
[0083] A multi-label classification algorithm is used to mine scheduling knowledge from the training set and then build a scheduling model. The base classification algorithm of the multi-label classification algorithm used in this embodiment is the decision tree algorithm. In order to obtain the default l i 'The optimal scheduling model is obtained. After 5 rounds of cross validation, the optimal parameters of the decision tree algorithm are determined as shown in Table 6, and the Accuracy is 65.05%.
[0084] Table 6 Decision tree algorithm parameter settings
[0085] parameter criterion splitter max_depth min_samples_split class_weight Parameter Value gini random 26 5 balanced
[0086] Because li ' is a hyperparameter added by the present invention when training the scheduling model, which determines the number of scheduling rule combinations finally output by the scheduling model. The effect of this parameter on the model in this embodiment is as follows Figure 4 As shown, i The value is basically positively correlated with the Accuracy of the scheduling model.
[0087] The scheduling model constructed in the embodiment of the present invention adopts l i 'The default value of the setting is 10.
[0088] Taking operation data 2 as an example, suppose that due to human error in machine operation, the time used in process 1 when processing operation 6 changes from 62.18 to 72.18, and unpredictable disturbance factors occur in the production process. The initial scheduling plan needs to be rescheduled at 205.35.
[0089] The processing method of rescheduling job data is as follows: at the time of rescheduling, some machines in the process flow have processing tasks. On the one hand, the values of all completed job data are changed to 0; on the other hand, for the tasks being processed, the values of the job data are changed to the remaining time of the machine's current processing task, and the processing priority of the job being processed is set to the highest. The data obtained after processing job data 2 are shown in Table 7, and the bold ones are the initially processed data.
[0090] Table 7 Example of data after initial processing of job data 2 during rescheduling
[0091]
[0092]
[0093] After the data is processed, it is input into the trained scheduling model, and multiple encoded scheduling rule combinations are output. The ordinal decoding method is used to obtain multiple scheduling rule combinations, and then the optimal scheduling rule combination is selected through simulation technology, so as to update the scheduling strategy according to the optimal scheduling rule combination.
[0094] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0095] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A flow shop scheduling method based on a combination of scheduling rules, characterized in that: The following steps are involved: Step 1: Obtain real-time operation data of the Flow shop production system; Step 2: Determine whether the Flow shop production system performs initial scheduling or rescheduling. If the initial scheduling is performed, the real-time operation data is processed to obtain an initial scheduling data set. If rescheduling is performed, the real-time job data is firstly processed with initial data, and then the data after the initial data processing is completed is processed with job data, and finally the rescheduling data set is obtained; Step 3: Determine whether there is a scheduling model. If so, input the initial scheduling data set or the rescheduling data set into the scheduling model. The scheduling model outputs the corresponding scheduling rule combination code, and then execute step 5; if not, execute step 4; Step 4: Call historical job data, build a scheduling model based on the historical job data, and then return to step 3; Step 5: Decode the dispatch rule combination code to obtain multiple dispatch rule combinations; Step 6: Use simulation technology to select the optimal scheduling rule combination, and generate or update the scheduling strategy based on the optimal scheduling rule combination.
2. The flow shop scheduling method based on scheduling rule combination according to claim 1 is characterized in that: When processing real-time operation data, the following steps are included: Real-time job data includes the process flow of each job in the Flow Shop production system and the processing time of each job in each process. The process flow and the corresponding processing time are combined to define attribute data. The data structure of attribute data is n i ×m, where n i is the number of jobs included in the ith Flow shop production system, and m is the number of processes in the Flow shop process; After selecting multiple dispatching rules from a pre-defined dispatching rule library and combining them, a dispatching rule combination is obtained, and the number of dispatching rules in the dispatching rule combination is m, and the dispatching rule combination is defined as label data; Taking the maximum completion time of the Flow shop production system as the matching target, the attribute data and the label data are matched one-to-one or one-to-many to obtain the matched data; The attribute data in the matched data are sequentially transformed in data structure and dimension to obtain a new attribute data set, and the label data in the matched data are transformed in data structure and encoded to obtain a new label data set; The new attribute dataset and the new label dataset are merged to form the initial scheduling dataset.
3. The flow shop scheduling method based on scheduling rule combination according to claim 2 is characterized in that: The process of sequentially transforming the data structure and changing the dimensions of the attribute data in the matched data is as follows: In the matched data containing multiple attribute data, find n i The maximum value n max , transform the data structure of all attribute data into n max ×m, the transformation method is shown in formula (1): in, Represents the data after the structure transformation of the i-th attribute data. represents the i-th attribute data, Indicates the n set during the transformation of the i-th attribute data structure i dimensional identity matrix, Indicates the (n max -n i )×n i Dimension 0 matrix; Each attribute data after the data structure transformation is flattened to achieve the dimension change of the attribute data. The dimension of the changed data is 1×(n max *m), the structure of the new attribute data set finally obtained is k×(n max *m), where k represents the number of attribute data in the new attribute data set.
4. The flow shop scheduling method based on scheduling rule combination according to claim 2 is characterized in that: The process of data structure transformation and encoding of the label data in the matched data is as follows: Set a label data structure processing target 1×l i ',l i ' is a pre-set hyperparameter. If l i 'Less than l i , then the data structure transformation method of the label data is as shown in formula (2): in, Represents the data after the structure transformation of the i-th label data. Represents the i-th label data, Indicates the l set during the transformation of the i-th tag data structure i dimensional identity matrix, Indicates the (l i '-l i )×l i Dimension 0 matrix; If l i 'Greater than l i , then the data structure transformation method of the label data is as shown in formula (3): in, The i-th label data is randomly selected from Select l i '-l i A row vector consisting of elements; The scheduling rule combination arranged according to the process flow is converted into corresponding string type data. Each label data contains multiple string data. Then, all the string data are encoded using ordinal encoding to complete the encoding of the label data after the data structure is transformed.
5. The flow shop scheduling method based on scheduling rule combination according to claim 2 is characterized in that: The initial data processing of real-time operation data includes the following steps: The job attribute data values of the real-time job data at the time of rescheduling are changed in the following way: if the machines in the process flow have no processing tasks at the time of rescheduling, the job attribute data values of the completed job data are changed to 0; if some machines in the process flow have processing tasks at the time of rescheduling, on the one hand, the job attribute data values of all completed job data are changed to 0, and on the other hand, for the task being processed, the job attribute data values of the job data are changed to the remaining processing time of the machine's current processing task, and the processing priority of the job being processed is set to the highest.
6. The Flow shop scheduling method based on scheduling rule combination according to claim 2 is characterized in that: The process of building a scheduling model based on historical job data includes the following steps: Replace the real-time job data at the time of initial scheduling in step 2 with historical job data, perform job data processing on the historical job data, and finally obtain a historical data set; Using a multi-label and multi-classification algorithm to mine scheduling knowledge from historical data sets, a model is constructed that inputs a set of processed job data and outputs multiple codes representing the combination of scheduling rules; The constructed model is trained using historical data sets to determine the optimal parameters, and the model with the optimal parameters is used as the scheduling model.
7. The Flow shop scheduling method based on scheduling rule combination according to claim 6 is characterized in that: The historical data set is divided into a training set and a test set. The constructed model is trained with the training set. The evaluation indicator when training the model is that if one of the labels predicted by the model is the same as the true label, the prediction is considered correct. Then the test set is used to evaluate the accuracy of the trained model. After 5 rounds of cross-validation, the optimal parameters of the model are determined.
8. The flow shop scheduling method based on scheduling rule combination according to claim 6, characterized in that: The base classification algorithm of the multi-label classification algorithm is the decision tree algorithm.
9. The flow shop scheduling method based on scheduling rule combination according to claim 6, characterized in that: The historical data set is divided into a training set and a test set in a ratio of 8:2.
