A dynamic advanced scheduling method and system based on digital twinning

By combining digital twin technology with the MES system, scheduling schemes can be dynamically predicted and adjusted, solving the problems of static scheduling parameters and spatial interference recognition delays in existing technologies, and realizing efficient and flexible scheduling of workshop production.

CN123137263APending Publication Date: 2026-11-20JIER MACHINE TOOL GROUP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611644508.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-23
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

The static scheduling parameters in existing scheduling systems lead to problems such as deviations in actual processing time, inability to identify spatial interference in advance, and excessive rearrangement range under disturbances. Existing digital twin technology has failed to effectively establish bidirectional data flow with scheduling algorithms and MES systems, resulting in low efficiency in workshop production scheduling.

Method used

By constructing an architecture that integrates digital twin pre-prediction, global optimization, digital twin post-verification, and MES closed-loop execution, and combining mechanistic models with machine learning residual models, the system dynamically predicts processing time and failure probability, generates scheduling plans and performs pre-simulations, identifies AGV path collisions and line-side warehouse overflows, and performs local fine-tuning and local rescheduling to achieve dynamic adjustment of the scheduling plan.

Benefits of technology

It achieves highly reliable scheduling of workshop production, reduces the recognition delay of spatial interference, narrows the rescheduling range under disturbance, and improves the flexibility and efficiency of production scheduling.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123137263A_ABST
    Figure CN123137263A_ABST
Patent Text Reader

Abstract

The application discloses a dynamic advanced scheduling method and system based on digital twinning. It relates to the technical field of intelligent manufacturing and production scheduling. The method comprises the following steps: predicting the dynamic processing time and fault probability of each machine tool, and publishing the dynamic parameters to the scheduling engine; under a multi-objective model composed of hard constraints and soft constraints, a preliminary production scheduling scheme is generated by adopting rolling time window decomposition, constraint programming initial solution and adaptive large neighborhood search; the preliminary production scheduling scheme is written back to the digital twinning system for rehearsal, AGV path collision and line side bin overflow are detected under the condition of geometric intersection and time overlap, and when interference is detected, a time repulsion constraint is generated and fed back to the scheduling engine; the scheduling engine is locally fine-tuned and rehearsed again until the final scheme is generated and issued; when a disturbance event occurs, the started process is frozen and the adjustable process is enabled with a deviation penalty, and local rescheduling is performed within a limited range. The influence range of rescheduling under disturbance is limited to the affected resources and their upstream and downstream.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of intelligent manufacturing and production scheduling technology, specifically to a dynamic advanced scheduling method and system based on digital twins. Background Technology

[0002] Advanced production scheduling and dispatching systems in workshops are used to determine the processing sequence and start time of work processes under limited equipment, materials, and manpower conditions, and are a key link in the optimal allocation of production resources. Existing scheduling systems have the following shortcomings in practical applications: Traditional scheduling algorithms rely on static standard process times issued by ERP or MES systems. However, the health status of equipment, tool wear, and material readiness on the shop floor change with the processing, leading to discrepancies between the production schedule generated from static standard process times and actual processing times. This causes deviations in the start and finish times of subsequent processes. Existing digital twin technology is mostly used for 3D visualization of the shop floor, without establishing bidirectional data flow with scheduling algorithms and MES systems. Scheduling plans are not pre-simulated in 3D space before issuance, and spatial interferences such as AGVs meeting in aisles and exceeding height limits in line-side warehouses can only be detected during execution. Rule-based heuristic algorithms struggle to obtain globally optimal solutions under multi-objective constraints. Precise solution algorithms require resolving all processes when emergency orders are inserted or equipment malfunctions, leading to conflicts between already started processes and the new plan, and requiring rescheduling across the entire shop floor.

[0003] Therefore, there is an urgent need for a scheduling method that combines digital twins, MES, and dynamic scheduling algorithms to overcome the shortcomings of existing technologies, such as static scheduling parameters, inability to identify spatial interference in advance, and excessively large reordering range under disturbances. Summary of the Invention

[0004] To address the aforementioned issues, this invention provides a dynamic advanced scheduling method and system based on digital twins. By constructing an architecture that integrates digital twin pre-prediction, global optimization, digital twin post-verification, and MES closed-loop execution, highly reliable intelligent scheduling for the workshop is achieved.

[0005] In a first aspect, the present invention provides a dynamic advanced scheduling method based on digital twins, comprising: S1. Collect the equipment status, material coordinates and production progress of the physical workshop, and map the status events with event numbers, version numbers, serial numbers and timestamps to the digital twin system through the message bus. The digital twin system updates the object image according to the condition that the serial numbers are consecutive and the version number is not lower than the local image. S2. The digital twin system, based on the updated object image, uses a mechanism model and a machine learning residual model to predict the dynamic processing time and failure probability of each machine tool, and publishes the dynamic processing time and failure probability as dynamic parameters to the scheduling engine. The confirmation receipt status of the dynamic parameters is "confirmed". S3. In response to the confirmed dynamic parameters, the scheduling engine combines production orders and, under the multi-objective model composed of hard and soft constraints, uses rolling time window decomposition, initial solution of constraint programming and adaptive large neighborhood search to generate a preliminary production scheduling plan. S4. Write the preliminary production plan back to the digital twin system for pre-rehearsal. Detect AGV path collisions and line-side warehouse overflows according to the conditions of geometric intersection and time overlap. When interference is detected, generate time repulsion constraints and feed them back to the scheduling engine. S5. The scheduling engine performs local fine-tuning based on the time exclusion constraint and generates an updated solution version number, then performs a rehearsal again until there are no conflicts or the maximum feedback round is reached. The final solution is then sent to the manufacturing execution system, which breaks down the final solution into equipment tasks and AGV tasks, and forms a closed loop of planning, execution, and status based on the terminal execution result receipt. S6. When a disturbance event occurs, freeze the processes that have already started and cannot be separated, inject new hard constraints into the adjustable processes and enable the original plan deviation penalty, and perform local rescheduling within the range of the affected resources and their upstream and downstream set layers.

