An order production scheduling and safety stock replenishment joint optimization method and system
Patent Information
- Application Number
- CN202611112233.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-24
- Publication Date
- 2026-11-24
AI Technical Summary
Existing technologies struggle to achieve collaborative modeling and unified optimization of order demand, inventory pre-fulfillment, production line allocation, machine-level scheduling, and safety stock replenishment in hybrid assembly line workshops. This results in a disconnect between production planning and inventory replenishment, a discrepancy between theoretical capacity and actual machine scheduling capacity, and an inability to dynamically replenish inventory after it is depleted.
A joint optimization method of order scheduling and safety stock replenishment is adopted. By combining inventory and unfinished plans to pre-meet order demand, an executable production plan is generated through optimized allocation and machine-level scheduling. After normal order scheduling, dynamic replenishment scheduling is carried out based on inventory status and remaining capacity. A shadow scheduler is used for simulation evaluation to generate a safety stock replenishment plan.
It achieves unified optimization of normal order fulfillment and safety stock restoration, improves the feasibility, coordination and capacity utilization of production scheduling plans, reduces the risk of insufficient inventory, and enhances the demand response capability of the production system.
Smart Images

Figure CN123159718A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of intelligent manufacturing, production planning and scheduling optimization, machine processing scheduling and supply chain collaborative manufacturing technology, and more specifically, to a method and system for joint optimization of order scheduling and safety stock replenishment. Background Technology
[0002] The hybrid displacement flow shop scheduling problem is an important extension of the flow shop scheduling problem in complex manufacturing systems. Unlike the traditional displacement flow shop where "all workpieces are processed in the same machine sequence, and the workpiece order on each machine remains consistent," hybrid flow shops typically employ parallel machines or parallel production lines in one or more processing stages. Therefore, scheduling requires determining not only the order of order processing but also which production line or machine to assign each order to. Hybrid flow shop scheduling is a complex combinatorial optimization problem widely present in real-world industries. Related research includes various methods such as exact algorithms, heuristic algorithms, and metaheuristic algorithms. Hybrid flow shop scheduling methods can be classified according to the number of processing stages, machine characteristics, and extended constraints, and represent an important research direction in the field of flow shop scheduling.
[0003] In real-world manufacturing scenarios, hybrid replacement flow shops are widely found in industries such as automotive parts, machining, electronics manufacturing, metallurgy, chemicals, and printed circuit boards. Existing research indicates that scheduling problems involving hybrid flow shops with sequentially related changeover times and random equipment failures are present in production systems in chemical, textile, metallurgical, printed circuit board, and automotive manufacturing industries. Taking the production of automotive engine machined parts as an example, components such as cylinder blocks, cylinder heads, crankshafts, and flywheel housings typically require multiple machining processes. Different production lines may have different equipment combinations, machining cycles, and alternative process routes; changeover times also occur when switching product series or process codes on the same production line. Therefore, actual production scheduling is not merely a simple order sequencing problem, but also includes decisions regarding production line selection, process route selection, machine-level time scheduling, and changeover loss control.
[0004] Existing research on hybrid and distributed flow shops has considered various practical constraints. For example, research on distributed permutation flow shops focuses on order allocation and sequencing in multi-factory or multi-production-line environments. Distributed permutation flow shop scheduling is a rapidly growing research direction in scheduling in recent years because distributed manufacturing helps reduce production costs and disperse production risks. Related problems are categorized into classic problems, constrained problems, multi-objective problems, nondeterministic problems, and heterogeneous factory problems. In terms of algorithms, permutation flow shop and distributed permutation flow shop scheduling are widely used in job sequencing scenarios. Iterative greedy algorithms typically consist of initialization, destruction, reconstruction, and local search, and are suitable for solving scheduling problems that are difficult to solve precisely in polynomial time.
[0005] However, existing technologies still have problems: most studies focus more on general scheduling objectives such as maximum completion time, total flow time, total delay, or energy consumption, and do not adequately consider the business constraints in the machining site. Especially in the scenario of a hybrid replacement flow shop, orders often have different priorities; the same part number may correspond to multiple alternative process codes; production lines have single series lines, batch multiples, capacity limits, and shift calendar constraints; before scheduling production, it is also necessary to determine whether inventory and unfinished plans can meet order demand; after normal order scheduling, it is also necessary to determine whether to use remaining capacity for replenishment based on the upper and lower limits of safety stock. Existing methods usually handle production scheduling and inventory replenishment separately, making it difficult to form a complete closed loop from "order demand - inventory consumption - production line allocation - machine-level scheduling - safety stock replenishment - result output". Summary of the Invention
[0006] To address the challenges of collaborative modeling and unified optimization of order demand, inventory pre-fulfillment, production line allocation, machine-level scheduling, and safety stock replenishment in existing production scheduling, this invention provides a joint optimization method and system for order scheduling and safety stock replenishment to improve the executability of production plans, capacity utilization, and inventory assurance capabilities.
[0007] The technical solution adopted is as follows: A joint optimization method for order scheduling and safety stock replenishment combines the inventory status of the factories to which the candidate production lines belong, utilizes inventory and unfinished plans to pre-fulfill order demand, and determines the remaining demand for orders; optimizes the allocation and machine-level scheduling of orders with a remaining demand greater than 0, generating an executable normal order production plan; based on the inventory status and remaining capacity after normal order scheduling, replenishment scheduling is performed for part numbers with safety stock replenishment gaps; and outputs unified scheduling results for normal orders and replenishment orders.
[0008] Specifically, when the available quantity of inventory and unfinished plans is greater than or equal to the order demand, the order is determined to be fully pre-fulfilled; when the available quantity is greater than 0 and less than the order demand, the order is determined to be partially pre-fulfilled, and the difference between the two is taken as the remaining demand; when the available quantity is 0, the entire order demand is taken as the remaining demand; and normal order scheduling is carried out for orders with a remaining demand greater than 0.
[0009] The specific method for completing normal order scheduling using optimized allocation and machine-level scheduling is as follows: Based on a unified scheduling data model, we model multi-dimensional state information including orders, inventory, unfinished plans, process routes, machine cycle time, changeover time and shift calendar constraints. Based on production line manufacturability, process code validity, single series limitations, batch factor, and daily capacity limitations, the available production lines and process codes for orders are dynamically screened to form a combination scheme of order-production line-process code; Iteratively search for combinations of order-production line-process codes to generate production scheduling schemes that meet priority and capacity constraints; The allocation results in the production scheduling plan are refined to the start and end times of processing for each machine, resulting in a normal order production plan that can be directly executed.
[0010] Furthermore, during normal order scheduling, externally input order data is converted into a unified order object. The priority value corresponding to the source and type of order demand is found in the priority rule table, and the order priority is written into the order object. Orders are sorted according to order priority and delivery date, and inventory and unfinished plans are pre-fulfilled in sequence to obtain the remaining demand for each order. For orders with a remaining demand greater than 0, feasible candidate production line scheduling decisions are established.
[0011] For the remaining demand of normally scheduled orders, a feasible candidate production line scheduling decision is established. The specific method is as follows: Search for candidate production lines that can produce the order part number; Search for valid process codes within the current production date on the candidate production line; Check if a complete process route exists under the process code; Construct a set of candidate production lines that simultaneously meet the requirements of being manufacturable, having valid process codes, and possessing complete process routes; Check whether the candidate production lines simultaneously meet the production line rule constraints, including single-series production line constraints, process code consistency constraints, batch factor constraints, special order capacity constraints, daily capacity constraints, and changeover time constraints, to obtain feasible candidate production line scheduling decisions; The tabu search algorithm is used to optimize the production scheduling decision of feasible candidate production lines. The evaluation function used is:
[0012] Among them, w i Q represents the priority weight of order i. i unmet This indicates that the order quantity has not been met. setup T represents the cumulative replacement time. proc P represents the cumulative processing time. cap P represents the penalty for capacity constraints. alter The process code switching penalty is represented by λ1 to λ5, which represent the weight coefficients of each evaluation item.
[0013] Furthermore, based on the inventory status and remaining capacity after normal order production scheduling, replenishment and production scheduling are carried out for part numbers with safety stock replenishment gaps. The specific method is as follows: Reassess the inventory status after normal order production scheduling; The safety stock deviation evaluation mechanism is used to identify factory-part number combinations with high inventory risk and determine candidate replenishment tasks. The shadow scheduler is invoked to perform machine-level simulation of candidate replenishment tasks and evaluate the replenishment capacity of candidate replenishment tasks under the remaining capacity. Candidate replenishment tasks are sorted according to the degree of deviation from safety stock, and replenishment orders are automatically generated by combining the replenishment gap and the simulated replenishable quantity. Incorporate replenishment orders into the same machine-level scheduling mechanism for actual production scheduling, and generate a safety stock replenishment plan.
[0014] The specific method for dynamically generating a safety stock replenishment plan based on the inventory status after normal order scheduling and the remaining production line capacity is as follows: For any factory and part number, calculate the replenishment gap and the degree of safety stock deviation based on the current inventory, the upper and lower limits of safety stock; The replenishment priority for each part number is determined based on the degree of deviation from safety stock. Calculate the remaining available time for each production line after normal order scheduling; For production lines with remaining time, filter out the factories corresponding to the production lines, and find the part numbers with high deviations from safety stock within the factories; Determine whether the production line can produce part numbers with high safety stock deviations, and query valid process codes; The shadow scheduler is invoked to perform machine-level simulated production scheduling, obtain the simulated replenishment quantity of candidate replenishment tasks, and generate replenishment recommendations; The replenishment task is automatically selected based on the replenishment recommendation results, and machine-level production scheduling is performed by the actual scheduler.
[0015] The method for calculating the restocking gap is as follows:
[0016] in: Current inventory As a safety stock minimum, Safety stock limit f is the factory index, and p is the part number; The method for calculating the deviation of safety stock is as follows: in, This is used to prevent division by zero errors when the safety stock lower limit is zero.
[0017] On the other hand, this invention provides a joint optimization system for order scheduling and safety stock replenishment, employing a hierarchical joint optimization framework, including: The basic scheduling data input unit is used to receive order requirements, inventory, unfinished plans, process routes, machine cycle time, changeover time, shift calendar and production line rules; The normal order scheduling unit is used to optimize the allocation of normal orders and perform machine-level scheduling. The safety stock replenishment unit is used to replenish inventory and schedule production using the remaining capacity after normal order scheduling. The unified output unit is used to output the unified scheduling results for normal orders and replenishment orders.
[0018] The normal order scheduling unit includes: A unified scheduling data model models multi-dimensional state information including orders, inventory, unfinished plans, process routes, machine cycle time, changeover time, and shift calendar constraints. The rules constraint module sets up the logic of obtaining feasible production lines for orders, filtering valid process codes, checking process routes and sorting them by priority. It dynamically filters the optional production scheduling space for orders based on production line manufacturability, process code validity, single series restrictions, batch factor and daily capacity restrictions. The taboo search optimization module iteratively searches for combinations of order-production line-process codes to generate production allocation schemes that meet priority and capacity constraints. The machine-level calendar scheduling module refines the allocation results to the start and end times of each machine, resulting in a production plan that can be executed directly. The normal order scheduling result generation module is used to generate normal order production plans based on order allocation results and machine-level processing operations.
[0019] The safety stock replenishment unit includes: The evaluation module is used to re-evaluate the inventory status after normal order production scheduling; The safety stock deviation identification module uses a safety stock deviation evaluation mechanism to identify factory-part number combinations with high inventory risk and determine candidate replenishment tasks. The simulation replenishment evaluation module calls the shadow scheduler to perform machine-level simulation of candidate replenishment tasks and evaluates the replenishment capacity of candidate replenishment tasks under the remaining capacity. The replenishment task selection and order generation module is used to determine replenishment tasks based on the degree of deviation from safety stock and the simulated replenishable quantity, and to generate replenishment orders. The replenishment and production scheduling module is used to incorporate replenishment orders into the machine-level scheduling mechanism for actual production scheduling and generate a safety stock replenishment plan.
[0020] The technical solution of the present invention has the following advantages: A. The method of this invention does not simply rely on static production scheduling based on order delivery dates or inventory gaps. Instead, it achieves unified optimization of normal order fulfillment and safety stock recovery through the synergistic effect of rule-constrained reasoning, heuristic combinatorial optimization, and simulation-based replenishment capacity assessment. This effectively solves problems such as the separation between order planning and inventory replenishment, the inconsistency between theoretical capacity and actual machine scheduling capacity, and the inability to dynamically replenish inventory after it is depleted in traditional production scheduling schemes.
[0021] B. The method of this invention can automatically generate machine-level executable production scheduling plans under the condition that multiple factors such as order demand, inventory status, production line capacity, process route, machine cycle time, shift calendar and changeover constraints coexist. Compared with the production scheduling method that relies on human experience, this invention integrates order pre-fulfillment, inventory consumption, production line allocation, machine-level scheduling and replenishment decision into a unified process, which improves the executability, coordination and traceability of the production scheduling plan.
[0022] C. This invention establishes a linkage mechanism between normal order production scheduling and safety stock replenishment. After normal order production scheduling is completed, a replenishment plan is generated based on the degree of safety stock deviation and the remaining production capacity of the production line. Compared with the method of replenishment relying on manual judgment after the fact, this invention can dynamically replenish inventory using the remaining capacity without affecting the delivery of normal orders, thereby reducing the risk of insufficient inventory and improving capacity utilization and the demand response capability of the production system. Attached Figure Description
[0023] To more clearly illustrate the specific embodiments of the present invention, the accompanying drawings used in the specific embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0024] Figure 1 This is a block diagram of the joint optimization method provided by the present invention; Figure 2 This is a schematic diagram of the system composition provided by the present invention; Figure 3 This is a comparison of Gantt charts for different algorithms provided by this invention. Detailed Implementation
[0025] The technical solution of the present invention will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0026] like Figure 1 As shown, this invention provides a joint optimization method for order scheduling and safety stock replenishment in multi-factory mixed displacement production lines, which mainly includes the following steps:
S01
[0027] Throughout the scheduling cycle, order tasks dynamically enter the production system, and the order set is denoted as... Where n is the total number of orders and i is the order index. Each order has O(n). i Corresponding to a part number p to be manufactured i Quantity required q i Product Series i Delivery date d i Demand source and demand type. Different orders have different business priorities, and the system needs to match orders with priorities based on demand source and demand type; if an order belongs to a special demand type, it is also subject to the upper limit of dedicated production capacity under the corresponding production line and series.
[0028] For any order O i Its corresponding part number p i There may be multiple possible process routes. Specifically, the same piece number can be produced on different production lines and under different process codes, with different process codes corresponding to different machine processing sequences and cycle times. Each candidate process route must meet constraints such as process code validity period, production line priority, machine cycle time, and production line series rules. Let order O... i On production line L l The set of optional process codes on is A i,l Then the system needs to consider candidate combinations (L) l ,a i,l Choose a feasible solution from the options provided. .
[0029] This invention not only requires deciding how to produce an order, but also first determining whether the order can be fulfilled by inventory or unfinished plans. For factory F f and part number p i The system maintains its current inventory I f,pi Number of unfinished projects u f,pi Safety stock minimum S f,pi min and safety stock cap S f,pi max When order O iUpon arrival, the system needs to consider the inventory status of the factory to which the candidate production line belongs, and prioritize the consumption of unfinished plans and existing inventory. If the inventory and unfinished plans can fully meet the order demand, the order will no longer be included in the production schedule. If they can only partially meet the demand, the remaining demand will be included in the subsequent production scheduling. If they cannot meet the demand, the entire order will be included in the production schedule.
[0030]
S02
[0031] The specific method is as follows:
S021
[0032] During the operation of the production system, when an order demand enters the system, the system first models multi-dimensional status information such as orders, inventory, unfinished plans, process routes, machine cycle time, changeover time and shift calendar based on a unified scheduling data model.
S022
[0033]
S023
[0034]
S024
[0035] Normal order scheduling is the core stage of the method of this invention. The goal of this stage is not simply to schedule production according to the order of order arrival or delivery date, but to generate a production plan that can be implemented based on a comprehensive consideration of order priority, inventory availability, unfinished plans, production line processing capacity, process code validity, machine cycle time, changeover time and shift calendar constraints.
[0036] During the normal order scheduling phase, the externally input order data is first converted into a unified order object. An order object includes at least the following fields: order number, part number, product series, demand source, demand type, demand quantity, delivery date, and submission date. This order object, along with production line objects, machine objects, and inventory objects, forms the data foundation required for production scheduling.
[0037] After constructing the order object, order priorities are matched based on the demand source and demand type. Specifically, the priority value corresponding to the order demand source and demand type is found in the priority rule table and written into the order object; orders are sorted according to order priority and delivery date, and inventory and unfinished work plans are pre-fulfilled sequentially to obtain the remaining demand for each order; for orders with a remaining demand greater than 0, feasible candidate production line scheduling decisions are established. If no matching rule exists, a default low priority is assigned. This method transforms enterprise business rules into algorithm-recognizable sorting criteria, giving high-priority orders higher processing weight in inventory deduction, production line allocation, and machine scheduling.
[0038] Table 1. Normal Order Production Scheduling Status Information
[0039] The status information shown in Table 1 above collectively constitutes the input space for normal order scheduling. Unlike traditional scheduling methods that rely solely on order quantity and production line capacity, this method incorporates inventory status, process status, machine status, and shift status into the scheduling decision, enabling the scheduling plan to be implemented from the order level down to the machine level and remain consistent with the actual work calendar.
[0040] After priorities are determined, production scheduling is not immediately implemented for all orders. Instead, inventory and unfinished work are pre-fulfilled. For any order O i Let the required quantity be q. i The current inventory corresponding to the factory-part number dimension is I. i The number of unfinished projects is U i The quantity of this order that can be covered by existing resources is:
[0041] The remaining demand before orders enter production scheduling is:
[0042] Specifically, orders are deducted first from unfinished plans, and then from existing inventory. This is because unfinished plans typically represent resources that have already entered the production or planning process, and prioritizing the use of these resources can reduce planning duplication and production conflicts.
[0043] Table 2 Order Pre-fulfillment Results and Processing Methods
[0044] Table 2 illustrates that the inventory pre-fulfillment mechanism in this application is not merely a simple inventory deduction operation, but also directly alters the subsequent order scheduling path. Fully fulfilled orders no longer occupy production line capacity, partially fulfilled orders participate in subsequent production scheduling only with the remaining quantity, and unfulfilled orders are fully incorporated into the production schedule. This maximizes the utilization of existing inventory and work-in-process resources without affecting order fulfillment.
[0045] For orders that still need to be produced, a set of feasible production lines and process codes is further constructed. The specific method is as follows: First, candidate production lines that can produce the order part number are queried. Then, valid process codes within the current production date are queried on the candidate production lines. Finally, it is checked whether a complete process route exists under the process code. Only when the combination of the three conditions of "production line can produce, process code is valid, and process route is complete" is met will the subsequent optimization process begin.
[0046] The set of feasible production line-process codes used is represented as follows:
[0047] Among them, O i Indicates an order, p i This indicates the order part number, d indicates the production date, and L(p) represents the order part number. i ) indicates that part number p can be processed. i The set of production lines, A(p) i ,L l ,d) indicates that item number p is under date d. i On production line L l L l The available set of process codes, R(p) i ,L l ,d) represents the corresponding process route.
[0048] After forming the candidate set, it is necessary to further determine whether the candidate solutions meet the production line rule constraints. This step transforms "theoretically capable of processing" into "actually feasible for production scheduling." Specifically, it checks single-series production line constraints, process code consistency constraints, batch factor constraints, special order capacity constraints, daily capacity constraints, and changeover time constraints. If a candidate production line has a process route but violates the production line rules or capacity constraints, it will not be constructed as a valid production scheduling decision.
[0049] Table 3. Main Constraints on Normal Order Scheduling
[0050] The constraints in Table 3 collectively constitute the constraint system for production scheduling decisions. These constraints are not passively verified only after scheduling is completed, but are continuously applied during candidate decision construction, search optimization, and machine-level scheduling. For example, if the remaining capacity of a certain special order on a certain production line is insufficient, the system will limit its available quantity; if an order causes a production line series switch, the system will estimate the changeover time on the corresponding machine; if a process code is not within its validity period, that process code will not enter the selectable set.
[0051] After feasible candidate decisions are formed, the system uses a tabu search algorithm to optimize the order-production line-process code combination. Since each order may correspond to multiple production lines and various process codes, and different orders are coupled with factors such as production line capacity, changeover time, special capacity, and process code consistency, this problem is a typical discrete combinatorial optimization problem. If an exhaustive approach is used, the computational complexity increases rapidly with the number of orders and production lines. The method of this invention uses tabu search, through initial solution construction, neighborhood search, tabu list constraints, and optimal solution updates, to obtain a better allocation scheme within an acceptable timeframe.
[0052] The evaluation function for tabu search comprehensively considers unmet needs, order priority, changeover time, processing time, capacity penalty, and process changeover penalty, and can be expressed as:
[0053] Among them, w i Q represents the priority weight of order i. i unmet This indicates that the order quantity has not been met. setup T represents the cumulative replacement time. proc P represents the cumulative processing time. cap P represents the penalty for capacity constraints. alter The process code switching penalty is represented by λ1 to λ5, which represent the weight coefficients of each evaluation item.
[0054] The evaluation function described above not only maximizes total output but also considers order importance, resource utilization efficiency, and production stability. For high-priority orders, failure to meet quantity targets incurs greater penalties, thus the search process tends to prioritize these orders. For solutions requiring frequent model changes or process code switching, the evaluation function increases the corresponding costs, thereby suppressing inefficient scheduling schemes.
[0055] After the order-production line-process code allocation is completed, the machine-level scheduling stage begins. In this stage, processing operations are generated piece-by-piece and machine-by-machine according to the machine sequence in the selected process route of the order. Each operation record includes the order ID, order number, part number, production line, process code, machine number, processing time, changeover time, start time, and end time.
[0056] For order O i For a given machine processing operation to start, three conditions must be met simultaneously: first, the previous process for that order has been completed; second, the previous task on the current machine has been completed; and third, the current time falls within a valid shift on the production line. Therefore, its start time can be expressed as:
[0057] Where C i,k-1 Indicates the completion time of the previous process, C Mk Indicates the current final completion time of machine Mk, B l This indicates the start time of the effective shift on the production line. If the processing extends beyond non-working hours, the system will call the work calendar allocator to skip the non-working period and carry over the remaining processing time to the next available shift.
[0058] Through machine-level scheduling, the method of this invention can identify conflicts that coarse-grained capacity estimation cannot detect, such as multiple overlapping tasks on the same machine, later processes completing earlier than earlier processes, shift shortages due to changeover time, and the need to postpone cross-shift processing. Therefore, the output of this invention is not a theoretical production quantity, but an executable plan with clear processing start and end times and machine occupancy relationships. The specific scheduling algorithm for normal orders is as follows: Input: Order set O, basic scheduling data D, priority rule P, production date d Hyperparameters: maximum number of iterations (max_iters), tabu duration (tabu_tenure), neighborhood sampling size (neighbor_sample_size) Output: Normal order scheduling result S, order fulfillment status set R, updated inventory and incomplete plan status I′, incomplete order set B 1. Initialize the scheduler (D) 2. For each order Oi ∈ O do 3. Prioritize orders based on demand source and demand type. 4. Initialize remaining_qty[Oi] = Oi.demand_qty 5. end for 6. Sort O by order priority and delivery date to obtain O_sorted 7. For each order Oi ∈ O_sorted do 8. Determine the initial candidate production line and its corresponding candidate factory based on the order part number. 9. Search for available unfinished projects and inventory within the candidate plant range. 10. Prioritize deducting available unfinished projects, then deduct inventory. 11. Calculate and update remaining_qty[Oi] 12. Record the status of fully pre-satisfied, partially pre-satisfied, or unable to be pre-satisfied. 13. end for 14. Filter orders with remaining_qty[Oi] > 0 to form a set of orders to be scheduled, O_active. 15. For each order Oi ∈ O_active, do 16. Search for candidate production lines that can process order part numbers. 17. Filter valid process codes within the current production date. 18. Check the integrity of the process route. 19. Check the constraints of order series, batch factor, P-type order dedicated capacity, daily capacity, changeover time, and shift calendar. 20. Constructing a Feasible Production Line—Process Code Combination Candidate[Oi] 21. end for 22. Use the tabu search algorithm to optimize the Candidate. 23. Order Receiver – Production Line – Process Code Allocation Plan 24. For each order Oi ∈ O_active, do 25. if Plan[Oi] does not exist then 26. Add Oi to the incomplete order set B. 27. continue 28. end if 29. Construct a production scheduling decision based on Plan[Oi]. 30. Execute machine-level calendar scheduling piece-by-piece and machine-by-machine according to the selected process route. 31. Update remaining_qty[Oi], machine status, production line status, and order fulfillment status. 32. if remaining_qty[Oi]>0 then 33. Add Oi to the incomplete order set B. 34. end if 35. end for 36. Summarize orders that are fully satisfied, partially satisfied, and unsatisfied. 37. Output S, R, I′, and B
S03
[0059] After normal order production is completed, the inventory levels of different part numbers in each factory will change, and some part numbers may fall below the target safety stock range. At this time, it is necessary to calculate the safety stock gap and deviation of each factory and part number based on the inventory status after normal production. Without affecting normal order production, a replenishment plan should be generated using the remaining available time of each production line to maintain a safe inventory level.
[0060] The method of this invention does not use fixed replenishment rules, nor does it simply generate replenishment quantities based on safety stock gaps. Instead, it dynamically generates replenishment plans based on the inventory status after normal order scheduling and the remaining capacity of the production line.
[0061] For any factory F f Let the part number p be the current inventory number I. f,p The safety stock minimum is S f,p min The safety stock limit is S f,p max The system first calculates the replenishment gap:
[0062] Then, the degree of deviation from the safety stock was calculated:
[0063] in, This is used to avoid division by zero errors when the safety stock lower limit is zero. The greater the deviation, the more dangerous the current inventory of that part number is relative to the safety stock target, and the higher its replenishment priority.
[0064] Table 4. Key Constraints on Safety Stock Replenishment and Production Scheduling
[0065] Table 4 illustrates that safety stock replenishment is not simply a matter of inventory calculation, but rather a result of the combined effects of inventory risk and production capacity. Even if there is a significant replenishment shortfall for a particular part number, the system will not generate an unexecutable replenishment plan if the corresponding factory has no available production line on that day, or if the remaining time on the production line is insufficient to complete production.
[0066] After calculating the inventory deviation, the remaining available time for each production line after normal order scheduling is further calculated. For production line L... l Let E be the end time of its daily service.l The normal order's final completion time is C. l last The remaining time is:
[0067] If a production line has no scheduled orders for the day, the remaining time for that line is the full shift time; if scheduled orders have already filled the shift, the remaining time is zero. This step ensures that replenishment tasks only use remaining capacity after scheduled orders and do not compete with scheduled orders for capacity. In other words, the capacity boundary during the replenishment phase is not the theoretical capacity, but the actual available time window after deducting scheduled orders.
[0068] After determining the remaining time for each production line, candidate replenishment part numbers are screened line by line. For each production line with remaining time, its factory is first identified, and then part numbers with high inventory deviations are searched only within that factory. Next, it is determined whether the production line can produce that part number, and a valid process code is queried. If the production line has already used a certain process code during the normal order scheduling phase, the active process code is prioritized for matching during the replenishment phase to reduce additional process changes; if the production line has not yet generated an active process code for the current day, a process code that is valid for the current date and has a higher priority is selected.
[0069] After obtaining the candidate part number, candidate production line, and candidate process code, the theoretical capacity is not directly used as the replenishment quantity. Instead, a shadow scheduler is introduced to perform real machine-level simulation. The shadow scheduler is a copy of the real scheduler's state, and its purpose is to test whether a replenishment task can be completed within the remaining time without disrupting the normal order scheduling results.
[0070] Let production line L l Theoretically, for item number p, the replenishment quantity could be Q. l,p trial The system will input this data into the shadow scheduler and test the number of tasks that can be completed step by step according to the real machine-level scheduling logic. The final result is:
[0071] in, This represents the actual replenishable inventory quantity. This quantity takes into account remaining shift time, process route, machine cycle time, bottleneck machines, batch factor, and changeover time. Therefore, it is more reliable than the theoretical replenishment quantity calculated solely based on hourly output.
[0072] After the simulation is completed, the system automatically selects a replenishment task based on the replenishment recommendation results. The selection principles include: prioritizing part numbers with higher safety stock deviations; if the same part number corresponds to multiple feasible production lines, prioritizing the production line with the larger simulated replenishment quantity; and avoiding duplicate allocation of the same production line in the same replenishment round.
[0073] Selected replenishment tasks are converted into safety stock replenishment orders. These orders, like regular orders, are processed by the real scheduler for machine-level production scheduling. Therefore, their production process is also constrained by process routes, machine cycle times, shift calendars, changeover times, and production line status. Once production scheduling for a replenishment order is complete, the system records its part number, factory, production line, process code, production date, actual production quantity, completion time, and remaining quantity.
[0074] The specific algorithm for replenishing safety stock is as follows: Input: Basic scheduling data D, Scheduler with completed normal order scheduling, Production date d Output: Safety stock replenishment order set SO, replenishment scheduling result SP, and inventory status I' after replenishment. 1. For each inventory object Inv in D.inventory, do 2. Calculate the replenishment gap: shortage = max(0, safety stock limit - current inventory) 3. Calculate the deviation: deviation = shortage / max(safety stock lower limit, 1) 4. end 5. Sort the replenishment item numbers in descending order according to the degree of deviation. 6. Calculate the remaining available time for each production line after normal order scheduling. 7. For each production line Ll with remaining time, do... 8. Screen part numbers within the factory to which Ll belongs that have a high degree of deviation and can be produced by Ll. 9. Determine the valid process code 10. Estimate the theoretically replenishable quantity trial_qty 11. Call the shadow scheduler to simulate the actual number of databases that can be replenished, sim_qty. 12. If sim_qty > 0, then generate a database supplement recommendation. 13. end 14. Select the database replenishment task based on the degree of deviation and sim_qty. 15. For each selected database replenishment task, do... 16. Create a safety stock replenishment order 17. Call the machine-level scheduling algorithm to execute replenishment and production scheduling. 18. Update replenishment quantity, production line status, and inventory status. 19. end 20. Clear simulated orders 21. Output SO, SP, I'
S04
[0075] After both normal order scheduling and safety stock replenishment are completed, the two types of results are converted into a unified field structure, and a final result table is generated. This result table records not only the production scheduling quantity, but also information such as order fulfillment method, inventory consumption, unfinished planned consumption, scheduling factory, production line, process code, production date, and completion time.
[0076] Normal order results include: fully satisfied orders, partially satisfied orders, and unsatisfied orders. For partially satisfied orders, the system can record the quantity satisfied and the remaining demand quantity, and generate a split record when necessary.
[0077] The results of safety stock replenishment include: replenishment order information and inventory changes before and after replenishment. Replenishment order information includes replenishment order number, part number, replenishment quantity, actual production quantity, scheduling factory, production line, process code, and completion time; inventory change information includes beginning inventory, replenishment quantity, ending inventory, safety stock lower limit, and safety stock upper limit.
[0078] like Figure 2 As shown, this invention also provides a joint optimization system for order scheduling and safety stock replenishment in multi-factory mixed-displacement production lines. It adopts a hierarchical joint optimization framework, including: a basic scheduling data input unit, a normal order scheduling unit, a safety stock replenishment unit, and a unified result output unit. The basic scheduling data input unit receives basic data inputs such as order requirements, inventory, unfinished work plans, process routes, machine cycle time, changeover time, shift calendar, and production line rules. The normal order scheduling unit performs optimized allocation of normal orders and machine-level scheduling. The safety stock replenishment unit utilizes the remaining capacity after normal order scheduling to complete replenishment scheduling. The unified result output unit outputs unified scheduling results for both normal and replenishment orders.
[0079] The normal order scheduling unit includes: a unified scheduling data model, a rule constraint module, a tabu search optimization module, a machine-level calendar scheduling module, and a normal order scheduling result generation module. The unified scheduling data model models multi-dimensional state information including orders, inventory, incomplete plans, process routes, machine cycle time, changeover time, and shift calendar constraints. The rule constraint module includes logic for obtaining feasible production lines for orders, filtering valid process codes, checking process routes, and prioritizing them. It dynamically filters the available scheduling space for orders based on production line manufacturability, process code validity, single-series limitations, batch factors, and daily capacity limitations. The tabu search optimization module iteratively searches for order-production line-process code combinations to generate scheduling allocation schemes that meet priority and capacity constraints. The machine-level calendar scheduling module refines the allocation results to the start and end times of each machine's processing, resulting in a directly executable production plan. The normal order scheduling result generation module generates normal order production plans based on order allocation results and machine-level processing operations.
[0080] The safety stock replenishment unit includes: an assessment module, a safety stock deviation identification module, a simulation replenishment assessment module, a replenishment task selection and order generation module, and a replenishment scheduling module. The assessment module reassesses the inventory status after normal order scheduling; the safety stock deviation identification module uses a safety stock deviation evaluation mechanism to identify factory-part number combinations with high inventory risk and determine candidate replenishment tasks; the simulation replenishment assessment module calls a shadow scheduler to perform machine-level simulation of candidate replenishment tasks, evaluating their replenishment capacity under remaining capacity; the replenishment task selection and order generation module determines replenishment tasks based on the safety stock deviation and simulated replenishable quantity, and generates replenishment orders; the replenishment scheduling module incorporates replenishment orders into a machine-level scheduling mechanism for real-world production scheduling, generating a safety stock replenishment plan.
[0081] This invention was validated based on production order data from May 6, 2026, and compared with three traditional rule-based algorithms: EDD (Earliest Delivery Date First), FCFS (First-Come, First-Served), and SPT (Shortest Processing Time First). The results show that, under the same number of orders and total demand, both the algorithm of this invention and the EDD algorithm achieved a demand fulfillment rate of 1773 units, reaching 79.0%, higher than FCFS's 78.5% and SPT's 76.6%. While the algorithm of this invention did not fully fulfill the highest number of orders, it had only one unfulfilled order, indicating the fewest unfulfilled orders. This demonstrates that while maintaining a high demand fulfillment rate, it ensures more orders are at least partially fulfilled, resulting in stronger order coverage. In contrast, the SPT algorithm fully fulfilled the most orders but had the lowest total demand fulfillment, indicating a preference for prioritizing small-batch or short-processing-time orders, leading to a decrease in overall demand fulfillment. In conclusion, in the current scenario of multiple production lines, multiple candidate paths, and multiple constraints, the algorithm of this invention achieves better overall scheduling performance in terms of demand fulfillment rate, unfulfilled order control, and order coverage. Table 5 shows the normal order scheduling results for different algorithms.
[0082] Table 5 Comparison of Normal Order Scheduling Results for Different Algorithms
[0083] Based on production line utilization and replenishment results, the algorithm of this invention, after adding safety stock replenishment, achieved a total daily production of 1213 units, higher than EDD's 1206 units, FCFS's 1193 units, and SPT's 1201 units; the replenishment quantity reached 553 units, 83 units more than the three comparison algorithms, representing an improvement of approximately 17.7%. Simultaneously, this invention had the shortest changeover time, only 60 minutes, which is 30 minutes, 90 minutes, and 50 minutes less than EDD, FCFS, and SPT, respectively. The production line load and replenishment results for different algorithms are shown in Table 6.
[0084] Table 6 Comparison of Production Line Load and Replenishment Results for Different Algorithms
[0085] To further demonstrate the machine-level executability of the method's output and its capacity utilization advantage over traditional rule-based algorithms, a machine-level scheduling Gantt chart was drawn for typical production lines on the same production date, as shown below. Figure 3 As shown in the figure. Different colors in the figure represent different orders or replenishment tasks, red sections represent changeover times, and blank sections represent non-working hours or unused capacity.
[0086] From the perspective of inventory risk control results, the safety stock replenishment module can reduce the number of part numbers below the safety stock lower limit and the safety stock gap. After replenishment, the safety stock lower limit gap of this invention is 323 units, lower than the 363 units for EDD and FCFS; the gap calculated based on the safety stock upper limit is 8860 units, also lower than the 8867 units for EDD and FCFS. The inventory risk results for different algorithms are shown in Table 7.
[0087] Table 7 Comparison of Inventory Risk Operation Results of Different Algorithms
[0088] Based on the results of order fulfillment structure, demand fulfillment quantity, replenishment capacity, and production line load, the algorithm of this invention fulfills 1773 normal order demands, achieving a demand fulfillment rate of 79.0%, tied for the highest with EDD (Electronic Demand). The number of completely unfulfilled orders is 1, fewer than the three comparison algorithms. After adding safety stock replenishment, daily production reaches 1213 units, with a replenishment quantity of 553 units and a cumulative changeover time of 60 minutes. The results indicate that the algorithm of this invention achieves good overall performance in terms of order fulfillment, order coverage, utilization of remaining capacity, changeover control, and inventory assurance.
[0089] Compared with scheduling methods based on a single sorting rule, such as EDD, FCFS, and SPT, the method and system of this invention use tabu search to comprehensively optimize order allocation, production line selection, and production constraints. It can simultaneously consider factors such as unmet needs, order priority, capacity limitations, production line priority, and changeover time during the evaluation process. Therefore, it is more suitable for mixed replacement flow workshop scenarios with a large number of orders, strong coupling relationships between candidate production lines, and complex constraints.
[0090] This invention employs a closed-loop scheduling mechanism of "normal order scheduling + remaining capacity safety stock replenishment" to generate replenishment plans after normal order scheduling is completed, thereby reducing safety stock risk without affecting the delivery of normal orders.
[0091] Experimental results show that the present invention has the technical effects of improving demand satisfaction capability, enhancing production scheduling stability under complex constraints, improving the utilization rate of spare capacity, and reducing inventory risk.
[0092] Any aspects not covered in this invention are applicable to existing technologies.
[0093] Obviously, the above embodiments are merely illustrative examples for clear explanation and are not intended to limit the implementation. Those skilled in the art will recognize that other variations or modifications can be made based on the above description. It is neither necessary nor possible to exhaustively list all possible implementations here. However, obvious variations or modifications derived therefrom are still within the scope of protection of this invention.
Claims
1. A method for joint optimization of order scheduling and safety stock replenishment, characterized in that, Based on the inventory status of the factories to which the candidate production lines belong, the remaining demand for the orders is pre-fulfilled by utilizing inventory and unfinished plans, and the remaining demand for the orders is determined. Optimize the allocation and machine-level scheduling of orders with remaining demand greater than 0, and generate an executable production plan for normal orders; Based on the inventory status and remaining capacity after normal order production scheduling, replenishment and production scheduling will be carried out for part numbers with safety stock replenishment gaps; Output a unified schedule for normal orders and replenishment orders.
2. The method for joint optimization of order scheduling and safety stock replenishment according to claim 1, characterized in that, When the available quantity of inventory and unfinished plans is greater than or equal to the order demand, the order is determined to be fully pre-fulfilled; when the available quantity is greater than 0 and less than the order demand, the order is determined to be partially pre-fulfilled, and the difference between the two is taken as the remaining demand; when the available quantity is 0, the entire order demand is taken as the remaining demand; orders with a remaining demand greater than 0 are scheduled for normal production.
3. The method for joint optimization of order scheduling and safety stock replenishment according to claim 1, characterized in that, The specific method for completing normal order scheduling using optimized allocation and machine-level scheduling is as follows: Based on a unified scheduling data model, we model multi-dimensional state information including orders, inventory, unfinished plans, process routes, machine cycle time, changeover time and shift calendar constraints. Based on production line manufacturability, process code validity, single series limitations, batch factor, and daily capacity limitations, the available production lines and process codes for orders are dynamically screened to form a combination scheme of order-production line-process code; Iteratively search for combinations of order-production line-process codes to generate production scheduling schemes that meet priority and capacity constraints; The allocation results in the production scheduling plan are refined to the start and end times of processing for each machine, resulting in a normal order production plan that can be directly executed.
4. The method for joint optimization of order scheduling and safety stock replenishment according to claim 3, characterized in that, During normal order scheduling, externally input order data is converted into a unified order object. The priority value corresponding to the source and type of the order requirement is found in the priority rule table, and the order priority is written into the order object. Orders are sorted according to priority and delivery date, and inventory and unfinished plans are pre-fulfilled in sequence to obtain the remaining demand for each order; for orders with remaining demand greater than 0, feasible candidate production line scheduling decisions are established.
5. The method for joint optimization of order scheduling and safety stock replenishment according to claim 4, characterized in that, For the remaining demand of normally scheduled orders, establish feasible candidate production line scheduling decisions. The specific method is as follows: Search for candidate production lines that can produce the order part number; Search for valid process codes within the current production date on the candidate production line; Check if a complete process route exists under the process code; Construct a set of candidate production lines that simultaneously meet the requirements of being manufacturable, having valid process codes, and possessing complete process routes; Check whether the candidate production lines simultaneously meet the production line rule constraints, including single-series production line constraints, process code consistency constraints, batch factor constraints, special order capacity constraints, daily capacity constraints, and changeover time constraints, to obtain feasible candidate production line scheduling decisions; The tabu search algorithm is used to optimize the production scheduling decision of feasible candidate production lines. The evaluation function used is: , Among them, w i Q represents the priority weight of order i. i unmet This indicates that the order quantity has not been met. setup T represents the cumulative replacement time. proc P represents the cumulative processing time. cap P represents the penalty for capacity constraints. alter The process code switching penalty is represented by λ1 to λ5, which represent the weight coefficients of each evaluation item.
6. The method for joint optimization of order scheduling and safety stock replenishment according to claim 1, characterized in that, Based on the inventory status and remaining capacity after normal order production scheduling, replenishment and production scheduling are carried out for part numbers with safety stock replenishment gaps. The specific method is as follows: Reassess the inventory status after normal order production scheduling; The safety stock deviation evaluation mechanism is used to identify factory-part number combinations with high inventory risk and determine candidate replenishment tasks. The shadow scheduler is invoked to perform machine-level simulation of candidate replenishment tasks and evaluate the replenishment capacity of candidate replenishment tasks under the remaining capacity. Candidate replenishment tasks are sorted according to the degree of deviation from safety stock, and replenishment orders are automatically generated by combining the replenishment gap and the simulated replenishable quantity. Incorporate replenishment orders into the same machine-level scheduling mechanism for actual production scheduling, and generate a safety stock replenishment plan.
7. The method for joint optimization of order scheduling and safety stock replenishment according to claim 6, characterized in that, A safety stock replenishment plan is dynamically generated based on the inventory status after normal order scheduling and the remaining production line capacity. The specific method is as follows: For any factory and part number, calculate the replenishment gap and the degree of safety stock deviation based on the current inventory, the upper and lower limits of safety stock; The replenishment priority for each part number is determined based on the degree of deviation from safety stock. Calculate the remaining available time for each production line after normal order scheduling; For production lines with remaining time, filter out the factories corresponding to the production lines, and find the part numbers with high deviations from safety stock within the factories; Determine whether the production line can produce part numbers with high safety stock deviations, and query valid process codes; The shadow scheduler is invoked to perform machine-level simulated production scheduling, obtain the simulated replenishment quantity of candidate replenishment tasks, and generate replenishment recommendations; The replenishment task is automatically selected based on the replenishment recommendation results, and machine-level production scheduling is performed by the actual scheduler.
8. The method for joint optimization of order scheduling and safety stock replenishment according to claim 7, characterized in that, The method for calculating the inventory replenishment gap is as follows: , Among them: I f,p For the current inventory, S f,p min As the lower limit of safety stock, S f,p max The safety stock limit is given by f, where f is the factory index and p is the part number. The method for calculating the deviation of the safety stock is as follows: , in, This is used to prevent division by zero errors when the safety stock lower limit is zero.
9. A joint optimization system for order scheduling and safety stock replenishment, characterized in that, A hierarchical joint optimization framework is adopted, including: The basic scheduling data input unit is used to receive orders, inventory, unfinished plans, process routes, machine cycle times, changeover times, shift calendars, and production line rules. The normal order scheduling unit is used to optimize the allocation of normal orders and perform machine-level scheduling. The safety stock replenishment unit is used to replenish inventory and schedule production using the remaining capacity after normal order scheduling. The unified output unit is used to output the unified scheduling results for normal orders and replenishment orders.
10. The order scheduling and safety stock replenishment joint optimization system according to claim 9, characterized in that, The normal order scheduling unit includes: A unified scheduling data model models multi-dimensional state information including orders, inventory, unfinished plans, process routes, machine cycle time, changeover time, and shift calendar constraints. The rules constraint module sets up the logic of obtaining feasible production lines for orders, filtering valid process codes, checking process routes and sorting them by priority. It dynamically filters the optional production scheduling space for orders based on production line manufacturability, process code validity, single series restrictions, batch factor and daily capacity restrictions. The taboo search optimization module iteratively searches for combinations of order-production line-process codes to generate production allocation schemes that meet priority and capacity constraints. The machine-level calendar scheduling module refines the allocation results to the start and end times of each machine, resulting in a production plan that can be executed directly. The normal order scheduling result generation module is used to generate normal order production plans based on order allocation results and machine-level processing operations; The safety stock replenishment unit includes: The evaluation module is used to re-evaluate the inventory status after normal order production scheduling; The safety stock deviation identification module uses a safety stock deviation evaluation mechanism to identify factory-part number combinations with high inventory risk and determine candidate replenishment tasks. The simulation replenishment evaluation module calls the shadow scheduler to perform machine-level simulation of candidate replenishment tasks and evaluates the replenishment capacity of candidate replenishment tasks under the remaining capacity. The replenishment task selection and order generation module is used to determine replenishment tasks based on the degree of deviation from safety stock and the simulated replenishable quantity, and to generate replenishment orders. The replenishment and production scheduling module is used to incorporate replenishment orders into the machine-level scheduling mechanism for actual production scheduling and generate a safety stock replenishment plan.
