A knowledge-driven production scheduling optimization system for smart factory
By identifying and clustering mutually exclusive scheduling rules in the production scheduling knowledge base of the flexible workshop in a smart factory, constructing a mutual exclusive rule index library, and optimizing the selection of scheduling rules by using attenuation correction sub-schedule values, the problem of scheduling rule conflicts in smart factories is solved, and the continuity and stability of production scheduling are improved.
Patent Information
- Application Number
- CN202611386824.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-08
- Publication Date
- 2026-11-20
AI Technical Summary
In the production scheduling of flexible workshops in smart factories, existing technologies are unable to effectively resolve equipment allocation conflicts and process order contradictions caused by multiple mutually exclusive scheduling rules under the same working conditions. This leads to a disconnect between scheduling decisions and actual working conditions, affecting the continuity and stability of production scheduling.
By identifying scheduling rules with mutually exclusive scheduling logic and overlapping dynamic triggering conditions in the production scheduling knowledge base of the flexible workshop in the smart factory, a narrow-domain mutually exclusive rule cluster is formed, a mutually exclusive rule index library is constructed, and a set of competitive touch matching working conditions is filtered out through the competitive touch matching module. The attenuation sub-tuning calibration module generates attenuation correction sub-tuning values to optimize the selection of scheduling rules and avoid frequent switching and oscillation of scheduling decisions.
It effectively resolves conflicts triggered by mutual exclusion rules simultaneously, improves the continuity and stability of knowledge-driven production scheduling decisions in flexible workshops, and avoids problems such as frequent changes in scheduling execution actions and unstable equipment operating status.
Smart Images