[0006] Preferably, in S1, the digital twin system updates the object mirror specifically including: When the serial numbers are consecutive and the version number is not lower than the local image, update the corresponding object image; When the sequence numbers are not consecutive, the out-of-order event will be entered into the rearrangement buffer, and a retransmission will be requested after the timeout. Status events with the same event number are processed only once. Using an NTP or PTP aligned workshop clock, when the time difference exceeds a set threshold, the corresponding event is marked as low confidence and time synchronization is triggered.

[0007] Out-of-order events enter the reordering buffer and request retransmission after a timeout. The same event number is processed only once to avoid duplicate updates and state confusion. After NTP or PTP clock alignment, events with a time difference exceeding a threshold are marked as low confidence and trigger time synchronization to reduce state inconsistencies caused by clock skew.

[0008] Preferably, in S2, the mechanism model includes a mechanism degradation model and a mechanism hazard rate model, and the machine learning residual model includes a first gradient boosting tree model and a second gradient boosting tree model. The step of using the mechanism model and the machine learning residual model to predict the dynamic machining time of each machine tool includes: The tool wear amount, spindle load integral, material hardness grade, and standard working hours are obtained. The tool wear amount is calculated based on the tool life count and tool life curve. The spindle load integral is collected and integrated in real time by the spindle current or power sensor. The material hardness grade is read from the material batch information by the MES. The standard working hours are obtained from the process route issued by the ERP or MES. The tool wear, spindle load integral, material hardness grade, and standard machining time are input into the trained mechanistic degradation model, and the baseline machining time is output. ; Vibration signals of the machine tool are collected at time t, frequency domain characteristics and operating condition characteristics are calculated, and exponential sliding smoothing is performed on the continuous quantities in the frequency domain characteristics and operating condition characteristics:

[0009] in The original features at time t, For the original smooth image at time t, To create a smooth image of the previous moment. For smoothing coefficients; The frequency domain characteristics, operating condition characteristics, and baseline working hours after exponential smoothing are then analyzed. Input the trained first gradient boosting tree model and output the residual. ; Dynamic processing time prediction value for:

[0010] in, is the residual fusion coefficient; the failure probability f adopts the same structure as the mechanistic hazard rate baseline and the classification or regression residual fusion.

[0011] The mechanistic degradation model outputs the baseline time, while the first gradient boosting tree model outputs the residuals; the two are then fused additively. The baseline time is calculated based on parameters such as tool wear and spindle load integral according to the degradation law, and the residuals are corrected by frequency domain characteristics and operating condition characteristics. Tool wear is converted from tool life counts, and the spindle load integral is acquired by current or power sensors; both inputs can be obtained on-site in the workshop.

[0012] Preferably, the failure probability is obtained by fusing a mechanistic hazard rate model with machine learning residuals: Input the tool wear, spindle load integral, and cumulative equipment runtime into the mechanism hazard rate model, and output the mechanism hazard rate baseline. ; The frequency domain features and operating condition features, after exponential sliding smoothing, are input into the trained second gradient boosting tree model, which outputs the hazard rate correction. ; according to Calculate the fusion risk rate and according to Calculate the probability of failure, where Here, is the fault residual fusion coefficient; where, Let t be the failure probability at time t; for Constantly integrate risk rates; For integration variables; The mechanistic hazard model adopts a Weibull distribution form:

[0013] Where k is the shape parameter of the Weibull distribution, used to describe the trend of the failure rate changing over time. The scaling parameters of the Weibull distribution are used to describe the characteristic lifespan of the equipment and are obtained by fitting historical failure data using the least squares method.

[0014] The mechanistic hazard rate model uses a Weibull distribution, taking tool wear, spindle load integral, and cumulative equipment runtime as inputs, and outputs a baseline mechanistic hazard rate. The second gradient boosting tree model takes frequency domain features and operating condition features as inputs, and outputs a hazard rate correction. These two are then fused and converted into a failure probability, serving as one of the dynamic parameters for scheduling.

[0015] Preferably, in S2, the digital twin system further performs continuous training and updating, specifically including: Online caching includes the characteristics, actual working time, and whether a fault sample is present for each completed process. Calculate the mean error for W samples in the nearest window. , where W is the length of the error monitoring window; Get the mean error calculated using the same window length W when the last training was completed. ; When the time since the last training is met And error change When this occurs, incremental updates or retraining are triggered, where The time-triggered threshold, This is the threshold for error variation; After triggering, the current Updated to the new .

[0016] Incremental updates or retraining are triggered by both time and error thresholds, making model updates both constrained by time intervals and driven by changes in prediction error; by updating the current mean error to a new benchmark, the trigger judgment has an accumulative comparison benchmark.

[0017] Preferably, in S3, the soft constraint is expressed as a weighted sum of total costs:

[0018] in, To maximize the completion time, This refers to the cumulative duration of default relative to the delivery date. The penalty amount for idle time of high-energy-consuming equipment. The total score for the change penalty is... Penalty for deviations from the original plan during rescheduling; , , , , These are the baseline values ​​for each item, used to normalize each item into a dimensionless quantity; , , , , Non-negative weights; The total score for the changeover penalty applies to adjacent processes on the same machine tool, ordered by time. calculate:

[0019] Where k is the process sorting index. For adjacent processes on the same machine tool; This is a type-change penalty function, applied when adjacent processes have the same type. =0, when the types are different To set positive values, and break them down into summation items based on fixture switching, program switching, and tool switching.

