A chain store multi-store order balanced distribution and inventory management method
By constructing a dual-dimensional benchmark system of production capacity and inventory and a rolling time-domain double-layer nested optimization model, the imbalance in order allocation and inventory management of chain merchants was solved, the balance between order allocation and inventory scheduling was achieved, the near-expiry loss and operating costs were reduced, the timeliness of fulfillment and delivery was stabilized, and the operational efficiency and service quality were improved.
Patent Information
- Application Number
- CN202611680290.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-28
- Publication Date
- 2026-11-27
AI Technical Summary
There is an imbalance in order allocation and inventory management among chain merchants, resulting in overloaded stores in core business districts and idle resources in peripheral stores. There is a high risk of late delivery during peak hours, a lack of overall coordination in cross-store inventory scheduling, difficulty in controlling near-expiration losses of short-shelf-life products, high operating costs, and difficulty in ensuring stable fulfillment service quality.
A dual-dimensional benchmark system of production capacity and inventory is constructed. By calibrating the marginal production capacity decay curve and the spatiotemporal value coefficient, user behavior data is collected in real time to predict the spatiotemporal distribution of orders, generate store production capacity reservation plans for high-demand areas, and use a rolling time-domain double-layer nested optimization model to allocate orders and schedule inventory. The system tracks the fulfillment status in real time, triggers local dynamic corrections driven by anomalies, and optimizes operational parameters.
It achieved a balance between order allocation and inventory scheduling, reduced the near-expiration value loss of short-shelf-life goods, stabilized the timeliness of fulfillment and delivery, optimized overall operating costs, and improved overall operational efficiency and service quality.
Smart Images