Figure CN123140355A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of intelligent scheduling and optimization technology, specifically a knowledge-driven production scheduling and optimization system for smart factories. Background Technology
[0002] In the production scheduling scenario of flexible workshops in smart factories, knowledge-based scheduling rule-driven scheduling is a core technical means to ensure production flexibility and intelligent scheduling. The flexible workshop production scheduling knowledge base contains a large number of scheduling rules adapted to different production conditions. This leads to multiple mutually exclusive scheduling rules being triggered simultaneously under the same scheduling condition, causing scheduling conflicts such as equipment allocation conflicts and contradictions in the processing order of processes. Existing technologies often use methods such as reinforcement learning to select and optimize scheduling rules, but it is difficult to effectively resolve conflicts of logically mutually exclusive rules under dynamic conditions.
[0003] In existing technologies, the problem of conflicting scheduling rules in flexible workshops is typically addressed by pre-setting rule priorities or independently triggering scheduling rules. This involves pre-setting a fixed priority for each scheduling rule, and when multiple rules are triggered simultaneously, execution is based on priority. However, this method has two shortcomings: First, fixed priorities do not consider the triggering frequency and effective adoption of scheduling rules in actual production conditions. The adaptability of the same rule varies under different conditions, and relying solely on pre-set priorities can easily lead to rule adaptation bias, causing scheduling decisions to become disconnected from actual conditions. Second, existing methods lack consideration for the stability of scheduling decisions when selecting rules. When workshop conditions fluctuate frequently, scheduling rules can easily switch repeatedly between different mutually exclusive rules, even exhibiting oscillating patterns where the first and last scheduling rules are the same while the middle rules are different. This leads to frequent changes in scheduling actions and unstable equipment operation, affecting the continuity and stability of flexible workshop scheduling decisions and ultimately reducing the overall efficiency of production scheduling.
[0004] Therefore, this invention provides a knowledge-driven production scheduling optimization system for smart factories. Summary of the Invention
[0005] In order to overcome the shortcomings of the prior art, at least one technical problem raised in the background art is solved.
[0006] The technical solution adopted by this invention to solve its technical problem is: a knowledge-driven production scheduling optimization system for smart factories, comprising the following modules:
[0007] Mutual Exclusion Rule Clustering Module: Extracts mutually exclusive scheduling rules for flexible production scheduling logic from the production scheduling knowledge base of the smart factory's flexible workshop, groups and categorizes scheduling rules with overlapping dynamic triggering conditions, filters out narrow-domain mutual exclusion rule clusters, and integrates them to obtain a mutual exclusion rule index library.
[0008] Competition and Trigger Condition Matching Module: Extracts the dynamic trigger conditions of all scheduling rules within the narrow-domain mutual exclusion rule cluster, constructs a dynamic parameter trigger vector, performs dynamic trigger condition matching in historical scheduling records, and filters out the competition and trigger matching condition set;
[0009] Attenuation and modulation calibration module: Based on the competitive matching working condition set, the rule adaptation index is determined according to the adaptation frequency and effective adoption trigger ratio of each scheduling rule in the narrow domain mutual exclusion rule cluster. At the same time, based on the time-series execution rule sequence analysis, the switching fluctuation frequency and oscillation number are decided to generate oscillation suppression calibration value. Combining the oscillation participation breadth and oscillation dominance ratio, an oscillation sensitive attenuation coefficient is constructed. Using the oscillation sensitive attenuation coefficient as the exponent, a negative exponential attenuation function is constructed to correct the rule adaptation index to obtain the attenuation correction modulation value.
[0010] Rule-based scheduling optimization module: Extracts real-time parameter trigger vectors, performs dynamic trigger condition retrieval in the mutual exclusion rule index library, and if a narrow-domain mutual exclusion rule cluster is found, allocates scheduling rules according to the attenuation correction scheduling value.
[0011] As a further aspect of the present invention: the method for grouping and classifying scheduling rules with overlapping dynamic triggering conditions is as follows:
[0012] Obtain all scheduling rules in the production scheduling knowledge base of the smart factory flexible workshop, identify the mutual exclusion of scheduling logic for each pair of scheduling rules, compare the scheduling execution instruction information of two scheduling rules, and identify the combination of scheduling rules with mutually exclusive scheduling logic.
[0013] Extract all common operating condition parameter intervals of the two scheduling rules within the scheduling rule combination. Take the minimum upper limit of the same operating condition parameter interval as the upper limit of the intersection interval, and take the maximum lower limit of the same operating condition parameter interval as the lower limit of the intersection interval. Calculate the intersection interval of the two scheduling rules under the same operating condition parameter interval. When all operating condition parameter intervals have an intersection interval, mark the scheduling rule combination as a trigger intersection rule pair.
[0014] As a further aspect of the present invention, the method for filtering out narrow-domain mutual exclusion rule clusters is as follows:
[0015] The overlap degree of the intersection intervals of the triggering intersection rule pairs is calculated. The overlap degree of the intersection intervals of the two sets of triggering intersection rule pairs under different working condition parameter dimensions is averaged to obtain the interval multidimensional similarity. The two similar sets of triggering intersection rule pairs are merged to obtain a narrow domain mutual exclusion rule cluster.
[0016] As a further aspect of the present invention: the interval overlap degree is calculated as follows:
[0017] For the same working condition parameter dimension, obtain the intersection interval of two sets of triggering intersection rule pairs, and calculate the intersection length between the two sets of intersection intervals;
[0018] Calculate the ratio of the intersection length between the two sets of intersection intervals to the length of each set of intersection intervals to obtain the overlap degree of the first interval and the overlap degree of the second interval. Take the minimum value of the two as the overlap degree of the intersection interval.
[0019] As a further aspect of the present invention: the process of obtaining the competitive matching condition set is as follows:
[0020] Extract the dynamic triggering conditions of each scheduling rule within the narrow-domain mutual exclusion rule cluster, and construct a dynamic parameter trigger vector;
[0021] Extract the historical parameter record vector, compare the dynamic parameter trigger vector with the historical parameter record vector, and when the historical parameter record vector meets the dynamic parameter trigger vector matching requirements in all working condition parameter dimensions, mark the corresponding historical scheduling record as a single rule trigger working condition.
[0022] If a single rule trigger condition can simultaneously match the dynamic triggering conditions of multiple scheduling rules within a narrow-domain mutually exclusive rule cluster, it is denoted as a competitive trigger matching condition. All competitive trigger matching conditions are summarized to obtain a competitive trigger matching condition set.
[0023] As a further aspect of the present invention: the method for obtaining the rule adaptation index is as follows:
[0024] Extract the scheduling rules actually executed in each scheduling session. For each scheduling rule within the narrow-domain mutual exclusion rule cluster, count the total number of times it appears as a matching scheduling rule in the competitive matching scenario set and record it as the adaptation frequency.
[0025] The effective adoption trigger ratio is obtained by counting the number of times a matching scheduling rule appears in the competitive matching scenario set and is adopted and executed in actual scheduling. The ratio of the number of adoption executions to the adaptation frequency is used to obtain the effective adoption trigger ratio.
[0026] The effective adoption trigger ratio is calculated by exponentially raising it to a preset exponent and then multiplying it with the adaptation frequency to obtain the rule adaptation index.
[0027] As a further aspect of the present invention: the oscillation suppression calibration value is obtained as follows:
[0028] Arrange the scheduling rules actually executed in each scheduling session in chronological order to form a sequence of execution rules.
[0029] The decision switching fluctuation frequency is calculated by counting the number of times the actual scheduling rules executed in two adjacent scheduling operations are different in the statistical time-series execution rule sequence and the total number of comparisons.
[0030] The number of times that any three consecutive scheduling operations in the statistical time sequence satisfy the same scheduling rules at the beginning and end and different scheduling rules in the middle is recorded as the number of oscillations.
[0031] The oscillation suppression calibration value is obtained by normalizing the decision switching fluctuation frequency and the number of oscillations and taking the mean.
[0032] As a further aspect of the present invention: the attenuation correction sub-tone value is obtained as follows:
[0033] The total number of times the scheduling rule appears in all oscillation modes is counted, and the oscillation participation breadth of the scheduling rule is calculated by combining the number of oscillations.
[0034] The number of times the scheduling rule appears as an intermediate scheduling rule in all oscillation modes is statistically analyzed, and the oscillation dominance ratio of the scheduling rule is calculated.
[0035] The oscillation sensitivity attenuation coefficient of the scheduling rule is obtained by multiplying the oscillation participation breadth, oscillation dominance ratio and oscillation suppression calibration value.
[0036] The corrected rule adaptation index is obtained by multiplying the rule adaptation index with the negative exponential decay function value of the oscillation sensitivity decay coefficient, and is denoted as the decay correction sub-tone value.
[0037] As a further aspect of the present invention, the method for allocating scheduling rules is as follows:
[0038] Extract the real-time parameter trigger vector from the real-time running data;
[0039] The real-time parameter trigger vector is compared with the dynamic parameter trigger vector of the narrow-domain mutual exclusion rule cluster. If the dynamic trigger condition of at least two scheduling rules in the narrow-domain mutual exclusion rule cluster is met, it is determined that the narrow-domain mutual exclusion rule cluster has been retrieved.
[0040] Extract the decay correction sub-distribution values of scheduling rules within the narrow-domain mutual exclusion rule cluster, sort them from high to low, and determine the scheduling rule with the highest decay correction sub-distribution value as the execution scheduling rule.
[0041] As a further aspect of the present invention: when there are multiple scheduling rules with the highest concurrent attenuation correction values, the scheduling rules are allocated as follows:
[0042] The scheduling rule with the highest effective adoption trigger ratio is selected as the execution scheduling rule. When the effective adoption trigger ratios are also the same, the scheduling rule with the highest adaptation frequency is selected as the execution scheduling rule.
[0043] Execute scheduling actions according to the selected scheduling rules to complete knowledge scheduling optimization.
[0044] The beneficial effects of this invention are as follows: This invention identifies scheduling rules with mutually exclusive scheduling logic and overlapping dynamic triggering conditions from the production scheduling knowledge base of a smart factory flexible workshop. These rules are clustered into narrow-domain mutually exclusive rule clusters, and a mutually exclusive rule index library is constructed, providing conflict resolution boundaries for subsequent scheduling rule allocation. Actual working condition samples where mutually exclusive rules are triggered simultaneously are located in historical scheduling records. Rule adaptation indices are determined by analyzing the adaptation frequency and effective adoption trigger ratio of scheduling rules in the competitive matching working condition set, and then multiplying them by exponential operations. Simultaneously, oscillation suppression calibration values and oscillation sensitivity attenuation coefficients are introduced to correct the rule adaptation indices, resulting in attenuation correction sub-discretion values. This allows scheduling rule selection to simultaneously consider the degree of adaptation to actual working conditions and the stability of scheduling decisions. The current scheduling working condition is perceived in real time, and the optimal scheduling rule is dynamically selected based on the attenuation correction sub-discretion values, effectively resolving conflicts caused by simultaneous triggering of mutually exclusive rules, avoiding frequent switching and oscillations in scheduling decisions, and improving the continuity and stability of knowledge-driven production scheduling decisions in flexible workshops. Attached Figure Description
[0045] The invention will now be further described with reference to the accompanying drawings.
[0046] Figure 1 This is a flowchart of a knowledge-driven production scheduling optimization system for smart factories, as described in an embodiment of the present invention.
[0047] Figure 2 This is a logic judgment diagram of a knowledge-driven production scheduling optimization system for smart factories as described in an embodiment of the present invention;
[0048] Figure 3 This is a rule-based scheduling diagram of a knowledge-driven production scheduling optimization system for smart factories, as described in an embodiment of the present invention.
[0049] Figure 4 This is a negative exponential decay curve diagram of a knowledge-driven production scheduling optimization system for smart factories as described in an embodiment of the present invention. Detailed Implementation
[0050] To make the technical means, creative features, objectives and effects of this invention easier to understand, the invention will be further described below in conjunction with specific embodiments.
[0051] Example: Please refer to Figure 1-4 As shown in the embodiment of the present invention, a knowledge-driven production scheduling optimization system for smart factories includes the following modules:
[0052] Mutual Exclusion Rule Clustering Module: Extracts mutually exclusive scheduling rules for flexible production scheduling logic from the production scheduling knowledge base of the smart factory's flexible workshop, groups and categorizes scheduling rules with overlapping dynamic triggering conditions, filters out narrow-domain mutual exclusion rule clusters, and integrates them to obtain a mutual exclusion rule index library.
[0053] Specifically, the intelligent factory flexible workshop production scheduling knowledge base refers to a specialized knowledge database that stores various production scenarios, scheduling constraints, rule triggering logic, and production equipment operating parameters of the flexible workshop. The database includes all standardized scheduling rules adapted to flexible production conditions. The scheduling rules include complete pre-set dynamic triggering conditions, scenario adaptation range, scheduling execution logic, and production constraint requirements. Flexible production scheduling logic mutually exclusive scheduling rules refer to scheduling rules that cannot be effective simultaneously under the same production scheduling condition, have conflicting scheduling execution logic, and mutually restrictive scheduling output results. Dynamic triggering conditions refer to rule pre-set triggering constraints that change in real time with the workshop production conditions, equipment operating status, and production task parameters.
[0054] In the mutual exclusion rule clustering module, the process of determining a narrow-domain mutual exclusion rule cluster is as follows:
[0055] All scheduling rules stored in the production scheduling knowledge base of the smart factory flexible workshop are obtained, and the dynamic triggering conditions and scheduling execution instructions contained in each scheduling rule are analyzed one by one. Among them, the dynamic triggering conditions are uniformly standardized into working condition parameter dimensions, including but not limited to five types of working condition parameter dimensions: equipment operating load parameter dimension, number of workpieces to be processed parameter dimension, process queuing time parameter dimension, material availability status parameter dimension, and order delivery margin parameter dimension. Each working condition parameter dimension is configured with a corresponding continuous value range (i.e., working condition parameter range). The scheduling execution instruction information includes scheduling action instructions such as equipment allocation scheme, process processing order adjustment scheme, and workpiece transfer path scheme to be executed after the scheduling rule is triggered.
[0056] For all scheduling rules, perform mutual exclusion identification of scheduling logic in pairs. The method of mutual exclusion identification of scheduling logic is as follows: compare the scheduling execution instruction information of two scheduling rules. When the scheduling actions corresponding to the scheduling execution instruction information of two scheduling rules cannot be executed synchronously or the scheduling targets conflict with each other, it is determined that the two scheduling rules are mutually exclusive in scheduling logic. Then, the scheduling rules with mutually exclusive scheduling logic are combined and classified to obtain the combination of scheduling rules with mutually exclusive scheduling logic.
[0057] Based on the mutual exclusion of scheduling rules, the dynamic triggering conditions of the scheduling rules within the scheduling rule combination are compared, and the intersection interval of the dynamic triggering conditions is calculated.
[0058] The method for calculating the intersection interval of dynamic triggering conditions is as follows:
[0059] For two scheduling rules with mutually exclusive scheduling logic, extract the operating condition parameter ranges of all common dimensions of the two scheduling rules, take the minimum value of the upper limit of the same operating condition parameter range of the two scheduling rules as the upper limit of the intersection range, and take the maximum value of the lower limit of the same operating condition parameter range of the two scheduling rules as the lower limit of the intersection range.
[0060] If the upper limit of the intersection interval is greater than the lower limit of the intersection interval, it means that there is an intersection interval between the two working condition parameter intervals under the corresponding working condition parameter dimension;
[0061] If the upper limit of the intersection interval is less than or equal to the lower limit of the intersection interval, it means that there is no intersection between the two operating condition parameter intervals under the corresponding operating condition parameter dimension;
[0062] Traverse all common working condition parameter dimensions of the two scheduling rules. When all common working condition parameter dimensions have an intersection interval, determine that the dynamic triggering conditions of the two scheduling rules have an overall intersection, and mark the corresponding scheduling rule combination as a triggering intersection rule pair.
[0063] When any common working condition parameter dimension has no intersection interval, it is determined that the dynamic triggering conditions as a whole have no intersection, and the triggering intersection rule pair is not marked.
[0064] Clustering is performed based on the trigger intersection rule pairs, and pairwise similarity is calculated for the intersection intervals of dynamic triggering conditions marked as trigger intersection rule pairs;
[0065] For the intersection intervals that trigger the intersection rule pairs, the degree of overlap of the intersection intervals under different working condition parameter dimensions is calculated one by one.
[0066] For the same working condition parameter dimension, the intersection intervals of the first set of triggering intersection rule pairs and the intersection intervals of the second set of triggering intersection rule pairs are obtained respectively, and the intersection length between the two sets of intersection intervals is extracted.
[0067] Calculate the overlap degree of the first interval and the overlap degree of the second interval based on the intersection length between the two sets of intersection intervals;
[0068] The overlap of the first interval is equal to the intersection length divided by the interval length of the first set of triggering intersection rules for the intersection interval;
[0069] The overlap of the second interval is equal to the intersection length divided by the interval length of the second set of triggering intersection rules for the intersection interval;
[0070] The minimum value between the first interval overlap degree and the second interval overlap degree is taken as the interval overlap degree of the intersection interval under the current working condition parameter dimension, as exemplarily shown in Table 1.
[0071] Table 1. Schematic diagram for calculating interval overlap:
[0072] project parameter numerical values The first set of intersection rules triggers the interval. <![CDATA[A 区间 ]]> [30,80] The second set of intersection rules triggers the interval. <![CDATA[B 区间 ]]> [40,100] Intersection length <![CDATA[L 相交 ]]> 40 First interval overlap <![CDATA[M1]]> 40 / 50=0.8 Second interval overlap <![CDATA[M2]]> 40 / 60≈0.667 Interval overlap under current operating condition parameters <![CDATA[M dim ]]> 0.667
[0073] The interval multidimensional similarity is obtained by averaging the interval overlap of all intersecting intervals;
[0074] When the interval multidimensional similarity is greater than or equal to the preset similarity threshold and the mutually exclusive logical attributes are the same, the two sets of triggering intersection rule pairs are merged into a narrow-domain mutually exclusive rule cluster. If the interval multidimensional similarity between all triggering intersection rule pairs is less than the preset similarity threshold, the corresponding single triggering intersection rule pair is marked as a narrow-domain mutually exclusive rule cluster.
[0075] It should be noted that the preset similarity threshold is set based on the following: based on the actual scheduling conflict samples in the historical scheduling records of the flexible workshop of the smart factory, the interval multidimensional similarity between the intersection rule pairs triggered under the conflict conditions is extracted, sorted from largest to smallest, and the lower bound value of similarity that can cover more than 80% of the scheduling conflict samples is extracted as the preset similarity threshold. For example, the preset similarity threshold is 0.75.
[0076] For a narrow-domain mutual exclusion rule cluster formed by directly marking a single trigger intersection rule pair, the entire calculation process for subsequent competitive condition matching, index statistics, and correction is completely consistent with that of a narrow-domain mutual exclusion rule cluster formed by merging multiple trigger intersection rule pairs. The mutual exclusion logical attribute is obtained by labeling the scheduling execution instruction information. Different classification labels are pre-set for different conflict types, such as equipment preemption conflict label, process sequence conflict label, and workpiece transfer path conflict label. When the conflict classification labels corresponding to two sets of trigger intersection rule pairs are consistent, the mutual exclusion logical attribute is determined to be the same.
[0077] Integrate all narrow-domain mutual exclusion rule clusters to build a mutual exclusion rule index library;
[0078] Understandably, the significance of the mutual exclusion rule clustering module lies in: identifying scheduling rules with mutually exclusive scheduling logic and overlapping dynamic triggering conditions from the production scheduling knowledge base of the smart factory's flexible workshop; forming narrow-domain mutual exclusion rule clusters through clustering; integrating them to obtain a mutual exclusion rule index library; providing the input boundary of the narrow-domain mutual exclusion rule clusters for the competitive triggering condition matching module; providing a searchable source of mutual exclusion rules for the rule distribution and optimization module; and avoiding scheduling conflicts caused by scheduling rules with mutually exclusive scheduling logic being triggered simultaneously under the same production scheduling condition.
[0079] Competition and Trigger Condition Matching Module: Extracts the dynamic trigger conditions of all scheduling rules within the narrow-domain mutual exclusion rule cluster, constructs a dynamic parameter trigger vector, performs dynamic trigger condition matching in historical scheduling records, and filters out the competition and trigger matching condition set;
[0080] Specifically, the dynamic triggering conditions of each scheduling rule within the narrow-domain mutual exclusion rule cluster are extracted, and dynamic parameter triggering vectors are constructed according to the five types of working condition parameters standardized by the mutual exclusion rule clustering module. Among them, the dynamic parameter triggering vector of the working condition parameter interval records the lower limit and upper limit of the interval.
[0081] Obtain historical scheduling records, extract historical operating condition parameters under the same five categories of operating condition parameters for each historical scheduling record, and obtain a historical parameter record vector;
[0082] The dynamic parameter trigger vector corresponding to the scheduling rule in each trigger intersection rule is compared with the historical parameter record vector. The matching judgment of the working condition parameter interval is that the historical working condition parameter in the historical parameter record vector is between the lower limit and the upper limit of the interval corresponding to the dynamic parameter trigger vector.
[0083] When the historical parameter record vector meets the matching requirements of the dynamic parameter trigger vector of a single scheduling rule in all five types of working condition parameter dimensions, the corresponding historical scheduling record is marked as the single rule trigger working condition of the scheduling rule.
[0084] If a single rule trigger condition can simultaneously match the dynamic triggering conditions of multiple scheduling rules within a narrow-domain mutually exclusive rule cluster, it indicates that the corresponding single rule trigger condition has the risk of multiple mutually exclusive rules being triggered simultaneously, and is marked as a competitive triggering condition. Conversely, if a single rule trigger condition only matches the dynamic triggering condition of one scheduling rule within a narrow-domain mutually exclusive rule cluster, it is not marked.
[0085] The competitive touch matching conditions corresponding to all scheduling rules within the narrow domain mutual exclusion rule cluster are summarized to obtain the competitive touch matching condition set;
[0086] It should be noted that if the same historical scheduling record matches multiple scheduling rules within a narrow-domain mutual exclusion rule cluster, only one sample record will be saved in the competitive matching case set.
[0087] Understandably, the significance of the competitive trigger condition matching module lies in: starting from the dynamic trigger conditions of the narrow domain mutual exclusion rule cluster, locating actual production condition samples in the historical scheduling records that can be triggered simultaneously or separately by mutual exclusion scheduling rules, providing a data foundation with trigger condition support for subsequent calculation of adaptation frequency and effective adoption trigger ratio, as well as correlation analysis of decision switching fluctuation frequency and swing oscillation number;
[0088] Attenuation and modulation calibration module: Based on the competitive matching working condition set, the rule adaptation index is determined according to the adaptation frequency and effective adoption trigger ratio of each scheduling rule in the narrow domain mutual exclusion rule cluster. At the same time, based on the time-series execution rule sequence analysis, the switching fluctuation frequency and oscillation number are decided to generate oscillation suppression calibration value. Combining the oscillation participation breadth and oscillation dominance ratio, an oscillation sensitive attenuation coefficient is constructed. Using the oscillation sensitive attenuation coefficient as the exponent, a negative exponential attenuation function is constructed to correct the rule adaptation index to obtain the attenuation correction modulation value.
[0089] In the attenuation sub-modulation calibration module, the rule adaptation index is obtained as follows:
[0090] Based on the competitive matching work condition set, the scheduling rules actually executed in each scheduling session are extracted from the historical scheduling records;
[0091] For each scheduling rule within a narrow-domain mutual exclusion rule cluster, the total number of times the scheduling rule appears as a matching scheduling rule in the race-matching scenario set is counted, and the total number of times is recorded as the adaptation frequency of the scheduling rule.
[0092] The effective adoption trigger ratio of a scheduling rule is calculated by comparing the number of times the scheduling rule appears as a matching scheduling rule in the competitive matching scenario set and is adopted and executed in actual scheduling.
[0093] The adaptation frequency of the scheduling rule is fused with the effective adoption trigger ratio to obtain the rule adaptation index of the scheduling rule. The fusion calculation method is to perform an exponential operation on the effective adoption trigger ratio (the exponent is 2), and then multiply it with the adaptation frequency.
[0094] It should be noted that the purpose of exponential operation is to amplify the distinguishability between different scheduling rules, so that the scheduling rules with a higher actual adoption rate can show a more significant advantage in the rule adaptation index, avoid the convergence of scheduling rule indexes with similar adaptation frequency but large differences in actual adaptation effect, and ensure that the rule adaptation index can accurately reflect the adaptation level of the scheduling rules in actual competitive conditions.
[0095] In the attenuation submodulation calibration module, the oscillation suppression calibration value is obtained as follows:
[0096] Based on the historical scheduling records contained in the competitive matching work case set, the scheduling rules actually executed in each scheduling are extracted in chronological order of scheduling time to form a time-series execution rule sequence;
[0097] Calculate the decision switching fluctuation frequency: count the number of times the scheduling rules actually executed in two adjacent schedulings are different in the time-series execution rule sequence, divide the count of different scheduling rules by the total number of comparisons in two adjacent schedulings to obtain the decision switching fluctuation frequency;
[0098] Calculate the number of swing oscillations: Count the number of oscillation patterns that satisfy the condition that the first and last scheduling rules are the same and the middle scheduling rules are different in any three consecutive scheduling rules in the time sequence execution rule sequence. Record the number of oscillation patterns obtained by the statistics as the number of swing oscillations.
[0099] The decision switching fluctuation frequency and the number of oscillations are normalized respectively. The arithmetic mean of the normalized decision switching fluctuation frequency and the normalized number of oscillations is calculated and the arithmetic mean is used as the oscillation suppression calibration value.
[0100] In the attenuation subtone calibration module, the attenuation correction subtone value is obtained as follows:
[0101] Based on the oscillation suppression calibration value, the oscillation participation breadth, oscillation dominance ratio, and oscillation sensitivity attenuation coefficient are introduced to modify the rule adaptation index. The specific process is as follows:
[0102] For each scheduling rule within a narrow-domain mutual exclusion rule cluster, the total number of times the scheduling rule appears in all oscillation modes is counted. The total number of occurrences is divided by the number of oscillations to obtain the oscillation participation breadth of the scheduling rule.
[0103] For each scheduling rule within a narrow-domain mutual exclusion rule cluster, the number of times the scheduling rule appears as an intermediate scheduling rule in all oscillation modes is counted. The number of times it appears as an intermediate scheduling rule is divided by the total number of times the scheduling rule appears in all oscillation modes to obtain the oscillation dominance ratio of the scheduling rule.
[0104] The oscillation sensitivity attenuation coefficient of the scheduling rule is obtained by multiplying the oscillation participation breadth, oscillation dominance ratio and oscillation suppression calibration value.
[0105] The rule adaptation index is multiplied by the negative exponential decay function value (natural constant e) with the exponential decay coefficient of oscillation sensitivity to obtain the corrected rule adaptation index, which is denoted as the decay correction sub-tone value.
[0106] It should be noted that the breadth of oscillation participation reflects the frequency with which scheduling rules participate in oscillation modes, while the proportion of oscillation dominance distinguishes the role of scheduling rules as oscillation initiators or oscillation stabilization anchors in oscillation modes. When the proportion of scheduling rules appearing as intermediate scheduling rules is higher, the proportion of oscillation dominance is larger, indicating that the scheduling rules are more likely to trigger frequent switching of scheduling decisions. The oscillation sensitivity attenuation coefficient couples the individual oscillation characteristics of the rule with the global oscillation level through the product of the breadth of oscillation participation, the proportion of oscillation dominance, and the oscillation suppression calibration value.
[0107] For example, suppose a narrow-domain mutual exclusion rule cluster contains two mutual exclusion scheduling rules, R1 and R2. There are 10 competitive contact matching records in the competitive contact matching case set. The effective adoption trigger ratio and rule adaptation index calculation results are shown in Table 2.
[0108] Table 2: Rule Adaptation Index Calculation Table
[0109] Scheduling rules Adjustment frequency Number of times adopted and implemented Effective adoption trigger ratio Rule adaptation metrics R1 10 6 6 / 10=0.6 <![CDATA[10×0.6 2 =3.6]]> R2 10 4 4 / 10=0.4 <![CDATA[10×0.4 2 =1.6]]>
[0110] The actual execution scheduling rules corresponding to the 10 competitive matching conditions are arranged in time as a sequence S=[R1,R2,R1,R1,R2,R1,R2,R1,R1,R2]. Adjacent scheduling rules are compared pair by pair, and the analysis results of the decision switching fluctuation frequency and the number of swing oscillations are shown in Tables 3 and 4:
[0111] Table 3 Comparison of Adjacent Scheduling Rules Switching:
[0112] Compare serial numbers Previous scheduling rules Subsequent scheduling rules Has a switch occurred (before or after)? 1 <![CDATA[S1:R1]]> <![CDATA[S2:R2]]> It is true. 2 <![CDATA[S2:R2]]> <![CDATA[S3:R1]]> It is true. 3 <![CDATA[S3:R1]]> <![CDATA[S4:R1]]> No (false) 4 <![CDATA[S4:R1]]> <![CDATA[S5:R2]]> It is true. 5 <![CDATA[S5:R2]]> <![CDATA[S6:R1]]> It is true. 6 <![CDATA[S6:R1]]> <![CDATA[S7:R2]]> It is true. 7 <![CDATA[S7:R2]]> <![CDATA[S8:R1]]> It is true. 8 <![CDATA[S8:R1]]> <![CDATA[S9:R1]]> No (false) 9 <![CDATA[S9:R1]]> <![CDATA[S 10 :R2]]> It is true.
[0113] As shown in Table 3, the number of times the judgment was true was 7, the total number of comparisons was 9, and the decision switching fluctuation frequency was approximately 0.778 (7 / 9).
[0114] Table 4. Oscillation Mode Triplet Analysis Table:
[0115] Triplet number <![CDATA[Triple (S i , S i+1 , S i+2 )]]> First and last rules intermediate rules Does it meet the oscillation mode? 1 (R1,R2,R1) R1, R1 R2 yes 2 (R2,R1,R1) R2, R1 R1 no 3 (R1,R1,R2) R1, R2 R1 no 4 (R1,R2,R1) R1, R1 R2 yes 5 (R2,R1,R2) R2, R2 R1 yes 6 (R1,R2,R1) R1, R1 R2 yes 7 (R2,R1,R1) R2, R1 R1 no 8 (R1,R1,R2) R1, R2 R1 no
[0116] As shown in Table 4, there are a total of 4 triplets that satisfy the oscillation mode, and the number of oscillations is 4.
[0117] The decision switching fluctuation frequency and the number of swing oscillations are normalized (assuming the maximum value of the decision switching fluctuation frequency in the normalized reference set is 0.8 and the minimum value is 0.2, and the maximum value of the number of swing oscillations is 4 and the minimum value is 0, where the maximum and minimum values in the normalized reference set are determined based on the decision switching fluctuation frequency and the number of swing oscillations obtained from the same narrow-domain mutual exclusion rule cluster within the historical scheduling period): Normalized decision switching fluctuation frequency = (0.778-0.2) / (0.8-0.2) = 0.578 / 0.6≈0.963, normalized swing oscillations = (4-0) / (4-0) = 1.0, oscillation suppression calibration value V = (0.963+1.0) / 2≈0.982;
[0118] The four oscillation modes are (R1,R2,R1), (R1,R2,R1), (R2,R1,R2), and (R1,R2,R1). The calculation results for oscillation participation breadth, oscillation dominance ratio, oscillation sensitivity attenuation coefficient, and attenuation correction sub-modulation value, counted by oscillation mode, are shown in Table 5.
[0119] Table 5 Summary of Oscillation Indicators:
[0120] Scheduling rules Oscillation Participation Breadth Oscillation Dominance Oscillation-sensitive damping coefficient Attenuation Correction Subtone Value R1 4 / 4=1 1 / 4=0.25 1×0.25×0.982≈0.246 <![CDATA[3.6×e -0.246 ≈2.82]]> R2 4 / 4=1 3 / 4=0.75 1×0.75×0.982≈0.737 <![CDATA[1.6×e -0.737 ≈0.77]]>
[0121] The calculation results show that R1 has a low oscillation dominance ratio, its role as an oscillation initiator is not significant, its oscillation sensitivity attenuation coefficient is small, and its attenuation correction sub-tone value is only slightly attenuated (close to the rule fit index); R2 has a high oscillation dominance ratio, initiating oscillations as an intermediate scheduling rule in 3 out of the 4 oscillation modes, its oscillation sensitivity attenuation coefficient is large, and its attenuation correction sub-tone value is sufficiently attenuated, such as... Figure 4 As shown in the negative exponential decay curve, the oscillation sensitivity decay coefficient of R1 is 0.246, corresponding to a decay ratio of 0.782, which means the decay correction sub-tone value is 78.2% of the rule adaptation index; the oscillation sensitivity decay coefficient of R2 is 0.737, corresponding to a decay ratio of 0.479, which means the decay correction sub-tone value is only 47.9% of the rule adaptation index. This reflects the nonlinear suppression effect of the oscillation sensitivity decay coefficient on the decay correction sub-tone value. When allocating scheduling rules, the decay correction sub-tone value of R1 is higher than that of R2. R1 is preferentially selected as the scheduling rule to be executed, which effectively avoids the oscillation initiator being repeatedly selected and improves the continuity and stability of scheduling decisions.
[0122] It is understandable that the significance of obtaining the attenuation correction sub-value is as follows: First, the attenuation correction sub-value is calculated by multiplying the rule adaptation index and the negative exponential attenuation function value with the oscillation sensitivity attenuation coefficient as the exponent. The rule adaptation index is calculated by multiplying the adaptation frequency and the effective adoption trigger ratio by a preset exponent. The adaptation frequency reflects the frequency of the scheduling rule being triggered and matched under competitive matching conditions, and the effective adoption trigger ratio reflects the proportion of the scheduling rule that is actually adopted and executed after being triggered. The attenuation correction sub-value retains the historical adaptation information of the rule adaptation index during the correction process, so that the scheduling rule allocation prioritizes the scheduling rule with high adaptation frequency and stable effective adoption trigger ratio, thereby improving the accuracy and stability of the adaptation between the scheduling decision and the actual working conditions.
[0123] Function 2: The oscillation sensitivity attenuation coefficient is calculated from the oscillation participation breadth, the oscillation dominance ratio, and the oscillation suppression calibration value. The oscillation dominance ratio reflects the degree to which the scheduling rule acts as an oscillation initiator, and the oscillation suppression calibration value reflects the overall oscillation level of the scheduling decision sequence. The attenuation correction sub-value embeds the oscillation characteristics into the negative exponential attenuation function during the correction process, so that scheduling rules with insignificant oscillation characteristics are preferentially selected when allocating scheduling rules, reducing the risk of scheduling logic mutually exclusive rules taking effect simultaneously and frequent switching.
[0124] Function 3: As the production conditions of the flexible workshop change dynamically and the scheduling execution data continues to accumulate, the competitive matching condition set is constantly updated, and the rule adaptation index and oscillation sensitivity attenuation coefficient change accordingly. The attenuation correction sub-value can reflect the degree of adaptation and oscillation characteristics of the scheduling rules under the latest conditions, so that the scheduling rule allocation strategy can adjust the rule priority according to the changes in workshop conditions.
[0125] Understandably, the significance of the attenuation and modulation calibration module lies in: analyzing the adaptation frequency and effective adoption trigger ratio of each scheduling rule within a narrow-domain mutual exclusion rule cluster based on the competitive matching working condition set; constructing an oscillation-sensitive attenuation coefficient through oscillation participation breadth, oscillation dominance ratio, and oscillation suppression calibration value; correcting the rule adaptation index; providing a quantitative basis for scheduling rule allocation that comprehensively considers rule applicability and scheduling stability; reducing frequent switching and oscillation of mutual exclusion scheduling rules under the same production scheduling working condition; and improving the continuity and stability of flexible workshop scheduling decisions.
[0126] Rule scheduling optimization module: Extracts real-time parameter trigger vectors, performs dynamic trigger condition retrieval in the mutual exclusion rule index library, and if a narrow-domain mutual exclusion rule cluster is found, it allocates scheduling rules according to the attenuation correction scheduling value to complete knowledge scheduling optimization;
[0127] In the rule allocation and optimization module, the method for allocating scheduling rules is as follows:
[0128] Real-time parameter trigger vectors are extracted from the measured values of five types of operating condition parameters in the real-time operation data of the flexible workshop.
[0129] The real-time parameter trigger vector is compared with the dynamic parameter trigger vector of the scheduling rule in each narrow-domain mutual exclusion rule cluster in the mutual exclusion rule index library. The matching judgment method is the same as that of the competitive trigger condition matching module.
[0130] If the real-time parameter trigger vector simultaneously satisfies the dynamic triggering conditions of at least two scheduling rules within a narrow-domain mutual exclusion rule cluster, it is determined that the current scheduling condition has retrieved a narrow-domain mutual exclusion rule cluster.
[0131] Extract the decay correction sub-tuning values of all scheduling rules within the retrieved narrow-domain mutual exclusion rule cluster, and sort them from high to low according to the decay correction sub-tuning values;
[0132] The scheduling rule with the highest attenuation correction sub-dispatch value is determined as the execution scheduling rule under the current scheduling condition;
[0133] When there are multiple scheduling rules with the highest attenuation correction value and they are in the same order, the scheduling rule with the highest effective adoption trigger ratio is selected as the execution scheduling rule. When the effective adoption trigger ratios are also the same, the scheduling rule with the highest adaptation frequency is selected as the execution scheduling rule.
[0134] After the scheduling rules are assigned, the equipment allocation scheme, process order adjustment scheme, and workpiece transfer path scheme of the selected scheduling rules are issued to the execution mechanism (including but not limited to industrial cloud platform, workshop edge controller, etc.) to execute the scheduling actions and complete the knowledge scheduling optimization.
[0135] Record the scheduling conditions, rule selection results, execution effects, and equipment operating status of this operation, and transmit the effective data back to the production scheduling knowledge base of the smart factory's flexible workshop to achieve a continuous optimization closed loop of scheduling rule iteration and indicator updates;
[0136] Understandably, the role of the rule allocation and optimization module is to: perceive the current scheduling status of the flexible workshop in real time, quickly locate narrow-domain mutual exclusion rule clusters that may trigger multiple mutual exclusion rules in the mutual exclusion rule index library, dynamically select the optimal scheduling rule based on the attenuation correction allocation value, avoid scheduling rules with mutually exclusive scheduling logic from being effective at the same time or frequently switching, and improve the real-time performance, stability and execution consistency of the flexible workshop scheduling decision.
[0137] The foregoing has shown and described the basic principles, main features, and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The embodiments and descriptions in the specification are merely illustrative of the principles of the invention. Various changes and modifications can be made to the invention without departing from its spirit and scope, and all such changes and modifications fall within the scope of the present invention as claimed. The scope of protection of the present invention is defined by the appended claims and their equivalents.
Claims
1. A knowledge-driven production scheduling optimization system for smart factories, characterized in that: Includes the following modules: Mutual Exclusion Rule Clustering Module: Extracts mutually exclusive scheduling rules for flexible production scheduling logic from the production scheduling knowledge base of the smart factory's flexible workshop, groups and categorizes scheduling rules with overlapping dynamic triggering conditions, filters out narrow-domain mutual exclusion rule clusters, and integrates them to obtain a mutual exclusion rule index library. Competition and Trigger Condition Matching Module: Extracts the dynamic trigger conditions of all scheduling rules within the narrow-domain mutual exclusion rule cluster, constructs a dynamic parameter trigger vector, performs dynamic trigger condition matching in historical scheduling records, and filters out the competition and trigger matching condition set; Attenuation and modulation calibration module: Based on the competitive matching working condition set, the rule adaptation index is determined according to the adaptation frequency and effective adoption trigger ratio of each scheduling rule in the narrow domain mutual exclusion rule cluster. At the same time, based on the time-series execution rule sequence analysis, the switching fluctuation frequency and oscillation number are decided to generate oscillation suppression calibration value. Combining the oscillation participation breadth and oscillation dominance ratio, an oscillation sensitive attenuation coefficient is constructed. Using the oscillation sensitive attenuation coefficient as the exponent, a negative exponential attenuation function is constructed to correct the rule adaptation index to obtain the attenuation correction modulation value. Rule-based scheduling optimization module: Extracts real-time parameter trigger vectors, performs dynamic trigger condition retrieval in the mutual exclusion rule index library, and if a narrow-domain mutual exclusion rule cluster is found, allocates scheduling rules according to the attenuation correction scheduling value.
2. The knowledge-driven production scheduling optimization system for smart factories according to claim 1, characterized in that: The method for grouping and classifying scheduling rules with overlapping dynamic triggering conditions is as follows: Perform pairwise mutual exclusion comparisons on all scheduling rules to identify combinations of scheduling rules with mutually exclusive scheduling logic; Extract all common operating condition parameter intervals of the two scheduling rules within the scheduling rule combination. Take the minimum upper limit of the same operating condition parameter interval as the upper limit of the intersection interval, and take the maximum lower limit of the same operating condition parameter interval as the lower limit of the intersection interval. Calculate the intersection interval of the two scheduling rules under the same operating condition parameter interval. When all operating condition parameter intervals have an intersection interval, mark the scheduling rule combination as a trigger intersection rule pair.
3. The knowledge-driven production scheduling optimization system for smart factories according to claim 2, characterized in that: The method for filtering out narrow-domain mutual exclusion rule clusters is as follows: The overlap degree of the intersection intervals of the triggering intersection rule pairs is calculated. The overlap degree of the intersection intervals of the two sets of triggering intersection rule pairs under different working condition parameter dimensions is averaged to obtain the interval multidimensional similarity. The two similar sets of triggering intersection rule pairs are merged to obtain a narrow domain mutual exclusion rule cluster.
4. The knowledge-driven production scheduling optimization system for smart factories according to claim 3, characterized in that: The interval overlap degree is calculated as follows: For the same working condition parameter dimension, obtain the intersection interval of two sets of triggering intersection rule pairs, and calculate the intersection length between the two sets of intersection intervals; Calculate the ratio of the intersection length between the two sets of intersection intervals to the length of each set of intersection intervals to obtain the overlap degree of the first interval and the overlap degree of the second interval. Take the minimum value of the two as the overlap degree of the intersection interval.
5. The knowledge-driven production scheduling optimization system for smart factories according to claim 1, characterized in that: The process of obtaining the competitive matching condition set is as follows: Extract the dynamic triggering conditions of each scheduling rule within the narrow-domain mutual exclusion rule cluster, and construct a dynamic parameter trigger vector; Extract the historical parameter record vector, compare the dynamic parameter trigger vector with the historical parameter record vector, and when the historical parameter record vector meets the dynamic parameter trigger vector matching requirements in all working condition parameter dimensions, mark the corresponding historical scheduling record as a single rule trigger working condition. If a single rule trigger condition can simultaneously match the dynamic triggering conditions of multiple scheduling rules within a narrow-domain mutually exclusive rule cluster, it is denoted as a competitive trigger matching condition. All competitive trigger matching conditions are summarized to obtain a competitive trigger matching condition set.
6. The knowledge-driven production scheduling optimization system for smart factories according to claim 5, characterized in that: The rule adaptation metrics are obtained as follows: Extract the scheduling rules actually executed in each scheduling session. For each scheduling rule within the narrow-domain mutual exclusion rule cluster, count the total number of times it appears as a matching scheduling rule in the competitive matching scenario set and record it as the adaptation frequency. The effective adoption trigger ratio is obtained by counting the number of times a matching scheduling rule appears in the competitive matching scenario set and is adopted and executed in actual scheduling. The ratio of the number of adoption executions to the adaptation frequency is used to obtain the effective adoption trigger ratio. The effective adoption trigger ratio is calculated by exponentially raising it to a preset exponent and then multiplying it with the adaptation frequency to obtain the rule adaptation index.
7. The knowledge-driven production scheduling optimization system for smart factories according to claim 1, characterized in that: The method for obtaining the oscillation suppression calibration value is as follows: Arrange the scheduling rules actually executed in each scheduling session in chronological order to form a sequence of execution rules. The decision switching fluctuation frequency is calculated by counting the number of times the actual scheduling rules executed in two adjacent scheduling operations are different in the statistical time-series execution rule sequence and the total number of comparisons. The number of times that any three consecutive scheduling operations in the statistical time sequence satisfy the same scheduling rules at the beginning and end and different scheduling rules in the middle is recorded as the number of oscillations. The oscillation suppression calibration value is obtained by normalizing the decision switching fluctuation frequency and the number of oscillations and taking the mean.
8. The knowledge-driven production scheduling optimization system for smart factories according to claim 7, characterized in that: The attenuation correction subtone value is obtained as follows: The total number of times the scheduling rule appears in all oscillation modes is counted, and the oscillation participation breadth of the scheduling rule is calculated by combining the number of oscillations. The number of times the scheduling rule appears as an intermediate scheduling rule in all oscillation modes is statistically analyzed, and the oscillation dominance ratio of the scheduling rule is calculated. The oscillation sensitivity attenuation coefficient of the scheduling rule is obtained by multiplying the oscillation participation breadth, oscillation dominance ratio and oscillation suppression calibration value. The corrected rule adaptation index is obtained by multiplying the rule adaptation index with the negative exponential decay function value of the oscillation sensitivity decay coefficient, and is denoted as the decay correction sub-tone value.
9. A knowledge-driven production scheduling optimization system for smart factories according to claim 5, characterized in that: The method for allocating scheduling rules is as follows: Extract the real-time parameter trigger vector from the real-time running data; The real-time parameter trigger vector is compared with the dynamic parameter trigger vector of the narrow-domain mutual exclusion rule cluster. If the dynamic trigger condition of at least two scheduling rules in the narrow-domain mutual exclusion rule cluster is met, it is determined that the narrow-domain mutual exclusion rule cluster has been retrieved. Extract the decay correction sub-distribution values of scheduling rules within the narrow-domain mutual exclusion rule cluster, sort them from high to low, and determine the scheduling rule with the highest decay correction sub-distribution value as the execution scheduling rule.
10. A knowledge-driven production scheduling optimization system for smart factories according to claim 9, characterized in that: When multiple scheduling rules have the highest octave correction values, the scheduling rule allocation method is as follows: The scheduling rule with the highest effective adoption trigger ratio is selected as the execution scheduling rule. When the effective adoption trigger ratios are also the same, the scheduling rule with the highest adaptation frequency is selected as the execution scheduling rule. Execute scheduling actions according to the selected scheduling rules to complete knowledge scheduling optimization.