[0020] Each soft constraint is normalized to a dimensionless quantity after being divided by its corresponding benchmark value. Completion time, default duration, energy idle time, changeover penalty, and deviation penalty can be weighted and summed in the same total cost. Changeover penalty is broken down into summation items according to fixture changeover, program changeover, and tool changeover, with the cost of each changeover type included separately.

[0021] Preferably, in S4, the step of detecting AGV path collisions and line-side warehouse overflows based on the criterion of geometric intersection and temporal overlap includes: Create a 3D bounding volume for the AGV body, load outline, passage restriction objects, and line-side warehouse stacking objects; First, use axis-aligned bounding boxes (AABB) for wide-phase coarse screening. Then, use directed bounding boxes (OBB) or the GJK distance algorithm for precise intersection testing to obtain geometric occupancy. ; Each movement or stacking action is accompanied by a time interval. and add a safety margin ;in The moment the action begins. The moment the action ends; Objects A and B interfere if and only if they are geometrically intersecting and temporally overlapping:

[0022] Lineside warehouse overflow is defined as the predicted stacking height. Exceeding the position limit Or the planar projection exceeds the warehouse polygon.

[0023] Where I(A,B) is the interference indicator function, 1 indicates that objects A and B interfere with each other; G(A) and G(B) are the three-dimensional geometric occupancy sets of objects A and B, respectively. The start and end times of object A's time occupation; The start and end times of object B's time occupation.

[0024] First, use AABB for wide-phase coarse screening. Then, use OBB or GJK for precise intersection testing of candidate pairs to reduce the number of bounding volume pairs participating in the precise test. Interference is determined by combining geometric occupancy with temporal occupancy intervals; interference is only considered when geometric intersection and temporal overlap occur. If the stacking height exceeds the warehouse height limit or the planar projection exceeds the warehouse polygon, it is considered a line-edge warehouse overflow.

[0025] Preferably, in S4, the structured constraint event of the time-restricted constraint includes: Conflict identifier, solution version, list of conflicting objects, spatial references, exclusion time range, safety margin, and suggested remediation methods; The suggested repair methods include delay, rerouting, or reallocation; For two conflicting release or hold events u and v, the following requirements must be met:

[0026] That is, the safe neighborhoods at the time of completion or release of the two cannot overlap; or the sets of resource occupancy intervals do not intersect.

[0027] in, , These represent the completion or release times of conflict-related events u and v, respectively. This is for a safety margin.

[0028] Time-restriction constraints are fed back to the scheduling engine in the form of structured constraint events. These events include a conflict identifier, scheme version, conflicting object, spatial reference, exclusion time interval, and safety margin. For two release or occupancy events associated with a conflict, their safety neighborhoods at the time of completion or release must not overlap.

[0029] Preferably, in step S5, the step of sending the final solution to the Manufacturing Execution System (MES), whereby the MES breaks down the final solution into equipment tasks and AGV tasks, specifically includes: The Manufacturing Execution System breaks down the final solution into equipment processing tasks and AGV handling tasks; Equipment processing tasks are sent to the control terminals of each machine tool, and AGV handling tasks are sent to the AGV dispatch terminal. After the terminal returns the execution result acknowledgment ack=ACKED, the manufacturing execution system continuously compares the actual progress with the promised time window.

[0030] The final solution was broken down into equipment processing tasks and AGV handling tasks, which were then distributed to the machine tool control terminal and the AGV scheduling terminal, respectively. After the terminals returned execution result receipts, the actual progress was continuously compared with the promised time window, and any deviations were recorded.

[0031] Secondly, the present invention also provides a dynamic advanced scheduling system based on digital twins, comprising: The data sensing module collects the equipment status, material coordinates, and production progress of the physical workshop. It maps status events with event numbers, version numbers, serial numbers, and timestamps to the digital twin system via a message bus. The digital twin system updates the object image according to the condition that the serial numbers are consecutive and the version number is not lower than the local image. The dynamic prediction module, based on the updated object image, uses a mechanism model and a machine learning residual model to predict the dynamic processing time and failure probability of each machine tool, and publishes the dynamic processing time and failure probability as dynamic parameters to the scheduling engine. The confirmation receipt status of the dynamic parameters is "confirmed". The scheduling optimization module serves as a scheduling engine. In response to confirmed dynamic parameters and combined with production orders, it generates preliminary production plans under a multi-objective model consisting of hard and soft constraints by employing rolling time window decomposition, initial solution of constraint programming, and adaptive large neighborhood search. The pre-simulation verification module writes the preliminary production plan back to the digital twin system for pre-simulation. It detects AGV path collisions and line-side warehouse overflows based on the conditions of geometric intersection and time overlap. When interference is detected, it generates time repulsion constraints and feeds them back to the scheduling engine. The closed-loop execution module performs local fine-tuning based on the time exclusion constraint and generates an updated solution version number before rehearsing again until there are no conflicts or the maximum feedback rounds are reached. The final solution is then sent to the manufacturing execution system, which breaks down the final solution into equipment tasks and AGV tasks and forms a closed loop of planning, execution, and status based on the terminal execution result feedback. The rescheduling module freezes already started and indivisible processes when a disturbance event occurs, injects new hard constraints into adjustable processes and enables deviation penalties from the original plan, and performs local rescheduling within the affected resources and their upstream and downstream set number of layers.

[0032] As can be seen from the above technical solutions, this application has the following advantages: The digital twin system updates the object image according to the condition that the serial number is consecutive and the version number is not lower than the local image, and the on-site status on which the scheduling is based is consistent with the physical workshop. The scheduling plan is written back to the digital twin system for pre-rehearsal, and AGV path collisions and line-side warehouse overflows are identified before the plan is issued. Time exclusion constraints are fed back to the scheduling engine for local fine-tuning, without the need for global rescheduling. The started processes are frozen and deviation penalties are enabled for adjustable processes, and the impact of rescheduling under disturbance is limited to the affected resources and their upstream and downstream. Attached Figure Description

