A method and device for determining replenishment quantity
By dividing goods into similar sub-sets, using replenishment impact factors and historical demand distribution, we calculate the current demand and determine the replenishment amount, solving the problem of manual experience and deep neural networks relying on large amounts of data, and achieving accurate replenishment amounts. Sure.
Patent Information
- Application Number
- CN202010219684.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-03-25
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2040-03-25
AI Technical Summary
In the existing technology, it is difficult to accurately determine the replenishment amount by relying on manual experience, and deep neural networks require a large amount of historical data to predict demand, resulting in inaccurate replenishment amounts.
Commodities with the same multi-group attributes in the commodity collection are divided into the same commodity sub-collection. Based on the replenishment influence factors and historical demand distribution, the current demand is calculated through the preset model, and the replenishment amount is determined based on the current demand and inventory.
It overcomes the shortcomings of manual experience decision-making, can accurately determine the replenishment quantity without requiring a large amount of historical data, and improves the accuracy of replenishment decisions.
Smart Images

Figure CN113450042B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and device for determining replenishment quantity. Background Art
[0002] In both automatic vending and manual vending scenarios, the replenishment of goods is involved. Taking the automatic vending cabinet as an example, its operation has two significant characteristics: one is regular batch replenishment, such as one day; the other is that the goods sold have a short shelf life, such as fast food lunch boxes and fresh bread. In a replenishment cycle, if the replenishment quantity is too small to meet the shopping demand within the time period, it will cause out-of-stock, resulting in potential out-of-stock losses; if the replenishment quantity is too large to be sold out, resulting in surplus goods, and the goods with a short shelf life that cannot be sold in time need to be destroyed, resulting in waste and increased operating costs. Therefore, it is necessary to accurately predict the demand for various types of goods within a replenishment cycle, and then accurately determine the replenishment quantity to achieve the purpose of maximizing profits and minimizing costs. Not only does the operation of the automatic vending cabinet have the above two significant characteristics, but small and medium-sized bakeries and flower shops for community residents also have the characteristics of regular batch replenishment and short shelf life of goods, and they also need to accurately determine the quantity of each replenishment.
[0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:
[0004] Determining the replenishment quantity based on manual experience is difficult for decision makers to summarize effective and reliable rules for some commodities with unstable demand, and thus it is impossible to make reasonable and effective replenishment decisions. Using deep neural network technology to predict demand and then determine the replenishment quantity requires a large amount of historical data. However, the magnitude of historical demand data for most single commodities is difficult to guarantee the effectiveness of the deep neural network training model, resulting in inaccurate replenishment quantities. Summary of the invention
[0005] In view of this, an embodiment of the present invention provides a method and device for determining replenishment quantity, which can overcome the defect of relying on manual experience and failing to make reasonable and effective replenishment decisions, and can determine the replenishment quantity more accurately without requiring a large amount of historical data.
[0006] To achieve the above objective, according to one aspect of an embodiment of the present invention, a method for determining a replenishment quantity is provided.
[0007] A method for determining replenishment quantity, comprising: dividing commodities with the same multi-group attribute in a commodity set into the same commodity subset, and determining the replenishment influence factor and historical demand distribution of the commodity subset according to the replenishment influence factor and historical demand per unit time period of various commodities in the commodity subset; obtaining the current demand of the commodity subset through a preset model according to the replenishment influence factor and historical demand distribution of the commodity subset; calculating the current demand of each commodity in the commodity subset according to the current demand of the commodity subset and the proportion of the total historical demand of each commodity in the commodity subset; and determining the replenishment quantity of each commodity in the commodity subset according to the current demand and current inventory of each commodity in the commodity subset.
[0008] Optionally, the replenishment influencing factors include price and cost; before the commodities with the same multi-group attributes in the commodity set are divided into the same commodity subset, the method includes: for each commodity in the commodity set, calculating the non-descending sorted quantiles of the price, cost and historical average demand of the commodity in the price set, cost set and historical average demand set of all commodities in the commodity set, respectively, to obtain the price attribute, cost attribute and historical demand mean attribute of each commodity in the commodity set, and obtaining the multi-group attribute of each commodity in the commodity set according to the price attribute, the cost attribute and the historical demand mean attribute.
[0009] Optionally, determining the replenishment influence factor and historical demand distribution of the commodity subset according to the replenishment influence factor and historical demand per unit time period of various commodities in the commodity subset includes: calculating the total historical demand of each commodity in the commodity subset according to multiple historical demands per unit time period of each commodity in the commodity subset, and obtaining the proportion of the total historical demand of each commodity in the commodity subset according to the ratio of the total historical demand of each commodity to the sum of the total historical demand of all commodities in the commodity subset; calculating the price of the commodity subset according to the prices of various commodities in the commodity subset and the proportion of the total historical demand in the commodity subset; calculating the cost of the commodity subset according to the costs of various commodities in the commodity subset and the proportion of the total historical demand in the commodity subset; calculating the historical demand per unit time period of the commodity subset according to the historical demands per unit time period of various commodities in the commodity subset, and determining the historical demand distribution of the commodity subset according to the multiple historical demands per unit time period of the commodity subset.
[0010] Optionally, determining the historical demand distribution of the commodity subset based on the historical demand quantities of the commodity subset in multiple unit time periods includes: obtaining the functional form of the historical demand distribution of the commodity subset, and calculating the mean and variance of the historical demand distribution function based on the historical demand quantities of the commodity subset in multiple unit time periods, thereby determining the historical demand distribution of the commodity subset based on the functional form of the historical demand distribution, the mean and the variance.
[0011] Optionally, determining the historical demand distribution of the commodity subset based on multiple historical demands per unit time periods of the commodity subset includes: dividing an interval consisting of the maximum and minimum values of the historical demands per unit time period of the commodity subset into multiple sub-intervals, and calculating the quantity distribution of the historical demands per unit time period of the commodity subset within the multiple sub-intervals; determining a grid array of the historical demand of the commodity subset based on each of the sub-intervals; determining a quantity distribution percentage array of the commodity subset based on the quantity distribution of the historical demand per unit time period of the commodity subset within the multiple sub-intervals and each of the sub-intervals; and obtaining the historical demand distribution of the commodity subset by fitting a specified function based on the historical demand grid array of the commodity subset and the quantity distribution percentage array of the commodity subset.
[0012] Optionally, the current demand for the commodity subset is obtained through a preset model based on the replenishment influencing factor and historical demand distribution of the commodity subset, including: obtaining a cumulative distribution function of the historical demand for the commodity subset based on the historical demand distribution of the commodity subset; and obtaining the current demand for the commodity subset by predicting through a newsboy model based on the price and cost of the commodity subset and an inverse function of the cumulative distribution function of the historical demand for the commodity subset.
[0013] According to another aspect of an embodiment of the present invention, a device for determining a replenishment quantity is provided.
[0014] A device for determining replenishment quantity, comprising: a division module, used to divide commodities with the same multi-group attribute in a commodity set into the same commodity subset; a first determination module, used to determine the replenishment influence factor and historical demand distribution of the commodity subset according to the replenishment influence factor and historical demand per unit time period of various commodities in the commodity subset; a first demand calculation module, used to obtain the current demand of the commodity subset through a preset model according to the replenishment influence factor and historical demand distribution of the commodity subset; a second demand calculation module, used to calculate the current demand of each commodity in the commodity subset according to the current demand of the commodity subset and the proportion of the total historical demand of each commodity in the commodity subset; a replenishment quantity determination module, used to determine the replenishment quantity of each commodity in the commodity subset according to the current demand and current inventory of each commodity in the commodity subset.
[0015] Optionally, the replenishment influencing factors include price and cost; the device also includes a multi-group attribute determination module, which is used to: for each commodity in the commodity set, calculate the non-descending sorted quantiles of the price, cost, and historical average demand of the commodity in the price set, cost set, and historical average demand set of all commodities in the commodity set, respectively, to obtain the price attribute, cost attribute, and historical demand mean attribute of each commodity in the commodity set, and obtain the multi-group attribute of each commodity in the commodity set according to the price attribute, the cost attribute, and the historical demand mean attribute.
[0016] Optionally, the first determination module is further used to: calculate the total historical demand of each commodity in the commodity subset according to multiple unit time period historical demands of each commodity in the commodity subset, and obtain the proportion of the total historical demand of each commodity in the commodity subset according to the ratio of the total historical demand of each commodity to the sum of the total historical demand of all commodities in the commodity subset; calculate the price of the commodity subset according to the prices of various commodities in the commodity subset and the proportion of the total historical demand in the commodity subset; calculate the cost of the commodity subset according to the costs of various commodities in the commodity subset and the proportion of the total historical demand in the commodity subset; calculate the historical demand per unit time period of the commodity subset according to the historical demand per unit time period of various commodities in the commodity subset, and determine the historical demand distribution of the commodity subset according to the multiple unit time period historical demands of the commodity subset.
[0017] Optionally, the first determination module includes a first historical demand distribution determination submodule, which is used to: obtain the functional form of the historical demand distribution of the commodity subset, calculate the mean and variance of the historical demand distribution function based on the historical demand of multiple unit time periods of the commodity subset, and thereby determine the historical demand distribution of the commodity subset based on the functional form of the historical demand distribution, the mean and the variance.
[0018] Optionally, the first determination module includes a second historical demand distribution determination submodule, which is used to: divide the interval formed by the maximum and minimum values of the historical demand per unit time period of the commodity subset into multiple sub-intervals, and calculate the quantity distribution of the historical demand per unit time period of the commodity subset within the multiple sub-intervals; determine a grid array of the historical demand of the commodity subset according to each of the sub-intervals; determine a quantity distribution percentage array of the commodity subset according to the quantity distribution of the historical demand per unit time period of the commodity subset within the multiple sub-intervals and each of the sub-intervals; and obtain the historical demand distribution of the commodity subset by fitting a specified function based on the historical demand grid array of the commodity subset and the quantity distribution percentage array of the commodity subset.
[0019] Optionally, the first demand calculation module is also used to: obtain the cumulative distribution function of the historical demand of the commodity subset based on the historical demand distribution of the commodity subset; and obtain the current demand of the commodity subset by predicting through a newsboy model based on the price, cost and the inverse function of the cumulative distribution function of the historical demand of the commodity subset.
[0020] According to yet another aspect of the embodiments of the present invention, an electronic device is provided.
[0021] An electronic device includes: one or more processors; and a memory for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the method for determining replenishment quantity provided in an embodiment of the present invention.
[0022] According to yet another aspect of an embodiment of the present invention, a computer readable medium is provided.
[0023] A computer readable medium stores a computer program, which, when executed by a processor, implements a method for determining a replenishment quantity provided in an embodiment of the present invention.
[0024] One embodiment of the above invention has the following advantages or beneficial effects: the commodities with the same multi-group attribute in the commodity set are divided into the same commodity subset, and the replenishment influence factor and historical demand distribution of the commodity subset are determined according to the replenishment influence factor and historical demand of each commodity in the commodity subset; the current demand of the commodity subset is obtained through a preset model according to the replenishment influence factor and historical demand distribution of the commodity subset; the current demand of each commodity in the commodity subset is calculated according to the current demand of the commodity subset and the proportion of each commodity in the total historical demand of the commodity subset; the replenishment quantity of each commodity in the commodity subset is determined according to the current demand and current inventory of each commodity in the commodity subset. It can overcome the defect of relying on manual experience and failing to give a reasonable and effective replenishment decision, and the replenishment quantity can be determined more accurately without a large amount of historical data.
[0025] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0027] Figure 1 is a schematic diagram of main steps of a method for determining replenishment quantity according to one embodiment of the present invention;
[0028] Figure 2 is a schematic diagram of a process for determining a replenishment quantity according to an embodiment of the present invention;
[0029] Figure 3 is a schematic diagram of main modules of a device for determining replenishment quantity according to an embodiment of the present invention;
[0030] Figure 4 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0031] Figure 5 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0032] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0033] Figure 1 4 is a schematic diagram of main steps of a method for determining replenishment quantity according to an embodiment of the present invention.
[0034] like Figure 1 As shown, a method for determining replenishment quantity according to an embodiment of the present invention mainly includes steps S101 to S104.
[0035] Step S101: Grouping commodities with the same multi-group attribute in a commodity set into the same commodity sub-set, and determining the replenishment influence factor and historical demand distribution of the commodity sub-set according to the replenishment influence factor and historical demand per unit time period of each commodity in the commodity sub-set.
[0036] Step S102: according to the replenishment influencing factors and historical demand distribution of the commodity subset, the current demand of the commodity subset is obtained through a preset model;
[0037] Step S103: Calculate the current demand of each commodity in the commodity subset according to the current demand of the commodity subset and the proportion of the total historical demand of each commodity in the commodity subset;
[0038] Step S104: Determine the replenishment quantity of each commodity in the commodity subset according to the current demand and current inventory of each commodity in the commodity subset.
[0039] The replenishment influencing factors are factors that affect the replenishment quantity. In one embodiment, the replenishment influencing factors include price and cost. It can be understood by those skilled in the art that in other embodiments, price and cost can also be replaced by other factors that affect the replenishment quantity. When the replenishment influencing factors are other factors, the method for determining the replenishment quantity in the embodiment of the present invention can be implemented by referring to the implementation method in which the replenishment influencing factors are price and cost.
[0040] Before dividing the commodities with the same multi-group attributes in the commodity set into the same commodity sub-set, for each commodity in the commodity set, the non-descending sorted quantiles of the price, cost, and historical average demand of the commodity in the price set, cost set, and historical average demand set of all commodities in the commodity set can be calculated, and the price attribute, cost attribute, and historical demand mean attribute of each commodity in the commodity set can be obtained. The multi-group attributes of each commodity in the commodity set can be obtained based on the price attribute, cost attribute, and historical demand mean attribute. It should be noted that the price attribute and cost attribute in the multi-group attributes correspond to the price and cost in the replenishment influencing factors. If the price and cost in the replenishment influencing factors are replaced by other influencing factors, the price attribute and cost attribute in the multi-group attributes will also correspond to the corresponding influencing factor attributes.
[0041] Determining the replenishment influence factor and historical demand distribution of the commodity subset according to the replenishment influence factor and historical demand per unit time period of various commodities in the commodity subset may specifically include: calculating the total historical demand of each commodity in the commodity subset according to multiple historical demands per unit time period of each commodity in the commodity subset, and obtaining the proportion of the total historical demand of each commodity in the commodity subset according to the ratio of the total historical demand of each commodity to the total historical demand of all commodities in the commodity subset; calculating the price of the commodity subset according to the price of various commodities in the commodity subset and the proportion of the total historical demand in the commodity subset; calculating the cost of the commodity subset according to the cost of various commodities in the commodity subset and the proportion of the total historical demand in the commodity subset; calculating the historical demand per unit time period of the commodity subset according to the historical demand per unit time period of various commodities in the commodity subset, and determining the historical demand distribution of the commodity subset according to multiple historical demands per unit time period of the commodity subset. The execution order of the above steps of calculating the price of the commodity subset, calculating the cost of the commodity subset, and calculating the historical demand per unit time period of the commodity subset is not limited by the order described above.
[0042] In one embodiment, determining the historical demand distribution of a commodity subset according to the historical demand of a plurality of unit time periods of the commodity subset may specifically include: obtaining the function form of the historical demand distribution of the commodity subset, calculating the mean and variance of the historical demand distribution function according to the historical demand of a plurality of unit time periods of the commodity subset, and thereby determining the historical demand distribution of the commodity subset according to the function form, mean and variance of the historical demand distribution. The function form of the historical demand distribution of the commodity subset is the historical demand distribution of the commodity subset with unknown parameters, and the above mean and variance are the parameters of the historical demand distribution of the commodity subset.
[0043] In another embodiment, determining the historical demand distribution of a commodity subset based on multiple unit time period historical demands of the commodity subset may specifically include: dividing an interval consisting of the maximum and minimum values of the unit time period historical demands of the commodity subset into multiple sub-intervals, and calculating the quantity distribution of the unit time period historical demands of the commodity subset within the multiple sub-intervals; determining a grid array of the historical demands of the commodity subset based on each sub-interval; determining a quantity distribution percentage array of the commodity subset based on the quantity distribution of the unit time period historical demands of the commodity subset within the multiple sub-intervals and each sub-interval; and obtaining the historical demand distribution of the commodity subset by fitting a specified function based on the historical demand grid array of the commodity subset and the quantity distribution percentage array of the commodity subset.
[0044] According to the replenishment influencing factors and historical demand distribution of the commodity subset, the current demand of the commodity subset is obtained through a preset model, which may specifically include: obtaining the cumulative distribution function of the historical demand of the commodity subset according to the historical demand distribution of the commodity subset; according to the price and cost of the commodity subset and the inverse function of the cumulative distribution function of the historical demand of the commodity subset, obtaining the current demand of the commodity subset through the newsboy model prediction.
[0045] Figure 2 4 is a schematic diagram of a process for determining a replenishment quantity according to an embodiment of the present invention.
[0046] Take the replenishment scenario for products with a short shelf life (easy to expire) as an example. Figure 2 As shown, the process of determining the replenishment quantity includes the following steps S201 to S208.
[0047] Step S201: Read the set of goods on sale and their historical demand quantity information from the information system.
[0048] The information system stores the historical demand information of the set I of goods on sale. The historical demand information read may be the historical demand in the most recent T unit time periods in the past, where d it It represents the historical demand of the t∈Tth unit time period of the commodity i∈I on sale, and defines the unit time period closest to the current time as the first unit time period. The commodity on sale is referred to as commodity, and the set of commodities on sale I is referred to as commodity set I.
[0049] Step S202: determine the triple attribute <price attribute, cost attribute, historical demand mean attribute> of the commodity, and divide the commodity set into multiple commodity sub-sets according to the triple attributes of various commodities in the commodity set.
[0050] Define the triplet attribute of the product i =<e1,e2,e3>:
[0051]
[0052] Among them, e1 represents the price attribute of the triple, e2 represents the cost attribute of the triple, e3 represents the historical demand mean attribute of the triple, and p i represents the price of commodity i, ci represents the cost of commodity i, It represents the historical average demand of commodity i in the last T unit time periods. The calculation formula is as follows:
[0053]
[0054] l represents an integer greater than 1 (l is preferably 2 or 3), and the function rank(element a,set A,lengthl) returns the non-descending ranking quantile of element a∈A in set A. The return value of the function rank(element a,set A,length l) is an integer belonging to [1,l], a≤l. For example: rank(2,{1,2,3,4,5,6},3)=1, and the calculation process is:
[0055]
[0056] Among them, the numerator: "2" means that element 2 is ranked second in the set A = {1,2,3,4,5,6}, the denominator "6" means that the set A has 6 elements in total, and 3 means l = 3. If the value calculated according to the above formula is not an integer, it is rounded up and then output. For example, for the above set A, assuming l = 2, then rank(2,{1,2,3,4,5,6},2) = 1. With e1 = rank(p i ,∪ i∈I p i ,l) as an example, the above element a is p i , set A is ∪ i∈I p i , the same goes for e2 and e3.
[0057] According to the triplet attribute of the product i =<e1,e2,e3>(i∈I), divide the commodity set I into J={0,…,l 3 -1} product subsets, and determine the product subset index j according to the following formula:
[0058]
[0059] For this formula, taking l=2 as an example, the commodity subset index, the triple attributes of various commodities in the commodity subset, and the characteristics of the commodity subset are summarized as shown in Table 1.
[0060] Table 1
[0061]
[0062] Step S203: Calculate the price, cost and historical demand of each commodity subset.
[0063] The commodity subset I can be calculated according to the following formula j The price of j ', cost c j ' and historical demand d it ':
[0064]
[0065]
[0066]
[0067]
[0068] Among them, I j Represents the set of products contained in the product subset with index j. ij Represents the product subset I j Product i in product subset I j The proportion of the total historical demand in the product subset I, that is, the total historical demand of product i accounts for j The percentage of the total historical demand of all commodities in. ij The numerator of the calculation formula is the commodity subset I j The sum of the historical demand for commodity i in the past T unit time periods, that is, the total historical demand for commodity i, prt ij The denominator of the calculation formula is the product subset I j The total historical demand for all commodities in . jt 'Specifically represents the commodity subset I in the past t-th unit time period j The historical demand, d jt ' is the product subset I j The historical demand in the tth unit time period.
[0069] Step S204: determine whether the functional form of the historical demand distribution of the commodity subset is known, if so, execute step S205, otherwise execute step S206.
[0070] Step S205: Calculate the mean and variance of the historical demand for the commodity subset to determine the historical demand distribution of the commodity subset.
[0071] The mean and variance of the historical demand for a subset of commodities can also be called the mean and variance of the historical demand distribution function of the subset of commodities.
[0072] The historical demand distribution of the commodity subset is determined according to the function form of the historical demand distribution of the commodity subset, the mean and variance of the historical demand distribution function, specifically, the function expression of the historical demand distribution of the commodity subset is determined, which is the probability density function of the historical demand. Among them, calculating the mean and variance is to determine the parameters of the function expression of the historical demand distribution of the commodity subset. At the same time, the function form of the historical demand distribution is known, so the historical demand distribution of the commodity subset can be determined. For example, the commodity subset Ij The historical demand distribution (or the probability density function of historical demand) is denoted as f j (D).
[0073] Product Subset I j The mean of the historical demand distribution function j and variance std j Calculated by the following formulas:
[0074]
[0075]
[0076] Step S206: Use the open source function library to fit the historical demand distribution of the commodity subset.
[0077] Specifically, the product subset I j The historical demand range is divided into K sub-ranges ik . Product Subset I j The historical demand interval is the commodity subset I j The maximum value of historical demand per unit time period max t∈T {d it '} and minimum value min t∈T {d it '}, the interval composed of commodity subset I j The length of the subinterval is Δ j , range ik and Δ j The expression is as follows, range ik For a left-open and right-closed interval:
[0078]
[0079]
[0080] According to the following formula, the product subset I is counted j The distribution of the historical demand (the historical demand per unit time period) in K equal molecular intervals is prob jk :
[0081]
[0082] According to the product subset I j The distribution of the historical demand in K equal molecular intervals prob jk , by calling the open source toolkit to fit the product subset I j The probability density function of historical demand, that is, the commodity subset I j The historical demand distribution ofj (D).
[0083] The rv_discrete() function of the stats module of the open source Python library SciPy is called in the Python language environment to simulate the product subset I j The probability density function of the historical demand f j (D) as an example, first, determine the product subset I according to the following formula j Historical demand grid array grids j :
[0084]
[0085] And, the product subset I is determined according to the following formula j The number distribution percentage array probs j :
[0086]
[0087] Where total_prob = ∑ k=0,...,K-1 range jk ·prob jk .
[0088] Then, according to the following formula, call the rv_discrete() function of the stats module of the open source library SciPy in the Python language environment to obtain the product subset I j The probability density function of the historical demand f j (D):
[0089] f j (D)=scipy.stats.rv_discrete(values=(grids j ,probs j )) (16)
[0090] The default parameters of the scipy.stats.rv_discrete() function are all taken by default. rv_discrete is a base class for constructing specific distribution classes and instances for discrete random variables.
[0091] Step S207: Use the newsboy model to predict the demand for the commodity subset in the current time period.
[0092] According to the product subset I j The historical demand distribution (the probability density function of the historical demand f j (D)), get the product subset I jThe historical demand cumulative distribution function F(D), F(D) is f j (D) is the cumulative result of the values taken.
[0093] For each product subset I j , use the newsvendor model to predict the demand for the subset of goods in the current time period (or current demand)
[0094]
[0095] Among them, F -1 (D) represents the product subset I j The inverse function of the historical demand cumulative distribution function F(D), in the embodiment of the present invention, D is p j ' is the product subset I j The price of j ' is the product subset I j cost.
[0096] Step S208: Determine the replenishment quantity of each commodity based on the current demand and supply-demand relationship of the commodity subset.
[0097] Among them, firstly, the current demand of each commodity in the commodity subset is calculated according to the current demand of the commodity subset and the proportion of the total historical demand of each commodity in the commodity subset.
[0098] Specifically, the product subset I can be calculated according to the following formula j The demand for commodity i in the current time period, that is, I j The current demand for commodity i in
[0099]
[0100] in, For the product subset I j The current demand, prt ij Represents the product subset I j Product i in product subset I j The proportion of total historical demand in the
[0101] Then, according to the supply and demand relationship, the commodity subset I is determined according to the following formula: j The replenishment quantity of product i in the current time period
[0102]
[0103] Among them, invi Indicates the current inventory of product i, bat i represents the minimum replenishment quantity of commodity i. The meaning of the above formula is: if the current inventory inv i Able to meet the predicted demand, that is, the current demand for commodity i No replenishment is needed, so the replenishment quantity is 0; if the current inventory inv i Unable to meet forecast demand The amount of replenishment required Less than the minimum batch replenishment quantity bat i , then the replenishment quantity of commodity i is determined to be the minimum batch replenishment quantity bat i ; If the quantity to be replenished is not less than the minimum batch replenishment quantity bat i , then determine the replenishment quantity The amount of stock that needs to be replenished In addition, considering the possible influence of defective goods, loss or other situations, the replenishment quantity adjustment coefficient α can be set when determining the replenishment quantity, α∈[1.0,1.1], so as to determine the replenishment quantity as
[0104] Finally, for each product, according to the determined replenishment quantity Confirm, issue and execute replenishment operation plan.
[0105] The embodiment of the present invention considers the triple attribute of <price attribute, cost attribute, historical demand mean attribute> based on empirical knowledge, divides the set of goods on sale into multiple sub-sets of goods, then takes each sub-set of goods as a minimum unit, fits the probability density function of its demand, and then uses the newsboy model to predict the demand of the sub-set of goods in the current time period, and finally determines the replenishment quantity of various goods based on the supply and demand relationship. It overcomes the defect that the existing technology relies on manual experience to determine the replenishment quantity and cannot give a reasonable and effective replenishment decision, and can accurately determine the replenishment quantity without a large amount of historical data.
[0106] Figure 3 4 is a schematic diagram of main modules of a device for determining replenishment quantity according to an embodiment of the present invention.
[0107] like Figure 3 As shown, an apparatus 300 for determining replenishment quantity according to an embodiment of the present invention mainly includes: a division module 301, a first determination module 302, a first demand quantity calculation module 303, a second demand quantity calculation module 304, and a replenishment quantity determination module 305.
[0108] The partitioning module 301 is used to partition commodities with the same multi-tuple attribute in the commodity set into the same commodity sub-set.
[0109] The first determination module 302 is used to determine the replenishment impact factor and historical demand distribution of the commodity subset according to the replenishment impact factor and historical demand per unit time period of each commodity in the commodity subset.
[0110] The first demand quantity calculation module 303 is used to obtain the current demand quantity of the commodity subset through a preset model according to the replenishment influencing factor and the historical demand distribution of the commodity subset.
[0111] The second demand calculation module 304 is used to calculate the current demand of each commodity in the commodity subset according to the current demand of the commodity subset and the proportion of the total historical demand of each commodity in the commodity subset.
[0112] The replenishment quantity determination module 305 is used to determine the replenishment quantity of each commodity in the commodity subset according to the current demand and current inventory of each commodity in the commodity subset.
[0113] In one embodiment, the replenishment influencing factors include price and cost.
[0114] The device 300 for determining the replenishment quantity may also include a multi-tuple attribute determination module, which is used to: for each commodity in the commodity set, calculate the non-descending sorted quantiles of the price, cost, and historical average demand of the commodity in the price set, cost set, and historical average demand set of all commodities in the commodity set, respectively, to obtain the price attribute, cost attribute, and historical demand mean attribute of each commodity in the commodity set, and obtain the multi-tuple attribute of each commodity in the commodity set based on the price attribute, cost attribute, and historical demand mean attribute.
[0115] The first determination module 302 can be specifically used to: calculate the total historical demand of each commodity in the commodity subset according to multiple unit time period historical demands of each commodity in the commodity subset, and obtain the proportion of the total historical demand of each commodity in the commodity subset according to the ratio of the total historical demand of each commodity to the sum of the total historical demand of all commodities in the commodity subset; calculate the price of the commodity subset according to the prices of various commodities in the commodity subset and the proportion of the total historical demand in the commodity subset; calculate the cost of the commodity subset according to the costs of various commodities in the commodity subset and the proportion of the total historical demand in the commodity subset; calculate the historical demand per unit time period of the commodity subset according to the historical demand per unit time period of various commodities in the commodity subset, and determine the historical demand distribution of the commodity subset according to the multiple unit time period historical demands of the commodity subset.
[0116] In one embodiment, the first determination module 302 includes a first historical demand distribution determination submodule, which is used to: obtain the functional form of the historical demand distribution of the commodity subset, calculate the mean and variance of the historical demand distribution function based on the historical demand of multiple unit time periods of the commodity subset, and thereby determine the historical demand distribution of the commodity subset based on the functional form, mean and variance of the historical demand distribution.
[0117] In another embodiment, the first determination module 302 includes a second historical demand distribution determination submodule, which is used to: divide the interval formed by the maximum and minimum values of the historical demand per unit time period of the commodity subset into multiple sub-intervals, and calculate the quantity distribution of the historical demand per unit time period of the commodity subset in the multiple sub-intervals; determine the historical demand grid array of the commodity subset according to each sub-interval; determine the quantity distribution percentage array of the commodity subset according to the quantity distribution of the historical demand per unit time period of the commodity subset in the multiple sub-intervals and each sub-interval; and obtain the historical demand distribution of the commodity subset by fitting a specified function based on the historical demand grid array of the commodity subset and the quantity distribution percentage array of the commodity subset.
[0118] The first demand calculation module 303 can be specifically used to: obtain the historical demand cumulative distribution function of the commodity subset according to the historical demand distribution of the commodity subset; and obtain the current demand of the commodity subset through the newsboy model prediction based on the price, cost and inverse function of the historical demand cumulative distribution function of the commodity subset.
[0119] In addition, the specific implementation content of the device for determining the replenishment quantity in the embodiment of the present invention has been described in detail in the method for determining the replenishment quantity described above, so the repeated content will not be described again here.
[0120] Figure 4 An exemplary system architecture 400 is shown to which the method for determining a replenishment quantity or the apparatus for determining a replenishment quantity according to an embodiment of the present invention can be applied.
[0121] like Figure 4 As shown, system architecture 400 may include terminal devices 401, 402, 403, network 404 and server 405. Network 404 is used to provide a medium for communication links between terminal devices 401, 402, 403 and server 405. Network 404 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0122] Users can use terminal devices 401, 402, 403 to interact with server 405 through network 404 to receive or send messages, etc. Terminal devices 401, 402, 403 can be installed with various communication client applications, such as web browser applications, instant messaging tools, email clients, etc. (only examples).
[0123] The terminal devices 401 , 402 , and 403 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.
[0124] The server 405 may be a server that provides various services, such as a backend management server (only an example) that provides support for shopping websites browsed by users using the terminal devices 401, 402, and 403. The backend management server may analyze and process the received data such as product information query requests, and feed back the processing results (such as target push information, product information - only an example) to the terminal device.
[0125] It should be noted that the method for determining the replenishment quantity provided in the embodiment of the present invention is generally executed by the server 405 , and accordingly, the device for determining the replenishment quantity is generally set in the server 405 .
[0126] It should be understood that Figure 4 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.
[0127] Reference below Figure 5 , which shows a schematic diagram of the structure of a computer system 500 of a terminal device or server suitable for implementing an embodiment of the present application. Figure 5 The terminal device or server shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0128] like Figure 5 As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage part 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the system 500 are also stored. The CPU 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0129] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that a computer program read therefrom is installed into the storage section 508 as needed.
[0130] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 509, and / or installed from the removable medium 511. When the computer program is executed by the central processing unit (CPU) 501, the above-mentioned functions defined in the system of the present application are executed.
[0131] It should be noted that the computer-readable medium shown in the present invention can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal can take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0132] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0133] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor, for example, it may be described as: a processor includes a partitioning module, a first determination module, a first demand calculation module, a second demand calculation module, and a replenishment determination module. The names of these modules do not, in some cases, constitute limitations on the modules themselves. For example, the partitioning module may also be described as "a module for partitioning commodities with the same multi-group attributes in a commodity set into the same commodity subset."
[0134] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently and not be assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by one of the devices, the device includes: dividing the commodities with the same multi-group attribute in the commodity set into the same commodity subset, and determining the replenishment influence factor and historical demand distribution of the commodity subset according to the replenishment influence factor and historical demand per unit time period of various commodities in the commodity subset; obtaining the current demand of the commodity subset through a preset model according to the replenishment influence factor and historical demand distribution of the commodity subset; calculating the current demand of each commodity in the commodity subset according to the current demand of the commodity subset and the proportion of the total historical demand of each commodity in the commodity subset; determining the replenishment quantity of each commodity in the commodity subset according to the current demand and current inventory of each commodity in the commodity subset.
[0135] According to the technical solution of the embodiment of the present invention, the commodities with the same multi-group attribute in the commodity set are divided into the same commodity subset, and the replenishment influence factor and historical demand distribution of the commodity subset are determined according to the replenishment influence factor and historical demand distribution of various commodities in the commodity subset; the current demand of the commodity subset is obtained through a preset model according to the replenishment influence factor and historical demand distribution of the commodity subset; the current demand of each commodity in the commodity subset is calculated according to the current demand of the commodity subset and the proportion of the total historical demand of each commodity in the commodity subset; the replenishment quantity of each commodity in the commodity subset is determined according to the current demand and current inventory of each commodity in the commodity subset. It can overcome the defect of relying on manual experience and failing to give a reasonable and effective replenishment decision, and can determine the replenishment quantity more accurately without a large amount of historical data.
[0136] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for determining replenishment quantity, characterized in that: include: The commodities with the same multi-group attribute in the commodity set are divided into the same commodity sub-set, and the replenishment influence factor and historical demand distribution of the commodity sub-set are determined according to the replenishment influence factor and the historical demand per unit time period of each commodity in the commodity sub-set; the multi-group attribute corresponds to the replenishment influence factor; According to the replenishment influencing factors and historical demand distribution of the commodity subset, the current demand of the commodity subset is obtained through a preset model; Calculate the current demand of each commodity in the commodity subset according to the current demand of the commodity subset and the proportion of the total historical demand of each commodity in the commodity subset; Determine the replenishment quantity of each commodity in the commodity subset according to the current demand and current inventory of each commodity in the commodity subset; The replenishment influencing factors include price and cost; determining the replenishment influencing factors and historical demand distribution of the commodity subset according to the replenishment influencing factors and historical demand per unit time period of various commodities in the commodity subset includes: calculating the total historical demand of each commodity in the commodity subset according to multiple historical demands per unit time period of each commodity in the commodity subset, and obtaining the proportion of the total historical demand of each commodity in the commodity subset according to the ratio of the total historical demand of each commodity to the total historical demand of all commodities in the commodity subset; calculating the price of the commodity subset according to the prices of various commodities in the commodity subset and the proportion of the total historical demand in the commodity subset; calculating the cost of the commodity subset according to the costs of various commodities in the commodity subset and the proportion of the total historical demand in the commodity subset; calculating the historical demand per unit time period of the commodity subset according to the historical demands per unit time period of various commodities in the commodity subset, and determining the historical demand distribution of the commodity subset according to the multiple historical demands per unit time period of the commodity subset.
2. The method according to claim 1, characterized in that Before the commodities in the commodity set with the same multi-tuple attribute are divided into the same commodity sub-set, the method includes: For each commodity in the commodity set, calculate the non-descending sorted quantiles of the price, cost, and historical average demand of the commodity in the price set, cost set, and historical average demand set of all commodities in the commodity set, respectively, to obtain the price attribute, cost attribute, and historical demand mean attribute of each commodity in the commodity set, and obtain the multi-tuple attribute of each commodity in the commodity set according to the price attribute, the cost attribute, and the historical demand mean attribute.
3. The method according to claim 1, characterized in that The determining the historical demand distribution of the commodity subset according to the historical demand quantities of the commodity subset in multiple unit time periods includes: Obtain the functional form of the historical demand distribution of the commodity subset, calculate the mean and variance of the historical demand distribution function based on the historical demand of the commodity subset for multiple unit time periods, and thereby determine the historical demand distribution of the commodity subset based on the functional form of the historical demand distribution, the mean and the variance.
4. The method according to claim 1, characterized in that The determining the historical demand distribution of the commodity subset according to the historical demand quantities of the commodity subset in multiple unit time periods includes: Divide the interval formed by the maximum value and the minimum value of the historical demand for the commodity subset per unit time period into multiple sub-intervals, and calculate the quantity distribution of the historical demand for the commodity subset per unit time period in the multiple sub-intervals; Determine a grid array of historical demand for the commodity subset according to each of the sub-intervals; Determine a quantity distribution percentage array of the commodity subset according to the quantity distribution of the historical demand per unit time period of the commodity subset in the multiple sub-intervals and each of the sub-intervals; According to the historical demand grid array of the commodity subset and the quantity distribution percentage array of the commodity subset, the historical demand distribution of the commodity subset is obtained by fitting a specified function.
5. The method according to claim 2, characterized in that: The obtaining the current demand of the commodity subset by a preset model according to the replenishment influencing factor and the historical demand distribution of the commodity subset includes: Obtaining a cumulative distribution function of historical demand for the commodity subset according to the historical demand distribution of the commodity subset; According to the price and cost of the commodity subset and the inverse function of the cumulative distribution function of the historical demand of the commodity subset, the current demand of the commodity subset is predicted by the newsboy model.
6. A device for determining replenishment quantity, characterized in that: include: A partitioning module, used to partition commodities with the same multi-tuple attribute in a commodity set into the same commodity sub-set; A first determination module is used to determine the replenishment impact factor and historical demand distribution of the commodity subset according to the replenishment impact factor and historical demand per unit time period of various commodities in the commodity subset; the multi-tuple attribute corresponds to the replenishment impact factor; A first demand quantity calculation module, configured to obtain the current demand quantity of the commodity subset through a preset model according to the replenishment influencing factor and the historical demand distribution of the commodity subset; A second demand calculation module, configured to calculate the current demand of each commodity in the commodity subset according to the current demand of the commodity subset and the proportion of the total historical demand of each commodity in the commodity subset in the commodity subset; A replenishment quantity determination module, used to determine the replenishment quantity of each commodity in the commodity subset according to the current demand and current inventory of each commodity in the commodity subset; The replenishment influencing factors include price and cost; determining the replenishment influencing factors and historical demand distribution of the commodity subset according to the replenishment influencing factors and historical demand per unit time period of various commodities in the commodity subset includes: calculating the total historical demand of each commodity in the commodity subset according to multiple historical demands per unit time period of each commodity in the commodity subset, and obtaining the proportion of the total historical demand of each commodity in the commodity subset according to the ratio of the total historical demand of each commodity to the total historical demand of all commodities in the commodity subset; calculating the price of the commodity subset according to the prices of various commodities in the commodity subset and the proportion of the total historical demand in the commodity subset; calculating the cost of the commodity subset according to the costs of various commodities in the commodity subset and the proportion of the total historical demand in the commodity subset; calculating the historical demand per unit time period of the commodity subset according to the historical demands per unit time period of various commodities in the commodity subset, and determining the historical demand distribution of the commodity subset according to the multiple historical demands per unit time period of the commodity subset.
7. The device according to claim 6, characterized in that The device also includes a multi-tuple attribute determination module, which is used to: For each commodity in the commodity set, calculate the non-descending sorted quantiles of the price, cost, and historical average demand of the commodity in the price set, cost set, and historical average demand set of all commodities in the commodity set, respectively, to obtain the price attribute, cost attribute, and historical demand mean attribute of each commodity in the commodity set, and obtain the multi-tuple attribute of each commodity in the commodity set according to the price attribute, the cost attribute, and the historical demand mean attribute.
8. An electronic device, characterized in that: include: one or more processors; a memory for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors are enabled to implement the method according to any one of claims 1 to 5.
9. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