Figure CN123180907A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of merchant order allocation technology, specifically a method for balanced allocation of orders and inventory management across multiple stores of a chain merchant. Background Technology
[0002] With the continuous expansion of chain retail formats, multi-store collaborative operation and instant delivery have become the core operating models of offline businesses. The spatial and temporal distribution of order demand is affected by customer flow, time differences, and regional marketing activities, showing significant imbalance and dynamic fluctuation characteristics.
[0003] In terms of store inventory management, all products are managed using SKUs as the smallest independent unit. SKU stands for Inventory Unit, and products with differences in category, specifications, storage and transportation conditions, or shelf life correspond to different management units. SKUs are the basic statistical dimension for inventory accounting and order fulfillment. Under the current technology system, order allocation for chain stores is mostly based on proximity matching, which easily leads to an imbalance where stores in core business districts are overloaded while peripheral stores have idle resources, significantly increasing the risk of order delays during peak hours. Inventory management mostly adopts a single-store independent replenishment model, lacking global coordination in cross-store inventory scheduling, making it difficult to effectively control near-expiration losses of short-shelf-life products. Demand forecasting relies heavily on historical sales data over time, lacking insights into the spatial transmission patterns of demand and failing to proactively reserve regional resources. Order allocation and inventory scheduling are mostly two independent systems with insufficient linkage, resulting in delayed responses to sudden order fluctuations or store anomalies, high overall operating costs, and difficulty in consistently guaranteeing fulfillment service quality. Summary of the Invention
[0004] This invention provides a method for balanced order allocation and inventory management across multiple stores of a chain merchant, in order to address the deficiencies in the existing technology.
[0005] This invention provides a method for balanced order allocation and inventory control across multiple stores in a chain store, comprising: The marginal capacity decay curve of each chain store and the spatiotemporal value coefficient of each SKU are calibrated to construct a dual-dimensional benchmark system of capacity and inventory, and a pulse coupling trigger threshold for dual-layer optimization is set.
[0006] The operation area is gridded, and user behavior data and store dynamic operation data within the grid are collected in real time. The spatiotemporal distribution of orders within a fixed period of time is predicted, and a store capacity reservation plan for high-demand areas is generated.
[0007] The system acquires real customer orders that have been generated but not yet fulfilled, forming a pool of orders to be allocated. Candidate stores are then matched in order of order timeliness priority to generate a feasible initial allocation plan.
[0008] A rolling time-domain double-layer nested optimization model is constructed and solved iteratively at multiple scales. When the impulse coupling condition is triggered, an exception-driven inter-layer re-optimization is performed. After convergence, the order allocation and inventory relocation linkage scheme is output, and inventory locking and capacity reservation are performed.
[0009] Based on the linkage scheme, fulfillment instructions are issued and inventory deductions and capacity write-offs are executed, fulfillment status is tracked in real time, and event-driven local dynamic corrections are triggered.
[0010] Full-chain operational data is acquired at fixed statistical periods, and the baseline system parameters and order wavefront propagation model parameters are iteratively optimized and updated.
[0011] According to the method for balanced order allocation and inventory management of multi-store chain merchants provided by the present invention, the process of constructing a dual-dimensional benchmark system of production capacity and inventory includes: Historical fulfillment data of each store was collected, and the fulfillment efficiency variation pattern under different load rates was fitted. A marginal capacity decay curve for a single store was constructed, and the rated maximum capacity, critical load rate, and capacity decay curvature coefficient of each store were calibrated.
[0012] By combining the product attributes, expiration date characteristics, and regional supply and demand differences of SKUs, the spatiotemporal value coefficient of unit inventory in different stores and at different times is calculated, and a SKU spatiotemporal value benchmark matrix is constructed.
[0013] Based on historical order fluctuations and cross-store warehouse transfer response time, the pulse coupling trigger thresholds of the two-layer optimization model are calibrated, including the store load deviation threshold and the inventory value loss threshold.
[0014] Historical order spatial distribution data were collected, and a two-dimensional convection-diffusion equation was used to construct an order wavefront propagation model. The diffusion coefficient and drift velocity vector were calibrated offline by least squares fitting.
[0015] According to the method for balanced order allocation and inventory management of multiple stores in a chain store provided by the present invention, the process of generating a capacity reservation plan for stores in high-demand areas includes: The target operating area is divided into equal two-dimensional grid units, and user pageviews, add-to-cart data, and historical order conversion rate data within each grid are collected in real time as input items for order sources.
[0016] Load the order wavefront propagation model, substitute it into the real-time order source input to solve the model, and obtain the predicted distribution of order density for each grid within a fixed time period in the future.
[0017] Based on the order density prediction distribution, high order density areas are identified, and fulfillment capacity and popular SKU inventory are reserved proportionally for surrounding covered stores to generate a capacity reservation plan.
[0018] According to the method for balanced order allocation and inventory management of multi-store chain merchants provided by the present invention, the process of generating a feasible initial allocation scheme includes: We acquire real customer orders that have been generated but not yet fulfilled to form a pool of orders to be allocated, and then prioritize these orders according to their fulfillment time requirements.
[0019] For each order, the equivalent workload is calculated based on the SKU category, quantity, and fulfillment difficulty coefficient within the order.
[0020] Based on order priority from high to low, candidate stores that meet the three hard constraints of inventory balance, effective production capacity, and delivery timeliness are selected and verified to generate a feasible initial allocation plan.
[0021] According to the method for balanced order allocation and inventory control of multi-store chain merchants provided by the present invention, the process of screening and verifying those that meet hard constraints includes: Set a statistical time window, and match the length of the time window with the average fulfillment time of the store.
[0022] Each order is checked to verify whether the effective remaining capacity and available inventory of the candidate stores within the time window can meet the order demand.
[0023] After all orders are matched, output the feasible initial allocation schemes that have passed the verification, and use them as the initial solution population for the inner layer of the two-layer optimization model.
[0024] According to the method for balanced order allocation and inventory management of multiple stores in a chain store provided by the present invention, the process of constructing a rolling time-domain double-layer nested optimization model includes: An outer-layer cross-store transfer optimization sub-model is constructed, with the scheduling cycle as the time scale and the minimum sum of regional total inventory value loss and cross-store transfer logistics cost as the optimization objective. The decision variables are the transfer volume and timing of each SKU between stores, and the constraints are transfer capacity constraints and total inventory constraints.
[0025] An inner-layer real-time order allocation sub-model is constructed, with real-time fulfillment as the time scale and minimizing the sum of comprehensive fulfillment cost and load imbalance penalty cost as the optimization objective. The decision variable is the matching relationship between orders and stores, and the constraints are inventory constraints, capacity constraints, and timeliness constraints.
[0026] The weight coefficients of the outer and inner layer objectives are determined using the analytic hierarchy process (AHP) combined with the entropy weight method. A pulse coupling trigger rule is set to trigger anomaly-driven inter-layer re-optimization when abnormal events such as sudden order surges, store malfunctions leading to offline operations, load deviations exceeding thresholds for multiple consecutive sampling periods, or inventory value losses exceeding thresholds are detected. The initial allocation scheme is used as the initial solution for the inner layer to complete model initialization.
[0027] According to the method for balanced order allocation and inventory management of multi-store chain merchants provided by the present invention, the iterative solution process of the rolling time-domain double-layer nested optimization model includes: At the beginning of each scheduling cycle, the outer layer uses the current inventory status as the starting point. The outer layer uses an improved differential evolution algorithm with an elite memory to complete multiple generations of iterative solutions, outputs the optimal cross-store warehouse transfer scheme for this scheduling cycle and fixes it as the inventory constraint boundary for the inner layer solution.
[0028] Under the constraint of a fixed inventory adjustment scheme, the inner layer inherits the population state of the previous iteration and uses a differential evolution algorithm with an adaptive mutation strategy to complete multiple generations of iterative solutions, outputting the current optimal order allocation scheme.
[0029] When the change in the comprehensive objective value of multiple consecutive inner-layer iterations is less than the convergence threshold, the solution is considered to have converged, and the final order allocation and inventory relocation linkage scheme is output.
[0030] According to the present invention, a method for balanced order allocation and inventory control across multiple stores of a chain merchant includes the following process: issuing fulfillment instructions and executing inventory deduction and capacity write-off based on a linkage scheme. According to the linkage plan, fulfillment instructions are issued to the corresponding stores, inventory deduction and capacity write-off are executed simultaneously, and real-time store operation data is updated.
[0031] Adopting a near-expiry priority outbound rule, we calculate the inventory value loss for each outbound shipment and update the store inventory value ledger.
[0032] Real-time monitoring of inventory levels for each SKU in stores; when inventory falls below the safe level, replenishment requirements are generated based on regional order forecasts.
[0033] According to the method for balanced order allocation and inventory control of multiple stores in a chain store provided by the present invention, the process of triggering event-driven local dynamic correction includes: Real-time data collection of fulfillment progress from each store; calculation of delay risk value for each pending order at the current receiving store; and triggering of order reassignment process when the risk value exceeds the correction threshold.
[0034] We select the stores to take over from the surrounding candidate stores, recalculate the overall fulfillment cost, select the store with the lowest cost to execute the order transfer, and update the inventory and production capacity data in a timely manner.
[0035] After the orders are reassigned, the fulfillment is tracked to verify whether the timeliness and cost after the correction are met. If they are not met, a second correction is performed.
[0036] According to the method for balanced order allocation and inventory control of multi-store chain merchants provided by the present invention, the process of iteratively optimizing and updating the baseline system parameters and the order wavefront propagation model parameters includes: We acquire full-chain operational data at fixed statistical periods, including order fulfillment rate, delivery timeliness achievement rate, inventory value loss rate, and store load balance.
[0037] A comprehensive operational revenue objective function is constructed, and the parameters are optimized using a Bayesian optimization algorithm.
[0038] The optimized parameters will be updated to the capacity-inventory dual-dimensional benchmark system and the order wavefront propagation model for order allocation and inventory management in the next cycle.
[0039] This invention provides a method for balanced order allocation and inventory management across multiple stores in a chain store. By refining the management to the smallest inventory unit, it optimizes inventory layout based on product expiration dates and regional supply and demand, reducing the near-expiration value loss of short-shelf-life goods. It also incorporates spatial demand transmission patterns for prediction, identifying high-demand areas in advance and reserving corresponding store resources to cope with order peaks and ensure stable delivery times.
[0040] With a dynamic adjustment mechanism driven by abnormal events, execution deviations can be corrected in real time during the fulfillment process, ensuring on-time order delivery. Simultaneously, through periodic operational data feedback and adaptive parameter adjustments, it can continuously adapt to operational changes in different time periods and scenarios. While ensuring service quality, it optimizes overall operating costs, achieving multi-objective synergistic improvements in load balancing, loss control, and timeliness assurance. This helps chain merchants continuously improve overall operational efficiency and terminal service quality in complex and ever-changing operational scenarios. Attached Figure Description
[0041] The invention will now be further described with reference to the accompanying drawings.
[0042] Figure 1 This is a flowchart illustrating a method for balanced order allocation and inventory control across multiple stores of a chain merchant in this invention. Figure 2 This is a flowchart illustrating the process of generating a store capacity reservation scheme for high-demand areas in this invention. Figure 3 This is a schematic diagram of the iterative solution process for the rolling time-domain double-nested optimization model in this invention. Detailed Implementation
[0043] To make the technical means, creative features, objectives and effects of this invention easier to understand, the invention will be further described below in conjunction with specific embodiments.
[0044] like Figures 1 to 3 As shown in the figure, an embodiment of the present invention provides a method for balanced order allocation and inventory management across multiple stores of a chain merchant, comprising: The marginal capacity decay curves of each chain store and the spatiotemporal value coefficients of each SKU are calibrated. The diffusion coefficient and drift velocity vector of the order wavefront propagation model are calibrated offline. A dual-dimensional benchmark system of capacity and inventory is constructed. The process includes: Historical fulfillment data of each store was collected, and the fulfillment efficiency variation pattern under different load rates was fitted. A marginal capacity decay curve for a single store was constructed, and the rated maximum capacity, critical load rate, and capacity decay curvature coefficient of each store were calibrated.
[0045] The historical fulfillment data includes the fulfillment time per order, picking time, packing time, number of on-site staff in stores, equipment operating status and load rate data for the corresponding time period in the past 90 days. The data is cleaned and aggregated according to three dimensions: store, date and time period. After removing abnormal samples such as store closures, equipment failures and extreme promotions, the marginal capacity decay curve is obtained by using a piecewise nonlinear least squares fitting method.
[0046] The calibration steps are as follows: Divide the historical samples into bins according to a load factor step of 0.1, calculate the average number of fulfilled items per unit time for each bin, and take the 95th percentile value of the fulfillment rate within the load factor range of 0 to 0.6 as the rated maximum capacity. The inflection point detection algorithm identifies the load rate node where the fulfillment rate changes from stable to declining, which serves as the critical load rate. Using the critical load rate as a segmentation point, a nonlinear least squares fit is performed on the samples in the high load range using an exponential function to obtain the capacity decay curvature coefficient. The convergence condition for the fit is that the change in the sum of squared residuals over 30 consecutive iterations is less than 1. .
[0047] Its store marginal productivity decay curve is represented by a piecewise function as follows:
[0048] In the formula, for Time of the first The actual effective fulfillment capacity of each store, expressed in equivalent parts per unit time; For the first The rated maximum fulfillment capacity of a store is taken as the statistical quantile of the number of equivalent items processed per unit time under the condition of full staff and full operation of sorting equipment, which is obtained from historical peak operation data. for Time of the first The real-time load rate of a store is a dimensionless ratio, which is equal to the ratio of the currently allocated equivalent workload to the rated maximum capacity. For the first The critical load rate of a store. When the load rate is below or equal to this value, the store maintains full capacity. When it exceeds this value, non-linear decline occurs due to staff fatigue, traffic congestion, and increased equipment load. For the first The curvature coefficient of the production capacity decay of a store reflects the curvature of the efficiency decline after the load exceeds the critical value; the larger the value, the faster the decay.
[0049] By combining the product attributes, expiration date characteristics, and regional supply and demand differences of SKUs, the spatiotemporal value coefficient of unit inventory in different stores and at different times is calculated, and a SKU spatiotemporal value benchmark matrix is constructed.
[0050] The product attributes include the unit value of the SKU, storage and transportation conditions, weight and volume dimensions, and the expiration date characteristic is quantified by the ratio of total expiration time to remaining expiration time. Regional supply and demand differences are calculated by the ratio of historical order demand to inventory supply in the grid where the store is located.
[0051] The formula for calculating the SKU spatiotemporal value coefficient is as follows:
[0052] In the formula, for Time of the first The first store The unit inventory space-time value of a SKU, in yuan / piece; For the first The benchmark unit value of a SKU is taken as the standard purchase cost price of that SKU; for The percentage of remaining shelf life of the corresponding inventory at any given time, with a value range of [value missing]. The calculation method is to divide the remaining validity period by the total validity period of the SKU; For the first The time-depreciation coefficient of SKUs is determined by the SKU's shelf life and the depreciation pattern near expiration. The determination method is to perform linear regression on the unit value loss rate of historical near-expiration goods after discounting. for Time of the first The order density premium coefficient for the region where a store is located is calculated by the ratio of regional order demand density to regional inventory supply density. When demand exceeds supply, the coefficient is greater than 1, and vice versa.
[0053] Based on historical order fluctuations and cross-store warehouse transfer response time, the pulse coupling trigger thresholds of the two-layer optimization model are calibrated, including store load deviation thresholds and inventory value loss thresholds; the rules for determining the number of sampling periods for continuous exceedance of thresholds are clarified, and the trigger mechanism initialization is completed.
[0054] The store load deviation threshold is defined as the upper limit of the absolute value of the difference between the real-time load rate of a single store and the regional average load rate. The calibration method is to take the critical quantile value of the load deviation that leads to the timeout in historical operations. The inventory value loss threshold is defined as the upper limit of the inventory value loss rate of a single store per unit time. The calibration method is to take the 90th quantile value of the loss rate per unit time in historical operations. The continuous threshold judgment rule is that if the corresponding threshold is exceeded for three consecutive sampling periods, pulse coupling is triggered. The sampling period is set to 5 minutes, which is consistent with the frequency of store operation data collection.
[0055] Historical order spatial distribution data are collected, and a two-dimensional convection-diffusion equation is used to construct an order wavefront propagation model. The diffusion coefficient and drift velocity vector are calibrated offline by least squares fitting. After the model prediction accuracy is verified by backtesting with historical data, the calibration parameters are stored in the benchmark system for loading and calling in the real-time prediction stage.
[0056] The historical order spatial distribution data includes the order delivery address and order time dimension of the past 180 days. The order density spatiotemporal sequence is obtained by aggregating by grid and time period. The order density unit is the number of orders / unit area.
[0057] The offline calibration steps are as follows: Historical data is divided into a training set and a validation set in a 7:3 ratio. The spatiotemporal sequence of order density in the training set is used as the observation sample. The goal is to minimize the mean square error between the model's calculated values and the actual observed values. The solution is obtained iteratively using the Levenberg-Marquardt nonlinear least squares method. The convergence condition for the iteration is that the residual rate of change is less than... The mean absolute error and mean absolute percentage error are calculated using the validation set. When the mean absolute percentage error is less than 15%, the model accuracy is considered to be up to standard; otherwise, the sample window is adjusted and the model is refitted.
[0058] The order wavefront propagation model uses a convection term to represent the spatial transfer trend of demand with passenger flow, a diffusion term to represent the spillover effect of demand to surrounding grids, and a source term to represent the order generation intensity of user behavior transformation within the grid. Its formula is expressed as:
[0059] In the formula, for Time coordinates The order density of the grid, expressed as the number of orders per unit area; This is the order spatial diffusion coefficient, expressed as area per unit time, reflecting the ability of order demand to be transmitted between adjacent grids. This represents the order wavefront drift velocity vector, in units of length per unit time, corresponding to the spatial shift trend of regional consumer demand, including east-west components. Components in the north-south direction ; It is a two-dimensional gradient operator with a dimension of 1 / length; It is a two-dimensional Laplace operator with dimensions 1 / length. ; for Time coordinates The order generation intensity of the grid is expressed as the number of orders per unit area per unit time, calculated from real-time user behavior data combined with historical conversion rates.
[0060] The model is solved using the finite difference method for spatial and temporal discretization. Spatial discretization uses the central difference scheme, and temporal discretization uses the forward Euler scheme.
[0061] Set the side length of a single grid cell to... The time step is , coordinate The grid at that location is denoted as a grid. ,correspond The order density at any given time is denoted as The discretized density change is decomposed into three independent terms: a diffusion term, a convection term in the x-direction, and a convection term in the y-direction, which are expressed as follows: The diffusion term characterizes the rate of change in order density caused by spatial spillover diffusion:
[0062] The x-direction convection term characterizes the rate of change in order density caused by lateral passenger movement:
[0063] The y-direction convection term characterizes the rate of change in order density caused by longitudinal passenger movement:
[0064] Integrating the three sub-items with the order source generation item, the complete discrete recursive general formula is obtained as follows:
[0065] In the formula, for Time Grid Calculated value of diffusion term at location, The calculated value for the convection term in the x-direction is... The values are calculated for the convection term in the y-direction, and the units are all number of orders / (unit area · unit time); This refers to the side length of a single grid cell after the grid is divided, in units of length. In this embodiment, the value is 500 meters. The time iteration step size for finite difference solutions, with units consistent with the model's time dimension, is used to control the update interval of numerical iterations; These are the horizontal and vertical grid numbers in the grid plane coordinate system, respectively, and are dimensionless integer sequences; for Time number is The order surface density corresponding to the grid, in units of number of orders / unit area; for Time Grid The order generation intensity is expressed as the number of orders per unit area per unit time.
[0066] The stability condition for numerical solution is satisfied This allows for strict control of iteration errors, avoidance of numerical divergence, and ensures numerical convergence during the iteration process.
[0067] The initial condition of the model is to solve the actual order density statistics of each grid at the start time; the boundary condition adopts the flux-free Neumann boundary, that is, the normal derivative of the order density at the boundary of the operating area is zero, and the order demand will not spread outside the operating area.
[0068] The operational area is gridded, and user behavior data and store dynamic operation data within the grid are collected in real time. Using an offline-calibrated order wavefront propagation model, the spatiotemporal distribution of orders over a fixed period is predicted, generating a capacity reservation plan for stores in high-demand areas. The process includes: The target operating area is divided into equal two-dimensional grid units. The grid is divided using a Cartesian coordinate system under Gauss-Kruger projection. The size of a single grid unit is set to 500 meters × 500 meters, which is suitable for the business scenario of a 3-kilometer service radius for instant delivery. The edge grids of the operating area are clipped to ensure that there is no overlap or omission in the entire area.
[0069] Real-time data collection of user pageviews, add-to-cart data, and historical order conversion rates within each grid is used as input for order sources. Data collection is conducted once per minute, and the corresponding grid is matched using the user's terminal location information. The conversion rate is calculated based on historical data from the past 7 days of the same period and date type, and a sliding window is used for smoothing to reduce the impact of daily fluctuations.
[0070] The specific calculation method for order source generation intensity is as follows: The corresponding source strength value is calculated by multiplying the number of grid views per unit time by the view-to-order conversion rate, adding the number of add-to-cart transactions multiplied by the add-to-cart-to-order conversion rate, and then dividing by the grid area.
[0071] In the formula, for Time Grid User page views per unit time, expressed as person-times / unit time; The number of users adding items to their carts per unit of time, expressed as person-times / unit of time; To calculate the conversion rate from browsing to order placement, the statistical metric is the number of users who placed orders within 24 hours of browsing, divided by the total number of browsing users. To calculate the conversion rate from adding items to cart to placing an order, the statistical metric is the number of users who placed an order within 24 hours of adding items to cart divided by the total number of users who added items to cart. The area of a single grid cell is determined by the grid side length. The calculated parameters are fixed quantization parameters.
[0072] Load the offline-calibrated order wavefront propagation model, substitute the real-time order source input, and solve step by step according to the discrete recursive formula to obtain the order density prediction distribution of each grid within a fixed time period in the future; the prediction time window is set to two scales: the next 30 minutes and the next 60 minutes, which correspond to the short-term capacity reservation and medium-term inventory scheduling needs, respectively.
[0073] Based on the order density prediction distribution, high order density areas are identified, and the density peak clustering algorithm is used to cluster the grid order density.
[0074] Clustering calculations use Gaussian kernels to calculate local density, and the cutoff distance is taken as the 2% quantile of the distance between all grids. The product of local density and relative distance is used as the cluster center determination index, and the samples before the inflection point after sorting the index in descending order are taken as cluster centers. Non-central grids are classified according to the nearest cluster center, and the connectivity of continuous grids is determined by the four-connectivity rule.
[0075] A continuous grid set whose average order density after clustering exceeds 1.5 times the average density of the entire region is identified as a high-demand region.
[0076] Reserve fulfillment capacity and popular SKU inventory for surrounding covered stores in proportion to generate a capacity reservation plan; the store coverage area is determined based on a delivery service radius of 3 kilometers. When a single high-demand area corresponds to multiple covered stores, the reserved resources are allocated according to the proportion of each store's rated capacity to the total capacity of the covered stores.
[0077] The formula for calculating the capacity reserve of a single store is:
[0078] In the formula, For the first Reserved capacity for each store, in units of equivalent parts per unit time; To reserve a benchmark coefficient, the benchmark value is set at 0.15, which is determined by the historical demand fluctuation range; This represents the average order density in high-demand areas, expressed as the number of orders per unit area. This represents the average order density for the entire region, expressed as the number of orders per unit area.
[0079] The inventory reserve for popular SKUs is calculated according to the same proportional rules, and the reserved inventory is allocated from the available inventory of the store.
[0080] The capacity reservation scheme is only used for resource pre-occupancy and does not directly constitute orders to be allocated. The lock-in period of the reserved resources is consistent with the predicted time window. Reserved resources that have expired and have not been converted are released minute by minute according to the time step. When real orders are allocated, the corresponding area reservation pool is matched according to the grid to which the delivery address belongs. The reserved resources of the corresponding area are consumed first. When the reserved resources are insufficient, the general available resources are consumed.
[0081] Reserved capacity is simultaneously included in the store's real-time load rate and participates in capacity constraint verification.
[0082] The process involves acquiring existing but unfulfilled customer orders to form a pool of orders to be allocated. Candidate stores are then matched sequentially based on order timeliness priority to generate a feasible initial allocation plan that meets the hard constraints of inventory, production capacity, and delivery timeliness. This process includes: The system acquires real customer orders that have been generated but not yet fulfilled, forming a pool of orders to be allocated. These orders are then divided into three priority levels based on their fulfillment time requirements: orders with a promised fulfillment time of 30 minutes or less are classified as urgent, those between 30 minutes and 2 hours are classified as regular, and those exceeding 2 hours or requiring a specific appointment time are classified as off-peak. The higher the level, the higher the allocation priority. Orders within the same priority level are sorted according to their order time.
[0083] For each order, the equivalent workload is calculated based on the SKU category, quantity, and fulfillment difficulty coefficient within the order. The fulfillment difficulty coefficient is based on the unit picking and packing time of a standard small and lightweight SKU. The benchmark SKU is defined as a single item weighing less than or equal to 500 grams, with a volume of less than or equal to 0.002 cubic meters, stored and transported at room temperature, and with simple packaging. Its fulfillment difficulty coefficient is set to 1.0.
[0084] The remaining SKUs are weighted and calibrated according to four dimensions: weight, volume, storage and transportation requirements, and packaging complexity. After assigning a difficulty coefficient to each dimension according to its level, the final fulfillment difficulty coefficient is obtained by weighted summation. The calculation formula is as follows:
[0085] In the formula, For the first The fulfillment difficulty level of SKU-like products; , , , These are single-dimensional difficulty coefficients corresponding to weight, volume, storage and transportation requirements, and packaging complexity, respectively, and are assigned values according to grade level. , , , These are the weight coefficients for the corresponding dimensions, and they satisfy... The weighting coefficients were determined by multiple linear regression analysis using historical performance data. The regression used actual picking and packing time as the dependent variable and the difficulty coefficients of each dimension as independent variables.
[0086] The formula for calculating the equivalent workload of an order is as follows:
[0087] In the formula, For the first Equivalent workload per order, in units of equivalent pieces; This is a statistical value representing the total number of SKU categories included in the order; For the first The first of the orders The number of SKUs, in units of pieces; For the first The fulfillment difficulty coefficient of a SKU is based on the time spent picking and packing.
[0088] Based on order priority from high to low, candidate stores that meet the three hard constraints of inventory balance, effective production capacity, and delivery timeliness are screened and verified. The initial screening scope of candidate stores is all chain stores within a 3-kilometer service radius of the order delivery address. Stores outside the service radius are directly excluded.
[0089] For each candidate store, the comprehensive fulfillment cost, including delivery cost, capacity utilization cost, and inventory value loss cost, is estimated. The store with the lowest comprehensive fulfillment cost is selected for matching, generating a feasible initial allocation plan. The initial matching is performed order by order using a greedy algorithm. After each order is matched, the remaining capacity and available inventory of the corresponding store are updated in real time to avoid over-allocation of resources.
[0090] If none of the candidate stores for a given order meet the hard constraints, a backtracking mechanism is triggered. The previously matched order of the same priority is moved to the next best candidate store in reverse order of order, and resources are released before the current order is rematched. Backtracking can be performed a maximum of 3 times. Orders that still cannot be matched are marked as pending manual intervention.
[0091] The process of screening and validating those that meet hard constraints includes: Set a statistical time window, the length of which matches the average fulfillment time of the store. It is determined by historical fulfillment data and is set to 1.2 times the average fulfillment time of the store. The statistical time window is used to uniformly measure the available capacity of the store within the order fulfillment cycle, ensuring that the order can be processed within the time requirement after it is accepted.
[0092] The hard constraint on delivery time is set so that the estimated delivery time from the store to the delivery address does not exceed 70% of the promised fulfillment time of the order, and sufficient time is reserved for picking and packing.
[0093] Each order is checked to see if the effective remaining capacity and available inventory of the candidate store within the given time window can meet the order demand. If the effective remaining capacity is insufficient or the inventory balance does not meet the demand, the order is removed from the candidate set and re-matched. The formula for calculating the effective remaining capacity of stores within the statistical time window is as follows:
[0094] In the formula, For the first The store is in length Effective remaining capacity within the statistical time window, in units of equivalent units; for Time of the first Effective fulfillment capacity of each store, expressed as equivalent parts per unit time; To ensure the length of the statistical time window, the unit is consistent with the production capacity time unit, and the value is 1.2 times the average fulfillment time of the store; for Time has been allocated to the first The order set of each store is a sequence of order numbers; For the first Equivalent workload per order, in units of equivalent pieces.
[0095] After all orders are matched, output the feasible initial allocation schemes that have passed the verification, and use them as the initial solution population for the inner layer of the two-layer optimization model.
[0096] The process of constructing a rolling time-domain two-level nested optimization model includes: An outer-layer cross-store warehouse adjustment optimization sub-model is constructed, with a 30-minute scheduling cycle as the time scale, and the optimization time span includes four scheduling cycles, including the next two hours.
[0097] The optimization objective is to minimize the sum of total regional inventory value loss and cross-store transfer logistics costs. The decision variables are the transfer volume and timing of each SKU between stores, specifically the number of single SKUs transferred from the source store to the target store within each scheduling cycle.
[0098] The constraints are: transportation capacity constraint, total inventory constraint, and transportation timeliness constraint. Among them, the transportation capacity constraint is that the total amount of goods transferred out and transferred in from a single store within a single cycle shall not exceed the store's maximum throughput capacity, which is 1.5 times the rated maximum capacity. The total inventory constraint is that the inventory of each store is non-negative after the transfer, and the total inventory of SKUs in the region remains unchanged. The transportation timeliness constraint is that the transfer time between adjacent stores shall not exceed 15 minutes, the transfer time between stores in different regions shall not exceed 45 minutes, and the arrival time of the transferred goods must match the start node of the corresponding scheduling cycle.
[0099] The target value of the outer sub-model is composed of the sum of the warehouse transfer logistics cost and the regional inventory value loss cost. The warehouse transfer logistics cost is calculated by multiplying the transfer volume, the unit distance transfer price, and the straight-line distance between stores. The unit distance transfer price is determined by the statistical average of historical transfer costs per kilometer per item. The inventory value loss cost is calculated by multiplying the inventory holding of each SKU in each store and the unit time value loss rate.
[0100] Construct an inner real-time order allocation sub-model, with real-time fulfillment as the time scale and a time granularity of 5 minutes. The optimization target is all orders in the current order pool to be allocated.
[0101] The optimization objective is to minimize the sum of the overall fulfillment cost and the penalty cost for unbalanced load. The decision variable is the matching relationship between orders and stores, which is represented by binary decision variables. A value of 1 means that the corresponding order is assigned to the corresponding store, and a value of 0 means that it is not assigned.
[0102] The constraints are inventory constraints, capacity constraints, timeliness constraints, and unique allocation constraints for each order. The inventory constraint is that the total SKU demand of all orders allocated to each store shall not exceed the sum of the store's current available inventory and the inventory that has been delivered and transferred in during the corresponding period. Inventory that has not yet arrived is not included in the available inventory for the current period. The capacity constraint is that the total equivalent workload allocated to each store shall not exceed the effective remaining capacity within the statistical time window. The timeliness constraint is that the estimated delivery time from the store to the delivery address shall not exceed 70% of the promised fulfillment time of the order, allowing sufficient time for picking and packing. The unique allocation constraint for each order is that each order is accepted by only one store.
[0103] The overall fulfillment cost is composed of three parts: order delivery cost, store capacity utilization cost, and inventory value loss cost; its inner formula for calculating the overall fulfillment cost is as follows:
[0104] In the formula, The total fulfillment cost for all stores is expressed in yuan. This is a statistical figure representing the total number of chain stores within the region. To be assigned to the The order set of each store is a sequence of order numbers; For the first Orders allocated to the first The delivery cost of each store, in yuan, is calculated based on the delivery distance and the unit mileage delivery price. The unit mileage delivery price is determined by the average cost per kilometer per order based on historical delivery data. This is the store capacity utilization cost corresponding to this order, expressed in yuan, calculated by offsetting the efficiency loss caused by capacity reduction. The formula is as follows: ,in This is the labor cost per unit of equivalent work, expressed in yuan per equivalent piece. It is calculated from the unit time labor and equipment costs of the store and is only incurred when the load rate exceeds the critical load rate. For the first The equivalent workload per order. For real-time store load rate, The store's critical load rate; This represents the inventory value loss cost corresponding to the outbound order, expressed in yuan, and is calculated from the difference in time and space value between the inbound and outbound SKUs.
[0105] The formula for calculating the penalty cost for load imbalance is as follows:
[0106] In the formula, The cost of penalties for unbalanced load, in yuan; The unit load deviation penalty conversion factor is in yuan. It is determined by linear regression analysis based on the loss data such as overtime compensation and order loss corresponding to historical overload operation. The regression uses the square of the unit time load deviation as the independent variable and the unit time overtime loss amount as the dependent variable. For the first Real-time load rate of each store; The target load rate is set to 0.7, corresponding to the load range where store operational efficiency is optimal; the inner sub-model target value satisfies... ,in Assign the total target cost of the sub-model to the inner order, in yuan.
[0107] The weight coefficients of outer and inner layer targets are determined by combining the analytic hierarchy process (AHP) with the entropy weight method. First, a judgment matrix is constructed using the AHP to obtain the subjective weight vector. Then, the historical operational data is objectively weighted using the entropy weight method to obtain the objective weight vector. Finally, the subjective and objective weights are combined using the multiplication synthesis method and normalized to obtain the final weight coefficients.
[0108] Set pulse coupling trigger rules to trigger anomaly-driven inter-layer re-optimization when abnormal events such as sudden order surges, store malfunctions and offline status, load deviation exceeding thresholds for three consecutive sampling periods, or inventory value loss exceeding thresholds are detected. Sudden order surges are defined as new orders exceeding twice the average level of the past 30 minutes within 5 minutes, and store malfunctions and offline status are defined as store data upload interruptions exceeding 2 minutes or proactive reporting of business closures or equipment failures.
[0109] The model initialization is completed using the initial allocation scheme as the inner-layer initial solution; the overall optimization objective function of the two-layer model is expressed as:
[0110] In the formula, The target value for the two-layer model is expressed in yuan. The target value for the outer layer warehouse transfer sub-model includes warehouse transfer logistics costs and inventory value loss costs, in yuan; Assign target values to sub-models for inner-layer orders, in yuan; , These are the weight coefficients for the outer and inner layer targets, respectively, and they satisfy... This is used to balance the priorities of inventory rebalancing optimization and order allocation optimization.
[0111] The rolling time domain adopts a fixed step rolling mechanism, and a global optimization is initiated every scheduling cycle. The time domain range of each optimization is 4 consecutive scheduling cycles starting from the current time. The execution rule is that only the warehouse adjustment plan of the first scheduling cycle is issued and executed. The plans of the subsequent 3 cycles are only used as pre-planning results and are not executed directly. They are updated and iterated as the initial state in the next round of rolling optimization to achieve a warm start and avoid repeated calculations.
[0112] The rebalancing plans and fulfilled orders that have been executed in the previous cycle will be considered fixed and will no longer be included in the optimization scope. Unexecuted rebalancing plans and pending orders will be carried over to the current optimization cycle.
[0113] Solving the rolling time-domain double-nested optimization model involves the following steps: At the beginning of each scheduling cycle, the outer layer uses the current inventory status as the starting point. The outer layer uses an improved differential evolution algorithm with an elite memory to complete multiple generations of iterative solutions, outputs the optimal cross-store warehouse transfer scheme for this scheduling cycle and fixes it as the inventory constraint boundary for the inner layer solution.
[0114] The outer algorithm uses integer encoding, with each individual corresponding to a set of non-negative integer solutions for SKU transfer volume between stores; the mutation operation uses a differential mutation combined with a neighborhood integer perturbation strategy, and the crossover operation uses arithmetic crossover followed by rounding down; the population size is set to 50, the crossover probability is 0.7, and the initial value of the mutation factor is 0.5; the elite memory bank retains the 10 best individuals in each generation, and after each iteration, the 10 worst individuals in the population are replaced with elite individuals to avoid population degradation; the maximum number of iterations is set to 100 generations.
[0115] Under the constraint of a fixed inventory adjustment scheme, the inner layer inherits the population state of the previous iteration and uses a differential evolution algorithm with an adaptive mutation strategy to complete multiple generations of iterative solutions and output the current optimal order allocation scheme. In the first iteration, the inner layer uses a feasible initial allocation scheme as the initial population and generates an initial population set of 80 individuals through random perturbation to ensure population diversity.
[0116] The inner algorithm uses integer encoding, where the encoding length of each individual is equal to the total number of orders to be assigned, and the value of the encoding bit is the store number assigned to the corresponding order. The crossover operation uses partial mapping crossover, randomly selecting two crossover points, exchanging gene fragments between the points to establish a mapping relationship, correcting conflicting genes, and ensuring that the individual still satisfies the single order unique allocation constraint after crossover.
[0117] The mutation operation adopts an adaptive neighborhood replacement strategy, which dynamically adjusts the number of mutated bits and the replacement range of candidate stores based on the population diversity. The population diversity is calculated by dividing the average Hamming distance between all individuals in the population by the code length, with a value range of 0 to 1. When the diversity is less than 0.2, the proportion of mutated bits increases to 15%, and the replacement range of candidate stores is expanded to all candidate stores. When the diversity is greater than 0.5, the proportion of mutated bits decreases to 5%, and candidate stores are replaced only within the three surrounding stores.
[0118] The maximum number of iterations for the inner layer algorithm is set to 150. During the inner layer iteration process, the pulse coupling triggering conditions are checked in real time. If an abnormal event is detected that meets the triggering rules, the inner layer iteration is immediately paused, and the current operating status is fed back to the outer layer. The outer layer then performs an emergency re-optimization solution to update the warehousing and inventory adjustment plan.
[0119] Emergency re-optimization shrinks the decision space, and the scope of impact of anomalies is defined according to the following rules: when a store fails, the affected area is the 3-kilometer coverage area of that store; when there is a surge in orders, the affected area is the boundary of the high-demand area. Only the warehouse adjustment plan for stores within the affected area is adjusted. Emergency re-optimization reduces the number of iterations to 30 generations, and converges quickly based on elite solutions to ensure that the updated warehouse adjustment plan is output within 1 minute.
[0120] If the execution time of the repositioning plan exceeds the expected duration of the abnormal event, the global repositioning will not be implemented for the time being. Instead, local order reassignment will be used as a backup measure to avoid wasting repositioning resources. The duration of the abnormality will be predicted by statistical analysis of the average duration of similar abnormalities in history.
[0121] The inner layer continues to iterate under the constraints of the updated rebalancing scheme; when the relative change of the comprehensive target value of the inner layer over 20 consecutive iterations is less than... When the solution converges, output the order allocation and inventory relocation linkage plan.
[0122] When the pulse coupling condition is triggered, the inter-layer re-optimization driven by the exception is executed. After convergence, the order allocation and inventory relocation linkage scheme is output, and inventory locking and capacity reservation are executed.
[0123] Based on the coordinated solution, fulfillment instructions are issued and inventory deductions and capacity write-offs are executed. The process includes: Based on the optimal linkage plan, fulfillment instructions are issued to the corresponding stores. The instructions are synchronized in real time with the fulfillment platform through the store's POS system, and include order details, picking priority, estimated outbound time and delivery route suggestions.
[0124] Inventory deduction and capacity write-off are executed. Inventory deduction adopts a pre-deduction mechanism. After the order is allocated, the corresponding SKU inventory is locked immediately. The formal deduction is executed when the order is fulfilled and shipped out to avoid the risk of overselling. When multiple orders lock the same SKU and the same batch of inventory at the same time, arbitration is carried out according to the order priority from high to low. For orders with the same priority, they are allocated according to the order time to avoid concurrent conflicts.
[0125] Capacity write-offs are deducted from the store's available capacity on a per-order basis based on the equivalent workload of each order, and the write-off data is updated to the operations data platform in real time.
[0126] The reconciliation data is synchronously uploaded to the parameter iteration module for periodic parameter optimization.
[0127] When an order is cancelled or a user requests a refund, the corresponding pre-deducted inventory and write-off capacity are released in real time, and the resources are returned to the available pool.
[0128] The outbound process adopts a near-expiration priority rule. Inventory is managed independently by inbound batch. Each batch records the inbound time, expiration date, inbound spatial value, inventory quantity, and storage location. When outbound, the batches are sorted from shortest to longest remaining validity period. The batch with the lowest percentage of remaining validity period is given priority for outbound. Batches with the same percentage of remaining validity period are outbound according to their inbound time.
[0129] During the order pre-deduction phase, the corresponding batch of inventory is locked simultaneously to ensure that the outbound shipment is consistent with the pre-deducted batch.
[0130] Calculate the inventory value loss for each outbound shipment and update the store's inventory value ledger; the formula for calculating the inventory value loss per SKU per outbound shipment is as follows:
[0131] In the formula, For the first The first store SKU corresponding to the first The value loss amount for each outbound order, in yuan; For the first The first of the orders The outbound quantity of each SKU, in units of pieces; This represents the temporal and spatial value of this batch of inventory upon receipt, expressed in yuan per piece. This represents the temporal and spatial value of this batch of inventory at the moment of shipment, expressed in yuan per piece.
[0132] When SKUs are transferred between stores, the inbound time and space value of the receiving store is based on the outbound time and space value of the transferring store, plus the transfer logistics cost, to ensure that the inventory value ledger is continuous and traceable.
[0133] Inventory transferred during transit is marked as being in transit and is not included in the current available inventory. Instead, it is included in the inventory constraint boundary of the corresponding period based on the expected arrival time.
[0134] Real-time inventory level monitoring is implemented for each SKU in the store. The safety level for each SKU is calculated by multiplying the average daily sales by the replenishment cycle and adding the safety stock. The safety stock is determined by the SKU demand volatility coefficient, which is the coefficient of variation of daily sales over the past 30 days, i.e., the standard deviation divided by the mean. The safety stock calculation formula is as follows: In the formula For the first Safety stock quantity for each SKU type, in units of pieces; The quantile of the normal distribution corresponding to the service level is taken as 1.645, which corresponds to 95% of the normal service level; For the first The daily demand standard deviation of a SKU is used to characterize the fluctuation range of daily sales of that SKU, in units per day; The replenishment lead time for SKU category k is in days, referring to the complete cycle from initiating a replenishment request to the goods being received into the warehouse and ready for normal sale.
[0135] An anomaly tolerance mechanism is set up so that when a store is detected to be offline, data transmission is delayed, or inventory deduction fails, the corresponding order is automatically transferred to a backup candidate store, and the abnormal data is marked.
[0136] The offline criteria for a store is that no data is reported for three consecutive sampling periods. Once triggered, all pending orders for that store are automatically transferred to backup candidate stores according to priority. Backup candidate stores are stores within 3 kilometers of the original store with a load rate of less than 70%. Inventory and capacity constraints are re-verified during the transfer. Inventory deduction failure includes scenarios such as insufficient inventory, non-existent batch, and abnormal data verification. The pre-deduction operation is automatically rolled back, and candidate stores are re-matched. At the same time, an abnormal log is generated for operation and maintenance to investigate. When the data transmission delay exceeds 1 minute, the operation data of the previous period is used for fault tolerance calculation. After the data is restored, the entire link data is automatically synchronized and corrected.
[0137] Real-time tracking of performance status triggers event-driven local dynamic correction, the process of which includes: Real-time data collection of fulfillment progress from each store, including picking completion rate, packing completion rate, delivery person order acceptance status, delivery distance, and estimated delivery time, updated every 2 minutes.
[0138] Calculate the delay risk value for each order to be fulfilled at the current receiving store. When the risk value exceeds the correction threshold, trigger the order reassignment process. The formula for calculating the order fulfillment delay risk value is as follows:
[0139] In the formula, For the first The order was in the The higher the value, the greater the risk of delay in fulfilling orders at each store. This is the estimated remaining processing time for the order at the current store, expressed in time units. It is calculated by dividing the remaining equivalent workload of the order by the store's effective capacity rate. This represents the remaining fulfillment time for the order, expressed in time units, which is the promised delivery time minus the current time.
[0140] Delay risks are categorized into three levels based on numerical values: 0.8 or higher is considered high risk, triggering a corrective action; 0.6 to 0.8 is considered medium risk, requiring addition to a monitoring list for continuous tracking; and less than 0.6 is considered low risk, requiring fulfillment of the contract according to normal procedures.
[0141] We selected stores with the capacity to handle the orders from the surrounding candidate stores. The selection scope was within 3 kilometers of the delivery address, and the stores had remaining capacity greater than or equal to the equivalent workload of the order and sufficient inventory to meet the demand. At the same time, we excluded high-load stores with a load rate higher than 90% to avoid causing new congestion after the reassignment.
[0142] Recalculate the overall fulfillment cost, which includes additional delivery costs, inventory loss costs, and time delay penalty costs incurred by relocation, and select the store with the lowest cost to relocate the order.
[0143] The rules for order transfer are as follows: orders that have not yet started picking will be transferred as a whole; orders that have been partially picked will only have the unfulfilled portion transferred. The picking workload already completed by the original store will be simultaneously deducted from the production capacity and the costs incurred will be calculated, and will not be included in the new store's fulfillment workload.
[0144] The transfer operation is executed automatically, simultaneously notifying the original store to cancel the fulfillment, and the new store receives the fulfillment instruction and updates the data status of the entire chain.
[0145] After the orders are reassigned, the fulfillment is tracked to verify whether the timeliness and cost after the correction meet the standards. If they do not meet the standards, a second correction is performed to form a closed loop of fulfillment correction. The second correction expands the range of candidate stores to 5 kilometers and can upgrade the delivery method to direct delivery by dedicated personnel to ensure the timeliness of fulfillment.
[0146] Orders that fail to meet the standards after being reassigned and corrected a maximum of two times are marked as abnormal orders and transferred to manual dispatch for backup processing. This correction is an event-driven local adjustment that only involves abnormal orders and related stores and does not trigger global double-layer optimization recalculation.
[0147] Full-chain operational data is acquired at fixed statistical periods. The baseline system parameters and order wavefront propagation model parameters are iteratively optimized and updated to form a closed-loop management system across the entire chain. This process includes: Full-chain operation data is obtained according to a fixed statistical period, which is set to daily. The full-chain operation data of the previous day is obtained at midnight. The core indicators include order fulfillment rate, delivery timeliness achievement rate, inventory value loss rate, and store load balance. Among them, the order fulfillment rate is the number of on-time fulfilled orders divided by the total number of orders; the delivery timeliness achievement rate is the number of orders delivered earlier than the promised time divided by the total number of orders; the inventory value loss rate is the total inventory value loss during the period divided by the average total inventory value during the period; and the store load balance is 1 minus the standard deviation of the store load rate divided by the regional average load rate. The higher the value, the better the load balance.
[0148] A comprehensive operational benefit objective function is constructed, and a Bayesian optimization algorithm is used to optimize the parameters: a Gaussian process is used as a surrogate model to fit the mapping relationship between parameters and benefits, and the expected improvement is used as the sampling function to determine the next set of sampling parameters. The optimal parameter combination is obtained iteratively.
[0149] The complete list of parameters to be optimized is as follows: capacity decay curvature coefficient, spatiotemporal value decay coefficient, store load deviation threshold, inventory value loss threshold, diffusion coefficient and drift velocity vector of the order wavefront propagation model; the parameter search space is within ±30% of the current calibration value of each parameter to avoid large jumps in parameters that could cause system fluctuations.
[0150] The optimization process is as follows: an offline simulation environment is built based on historical operational data. After inputting the combination of parameters to be evaluated, the simulation runs the complete cycle of order allocation and inventory control process, and outputs the corresponding cycle-wide comprehensive operational benefits. Each iteration samples 20 sets of parameters, and after 50 iterations, the optimal parameter combination is output.
[0151] The Gaussian process kernel function uses radial basis functions, and the acquisition function uses the expected improvement criterion.
[0152] Its cyclical comprehensive operating revenue objective function is expressed as:
[0153] In the formula, The total operating revenue for the period is expressed in yuan. Total revenue from periodic orders, in yuan; The total delivery cost for the period is expressed in yuan. The total cost of inter-store warehouse transfers during the cycle is expressed in yuan. Total inventory value loss over the period, in yuan; The compensation for late fulfillment of periodic orders and losses from customer churn are in yuan. Losses from customer churn are calculated based on the average spending of the customer over the past 30 days for the orders that are late.
[0154] The optimized parameters are substituted into historical operational data for backtesting and verification. Once the verification is successful, they are updated to the capacity-inventory dual-dimensional benchmark system and the order wave propagation model. The verification rule is that the overall operational benefit obtained from the backtest is not lower than the backtest result corresponding to the current parameters, and the decline in the two core indicators, order fulfillment rate and delivery timeliness achievement rate, is not more than 1%. If either of these conditions is not met, the original parameters are retained and the system waits for the next round of optimization.
[0155] In summary, this embodiment provides a method for balanced order allocation and inventory management across multiple stores in a chain store. By refining the management to the smallest inventory unit, it optimizes inventory layout based on product expiration dates and regional supply and demand, reducing the near-expiration value loss of short-shelf-life goods. It also incorporates spatial demand transmission patterns for prediction, identifying high-demand areas in advance and reserving corresponding store resources to cope with order peaks and ensure stable delivery times.
[0156] With a dynamic adjustment mechanism driven by abnormal events, execution deviations can be corrected in real time during the fulfillment process, ensuring on-time order delivery. Simultaneously, through periodic operational data feedback and adaptive parameter adjustments, it can continuously adapt to operational changes in different time periods and scenarios. While ensuring service quality, it optimizes overall operating costs, achieving multi-objective synergistic improvements in load balancing, loss control, and timeliness assurance. This helps chain merchants continuously improve overall operational efficiency and terminal service quality in complex and ever-changing operational scenarios.
[0157] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0158] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for balanced order allocation and inventory control across multiple stores in a chain store, characterized in that, include: The marginal capacity decay curve of each chain store and the spatiotemporal value coefficient of each SKU are calibrated to construct a dual-dimensional benchmark system of capacity and inventory, and a pulse coupling trigger threshold for dual-layer optimization is set. The operation area is gridded, and user behavior data and store dynamic operation data within the grid are collected in real time. The spatiotemporal distribution of orders within a fixed period of time is predicted, and a store capacity reservation plan for high-demand areas is generated. The system acquires real customer orders that have been generated but not yet fulfilled, forming a pool of orders to be allocated. Candidate stores are then matched in order of order timeliness priority to generate a feasible initial allocation plan. Construct a rolling time-domain double-layer nested optimization model and perform multi-scale iterative solution. When the impulse coupling condition is triggered, perform anomaly-driven inter-layer re-optimization. After convergence, output the order allocation and inventory adjustment linkage scheme and perform inventory locking and capacity reservation. Based on the linkage scheme, fulfillment instructions are issued and inventory deduction and capacity write-off are executed. The fulfillment status is tracked in real time, and event-driven local dynamic correction is triggered. Full-chain operation data is acquired at fixed statistical periods, and the baseline system parameters and order wavefront propagation model parameters are iteratively optimized and updated.
2. The method for balanced order allocation and inventory control across multiple stores of a chain merchant as described in claim 1, characterized in that, The process of constructing the capacity-inventory dual-dimensional benchmark system includes: Collect historical fulfillment data from each store, fit the fulfillment efficiency change pattern under different load rates, construct the marginal capacity decay curve of a single store, and calibrate the rated maximum capacity, critical load rate, and capacity decay curvature coefficient of each store. By combining the product attributes, expiration date characteristics, and regional supply and demand differences of SKUs, the spatiotemporal value coefficient of unit inventory in different stores and at different times is calculated, and a SKU spatiotemporal value benchmark matrix is constructed. Based on historical order fluctuations and cross-store warehouse transfer response time, the pulse coupling trigger thresholds of the two-layer optimization model are calibrated, including store load deviation thresholds and inventory value loss thresholds. Historical order spatial distribution data were collected, and a two-dimensional convection-diffusion equation was used to construct an order wavefront propagation model. The diffusion coefficient and drift velocity vector were calibrated offline by least squares fitting.
3. The method for balanced order allocation and inventory control across multiple stores of a chain merchant as described in claim 1, characterized in that, The process of generating a store capacity reservation plan for high-demand areas includes: The target operating area is divided into equal two-dimensional grid units, and user page views, add-to-cart volume, and historical order conversion rate data in each grid are collected in real time as input items for order sources; Load the order wavefront propagation model, substitute it into the real-time order source input to solve the model, and obtain the predicted distribution of order density for each grid within a fixed time period in the future; Based on the predicted order density distribution, high order density areas are identified, and fulfillment capacity and popular SKU inventory are reserved proportionally for surrounding covered stores to generate a capacity reservation plan.
4. The method for balanced order allocation and inventory control across multiple stores of a chain merchant as described in claim 1, characterized in that, The process of generating a feasible initial allocation scheme includes: We acquire real customer orders that have been generated but not yet fulfilled to form a pool of orders to be allocated, and then prioritize these orders according to their fulfillment time requirements. For each order, the equivalent workload is calculated based on the SKU category, quantity, and fulfillment difficulty coefficient within the order. Based on order priority from high to low, candidate stores that meet the three hard constraints of inventory balance, effective production capacity, and delivery timeliness are selected and verified to generate a feasible initial allocation plan.
5. The method for balanced order allocation and inventory control across multiple stores of a chain merchant as described in claim 4, characterized in that, The process of screening and validating those that meet hard constraints includes: Set a statistical time window, with the length of the time window matching the average fulfillment time of the store; Verify on an order-by-order basis whether the effective remaining capacity and available inventory of the candidate stores within the time window can meet the order demand; After all orders are matched, output the feasible initial allocation schemes that have passed the verification, and use them as the initial solution population for the inner layer of the two-layer optimization model.
6. The method for balanced order allocation and inventory control across multiple stores of a chain merchant as described in claim 1, characterized in that, The process of constructing the rolling temporal domain two-layer nested optimization model includes: Construct an outer-layer cross-store transfer optimization sub-model, with the scheduling cycle as the time scale, and the optimization objective being to minimize the sum of regional total inventory value loss and cross-store transfer logistics costs. The decision variables are the transfer volume and timing of each SKU between stores, and the constraints are transfer capacity constraints and total inventory constraints. An inner-layer real-time order allocation sub-model is constructed, with real-time fulfillment as the time scale and minimizing the sum of comprehensive fulfillment cost and load imbalance penalty cost as the optimization objective. The decision variable is the matching relationship between orders and stores, and the constraints are inventory constraints, capacity constraints, and timeliness constraints. The weight coefficients of the outer and inner layer objectives are determined by combining the analytic hierarchy process (AHP) with the entropy weight method. A pulse coupling triggering rule is set to trigger anomaly-driven inter-layer re-optimization when abnormal events such as sudden order surges, store malfunctions and offline operations, load deviations exceeding thresholds for multiple consecutive sampling periods, or inventory value losses exceeding thresholds are detected. The initial allocation scheme is used as the initial solution for the inner layer to complete the model initialization.
7. The method for balanced order allocation and inventory control across multiple stores of a chain merchant as described in claim 1, characterized in that, The iterative solution process for the rolling time-domain double-nested optimization model includes: At the beginning of each scheduling cycle, the outer layer uses the current inventory status as the starting point. The outer layer uses an improved differential evolution algorithm with an elite memory to complete multiple generations of iterative solutions, outputs the optimal cross-store warehouse transfer scheme for this scheduling cycle and fixes it as the inventory constraint boundary for the inner layer solution. Under the constraint of a fixed inventory adjustment scheme, the inner layer inherits the population state of the previous iteration and uses a differential evolution algorithm with an adaptive mutation strategy to complete multiple generations of iterative solutions and output the current optimal order allocation scheme. When the change in the comprehensive objective value of multiple consecutive inner-layer iterations is less than the convergence threshold, the solution is considered to have converged, and the final order allocation and inventory relocation linkage scheme is output.
8. The method for balanced order allocation and inventory control across multiple stores of a chain merchant as described in claim 1, characterized in that, The process of issuing fulfillment instructions and executing inventory deduction and capacity write-off based on the linkage scheme includes: According to the linkage plan, fulfillment instructions are issued to the corresponding stores, inventory deduction and capacity write-off are executed simultaneously, and real-time operational data of the stores are updated. Adopting a near-expiry priority outbound rule, calculate the inventory value loss for each outbound transaction and update the store inventory value ledger; Real-time monitoring of inventory levels for each SKU in stores; when inventory falls below the safe level, replenishment requirements are generated based on regional order forecasts.
9. A method for balanced order allocation and inventory control across multiple stores of a chain merchant as described in claim 1, characterized in that, The event-driven local dynamic correction process includes: Real-time collection of fulfillment progress data from each store; calculation of the delay risk value of each order to be fulfilled in the current receiving store; when the risk value exceeds the correction threshold, the order reassignment process is triggered. Select the store to take over from the surrounding candidate stores, recalculate the overall fulfillment cost, select the store with the lowest cost to execute the order transfer, and update the inventory and production capacity data in a timely manner. After the orders are reassigned, the fulfillment is tracked to verify whether the timeliness and cost after the correction are met. If they are not met, a second correction is performed.
10. A method for balanced order allocation and inventory control across multiple stores of a chain merchant as described in claim 1, characterized in that, The process of iteratively optimizing and updating the baseline system parameters and the order wavefront propagation model parameters includes: Full-chain operational data is obtained at fixed statistical periods, including order fulfillment rate, delivery timeliness achievement rate, inventory value loss rate, and store load balance. A comprehensive operational revenue objective function for the cycle is constructed, and the parameters are optimized using a Bayesian optimization algorithm. The optimized parameters will be updated to the capacity-inventory dual-dimensional benchmark system and the order wavefront propagation model for order allocation and inventory management in the next cycle.