[0033] To more clearly illustrate the technical solution of this application, the accompanying drawings used in the description will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0034] Figure 1 This is a flowchart illustrating the method provided in an embodiment of the present invention.

[0035] Figure 2 A block diagram of a system provided in an embodiment of the present invention. Detailed Implementation

[0036] To make the purpose, features, and advantages of this application more apparent and understandable, specific embodiments and accompanying drawings will be used to clearly and completely describe the technical solution protected by this application. Obviously, the embodiments described below are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0037] Unless otherwise defined, all technical and scientific terms used in this application have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used in this application and in the specification of this invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.

[0038] like Figure 1 As shown, this embodiment of the invention provides a dynamic advanced scheduling method based on digital twins, including: S1. Collect the equipment status, material coordinates and production progress of the physical workshop, and map the status events with event numbers, version numbers, serial numbers and timestamps to the digital twin system through the message bus. The digital twin system updates the object image according to the condition that the serial numbers are consecutive and the version number is not lower than the local image. MES (Manufacturing Execution System) collects data on equipment status, material coordinates, and production progress in the physical shop floor through both periodic sampling and event-triggered methods. Event-triggered events include four categories: start-up, completion, failure, and arrival.

[0039] The MES generates status events from the collected data. Each status event carries the following fields: unique object identifier, business status, location or orientation, process progress, object version number, event number, event sequence number for the same object, event timestamp, source system identifier, and confirmation receipt status. The object version number is a monotonically increasing integer; the event number uses a UUID or snowflake identifier; and the source system identifier is MES, digital twin, or scheduling engine.

[0040] MES writes status events to the message bus, with topics including `shopfloor.state`, `order.progress`, and `equipment.alarm`. After the digital twin system subscribes to these topics, it updates the object image according to the following conditions: when the sequence number is consecutive and the version number is not lower than the local image, the corresponding object image is updated; when the sequence number is not consecutive, out-of-order events are placed in a reordering buffer, and a retransmission is requested after a timeout; status events with the same event number are processed only once. The entire system uses a shop clock aligned to NTP (Network Time Protocol) or PTP (Precision Time Protocol). When the time difference exceeds a set threshold, the corresponding event is marked as low confidence and time synchronization is triggered.

[0041] S2. The digital twin system, based on the updated object image, uses a mechanism model and a machine learning residual model to predict the dynamic processing time and failure probability of each machine tool, and publishes the dynamic processing time and failure probability as dynamic parameters to the scheduling engine. The confirmation receipt status of the dynamic parameters is "confirmed". The mechanistic model includes a mechanistic degradation model and a mechanistic hazard rate model; the machine learning residual model includes a first gradient boosting tree model and a second gradient boosting tree model. The steps of using the mechanistic model and the machine learning residual model to predict the dynamic machining time of each machine tool include: The system acquires tool wear, spindle load integral, material hardness grade, and standard working hours. The tool wear is calculated based on tool life count and tool life curve. The spindle load integral is collected and integrated in real time by a spindle current or power sensor. The material hardness grade is read from the material batch information by the MES. The standard working hours are obtained from the process route issued by the ERP (Enterprise Resource Planning) or MES. The tool wear, spindle load integral, material hardness grade, and standard machining time are input into the trained mechanistic degradation model, and the baseline machining time is output. The parameters of the mechanism degradation model are obtained by fitting historical processing data or calibrating empirical formulas.

[0042] Vibration signals from the machine tool are collected at time t, and frequency domain characteristics and operating condition characteristics are calculated. Frequency domain characteristics include dominant frequency energy, first harmonic amplitude, second harmonic amplitude, and broadband energy; operating condition characteristics include spindle speed, feed rate, tool life count, and material hardness grade. Exponential sliding smoothing is applied to the continuous quantities in both the frequency domain and operating condition characteristics.

[0043] in The original features at time t, A smooth image at time t. To create a smooth image of the previous moment. This is the smoothing coefficient.

[0044] The frequency domain characteristics, operating condition characteristics, and baseline working hours after exponential smoothing are then analyzed. Input the trained first gradient boosting tree model and output the residual. The first gradient boosting tree model is implemented using LightGBM or XGBoost, and its training samples consist of smoothed frequency domain features, operating condition features, and baseline working hours. As input, the difference between actual working hours and baseline working hours is used as the label.

[0045] Dynamic processing time prediction value for:

[0046] in, is the residual fusion coefficient; the failure probability f adopts the same structure as the mechanistic hazard rate baseline and the classification or regression residual fusion.

[0047] The failure probability is obtained by fusing the mechanistic hazard rate model with machine learning residuals: Input the tool wear, spindle load integral, and cumulative equipment runtime into the mechanism hazard rate model, and output the mechanism hazard rate baseline. ; The frequency domain features and operating condition features, after exponential sliding smoothing, are input into the trained second gradient boosting tree model, which outputs the hazard rate correction. The training samples of the second gradient boosting tree model take smoothed frequency domain features and operating condition features as input, and the difference between the baseline of actual failure risk rate and mechanism risk rate as label.

[0048] according to Calculate the fusion risk rate and according to Calculate the probability of failure, where Here, is the fault residual fusion coefficient; where, Let t be the failure probability at time t; for Constantly integrate risk rates; For integration variables; The mechanistic hazard model adopts a Weibull distribution form:

[0049] Where k is the shape parameter of the Weibull distribution, used to describe the trend of the failure rate changing over time. The scaling parameters of the Weibull distribution are used to describe the characteristic lifespan of the equipment and are obtained by fitting historical failure data using the least squares method.

