Method and apparatus for allocating inventory
By obtaining and fitting the delivery time distribution function, orders with short delivery times are prioritized, solving the problem of high inventory turnover in existing technologies and achieving efficient inventory utilization.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-26
- Publication Date
- 2026-04-10
AI Technical Summary
The existing inventory allocation methods have a high inventory turnover cycle, resulting in a large amount of inventory being tied up for a long time.
By obtaining the current remaining delivery time and historical delivery time of the orders to be assigned, a cumulative distribution function of delivery time is fitted. Orders are then sorted and inventory is allocated based on the delivery time parameter, prioritizing orders with shorter delivery times.
This reduces inventory turnover cycle, improves inventory utilization efficiency, and ensures that orders with short delivery times are shipped out as early as possible.
Smart Images

Figure CN115730888B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application mainly relates to the technical field of goods inventory allocation, and particularly relates to a goods inventory allocation method and device. BACKGROUND
[0002] In the logistics express industry, with the increase of business volume, in the face of the present situation that factory capacity cannot meet order demand (short supply), how to sort the existing pre-order and give an intelligent delivery date scheme is particularly important. However, in the prior art, the pre-order pool system mostly adopts a manual sorting method, that is, orders placed first are preferentially allocated inventory, which will make even the order demand behind the delivery date to occupy inventory due to the order placed first, resulting in a large amount of goods inventory being occupied for a long time, so that the inventory turnover cycle is high.
[0003] That is, the inventory turnover cycle of the goods inventory allocation method in the prior art is high. SUMMARY
[0004] The present application provides a goods inventory allocation method and device, aiming at solving the problem of high inventory turnover cycle of the goods inventory allocation method in the prior art.
[0005] In a first aspect, the present application provides a goods inventory allocation method, which comprises:
[0006] obtaining a current remaining delivery time and a plurality of historical delivery times of a goods in a to-be-allocated order;
[0007] fitting the plurality of historical delivery times of the goods to obtain a cumulative distribution function of the delivery time of the goods;
[0008] determining a delivery time parameter of the goods in the to-be-allocated order according to the current remaining delivery time and the cumulative distribution function of the delivery time, wherein the delivery time parameter decreases with the increase of the current remaining delivery time;
[0009] sorting the to-be-allocated orders according to the delivery time parameter of the goods in each to-be-allocated order to obtain a target order set after sorting;
[0010] allocating inventory to the target order set.
[0011] Optionally, the determining of the delivery time parameter of the goods in the to-be-allocated order according to the current remaining delivery time and the cumulative distribution function of the delivery time comprises:
[0012] determining a plurality of delivery time ranges corresponding to a plurality of preset quantile ranges according to the cumulative distribution function of the delivery time and the plurality of preset quantile ranges;
[0013] Determine a delivery time parameter of the goods in the to-be-assigned order according to the current remaining delivery time of the goods and the plurality of delivery time ranges.
[0014] Optionally, the to-be-assigned orders are sorted according to the delivery time parameter of the goods in each to-be-assigned order to obtain a sorted target order set.
[0015] Obtain preset order parameter information of each to-be-assigned order and a preset parameter weight of each parameter, wherein the preset order parameter information includes at least one of a goods quantity parameter, a goods profit parameter, a user type parameter, and an order type parameter.
[0016] Weighted average the preset order parameter information and the delivery time parameter according to the preset parameter weight to obtain a sorting parameter.
[0017] Sort each to-be-assigned order according to the sorting parameter to obtain a sorted target order set.
[0018] Optionally, the obtaining of the preset order parameter information of each to-be-assigned order and the preset parameter weight of each parameter includes:
[0019] Obtain a quantity of goods in each to-be-assigned order.
[0020] Determine a goods quantity parameter in each to-be-assigned order according to the quantity of goods in each to-be-assigned order, wherein the goods quantity parameter decreases with an increase in the quantity of goods in the to-be-assigned order.
[0021] Optionally, the inventory allocation to the target order set includes:
[0022] Take out a to-be-assigned order at the front of the sorting in the target order set as a first target order without replacement.
[0023] Obtain current available inventory information.
[0024] Determine whether the current available inventory information meets the first target order.
[0025] If the current available inventory information meets the first target order, allocate inventory to the first target order and update the current available inventory information.
[0026] Optionally, the goods inventory allocation method further includes:
[0027] If the current available inventory information does not meet the first target order, put the first target order into a preset order set and keep the current available inventory information.
[0028] Optionally, the goods inventory allocation method further includes:
[0029] when the target order set is empty, the order with the highest ranking in the preset order set is taken out as a second target order without replacement;
[0030] determine future inventory information within a preset number of days in the future according to the current available inventory information and the product warehousing information within the preset number of days in the future from the delivery date of the second target order;
[0031] determine whether the second target order meets the future inventory information;
[0032] if the second target order meets the future inventory information, allocate inventory for the second target order and update the current available inventory information.
[0033] In a second aspect, the present application provides a product inventory allocation device, comprising:
[0034] an acquisition unit configured to acquire a current remaining delivery time length and a plurality of historical delivery time lengths of a product in a to-be-allocated order;
[0035] a fitting unit configured to fit the plurality of historical delivery time lengths of the product to obtain a delivery time length cumulative distribution function of the product;
[0036] a parameter determination unit configured to determine a delivery time length parameter of the product in the to-be-allocated order according to the current remaining delivery time length and the delivery time length cumulative distribution function, wherein the delivery time length parameter decreases with an increase in the current remaining delivery time length;
[0037] a ranking unit configured to rank the to-be-allocated orders according to the delivery time length parameters of the products in the to-be-allocated orders to obtain a target order set;
[0038] an inventory allocation unit configured to allocate inventory for the target order set.
[0039] Optionally, the parameter determination unit is configured to:
[0040] determine a plurality of delivery time length ranges corresponding to a plurality of preset quantile ranges according to the delivery time length cumulative distribution function and the plurality of preset quantile ranges;
[0041] determine the delivery time length parameter of the product in the to-be-allocated order according to the current remaining delivery time length of the product and the plurality of delivery time length ranges.
[0042] Optionally, the ranking unit is configured to:
[0043] acquire preset order parameter information of each to-be-allocated order and a preset parameter weight of each parameter, wherein the preset order parameter information comprises at least one of a product quantity parameter, a product profit parameter, a user type parameter, and an order type parameter;
[0044] weighting and averaging the preset order parameter information and the delivery time length parameter according to preset parameter weights to obtain a sorting parameter;
[0045] sorting each to-be-allocated order according to the sorting parameter to obtain a sorted target order set.
[0046] Optionally, the sorting unit is configured to:
[0047] obtain the number of goods in each to-be-allocated order;
[0048] determine a number-of-goods parameter in each to-be-allocated order according to the number of goods in the to-be-allocated order, wherein the number-of-goods parameter decreases with an increase in the number of goods in the to-be-allocated order.
[0049] Optionally, the inventory allocation unit is configured to:
[0050] take, without replacement, a to-be-allocated order ranked first in the target order set as a first target order;
[0051] obtain current available inventory information;
[0052] determine whether the current available inventory information meets the first target order;
[0053] if the current available inventory information meets the first target order, allocate inventory for the first target order and update the current available inventory information.
[0054] Optionally, the inventory allocation unit is configured to:
[0055] if the current available inventory information does not meet the first target order, put the first target order into a preset order set and keep the current available inventory information.
[0056] Optionally, the inventory allocation unit is configured to:
[0057] when the target order set is empty, take, without replacement, an order ranked first in the preset order set as a second target order;
[0058] determine future inventory information in a future preset number of days according to the current available inventory information and goods warehousing information in the future preset number of days from a delivery date of the second target order;
[0059] determine whether the second target order meets the future inventory information;
[0060] if the second target order meets the future inventory information, allocate inventory for the second target order and update the current available inventory information.
[0061] In a third aspect, the present application provides a computer device, comprising:
[0062] one or more processors;
[0063] a memory; and
[0064] one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the processor to implement the method for allocating inventory of goods according to any one of the first aspect.
[0065] In a fourth aspect, the present application provides a computer readable storage medium storing a plurality of instructions, which are adapted to be loaded by a processor to execute the steps in the method for allocating inventory of goods according to any one of the first aspect.
[0066] The present application provides a method and device for allocating inventory of goods, which comprises: obtaining a current remaining delivery time length and a plurality of historical delivery time lengths of goods in to-be-allocated orders; fitting the plurality of historical delivery time lengths of goods to obtain a cumulative distribution function of delivery time length of goods; determining a delivery time length parameter of goods in to-be-allocated orders according to the current remaining delivery time length and the cumulative distribution function of delivery time length, wherein the delivery time length parameter decreases with the increase of the current remaining delivery time length; sorting the to-be-allocated orders according to the delivery time length parameter of goods in each to-be-allocated order to obtain a target order set after sorting; and allocating inventory to the target order set. In one aspect, the to-be-allocated orders are sorted and allocated inventory according to the delivery time length parameter, and the shorter the remaining delivery time length is, the greater the delivery time length parameter is, and the to-be-allocated order is more likely to be allocated inventory in the front, so that the inventory can meet the orders with short delivery time first, the goods can be taken out of the warehouse early, and the inventory turnover cycle is reduced. In another aspect, the delivery time length parameter is obtained according to the cumulative distribution function of delivery time length obtained by fitting the plurality of historical delivery time lengths, which can accurately reflect the position of the current remaining delivery time length in the historical delivery time lengths, and can more accurately reflect the relationship between the delivery time length parameter and the current remaining delivery time length, so that the to-be-allocated orders are more reasonably sorted and allocated inventory, and the inventory turnover cycle is further reduced. BRIEF DESCRIPTION OF DRAWINGS
[0067] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative effort.
[0068] Figure 1 is a scene schematic diagram of the inventory allocation system for goods provided by the embodiments of the present application;
[0069] Figure 2 is an embodiment flow diagram of a goods inventory allocation method provided in an embodiment of the present application;
[0070] Figure 3 is an embodiment flow diagram of inventory allocation to a target order set in a goods inventory allocation method provided in an embodiment of the present application;
[0071] Figure 4 is an embodiment structural diagram of a goods inventory allocation apparatus provided in an embodiment of the present application;
[0072] Figure 5 is an embodiment structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0073] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of protection of the present application.
[0074] In the description of the present application, it should be understood that the terms “center”, “longitudinal”, “transverse”, “length”, “width”, “thickness”, “upper”, “lower”, “front”, “rear”, “left”, “right”, “vertical”, “horizontal”, “top”, “bottom”, “inner”, “outer” and the like indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as a limitation on the present application. In addition, the terms “first” and “second” are only for the purpose of description, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the technical features indicated. Therefore, the features limited by “first” and “second” can explicitly or implicitly include one or more features. In the description of the present application, the meaning of “multiple” is two or more, unless otherwise specifically limited.
[0075] In this application, the word "exemplary" is used to mean "serving as an example, instance, or illustration." Any implementation described as "exemplary" is not necessarily to be construed as preferred or advantageous over other implementations. The following description is presented to enable any person skilled in the art to make and use the application. In the following description, for purposes of explanation, numerous details are set forth. It should be appreciated, however, that the present application can be practiced in a variety of configurations other than the particular examples disclosed herein. Thus, the present application is not intended to be limited to the particular embodiments disclosed herein, but it is to be understood that various embodiments described herein are presently preferred, and others well known to those skilled in the art to which the present application pertains, are useful. The following detailed description is, therefore, not to be taken in a limiting sense.
[0076] The embodiments of the present application provide a goods inventory allocation method and device, which are described in detail as follows.
[0077] Please refer to Figure 1 , Figure 1 The scene schematic diagram of the goods inventory allocation system provided by the embodiments of the present application can include a computer device 100, and the computer device 100 is integrated with a goods inventory allocation device.
[0078] In the embodiments of the present application, the computer device 100 can be a stand-alone server, or a server network or a server cluster composed of servers. For example, the computer device 100 described in the embodiments of the present application includes but is not limited to a computer, a network host, a single network server, a plurality of network server sets, or a cloud server composed of a plurality of servers. The cloud server is composed of a large number of computers or network servers based on cloud computing.
[0079] In the embodiments of the present application, the computer device 100 described above can be a general-purpose computer device or a special-purpose computer device. In specific implementation, the computer device 100 can be a desktop computer, a laptop computer, a network server, a personal digital assistant (PDA), a mobile phone, a tablet computer, a wireless terminal device, a communication device, an embedded device, etc., and the embodiments are not limited to the type of the computer device 100.
[0080] Those skilled in the art can understand that the application environment shown in Figure 1 the embodiments of the present application is only one application scenario of the present application scheme, and does not constitute a limitation on the application scenarios of the present application scheme. Other application environments can include more or fewer computer devices than those shown in the embodiments of the present application, for example Figure 1 Figure 1 It should be understood that the goods inventory allocation system can also include one or more other computer devices that can process data, without limitation.
[0081] In addition, as Figure 1 indicated, the goods inventory allocation system can also include a memory 200 for storing data.
[0082] It should be noted that Figure 1 The scenario diagram of the goods inventory allocation system as shown is merely an example. The goods inventory allocation system and scenario described in the embodiments of the present application are provided to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. It can be understood by those skilled in the art that, as the goods inventory allocation system evolves and new business scenarios appear, the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems.
[0083] First, the present application provides a goods inventory allocation method, which includes: obtaining a current remaining delivery time length and a plurality of historical delivery time lengths of a goods in a to-be-allocated order; fitting the plurality of historical delivery time lengths of the goods to obtain a delivery time length cumulative distribution function of the goods; determining a delivery time length parameter of the goods in the to-be-allocated order according to the current remaining delivery time length and the delivery time length cumulative distribution function, wherein the delivery time length parameter decreases as the current remaining delivery time length increases; sorting the to-be-allocated orders according to the delivery time length parameters of the goods in each to-be-allocated order to obtain a sorted target order set; and performing inventory allocation on the target order set.
[0084] Referring to Figure 2 , Figure 2 is an embodiment flowchart of the goods inventory allocation method provided in the embodiments of the present application, as Figure 2 indicated, the goods inventory allocation method includes the following steps S201-S205:
[0085] S201, obtaining a current remaining delivery time length and a plurality of historical delivery time lengths of a goods in a to-be-allocated order.
[0086] In the embodiments of the present application, the to-be-allocated order can be read from an order system. The to-be-allocated order can include a delivery time, a current remaining delivery time length, a quantity of goods in the order, a profit rate of the goods in the order, and the like. The plurality of historical delivery time lengths of the goods can be read from stored historical data.
[0087] S202, fitting the plurality of historical delivery time lengths of the goods to obtain a delivery time length cumulative distribution function of the goods.
[0088] In one specific embodiment, the delivery time length cumulative distribution function is an exponential distribution cumulative distribution function. In probability theory and statistics, the exponential distribution is a continuous probability distribution. The exponential distribution is a continuous analog of the geometric distribution. It has the key property of being memoryless, meaning that the probability of an event occurring is independent of the time since the last event. In addition to its use in modeling the times between events in various kinds of processes, the exponential distribution is used as a model for the distribution of a number of other variables, such as the useful life of electrical components, the length of a human life, or the amount of time until a certain number of radioactive decays have occurred. The exponential distribution can be used to represent the time between independent events that happen at a constant average rate. It can be used to model the time between independent events that happen at a constant average rate, such as the time between arrivals in a Poisson process, the time between telephone calls in a switch, or the time between arrivals of customers at a checkout counter. The exponential distribution can accurately describe the distribution of delivery time lengths. Of course, in other embodiments, other cumulative distribution functions can be used, which are not limited herein.
[0089] A cumulative distribution function (CDF) is a function that describes the probability that a real-valued random variable X with probability density function f is less than or equal to x. It is the integral of the probability density function. It is denoted CDF(x) = P(X≤x). The cumulative distribution function represents the probability that a discrete variable is less than or equal to a.
[0090] S203, determining the delivery time length parameter of the goods in the order to be allocated according to the current remaining delivery time length and the delivery time length cumulative distribution function.
[0091] The delivery time length parameter decreases as the current remaining delivery time length increases. The delivery time length parameter decreases as the current remaining delivery time length increases. The shorter the current remaining delivery time length, the greater the delivery time length parameter, and the more likely the order to be allocated in the front, which can make the inventory satisfy the order with short delivery time first, make the goods out of the warehouse early, and reduce the inventory turnover cycle.
[0092] In one specific embodiment, determining the delivery time length parameter of the goods in the order to be allocated according to the current remaining delivery time length and the delivery time length cumulative distribution function comprises:
[0093] (1) determining a plurality of delivery time length ranges corresponding to a plurality of preset quantile ranges according to the delivery time length cumulative distribution function and the plurality of preset quantile ranges.
[0094] The two end point values of the delivery time length range are input into the delivery time length cumulative distribution function as random variables to obtain the two end point values corresponding to the preset quantile range.
[0095] Quantile, also known as quantile point, refers to a value point for dividing the probability distribution range of a random variable into several equal parts. Commonly used quantile points include median (i.e., two quantile point), quartile, and percentile. The plurality of preset quantile ranges can be set according to specific conditions. For example, the plurality of preset quantile ranges are (0, 20%], (20%, 40%], (40%, 60%], (60%, 80%], and (80%, 100%). The delivery time ranges corresponding to the plurality of preset quantile ranges are (0, 1.41], (1.41, 3.22], (3.22, 5.77], (5.77, 10.14], and (10.14, 1000].
[0096] (2) Determining the delivery time parameter of the goods in the to-be-allocated order according to the current remaining delivery time of the goods and the plurality of delivery time ranges.
[0097] In the embodiments of the present application, the correspondence between the plurality of delivery time ranges and the delivery time parameter is obtained, wherein the correspondence between the plurality of preset quantile ranges and the delivery time parameter is preset, and the correspondence between the plurality of delivery time ranges and the delivery time parameter is determined according to the correspondence between the plurality of preset quantile ranges and the delivery time parameter. For example, the correspondence between the plurality of delivery time ranges and the delivery time parameter includes: the preset quantile range is (0, 20%], the corresponding delivery time range is (0, 1.41], and the corresponding delivery time parameter is 5; the preset quantile range is (20%, 40%], the corresponding delivery time range is (1.41, 3.22], and the corresponding delivery time parameter is 4. When the plurality of preset quantile ranges remain unchanged, if the delivery time cumulative distribution function changes, the plurality of delivery time ranges correspondingly change, and the obtained delivery time range is more close to the delivery time distribution characteristics of the goods. Compared with the fixed delivery time range, the current remaining delivery time in the historical delivery time can be more accurately reflected, the relationship between the delivery time parameter and the current remaining delivery time can be more accurately reflected, the sorting is more reasonable, and the inventory allocation is further improved, thereby further reducing the inventory turnover period.
[0098] S204, sorting the to-be-allocated orders according to the delivery time parameter of the goods in each to-be-allocated order to obtain a sorted target order set.
[0099] In the embodiments of the present application, the to-be-allocated orders are sorted according to the delivery time parameter of the goods in each to-be-allocated order to obtain a sorted target order set, including:
[0100] (1) Obtaining preset order parameter information of each to-be-allocated order and a preset parameter weight of each parameter.
[0101] The preset order parameter information includes at least one of a product quantity parameter, a product profit parameter, a user type parameter, and an order type parameter.
[0102] In a specific embodiment, obtaining the preset order parameter information of each to-be-assigned order and the preset parameter weight of each parameter includes: obtaining the product quantity in each to-be-assigned order; determining the product quantity parameter in each to-be-assigned order according to the product quantity in each to-be-assigned order, wherein the product quantity parameter decreases with the increase of the product quantity in the to-be-assigned order. The order with less product quantity in each to-be-assigned order is given a larger product quantity parameter. The less the product quantity is, the easier it is to meet, and the larger the corresponding product quantity parameter is, so that the sorting position of the to-be-assigned order is more forward, thereby preferentially performing inventory allocation and improving order satisfaction rate. The order satisfaction rate = order satisfied order number / total order number.
[0103] In a specific embodiment, obtaining the preset order parameter information of each to-be-assigned order and the preset parameter weight of each parameter includes: obtaining the maximum historical profit rate and the minimum historical profit rate of the product in each to-be-assigned order, equally dividing the interval between the maximum historical profit rate and the minimum historical profit rate into a plurality of profit rate intervals, and determining the product profit parameter according to the plurality of profit rate intervals, the corresponding profit rate parameter, and the product profit rate of the to-be-assigned order. The product profit parameter increases with the increase of the product profit rate. For example, the maximum historical profit rate and the minimum historical profit rate of the product in each to-be-assigned order are equally divided into 5 profit rate intervals, and the parameter values of 1, 2, 3, 4, and 5 are assigned in turn. The higher the product profit rate is, the higher the profit rate parameter is.
[0104] The order type parameter is divided into important large customer (FIB) orders, random procurement type (FAB Repeat) orders, repeated procurement type (FAB Random) orders, and other orders. The four types of orders correspond to different order type parameters, for example, the order type parameters of the important large customer (FIB) orders, the random procurement type (FAB Repeat) orders, the repeated procurement type (FAB Random) orders, and the other orders are 5, 3, 2, and 1 parameter values, respectively. The order type parameters of different types of orders can be determined according to specific needs.
[0105] The user type parameter includes important customers, loyal customers, new users (customers not in the historical order table), and random purchasing customers. Specifically, the customers can be classified into important customers, loyal customers, new users (customers not in the historical order table), and random purchasing customers through the RFM model. The RFM model is an important tool and means for measuring customer value and customer profit-creating ability. Among many customer relationship management (CRM) analysis models, the RFM model is widely mentioned. For example, the user type parameters of important customers, loyal customers, new users (customers not in the historical order table), and random purchasing customers correspond to 5, 4, 3, and 2 parameter values, respectively.
[0106] In the embodiments of the present application, the preset parameter weights of various parameters can be pre-set. For example, the preset order parameter information includes the product quantity parameter, the product profit parameter, the user type parameter, and the order type parameter. The preset parameter weight corresponding to the product quantity parameter is 0.15; the preset parameter weight corresponding to the product profit parameter is 0.1; the preset parameter weight corresponding to the user type parameter is 0.3; the preset parameter weight corresponding to the order type parameter is 0.3, and the preset parameter weight corresponding to the delivery time parameter is 0.15.
[0107] (2) The preset order parameter information and the delivery time parameter are weighted and averaged according to the preset parameter weights to obtain the sorting parameter.
[0108] In a specific embodiment, the relationship between the sorting parameter Total point and the order type parameter point_FIB, the user type parameter point_customer, the product quantity parameter point_amount, the product profit parameter point_profit_rate, and the delivery time parameter point_left_days is shown in formula (1),
[0109]
[0110] (3) The various to-be-allocated orders are sorted according to the sorting parameter to obtain a sorted target order set.
[0111] Specifically, the various to-be-allocated orders are sorted according to the sorting parameter from large to small to obtain a sorted target order set.
[0112] S205, inventory allocation is performed on the target order set.
[0113] Specifically, the orders in the target order set are sequentially matched with the inventory according to the sorting parameter to obtain an inventory allocation result.
[0114] Referring to Figure 3 , Figure 3is an embodiment flowchart of a method for allocating goods inventory provided in an embodiment of the present application.
[0115] As shown in Figure 3 in one specific embodiment, the inventory allocation for the target order set includes S301-S309:
[0116] S301, the order to be allocated in the target order set is taken out as the first target order without being put back.
[0117] Specifically, the order to be allocated in the target order set is taken out each time, and is not put back in the target order set to obtain the first target order. The orders in the target order set gradually decrease to an empty set.
[0118] S302, obtaining current available inventory information.
[0119] In one specific embodiment, obtaining the current available inventory information includes: obtaining in-stock inventory information and in-transit inventory information; determining the current available inventory information according to the in-stock inventory information and the in-transit inventory information. The in-stock inventory information is the goods inventory currently stored in the warehouse, which can be sent at any time. The in-stock inventory information includes the in-stock goods inventory quantity and the time when the in-stock goods arrive at the user. The in-transit inventory information is the in-transit goods inventory quantity and the time when the in-transit goods arrive at the user. The in-stock inventory information and the in-transit inventory information are combined to determine the current available inventory information. For example, the warehouse can be divided into domestic warehouse and foreign warehouse. Because the transportation time of domestic and foreign warehouses is different, classification of domestic and foreign warehouses is needed. If it is a domestic warehouse, the arrival time of the user can be assumed to be the arrival time of the user + 7 days of transportation time; if it is a foreign warehouse, the arrival time of the user can be assumed to be the arrival time of the user + 56 days of transportation time. Because the user does not want to deliver immediately after ordering, but wants to deliver in the future, the in-transit inventory can be used to match the future delivery order, so as to reduce the occupation of in-stock inventory by future delivery orders and improve the order satisfaction rate.
[0120] S303, determining whether the current available inventory information meets the first target order.
[0121] Specifically, the delivery date and the quantity of goods of the first target order are obtained, and it is determined whether the quantity of goods is greater than the quantity of goods in the current available inventory information that can arrive at the user before the delivery date. If it is not greater, it is determined that the current available inventory information meets the first target order, and S304 is executed; if it is greater, it is determined that the current available inventory information does not meet the first target order, and S305 is executed.
[0122] S304, allocating inventory for the first target order and updating the current available inventory information.
[0123] Specifically, if it is judged that the current available inventory information meets the first target order, the goods of the first target order are deducted from the current available inventory information to update the current available inventory information, and S301 is returned to be executed.
[0124] S305, the first target order is put into the preset order set, and the current available inventory information is kept.
[0125] Specifically, if it is judged that the current available inventory information does not meet the first target order, the first target order is put into the preset order set for the next round of inventory matching, at this time, the first target order is not allocated with inventory, the current available inventory information is kept unchanged, and S301 is returned to be executed.
[0126] S306, when the target order set is an empty set, the order at the front of the preset order set is taken out without replacement as a second target order.
[0127] When the target order set is an empty set, it indicates that the orders to be allocated in the target order set have been completed with inventory allocation, and secondary inventory allocation can be performed to select the orders that can be delayed to meet.
[0128] S307, future inventory information within a preset number of days in the future is determined according to the current available inventory information and the goods warehousing information within the preset number of days in the future of the delivery date of the second target order.
[0129] Specifically, the preset number of days in the future can be one day, two days, etc., which is set according to specific conditions. The current available inventory information and the goods warehousing information within the preset number of days in the future of the delivery date of the second target order can be combined to obtain the future inventory information. The future inventory information includes the future inventory quantity of the goods and the time of arriving at the user.
[0130] S308, whether the second target order meets the future inventory information is judged.
[0131] Specifically, the delivery date and the quantity of goods of the second target order are obtained, whether the quantity of goods is greater than the inventory quantity of the goods that can arrive at the user before the delivery date in the future inventory information is judged, if not, it is judged that the future inventory information meets the second target order, the second target order is a delayed order, and S309 is executed; if greater, it is judged that the future inventory information does not meet the second target order, and it is determined that the second target order is an order that cannot be met.
[0132] S309, inventory is allocated for the second target order, and the current available inventory information is updated.
[0133] Specifically, if the second target order meets the future inventory information, the second target order is a delayed order, inventory is allocated for the second target order, the current available inventory information is updated, and S306 is returned to be executed.
[0134] Further, when the preset order set is empty, the inventory allocation result is output, and the inventory allocation result includes the satisfied order, the delayed satisfied order, the unsatisfied order, and the updated current available inventory information.
[0135] In order to better implement the goods inventory allocation method in the embodiments of the present application, on the basis of the goods inventory allocation method, the embodiments of the present application also provide a goods inventory allocation device, as shown in Figure 4 The goods inventory allocation device 400 includes:
[0136] The acquisition unit 401 is configured to acquire the current remaining delivery time length and a plurality of historical delivery time lengths of the goods in the to-be-allocated order.
[0137] The fitting unit 402 is configured to fit the plurality of historical delivery time lengths of the goods to obtain a cumulative distribution function of the delivery time length of the goods.
[0138] The parameter determination unit 403 is configured to determine the delivery time length parameter of the goods in the to-be-allocated order according to the current remaining delivery time length and the cumulative distribution function of the delivery time length, wherein the delivery time length parameter decreases with the increase of the current remaining delivery time length.
[0139] The sorting unit 404 is configured to sort the to-be-allocated orders according to the delivery time length parameter of the goods in each to-be-allocated order to obtain a target order set after sorting.
[0140] The inventory allocation unit 405 is configured to perform inventory allocation on the target order set.
[0141] Optionally, the parameter determination unit 403 is configured to:
[0142] determine a plurality of delivery time length ranges corresponding to a plurality of preset quantile ranges according to the cumulative distribution function of the delivery time length and the plurality of preset quantile ranges;
[0143] determine the delivery time length parameter of the goods in the to-be-allocated order according to the current remaining delivery time length of the goods and the plurality of delivery time length ranges.
[0144] Optionally, the sorting unit 404 is configured to:
[0145] acquire preset order parameter information of each to-be-allocated order and a preset parameter weight of each parameter, wherein the preset order parameter information includes at least one of a goods quantity parameter, a goods profit parameter, a user type parameter, and an order type parameter;
[0146] perform weighted average on the preset order parameter information and the delivery time length parameter according to the preset parameter weight to obtain a sorting parameter;
[0147] Sort each to-be-allocated order according to the sorting parameter, to obtain a sorted target order set.
[0148] Optionally, the sorting unit 404 is configured to:
[0149] Obtain the quantity of goods in each to-be-allocated order.
[0150] Determine a quantity-of-goods parameter in each to-be-allocated order according to the quantity of goods in each to-be-allocated order, wherein the quantity-of-goods parameter decreases with an increase in the quantity of goods in the to-be-allocated order.
[0151] Optionally, the inventory allocation unit 405 is configured to:
[0152] Take, without replacement, a to-be-allocated order at the front of the sorted target order set as a first target order.
[0153] Obtain current available inventory information.
[0154] Determine whether the current available inventory information satisfies the first target order.
[0155] If the current available inventory information satisfies the first target order, allocate inventory for the first target order, and update the current available inventory information.
[0156] Optionally, the inventory allocation unit 405 is configured to:
[0157] If the current available inventory information does not satisfy the first target order, place the first target order in a preset order set, and maintain the current available inventory information.
[0158] Optionally, the inventory allocation unit 405 is configured to:
[0159] When the target order set is an empty set, take, without replacement, an order at the front of the preset order set as a second target order.
[0160] Determine future inventory information in a future preset number of days according to the current available inventory information and the quantity-of-goods information of the second target order in the future preset number of days.
[0161] Determine whether the second target order satisfies the future inventory information.
[0162] If the second target order satisfies the future inventory information, allocate inventory for the second target order, and update the current available inventory information.
[0163] Embodiments of the present application also provide a computer device integrating any of the goods inventory allocation apparatuses provided by the embodiments of the present application, and the computer device comprises:
[0164] One or more processors.
[0165] a memory; and
[0166] one or more application programs, wherein the one or more application programs are stored in the memory and configured to perform the steps of the method for allocating product inventory in any of the above method embodiments of allocating product inventory by the processor.
[0167] As shown in Figure 5 FIG. 1 shows a structural schematic diagram of a computer device related to the embodiments of the present application. Specifically, the computer device can include a processor 501 having one or more processing cores, a memory 502 having one or more computer readable storage media, a power supply 503, and an input unit 504, etc.
[0168] The computer device can include a processor 501 having one or more processing cores, a memory 502 having one or more computer readable storage media, a power supply 503, and an input unit 504, etc. Those skilled in the art can understand that the computer device structure shown in the figure does not constitute a limitation on the computer device, and can include more or fewer components than shown in the figure, or combine certain components, or different component arrangements. Among them:
[0169] The processor 501 is the control center of the computer device, which connects various parts of the computer device through various interfaces and lines, and performs various functions of the computer device and processes data by running or executing software programs and / or modules stored in the memory 502 and calling data stored in the memory 502, thereby overall monitoring the computer device. Optionally, the processor 501 can include one or more processing cores; the processor 501 can be a central processing unit (CPU), and can also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs) or other programmable logic devices, discrete gates or transistor logic components, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor or the like, and preferably, the processor 501 can integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc., and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor can also not be integrated into the processor 501.
[0170] The memory 502 can be used to store software programs and modules, and the processor 501 executes various function applications and data processing by running the software programs and modules stored in the memory 502. The memory 502 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, application programs required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; and the data storage area can store data created according to the use of the computer device, etc. In addition, the memory 502 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state memory device. Accordingly, the memory 502 can also include a memory controller to provide access for the processor 501 to the memory 502.
[0171] The computer device further includes a power supply 503 for powering the various components. Preferably, the power supply 503 can be logically connected to the processor 501 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system. The power supply 503 can also include one or more than one direct current or alternating current power supply, a recharging system, a power supply fault detection circuit, a power supply converter or inverter, a power supply state indicator, and the like.
[0172] The computer device can further include an input unit 504, which can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
[0173] Although not shown, the computer device can also include a display unit and the like, which will not be described here. Specifically, in the present embodiment, the processor 501 in the computer device will load the executable file corresponding to the process of one or more than one application program into the memory 502 according to the following instructions, and run the application program stored in the memory 502 by the processor 501, so as to realize various functions, as follows:
[0174] obtaining a current remaining delivery time length and a plurality of historical delivery time lengths of a product in a to-be-assigned order;
[0175] fitting the plurality of historical delivery time lengths of the product to obtain a cumulative distribution function of the delivery time length of the product;
[0176] determining a delivery time length parameter of the product in the to-be-assigned order according to the current remaining delivery time length and the cumulative distribution function of the delivery time length, wherein the delivery time length parameter decreases with an increase of the current remaining delivery time length;
[0177] sorting the to-be-assigned orders according to the delivery time length parameters of the products in the to-be-assigned orders to obtain a sorted target order set;
[0178] perform inventory allocation on the target order set.
[0179] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions or controlled by instructions related hardware, which can be stored in a computer readable storage medium and loaded and executed by a processor.
[0180] To this end, the embodiments of the present application provide a computer readable storage medium, which can include a read only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc. A computer program is stored thereon, which is loaded by a processor to execute the steps in any of the inventory allocation methods provided by the embodiments of the present application. For example, the computer program loaded by the processor can execute the following steps:
[0181] obtain the current remaining delivery time length and a plurality of historical delivery time lengths of the goods in the order to be allocated;
[0182] fit the plurality of historical delivery time lengths of the goods to obtain a cumulative distribution function of the delivery time length of the goods;
[0183] determine the delivery time length parameter of the goods in the order to be allocated according to the current remaining delivery time length and the cumulative distribution function of the delivery time length, wherein the delivery time length parameter decreases with the increase of the current remaining delivery time length;
[0184] sort the orders to be allocated according to the delivery time length parameters of the goods in each order to be allocated to obtain a target order set after sorting;
[0185] perform inventory allocation on the target order set.
[0186] In the above embodiments, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can be referred to the detailed description of other embodiments above, which will not be repeated here.
[0187] In specific implementation, each of the above units or structures can be implemented as an independent entity, or can be combined as the same or several entities, and the specific implementation of each of the above units or structures can be referred to the method embodiments above, which will not be repeated here.
[0188] The specific implementation of each of the above operations can be referred to the above embodiments, which will not be repeated here.
[0189] The above describes in detail the goods inventory allocation method and device provided by the embodiments of the present application. The principles and implementation manners of the present application are described by using specific examples. The above embodiment description is only used to help understand the method of the present application and its core idea. Meanwhile, for those skilled in the art, the specific implementation manners and application ranges will be changed according to the idea of the present application. In conclusion, the content of the specification should not be understood as a limitation of the present application.
Claims
1. A method for allocating goods inventory, characterized in that, The inventory allocation method includes: Get the current remaining delivery time and multiple historical delivery times for the goods in the pending orders; By fitting multiple historical delivery times of the goods, the cumulative distribution function of the delivery time of the goods is obtained; The multiple delivery time ranges corresponding to the multiple preset quantile ranges are determined based on the cumulative distribution function of delivery time and multiple preset quantile ranges; the delivery time parameters of the goods in the order to be allocated are determined based on the current remaining delivery time of the goods and the multiple delivery time ranges, wherein the delivery time parameters decrease as the current remaining delivery time increases; the correspondence between the multiple delivery time ranges and the delivery time parameters is determined based on the pre-set correspondence between the multiple preset quantile ranges and the delivery time parameters. Obtain the preset order parameter information and preset parameter weights of each order to be assigned, wherein the preset order parameter information includes at least one of the following: product quantity parameter, product profit parameter, user type parameter, and order type parameter; calculate a weighted average of the preset order parameter information and delivery time parameter according to the preset parameter weights to obtain sorting parameters; sort each order to be assigned according to the sorting parameters to obtain the sorted target order set; Inventory allocation is performed on the target order set.
2. The inventory allocation method according to claim 1, characterized in that, The process of obtaining the preset order parameter information and preset parameter weights for each order to be assigned includes: Get the quantity of goods in each order to be assigned; The quantity parameters of goods in each pending order are determined based on the quantity of goods in each pending order, wherein the quantity parameters of goods decrease as the quantity of goods in the pending order increases.
3. The inventory allocation method according to claim 2, characterized in that, The process of allocating inventory to the target order set includes: The first target order is retrieved without replacement from the top of the target order set; Get current available inventory information; Determine if the current available inventory meets the first target order; If the current available inventory information meets the requirements of the first target order, then allocate inventory to the first target order and update the current available inventory information.
4. The inventory allocation method according to claim 3, characterized in that, The inventory allocation method also includes: If the current available inventory information does not meet the first target order, then the first target order is placed into the preset order set, and the current available inventory information is maintained.
5. The inventory allocation method according to claim 4, characterized in that, The inventory allocation method also includes: When the target order set is empty, the order that is first in the preset order set is taken out without replacement as the second target order; The future inventory information for the next preset number of days is determined based on the current available inventory information and the goods receipt information within the next preset number of days from the delivery date of the second target order; Determine whether the second target order meets the future inventory information; If the second target order meets the future inventory information, then inventory is allocated to the second target order, and the current available inventory information is updated.
6. A goods inventory distribution device, characterized in that, The goods inventory allocation device includes: The acquisition unit is used to acquire the current remaining delivery time and multiple historical delivery times of the goods in the order to be assigned; The fitting unit is used to fit multiple historical delivery times of goods to obtain the cumulative distribution function of delivery time of goods; The parameter determination unit is used to determine multiple delivery time ranges corresponding to the multiple preset quantile ranges based on the cumulative distribution function of delivery time and multiple preset quantile ranges; to determine the delivery time parameters of the goods in the order to be allocated based on the current remaining delivery time of the goods and the multiple delivery time ranges, wherein the delivery time parameters decrease as the current remaining delivery time increases; and to determine the correspondence between multiple delivery time ranges and delivery time parameters based on the pre-set correspondence between multiple preset quantile ranges and delivery time parameters. The sorting unit is used to obtain the preset order parameter information and preset parameter weights of each order to be assigned, wherein the preset order parameter information includes at least one of the following: product quantity parameter, product profit parameter, user type parameter, and order type parameter; to obtain the sorting parameters by performing a weighted average of the preset order parameter information and delivery time parameter according to the preset parameter weights; and to sort the orders to be assigned according to the sorting parameters to obtain the sorted target order set. An inventory allocation unit is used to allocate inventory to the target order set.
7. A computer device, characterized in that, The computer device includes: One or more processors; Memory; and One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the goods inventory allocation method of any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, It stores a computer program, which is loaded by a processor to execute the steps in the goods inventory allocation method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Logistics order processing method and device
CN109377144A
Method and device for determining replenishment amount of single product, equipment and storage medium
CN111222815A
Warehouse stock processing method and device, storage medium and electronic equipment
CN113128932A