[0050] The digital twin system publishes dynamic processing time, failure probability, dynamic processing ratio, confidence level, and model version number as dynamic parameters to the scheduling engine. The scheduling engine only allows global optimization when the confirmation receipt status of the dynamic parameters is confirmed.

[0051] The digital twin system also performs continuous training and updates, specifically including: The digital twin system caches online the characteristics, actual working time, and fault status of each completed process. The mean error is calculated for the W samples in the nearest window. , where W is the length of the error monitoring window; Get the mean error calculated using the same window length W when the last training was completed. ; When the time since the last training is met And error change When this occurs, incremental updates or retraining are triggered, where The time-triggered threshold, This is the threshold for error variation; After triggering, the current Updated to the new The update method prioritizes incremental fitting of the residual model; full retraining is performed daily or per shift, with time-segmented verification. The new model is first grayscaled to non-critical machine tools, and after the error decreases, a full switch is performed and the model version number is increased.

[0052] S3. In response to the confirmed dynamic parameters, the scheduling engine combines production orders and, under the multi-objective model composed of hard and soft constraints, uses rolling time window decomposition, initial solution of constraint programming and adaptive large neighborhood search to generate a preliminary production scheduling plan. The hard constraints include: Machine tool exclusivity constraint: only one operation can be processed on the same machine tool at the same time. For any two operations on machine tool m, their processing intervals do not overlap. Process topology constraints: a process can only begin after the preceding process is completed.

[0053] in, Minimum transit or waiting time; This is the planned start time for the subsequent process j; Let i be the planned completion time of the preceding process i; i and j are the process indices. Capability matrix matching constraint: the cutting tools, stroke, and accuracy level required for the process must belong to the machine tool capability set; Material availability constraint: all materials, tooling, and AGV capacity required before the start of work must be available before the start time. If any hard constraint is not met, the solution is evaluated as infeasible and will not be included in the soft objective comparison.

[0054] The total cost of the soft constraints is in the form of a weighted sum:

[0055] in, To maximize the completion time, This refers to the cumulative duration of default relative to the delivery date. The penalty amount for idle time of high-energy-consuming equipment. The total score for the change penalty is... Penalty for deviations from the original plan during rescheduling; , , , , These are the baseline values ​​for each item, used to normalize each item into a dimensionless quantity; , , , , Non-negative weights; The total score for the changeover penalty applies to adjacent processes on the same machine tool, ordered by time. calculate:

[0056] Where k is the process sorting index. For adjacent processes on the same machine tool; This is a type-change penalty function, applied when adjacent processes have the same type. =0, when the types are different To set positive values, and break them down into summation items based on fixture switching, program switching, and tool switching.

[0057] In this step, the steps of generating a preliminary production scheduling plan using rolling time window decomposition, initial solution of constraint programming, and adaptive large neighborhood search include: Step A: Read the order, process route, capacity matrix, kitting status, and dynamic parameters; Step B: Divide the planned horizon into overlapping time windows. Processes within the window are processed with priority and precision, while processes outside the window retain boundary constraints. Step C: Within the current window, with the goal of satisfying the hard constraints, generate an initial feasible solution through constraint programming; Step D: Within the feasible region, iteratively improve the process through adaptive large neighborhood search, randomly selecting destructive and repair operators according to operator weights; remove some processes by destructive operators, including random removal, high-change-rate removal, high-delay removal, and high-conflict-related removal; re-insert processes by repair operators at legal machine tools and time positions to ensure that hard constraints are always satisfied; accept alternative solutions with total cost J as the acceptance condition, combined with simulated annealing to avoid premature convergence; update operator weights based on the improvement effect.

[0058] Adaptive large neighborhood search neighborhood actions include: process exchange, exchanging the order or position of two processes on the same machine or across machines; process insertion, inserting a process into another legal position; moving similar order blocks, migrating consecutive blocks of the same type as a whole; machine tool migration, reassigning a process to another machine tool with matching capabilities; and local time translation, translating a process chain as a whole without breaking constraints.

[0059] Step E: After the time limit is reached or there are no more generations of improvements, output the preliminary production scheduling plan.

[0060] The dynamic interaction between the scheduling engine and the digital twin system includes: Pre-sorting locking: At the start of the optimization process, a parameter snapshot is locked to ensure consistent time within a single solution. Mid-process refresh: If a higher-priority parameter update is received during the solution process and the triggering condition is met, the current search is stopped, the values ​​of the parts that have met the hard constraints are retained as partial initial solutions, the affected processes are re-estimated using the new dynamic time, and local repairs are prioritized before continuing the search. Post-sorting writeback: The promised time windows for each process are written back to the solution that has passed the pre-run, allowing MES to monitor deviations. Re-sorting coupling: During re-scheduling, the dynamic time window works in conjunction with the frozen entity and deviation penalty.

[0061] S4. Write the preliminary production plan back to the digital twin system for pre-rehearsal. Detect AGV path collisions and line-side warehouse overflows according to the conditions of geometric intersection and time overlap. When interference is detected, generate time repulsion constraints and feed them back to the scheduling engine. The digital twin system creates a 3D bounding volume for the AGV body, load outline, lane restriction objects, and line-side warehouse stacking objects. First, a wide-phase coarse screening is performed using axis-aligned bounding boxes (AABB). Then, candidate pairs are precisely intersected using directed bounding boxes (OBB) or the GJK distance algorithm to obtain geometric occupancy. ; Each movement or stacking action is accompanied by a time interval. and add a safety margin ;in The moment the action begins. The moment the action ends; Objects A and B interfere if and only if they are geometrically intersecting and temporally overlapping:

[0062] Lineside warehouse overflow is defined as the predicted stacking height. Exceeding the position limit Or, the planar projection exceeds the polygon of the warehouse. Let... Let P(t) be the polygon representing the permissible planar boundary of the line-edge warehouse; if the planar projection of the stacked volume is P(t) If the condition is met, it is determined to be an overflow of the line edge warehouse. Here, I(A,B) is the interference indicator function, where 1 indicates that objects A and B interfere; G(A) and G(B) are the three-dimensional geometric occupancy sets of objects A and B, respectively. The start and end times of object A's time occupation; The start and end times of object B's time occupation.

[0063] In this embodiment, simulation revealed that the two machine tools completed almost simultaneously, and the two AGVs would meet in the narrow corridor of area B at the same time, satisfying the interference condition.

[0064] Upon detecting interference, the digital twin system generates time-rejection constraints, which are fed back to the scheduling engine as structured constraint events. These structured constraint events include: conflict identifier, solution version, list of conflicting objects, spatial reference, rejection time interval, safety margin, and suggested remediation methods. Suggested remediation methods include delay, rerouting, or reallocation.

[0065] For two conflicting release or hold events u and v, the following requirements must be met:

[0066] That is, the safe neighborhoods at the time of completion or release of the two cannot overlap; or the sets of resource occupancy intervals do not intersect.

[0067] in, , These represent the completion or release times of conflict-related events u and v, respectively. This is for a safety margin.

[0068] S5. The scheduling engine performs local fine-tuning based on the time exclusion constraint and generates an updated solution version number, then performs a rehearsal again until there are no conflicts or the maximum feedback round is reached. The final solution is then sent to the manufacturing execution system, which breaks down the final solution into equipment tasks and AGV tasks, and forms a closed loop of planning, execution, and status based on the terminal execution result receipt. The scheduling engine adds time exclusion constraints as new hard constraints, and postpones the set time of one of the machine tool's related chains by shifting the local time neighborhood, while maintaining the hard constraints and minimizing the time required for each machine tool's related chain. After the second simulation is completed without any conflicts, an updated version number of the solution is generated.

[0069] If conflicts still exist after the second rehearsal, feedback is provided again and fine-tuned until there are no conflicts or the maximum number of feedback rounds is reached. In this embodiment, the maximum number of feedback rounds is set to 3 rounds.

[0070] The final plan is then sent to the Manufacturing Execution System (MES). The MES breaks down the final plan into machine tool processing tasks and AGV (Automated Guided Vehicle) handling tasks. Machine tool processing tasks are sent to the respective machine tool control terminals, and AGV handling tasks are sent to the AGV scheduling terminals. After the terminals return an execution result acknowledgment (ack=ACKED), the MES continuously compares the actual progress with the promised time window, forming a closed loop of planning, execution, and status.

[0071] S6. When a disturbance event occurs, freeze the processes that have already started and cannot be separated, inject new hard constraints into the adjustable processes and enable the original plan deviation penalty, and perform local rescheduling within the range of the affected resources and their upstream and downstream set layers.

[0072] During processing, the MES system detected an urgent order from a VIP customer. The system then restarted and rescheduled the process.

[0073] Rescheduling trigger conditions include: equipment failure, emergency order insertion, critical kitting failure, and repeated non-convergence of twin simulations.

[0074] Upon triggering, identify uninterruptible entities: processes already processed on physical equipment and technologically inseparable, set their state to frozen entities, with their start time, completion time, and machine tool fixed. Identify adjustable entities: sets of processes that have not started or are allowed to be postponed. Inject new hard constraints: unavailable intervals of faulty machine tools, and earliest start and delivery constraints for inserted orders.

[0075] Enable or increase deviations in soft targets:

[0076] in, The new planned start time after the process is rearranged; The original planned start date, The deviation penalty coefficient, For a set of adjustable entities, For deviation punishment.

[0077] The search scope is initially limited to the affected resources and their upstream and downstream k-level processes. The rescheduling still adopts a combination of feasibility repair and adaptive large neighborhood search of local neighborhoods.

[0078] At the end of each shift, summarize the actual working hours and fault tags, and update the sample database. Determine whether to retrain based on the following condition: Δt ≥ [time elapsed since last training]. And error change .

[0079] After the new model goes live, the next day's scheduling will use the updated dynamic time window. For example, if a tool is severely worn and the predicted processing time is longer than the standard time, the system will automatically expand the time window for that process to avoid subsequent waiting or backlog.

[0080] In some embodiments, a CNC machine tool experiences a sudden malfunction, and the MES reports an equipment.alarm event. The digital twin system updates the machine tool's status to BLOCKED and injects its unavailable range into the scheduling engine. The scheduling engine freezes the operations currently being processed by the machine tool, applies deviation penalties to downstream operations, and reschedules them within a range of k=2 levels upstream and downstream. After rescheduling, the operations originally scheduled to be processed by this machine tool are migrated to other machine tools with matching capabilities, while the schedules for the remaining machine tools remain unchanged.

[0081] In some implementations, VIP customers place urgent orders. The scheduling engine inserts these orders as high-priority tasks, allowing a few low-priority orders to be postponed. The deviation penalty is increased. This ensures that the rearrangement scheme is as close as possible to the original plan. The adaptive large neighborhood search searches only within the affected resources and neighboring processes.

[0082] The physical execution status is based on the MES; the prediction parameters are based on the model version of the digital twin system; the executable plan is based on the latest validated solution version number. Same event number. Processed only once. The entire system uses an NTP or PTP aligned workshop clock. When the time difference exceeds a preset time, the event is marked as low confidence and time synchronization is triggered.

[0083] like Figure 2 As shown, this embodiment of the invention provides a dynamic advanced scheduling system based on digital twins, comprising: The data sensing module collects the equipment status, material coordinates, and production progress of the physical workshop. It maps status events with event numbers, version numbers, serial numbers, and timestamps to the digital twin system via a message bus. The digital twin system updates the object image according to the condition that the serial numbers are consecutive and the version number is not lower than the local image. The dynamic prediction module, based on the updated object image, uses a mechanism model and a machine learning residual model to predict the dynamic processing time and failure probability of each machine tool, and publishes the dynamic processing time and failure probability as dynamic parameters to the scheduling engine. The confirmation receipt status of the dynamic parameters is "confirmed". The scheduling optimization module serves as a scheduling engine. In response to confirmed dynamic parameters and combined with production orders, it generates preliminary production plans under a multi-objective model consisting of hard and soft constraints by employing rolling time window decomposition, initial solution of constraint programming, and adaptive large neighborhood search. The pre-simulation verification module writes the preliminary production plan back to the digital twin system for pre-simulation. It detects AGV path collisions and line-side warehouse overflows based on the conditions of geometric intersection and time overlap. When interference is detected, it generates time repulsion constraints and feeds them back to the scheduling engine. The closed-loop execution module performs local fine-tuning based on the time exclusion constraint and generates an updated solution version number before rehearsing again until there are no conflicts or the maximum feedback rounds are reached. The final solution is then sent to the manufacturing execution system, which breaks down the final solution into equipment tasks and AGV tasks and forms a closed loop of planning, execution, and status based on the terminal execution result feedback. The rescheduling module freezes already started and indivisible processes when a disturbance event occurs, injects new hard constraints into adjustable processes and enables deviation penalties from the original plan, and performs local rescheduling within the affected resources and their upstream and downstream set number of layers.

[0084] The above description of the disclosed embodiments enables those skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A dynamic advanced scheduling method based on digital twins, characterized in that, include: S1. Collect the equipment status, material coordinates and production progress of the physical workshop, and map the status events with event numbers, version numbers, serial numbers and timestamps to the digital twin system through the message bus. The digital twin system updates the object image according to the condition that the serial numbers are consecutive and the version number is not lower than the local image. S2. The digital twin system, based on the updated object image, uses a mechanism model and a machine learning residual model to predict the dynamic processing time and failure probability of each machine tool, and publishes the dynamic processing time and failure probability as dynamic parameters to the scheduling engine. The confirmation receipt status of the dynamic parameters is "confirmed". S3. In response to the confirmed dynamic parameters, the scheduling engine combines production orders and, under the multi-objective model composed of hard and soft constraints, uses rolling time window decomposition, initial solution of constraint programming and adaptive large neighborhood search to generate a preliminary production scheduling plan. S4. Write the preliminary production plan back to the digital twin system for pre-rehearsal. Detect AGV path collisions and line-side warehouse overflows according to the conditions of geometric intersection and time overlap. When interference is detected, generate time repulsion constraints and feed them back to the scheduling engine. S5. The scheduling engine performs local fine-tuning based on the time exclusion constraint and generates an updated solution version number, then performs a rehearsal again until there are no conflicts or the maximum feedback round is reached. The final solution is then sent to the manufacturing execution system, which breaks down the final solution into equipment tasks and AGV tasks, and forms a closed loop of planning, execution, and status based on the terminal execution result feedback. S6. When a disturbance event occurs, freeze the processes that have already started and cannot be separated, inject new hard constraints into the adjustable processes and enable the original plan deviation penalty, and perform local rescheduling within the range of the affected resources and their upstream and downstream set layers.

2. The dynamic advanced scheduling method based on digital twins according to claim 1, characterized in that, In S1, the digital twin system updates the object mirror specifically including: When the serial numbers are consecutive and the version number is not lower than the local image, update the corresponding object image; When the sequence numbers are not consecutive, the out-of-order event will be entered into the rearrangement buffer, and a retransmission will be requested after the timeout. Status events with the same event number are processed only once. Using an NTP or PTP aligned workshop clock, when the time difference exceeds a set threshold, the corresponding event is marked as low confidence and time synchronization is triggered.

3. The dynamic advanced scheduling method based on digital twins according to claim 1, characterized in that, In S2, the mechanism model includes a mechanism degradation model and a mechanism hazard rate model, and the machine learning residual model includes a first gradient boosting tree model and a second gradient boosting tree model. The step of using the mechanism model and the machine learning residual model to predict the dynamic machining time of each machine tool includes: The system acquires tool wear, spindle load integral, material hardness grade, and standard working hours. The tool wear is calculated based on tool life count and tool life curve. The spindle load integral is collected and integrated in real time by a spindle current or power sensor. The material hardness grade is read from the material batch information by the MES. The standard working hours are obtained from the process route issued by the ERP or MES. The tool wear, spindle load integral, material hardness grade, and standard machining time are input into the trained mechanistic degradation model, and the baseline machining time is output. ; Vibration signals of the machine tool are collected at time t, frequency domain characteristics and operating condition characteristics are calculated, and exponential sliding smoothing is performed on the continuous quantities in the frequency domain characteristics and operating condition characteristics: in The original features at time t, To create a smooth image at time t, To create a smooth image of the previous moment. For smoothing coefficients; The frequency domain characteristics, operating condition characteristics, and baseline working hours after exponential smoothing are then analyzed. Input the trained first gradient boosting tree model and output the residual. ; Dynamic processing time prediction value for: in, is the residual fusion coefficient.

4. The dynamic advanced scheduling method based on digital twins according to claim 3, characterized in that, The failure probability is obtained by fusing the mechanistic hazard rate model with machine learning residuals: Input the tool wear, spindle load integral, and cumulative equipment runtime into the mechanism hazard rate model, and output the mechanism hazard rate baseline. ; The frequency domain features and operating condition features, after exponential sliding smoothing, are input into the trained second gradient boosting tree model, which outputs the hazard rate correction. ; according to Calculate the fusion risk rate and according to Calculate the probability of failure, where Here, is the fault residual fusion coefficient; where, Let t be the failure probability at time t; for Constantly integrate risk rates; For integration variables; The mechanistic hazard model adopts a Weibull distribution form: Where k is the shape parameter of the Weibull distribution, used to describe the trend of the failure rate changing over time. The scaling parameters of the Weibull distribution are used to describe the characteristic lifespan of the equipment and are obtained by fitting historical failure data using the least squares method.

5. The dynamic advanced scheduling method based on digital twins according to claim 4, characterized in that, In S2, the digital twin system also performs continuous training and updates, specifically including: Online caching includes the characteristics, actual working time, and whether a fault sample is present for each completed process. Calculate the mean error for W samples in the nearest window. , where W is the length of the error monitoring window; Get the mean error calculated using the same window length W when the last training was completed. ; When the time since the last training is met And error change When this occurs, incremental updates or retraining are triggered, where The time-triggered threshold, This is the threshold for error variation; After triggering, the current Updated to new .

6. The dynamic advanced scheduling method based on digital twins according to claim 5, characterized in that, In S3, the soft constraint is expressed as a weighted sum of total costs: in, To maximize the completion time, This refers to the cumulative duration of default relative to the delivery date. Penalty amount for idle time of high-energy-consuming equipment. The total score for the change penalty is... Penalty for deviations from the original plan during rescheduling; , , , , These are the baseline values ​​for each item, used to normalize each item into a dimensionless quantity; , , , , Non-negative weights; The total score for the changeover penalty applies to adjacent processes on the same machine tool, ordered by time. calculate: Where k is the process sorting index. For adjacent processes on the same machine tool; This is a type-change penalty function, applied when adjacent processes have the same type. =0, when the types are different To set positive values, and break them down into summation items based on fixture switching, program switching, and tool switching.

7. The dynamic advanced scheduling method based on digital twins according to claim 1, characterized in that, In S4, the steps for detecting AGV path collisions and line-side warehouse overflows based on the criteria of geometric intersection and temporal overlap include: Create a 3D bounding volume for the AGV body, load outline, passage restriction objects, and line-side warehouse stacking objects; First, use axis-aligned bounding boxes (AABB) for wide-phase coarse screening. Then, use directed bounding boxes (OBB) or the GJK distance algorithm for precise intersection testing to obtain geometric occupancy. ; Each movement or stacking action is accompanied by a time interval. and add a safety margin ;in The moment the action begins. The moment the action ends; Objects A and B interfere if and only if they are geometrically intersecting and temporally overlapping: Lineside warehouse overflow is defined as the predicted stacking height. Exceeding the position limit Or the planar projection exceeds the polygon of the warehouse; Where I(A,B) is the interference indicator function; G(A) and G(B) are the three-dimensional geometric occupancy sets of objects A and B, respectively; The start and end times of object A's time occupation; The start and end times of object B's time occupation.

8. The dynamic advanced scheduling method based on digital twins according to claim 7, characterized in that, In S4, the structured constraint events of the time-restricted constraint include: Conflict identifier, solution version, list of conflicting objects, spatial references, exclusion time range, safety margin, and suggested remediation methods; The suggested repair methods include delay, rerouting, or reallocation; For two conflicting release or hold events u and v, the following requirements must be met: That is, the safe neighborhoods at the time of completion or release of the two cannot overlap; or the sets of resource occupancy intervals do not intersect pairwise. in, , These represent the completion or release times of conflict-related events u and v, respectively. This is for a safety margin.

9. The dynamic advanced scheduling method based on digital twins according to claim 1, characterized in that, In S5, the step of sending the final solution to the Manufacturing Execution System (MES), and having the MES break down the final solution into equipment tasks and AGV tasks, includes: The Manufacturing Execution System breaks down the final solution into equipment processing tasks and AGV handling tasks; Equipment processing tasks are sent to the control terminals of each machine tool, and AGV handling tasks are sent to the AGV dispatch terminal. After the terminal returns the execution result acknowledgment ack=ACKED, the manufacturing execution system continuously compares the actual progress with the promised time window.

10. A dynamic advanced scheduling system based on digital twins, characterized in that, include: The data sensing module collects the equipment status, material coordinates, and production progress of the physical workshop. It maps status events with event numbers, version numbers, serial numbers, and timestamps to the digital twin system via a message bus. The digital twin system updates the object image according to the condition that the serial numbers are consecutive and the version number is not lower than the local image. The dynamic prediction module, based on the updated object image, uses a mechanism model and a machine learning residual model to predict the dynamic processing time and failure probability of each machine tool, and publishes the dynamic processing time and failure probability as dynamic parameters to the scheduling engine. The confirmation receipt status of the dynamic parameters is "confirmed". The scheduling optimization module serves as a scheduling engine. In response to confirmed dynamic parameters and combined with production orders, it generates preliminary production plans under a multi-objective model consisting of hard and soft constraints by using rolling time window decomposition, initial solution of constraint programming, and adaptive large neighborhood search. The pre-simulation verification module writes the preliminary production plan back to the digital twin system for pre-simulation. It detects AGV path collisions and line-side warehouse overflows based on the conditions of geometric intersection and time overlap. When interference is detected, it generates time repulsion constraints and feeds them back to the scheduling engine. The closed-loop execution module performs local fine-tuning based on the time exclusion constraint and generates an updated solution version number before rehearsing again until there are no conflicts or the maximum feedback rounds are reached. The final solution is then sent to the manufacturing execution system, which breaks down the final solution into equipment tasks and AGV tasks and forms a closed loop of planning, execution, and status based on the terminal execution result feedback. The rescheduling module freezes already started and indivisible processes when a disturbance event occurs, injects new hard constraints into adjustable processes and enables deviation penalties from the original plan, and performs local rescheduling within the affected resources and their upstream and downstream set number of layers.