WO2023029874A1 - 一种资源数量确定方法、装置、电子设备及存储介质 - Google Patents

一种资源数量确定方法、装置、电子设备及存储介质 Download PDF

Info

Publication number
WO2023029874A1
WO2023029874A1 PCT/CN2022/110202 CN2022110202W WO2023029874A1 WO 2023029874 A1 WO2023029874 A1 WO 2023029874A1 CN 2022110202 W CN2022110202 W CN 2022110202W WO 2023029874 A1 WO2023029874 A1 WO 2023029874A1
Authority
WO
WIPO (PCT)
Prior art keywords
inventory
resource
container
days
containers
Prior art date
Application number
PCT/CN2022/110202
Other languages
English (en)
French (fr)
Inventor
潘宇通
Original Assignee
北京沃东天骏信息技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京沃东天骏信息技术有限公司 filed Critical 北京沃东天骏信息技术有限公司
Publication of WO2023029874A1 publication Critical patent/WO2023029874A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06311Scheduling, planning or task assignment for a person or group
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/087Inventory or stock management, e.g. order filling, procurement or balancing against orders
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders

Definitions

  • the present application relates to the technical field of information processing, and in particular to a resource quantity determination method, device, electronic equipment and storage medium.
  • a warehouse In the e-commerce distribution scenario, a warehouse is responsible for processing the orders of users in the corresponding area, and the orders of users in other areas will not arrive at the warehouse unless there are special circumstances. If the area is large, the order processing speed will be slow and the delivery will not be delivered in time when encountering a big promotion. For this reason, e-commerce will add warehouses in the current area, and allocate orders to warehouses according to the delivery distance, so as to improve the processing speed of orders. In the case of adding a new warehouse, it is necessary to replenish the goods to each warehouse in the region. Since there is no sufficient theoretical basis for the change in the replenishment volume of the warehouse in the new warehouse scenario, it is mainly determined by the experience of business personnel. The determined replenishment quantity is not accurate enough.
  • Embodiments of the present application provide a resource quantity determination method, device, electronic equipment, and storage medium.
  • An embodiment of the present application provides a method for determining the number of resources, the method including:
  • the first container is expanded to at least two second containers, based on the inventory days corresponding to each type of inventory of the first resource in the first container, determine the number of days in the at least two second containers Inventory days corresponding to each type of inventory of the first resource in each second container;
  • the first quantity represents the quantity of the first resource that needs to be added to the corresponding second container.
  • the determining the first quantity of the first resource in each second container of the at least two second containers includes:
  • the inventory amplification factor represents the ratio of the first inventory days to the second inventory days; the first inventory days represents the sum of the inventory days corresponding to each type of inventory of the first resource in the corresponding second container; the second The inventory days represents the sum of the inventory days corresponding to each type of inventory of the first resource in the first container.
  • the method before determining the first quantity of the first resource in each of the at least two second containers, the method further includes:
  • the second average daily consumption of the first resource in the corresponding second container is determined based on the second order data.
  • the at least two types of inventory include:
  • the first inventory represents the inventory that satisfies the first average daily consumption of the first resource by the first container within the first time period;
  • the second inventory characterizes the inventory used to respond to a first operational event occurring within the first time period in the first container;
  • the first operational event characterizes a reduction in all the inventory in the first container An event that states the first average daily consumption of the primary resource;
  • a third inventory represents an inventory for responding to a second operational event occurring within the first time period in the first container; the second operational event represents an increase in the inventory in the first container An event that describes the first average daily consumption of the first resource.
  • the determining the number of days of inventory corresponding to each type of inventory of the first resource in each of the at least two second containers includes:
  • the first time interval represents the time interval for adding the first resource to the first container
  • the second time interval represents the time interval for adding the first resource to the corresponding second container increasing the time interval of the first resource
  • the third time interval represents the time interval between the start time and the end time of adding the first resource to the corresponding second container
  • the inventory days of the third inventory of the first resource in the first container is determined as the inventory days of the third inventory of the first resource in each of the at least two second containers.
  • the method before the determination of the inventory days corresponding to each type of inventory of the first resource in the first container, the method further includes:
  • the stock quantity of the first inventory of the first resource in the first container Based on the first average daily consumption of the first resource in the first container and a first time interval, determine the stock quantity of the first inventory of the first resource in the first container; the first time The interval represents a time interval for adding the first resource to the first container;
  • the fourth time interval characterizes the time interval between the start time and the end time of adding the first resource to the first container
  • the fourth quantity represents the total stock quantity of the first resource in the first container.
  • the method also includes:
  • An embodiment of the present application provides an apparatus for determining a resource quantity, which includes:
  • a first determination module configured to determine based on the inventory quantity of each type of inventory in the at least two types of inventory of the first resource in the first container and the first average daily consumption of the first resource in the first container Inventory days corresponding to each type of inventory of the first resource in the first container;
  • the second determination module is configured to determine, based on the inventory days corresponding to each type of inventory of the first resource in the first container, in the case that the first container is expanded to at least two second containers, Inventory days corresponding to each type of inventory of the first resource in each of the at least two second containers;
  • the third determining module is configured to be based on the number of days of inventory corresponding to each type of inventory of the first resource in each of the at least two second containers, and the number of days in each of the at least two second containers.
  • the second average daily consumption of the first resource in the second containers determines the first quantity of the first resource in each of the at least two second containers;
  • the first quantity represents the quantity of the first resource that needs to be added to the corresponding second container.
  • An embodiment of the present application provides an electronic device, including a processor and a memory, the processor and the memory are connected to each other, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is controlled by It is configured to invoke the program instructions to execute the steps of the method for determining the resource quantity provided in the first aspect of the embodiment of the present application.
  • An embodiment of the present application provides a computer-readable storage medium, including: the computer-readable storage medium stores a computer program.
  • the computer program is executed by the processor, the steps of the method for determining the resource quantity provided in the first aspect of the embodiment of the present application are realized.
  • FIG. 1 is a schematic diagram of a newly added warehouse scene provided by the embodiment of the present application.
  • FIG. 2 is a schematic diagram of the implementation flow of a method for determining the number of resources provided in the embodiment of the present application;
  • FIG. 3 is a schematic flow diagram of another method for determining the number of resources provided in the embodiment of the present application.
  • FIG. 4 is a schematic flow diagram of another method for determining the number of resources provided by the embodiment of the present application.
  • FIG. 5 is a schematic diagram of an implementation flow of another method for determining the number of resources provided by the embodiment of the present application.
  • FIG. 6 is a schematic diagram of an implementation flow of another method for determining the number of resources provided in the embodiment of the present application.
  • FIG. 7 is a schematic diagram of a replenishment quantity calculation process provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of an apparatus for determining the number of resources provided by an embodiment of the present application.
  • Fig. 9 is a schematic diagram of an electronic device provided by an embodiment of the present application.
  • Figure 1 is a schematic diagram of a new warehouse scenario provided by the embodiment of the present application.
  • a new warehouse on the basis of the delivery address range covered by the original warehouse, a new warehouse is added, and the number of new warehouses Can be greater than 1.
  • the delivery address range covered by the original warehouse has changed, and the original warehouse has assigned a part of the delivery address range to the new warehouse.
  • the original warehouse needs to process the orders of users in the first area and the second area.
  • the new warehouse only processes the orders of users in the first area, and the new warehouse processes the orders of the second area. within the user's order.
  • replenishment quantity After adding a warehouse, it is necessary to reset the replenishment quantity of the new warehouse and the original warehouse, but the replenishment quantity set according to the experience of the business personnel is not accurate enough, and the replenishment quantity may be high or low.
  • a high replenishment volume will lead to an increase in days of inventory turnover; a low replenishment volume will result in a loss of sales.
  • the embodiment of the present application provides a resource quantity determination method, which can at least improve the accuracy of replenishment quantity.
  • a resource quantity determination method which can at least improve the accuracy of replenishment quantity.
  • Fig. 2 is a schematic diagram of the implementation process of a method for determining the number of resources provided by an embodiment of the present application.
  • the execution subject of the method for determining the number of resources is an electronic device, and the electronic device includes a desktop computer, a notebook computer, and a server.
  • the method for determining the quantity of resources includes:
  • the first container corresponds to the e-commerce warehouse. After the user places an order on the e-commerce platform, the order will be allocated to the warehouse closest to the user, and the warehouse will be responsible for the delivery of the ordered goods.
  • the first resource corresponds to the goods stored in the warehouse, and the first average daily consumption of the first resource represents the average daily sales volume of the goods on the e-commerce platform.
  • the inventory of the first resource is divided into at least two types of inventory.
  • the at least two types of inventory include:
  • the first inventory represents the inventory that satisfies the first average daily consumption of the first resource by the first container within the first time period;
  • the second inventory characterizes the inventory used to respond to a first operational event occurring within the first time period in the first container;
  • the first operational event characterizes a reduction in all the inventory in the first container An event that states the first average daily consumption of the primary resource;
  • a third inventory represents an inventory for responding to a second operational event occurring within the first time period in the first container; the second operational event represents an increase in the inventory in the first container An event that describes the first average daily consumption of the first resource.
  • the first inventory refers to the turnover inventory of the warehouse.
  • the turnover inventory is the commodity inventory that e-commerce companies need to maintain a certain amount of turnover according to commodity sales tasks, commodity circulation links and speed in order to complete the commodity circulation plan and ensure the normal supply of the market.
  • the turnover inventory needs to meet the daily average consumption of the first resource in the first container to maintain more than 30 within a month.
  • the turnover inventory is only affected by the order cycle, which refers to the cycle in which the warehouse places a purchase order with the supplier.
  • the first time period may be an order placing period.
  • the second inventory refers to the safety stock of the warehouse.
  • the safety stock is a buffer stock prepared to prevent uncertainties in future material supply or demand (such as a large number of sudden orders, unexpected interruptions or sudden delays in delivery, etc.).
  • the first operational event refers to the event of the above-mentioned uncertain factors, such as receiving a large number of sudden orders, unexpected interruption or sudden delay in delivery, etc. These events will reduce the average consumption of the first resource on the first day.
  • the second inventory is the inventory set up to cope with the occurrence of these events. When these events occur, use the second inventory for emergency to avoid affecting the first daily average consumption of the first resource.
  • Safety stock is affected by upstream and downstream supply and demand. The larger the safety stock, the less likely it will be out of stock; but the larger the stock, the more surplus stock will appear.
  • the third inventory refers to the strategic inventory of the warehouse, and the strategic inventory refers to the part of the inventory that needs to be hoarded due to the business strategy. Generally, it is strategic hoarding, marketing activities hoarding, etc.
  • the inventory of strategic inventory generally depends on the business judgment of business personnel.
  • the second operational event refers to an event that increases the first-day average consumption of the first resource, such as a marketing activity, which will obviously increase the first-day average consumption of the first resource.
  • the above-mentioned first inventory, second inventory and third inventory together constitute the maximum inventory of the first resource in the first container, that is, the total inventory of the first resource in the first container is the above-mentioned first inventory, second inventory and third inventory sum of inventories.
  • Inventory days is the number of days that the inventory can be consumed normally. Divide the inventory by the average daily consumption to get the inventory days.
  • the method before determining the inventory days corresponding to each type of inventory of the first resource in the first container, the method further includes:
  • the stock quantity of the first inventory of the first resource in the first container Based on the first average daily consumption of the first resource in the first container and a first time interval, determine the stock quantity of the first inventory of the first resource in the first container; the first time The interval represents a time interval for adding the first resource to the first container.
  • the first time interval is an order period for the first container, and a purchase order for the first resource is placed with the supplier at regular intervals.
  • the inventory quantity of the first inventory of the first resource in the first container can be calculated by the following formula:
  • s tvr is the inventory of the first inventory
  • nrt is the first time interval (order cycle)
  • is the first daily average consumption of the first resource in the first container
  • s is the first resource in the first container.
  • the current inventory level of the resource Firstly, the theoretical stock quantity of the first inventory is calculated by formula 1, and then the stock quantity of the first resource of the first resource in the first container is calculated by formula 2.
  • the inventory quantity of the second inventory; the fourth time interval represents the time interval between the start time and the end time of adding the first resource to the first container.
  • the fourth time interval is the replenishment lead time of the first resource in the first container
  • the replenishment lead time refers to the time interval from when the supplier receives the purchase order to when the goods enter the warehouse.
  • the fourth time interval is only affected by the provider.
  • the start time refers to the time when the first container places a purchase order with the supplier
  • the end time refers to the time when the supplier's goods enter the warehouse.
  • the inventory of the second inventory is affected by upstream supply and downstream demand.
  • the inventory of the second inventory of the first resource in the first container can be calculated by the following formula:
  • s ss is the inventory quantity of the second inventory
  • z cr is the quantile of the standard normal distribution under the spot rate level cr
  • vlt is the fourth time interval (replenishment lead time)
  • is the sales volume fluctuation
  • ⁇ vlt For the fluctuation of the fourth time interval
  • ⁇ and ⁇ vlt are calculated by standard deviation.
  • the fourth quantity represents the total stock quantity of the first resource in the first container.
  • the fourth quantity refers to the current inventory level of the first resource in the first container, that is, the total inventory of the first resource in the first container.
  • the fourth quantity is the sum of the inventory quantity of the first inventory, the inventory quantity of the second inventory and the inventory quantity of the third inventory.
  • the fourth quantity minus the inventory of the first inventory and the inventory of the second inventory can obtain the inventory of the third inventory of the first resource in the first container.
  • the inventory quantity of the third inventory of the first resource in the first container can be calculated by the following formula:
  • s ts is the inventory of the third inventory, subtract the inventory of the first inventory and the inventory of the second inventory from the maximum inventory, if there is a remaining inventory, use the remaining inventory as the third inventory Inventory; if there is no remaining inventory, the inventory of the third inventory is set to 0.
  • the inventory days d ts of the third inventory can be obtained by dividing the inventory amount s ts of the third inventory by the average consumption ⁇ of the first day.
  • the first container is expanded to at least two second containers, based on the inventory days corresponding to each type of inventory of the first resource in the first container, determine Inventory days corresponding to each type of inventory of the first resource in each second container of the container.
  • the second container is the warehouse included in the set area after the warehouse is added in the set area, and at least two second containers include the first container.
  • a method may directly determine the inventory days corresponding to each type of inventory of the first resource in the first container as the inventory days corresponding to each type of inventory of the first resource in each of the at least two second containers.
  • the delivery address range covered by the original warehouse and the new warehouse has changed, and the turnover days of the original warehouse may not be applicable to the new warehouse. Therefore, the turnover days of each warehouse need to be recalculated after the new warehouse is added.
  • the determining the inventory days corresponding to each type of inventory of the first resource in each second container of the at least two second containers includes:
  • each second container of the at least two second containers The inventory days of the first inventory of the first resource in the first resource; the first time interval represents the time interval for adding the first resource to the first container; the second time interval represents the time interval for adding the first resource to the corresponding second The time interval for adding the first resource in the container.
  • the setting area when a new warehouse is added in the setting area, the setting area includes two warehouses, one is the original warehouse (old) and the other is the new warehouse (new). Since the turnover days of inventory are only related to the order cycle nrt, after the new warehouse is added, the turnover days of the original warehouse and days of inventory in turnover at the new warehouse They are:
  • nrt is the first time interval
  • nrt old and nrt new are the second time intervals of the corresponding second container
  • d tvr is the inventory days of the first inventory of the first resource in the first container.
  • the order cycle nrt is set by business personnel and is a known parameter.
  • the inventory quantity of the second inventory of the first resource in each of the at least two second containers may be calculated by the following safety stock formula:
  • ⁇ old and ⁇ new are respectively the second daily average consumption of the first resource in each second container
  • vlt old and vlt new are respectively The third time interval corresponding to each second container, ⁇ new and ⁇ old are respectively the fluctuation of the second daily average consumption of the first resource in each second container, and Fluctuations of the third time interval for each second container respectively.
  • ⁇ new , ⁇ old and Calculated by standard deviation.
  • the inventory days of the second inventory of the first resource in each second container can be obtained by dividing the inventory quantity of the second inventory of the first resource in each second container by the corresponding second daily average consumption.
  • S303 Determine the inventory days of the third inventory of the first resource in the first container as the inventory of the third inventory of the first resource in each of the at least two second containers number of days.
  • the third inventory is strategic inventory.
  • Strategic inventory is the inventory hoarded by business personnel due to factors such as stockpiling and marketing activities. After the new warehouse is added, the strategic inventory turnover days of the original warehouse and the new warehouse remain the same as before the new warehouse.
  • d ts is the inventory days of the third inventory of the first resource in the first container, and are respectively the inventory days of the third inventory of the first resource in the second container.
  • the method before the determining the first quantity of the first resource in each second container of the at least two second containers, the method further includes:
  • the delivery address range covered by the original warehouse has changed.
  • the original warehouse has assigned a part of the delivery address range to the new warehouse, which is equivalent to assigning part of the orders to the new warehouse. Since the warehouse has no order data after the new warehouse is added, it is necessary to use the order data of the original warehouse to calculate the sales volume of the warehouse after the new warehouse is added.
  • the first order data about the first resource in the first container is divided according to the address information corresponding to each of the at least two second containers.
  • Each first order data includes a delivery address, and the address information of which second container the delivery address belongs to is determined, so as to divide the first order data.
  • the first order data here is within a period of time, such as the first order data within one month.
  • first order data there are 100 pieces of first order data about the first resource in the first container.
  • second container there are 40 pieces of first order data belonging to the second container A.
  • first order data belonging to the second container B there are 60 pieces of first order data belonging to the second container B. That is, there are 40 pieces of second order data for the second container A, and 60 pieces of second order data for the second container B.
  • S402. Determine the second average daily consumption of the first resource in the corresponding second container based on the second order data.
  • the second order data corresponding to each second container within a month is obtained, and then the quantity of the second order data is divided by 30 days to obtain the second day of the first resource in each second container average consumption.
  • the second average daily consumption of the first resource is to determine a first quantity of the first resource in each second container of the at least two second containers; wherein the first quantity represents the need to provide corresponding
  • the second container is incremented by the number of the first resource.
  • the number of days of inventory corresponding to each type of inventory of the first resource in each second container can be multiplied by the second daily average consumption of the first resource in the corresponding second container to obtain the inventory days of each type of inventory The inventory quantity, and then the sum of the inventory quantities of all types of inventory is used as the first quantity of the first resource in the second container.
  • the determining the first quantity of the first resource in each second container of the at least two second containers includes:
  • the second quantity of the first resource in the first container refers to the replenishment quantity of the original warehouse before the new warehouse is added
  • the third quantity of the first resource in each second container can be calculated by the following formula:
  • rep refers to the second quantity of the first resource in the first container
  • rep old and rep new respectively refer to the third quantity of the first resource in the second container
  • the second quantity of the first resource in the first container is divided to obtain the third quantity of the first resource in each second container.
  • the inventory amplification factor represents the ratio of the first inventory days to the second inventory days; the first inventory days represents the sum of the inventory days corresponding to each type of inventory of the first resource in the corresponding second container; the The second inventory days represents the sum of inventory days corresponding to each type of inventory of the first resource in the first container.
  • the inventory amplification factor refers to the ratio of the first inventory days to the second inventory days
  • the first inventory days refers to the sum of the inventory days corresponding to each type of inventory of the first resource in the corresponding second container
  • the second inventory days refers to the first The sum of the inventory days corresponding to each type of inventory of the first resource in the container.
  • the formula for calculating the inventory amplification factor is as follows:
  • ratioold and ratioew refer to the inventory magnification factor corresponding to each second container.
  • at least two second containers are described by taking 2 as an example. One second container is marked as old, and one second container is marked as new.
  • the first container based on the inventory quantity of each type of inventory of at least two types of inventory of the first resource in the first container, and the first daily average consumption of the first resource in the first container, it is determined that in the first container Inventory days corresponding to each type of inventory of the first resource.
  • the first container is expanded to at least two second containers, based on the inventory days corresponding to each type of inventory of the first resource in the first container, it is determined that in each second container of the at least two second containers The inventory days corresponding to each type of inventory of the first resource.
  • the consumption amount is to determine a first quantity of the first resource in each of the at least two second containers, where the first quantity represents the quantity of the first resource that needs to be added to the corresponding second container.
  • the inventory days corresponding to each type of inventory of the first resource in the first container is used to determine the inventory days of each type of inventory of the first resource in the second container, and then the second inventory of the first resource in each second container is used.
  • the average daily consumption is calculated to obtain the first quantity of the first resource in the corresponding second container.
  • the embodiment of the present application quantifies the inventory quantity of the first resource in the second container by the inventory quantity of the first resource in the first container, which is the first quantity of the first resource in the second container
  • the calculation provides a theoretical basis, and the determined first quantity is more accurate and more in line with the actual replenishment scenario.
  • the above embodiments can improve the accuracy of the replenishment volume, avoid the situation of high or low replenishment, and ensure the stability of e-commerce sales.
  • the method for determining the number of resources further includes:
  • spot rate number of days in stock/total number of days.
  • the set number of days is the total number of days
  • the warehouse is out of stock from the 16th day.
  • spot rate index usually, e-commerce companies will set a spot rate index. The closer the stock rate of the first resource in the second container is to this index, the more reasonable the first quantity of the first resource in the second container is set.
  • the absolute value of the difference is greater than the set value, and the evaluation result indicates that the first quantity of the first resource in the second container is unreasonable and needs to be recalculated; the absolute value of the difference If the value is less than the set value, the evaluation result indicates that the first quantity of the first resource in the second container is reasonable and can be applied to warehouse replenishment.
  • FIG. 7 is a schematic diagram of a replenishment quantity calculation process provided by an embodiment of the present application.
  • the replenishment quantity calculation process includes:
  • data extraction is performed to extract data from the database. It is necessary to use the inventory data of SKU (Stock Keeping Unit), replenishment data, order data of the third-level address, and the coverage relationship between the delivery address corresponding to the original warehouse and the new warehouse. . Inventory, replenishment, and order data are stored in the distributed file system HDFS, and the coverage relationship of the delivery addresses corresponding to the original warehouse and the new warehouse is stored in the relational database management system mysql, which needs to be obtained from HDFS and mysql through database operations. related data. In the process of data extraction, it is necessary to judge whether the data is complete, and filter SKUs with incomplete data of no inventory, replenishment, and orders.
  • SKU Stock Keeping Unit
  • the order data of the third-level addresses needs to be processed, and aggregated into daily sales information according to the third-level addresses covered by the warehouse.
  • warehouse A covers 5 delivery addresses, add up the sales volume of the 5 delivery addresses every day to get the daily sales volume of Warehouse A.
  • the warehouse before the new warehouse is named as the first warehouse
  • the warehouse after the new warehouse is named as the second warehouse.
  • the replenishment quantity of the second warehouse is simulated and calculated.
  • the inventory in and out of the second warehouse can be simulated through daily orders.
  • the simulation is driven by orders at the granularity of SKU. Since the number of SKUs is too large, and it is necessary to calculate the inventory in and out of each day of the simulation time, the spark distributed computing framework used in the simulation framework uses lambda expression, and perform simulation calculations on multiple SKUs in parallel. The simulation process is set as follows:
  • Step1 Obtain the initial inventory and simulation time parameter information.
  • Beginning inventory refers to the remaining inventory at the current time, and the simulation time parameter includes the duration of the simulation.
  • Step2 If replenishment occurs on the day, record the inventory item S t on the day as:
  • Step 3 Record the outbound sales of the day and the remaining inventory item S t as:
  • Step 4 Determine whether to traverse the simulation time, if so, calculate the spot rate index, and end the simulation; if not, return to step 2.
  • the embodiment of the present application quantifies the inventory quantity of the second warehouse through the inventory quantity of the first warehouse, which provides a theoretical basis for the calculation of the replenishment quantity of the second warehouse, and determines the The replenishment quantity is more accurate and more in line with the actual replenishment scenario.
  • the above embodiments can improve the accuracy of the replenishment volume, avoid the situation of high or low replenishment, and ensure the stability of e-commerce sales.
  • first”, “second”, etc. are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence.
  • FIG. 8 is a schematic diagram of an apparatus for determining the number of resources provided by an embodiment of the present application. As shown in FIG. 8 , the apparatus includes: a first determining module, a second determining module, and a third determining module.
  • a first determination module configured to determine based on the inventory quantity of each type of inventory in the at least two types of inventory of the first resource in the first container and the first average daily consumption of the first resource in the first container Inventory days corresponding to each type of inventory of the first resource in the first container;
  • the second determination module is configured to determine, based on the inventory days corresponding to each type of inventory of the first resource in the first container, in the case that the first container is expanded to at least two second containers, Inventory days corresponding to each type of inventory of the first resource in each of the at least two second containers;
  • the third determining module is configured to be based on the number of days of inventory corresponding to each type of inventory of the first resource in each of the at least two second containers, and the number of days in each of the at least two second containers.
  • the second average daily consumption of the first resource in the second containers determines the first quantity of the first resource in each of the at least two second containers;
  • the first quantity represents the quantity of the first resource that needs to be added to the corresponding second container.
  • the third determination module when determining the first quantity of the first resource in each second container of the at least two second containers, includes:
  • the inventory amplification factor represents the ratio of the first inventory days to the second inventory days; the first inventory days represents the sum of the inventory days corresponding to each type of inventory of the first resource in the corresponding second container; the second The inventory days represents the sum of the inventory days corresponding to each type of inventory of the first resource in the first container.
  • the device also includes:
  • a division module configured to divide the first order data of the first resource in the first container based on the address information corresponding to each second container of the at least two second containers, to obtain each second second order data corresponding to the container; determining a second average daily consumption of the first resource in the corresponding second container based on the second order data.
  • said at least two types of inventory include:
  • the first inventory represents the inventory that satisfies the first average daily consumption of the first resource by the first container within the first time period;
  • the second inventory characterizes the inventory used to respond to a first operational event occurring within the first time period in the first container;
  • the first operational event characterizes a reduction in all the inventory in the first container An event that states the first average daily consumption of the primary resource;
  • a third inventory represents an inventory for responding to a second operational event occurring within the first time period in the first container; the second operational event represents an increase in the inventory in the first container An event that describes the first average daily consumption of the first resource.
  • the second determining module determines the inventory days corresponding to each type of inventory of the first resource in each of the at least two second containers, it includes:
  • the first time interval represents the time interval for adding the first resource to the first container
  • the second time interval represents the time interval for adding the first resource to the corresponding second container increasing the time interval of the first resource
  • the third time interval represents the time interval between the start time and the end time of adding the first resource to the corresponding second container
  • the inventory days of the third inventory of the first resource in the first container is determined as the inventory days of the third inventory of the first resource in each of the at least two second containers.
  • the device also includes:
  • An inventory calculation module configured to determine the inventory of the first inventory of the first resource in the first container based on the first average daily consumption of the first resource in the first container and a first time interval amount; the first time interval represents the time interval for adding the first resource to the first container; based on the first average daily consumption of the first resource in the first container, and the first The first time interval and the fourth time interval corresponding to a container determine the inventory quantity of the second inventory of the first resource in the first container; the fourth time interval represents adding the The time interval between the start time and the end time of the first resource; based on the fourth quantity of the first resource in the first container, the stock quantity of the first stock and the stock quantity of the second stock, determine the The inventory quantity of the third inventory of the first resource in the first container; the fourth quantity represents the total inventory quantity of the first resource in the first container.
  • the device also includes:
  • An evaluation module configured to determine the spot rate of the first resource in the corresponding second container based on the first quantity of the first resource in each second container of the at least two second containers; the spot rate The rate represents the proportion of the number of days in which the quantity of the first resource in the corresponding second container is greater than 1 within the set number of days; based on the spot rate, the first quantity of the first resource in the corresponding second container is calculated. Evaluate to obtain an evaluation result; the evaluation result indicates whether the first quantity of the first resource in the corresponding second container is reasonable.
  • the first determination module, the second determination module and the third determination module can be implemented by a processor in the electronic device, such as a central processing unit (CPU, Central Processing Unit), a digital signal processor (DSP, Digital Signal Processor), Microcontroller Unit (MCU, Microcontroller Unit) or Programmable Gate Array (FPGA, Field-Programmable Gate Array) and other implementations.
  • a processor in the electronic device such as a central processing unit (CPU, Central Processing Unit), a digital signal processor (DSP, Digital Signal Processor), Microcontroller Unit (MCU, Microcontroller Unit) or Programmable Gate Array (FPGA, Field-Programmable Gate Array) and other implementations.
  • CPU central processing unit
  • DSP Digital Signal Processor
  • MCU Microcontroller Unit
  • FPGA Field-Programmable Gate Array
  • the device for determining the number of resources provided in the above embodiment determines the number of resources, it only uses the division of the above-mentioned modules as an example for illustration. In practical applications, the above-mentioned processing allocation can be completed by different modules according to needs. That is, the internal structure of the device is divided into different modules to complete all or part of the processing described above.
  • the device for determining the number of resources provided by the above embodiments and the method for determining the number of resources belong to the same concept, and its specific implementation process is detailed in the method embodiment, and will not be repeated here.
  • FIG. 9 is a schematic diagram of the hardware composition structure of the electronic device in the embodiment of the present application. As shown in FIG. 9, the electronic device includes:
  • Communication interface capable of information interaction with other devices such as network devices
  • the processor is connected to the communication interface to realize information interaction with other devices, and is used to execute the methods provided by one or more technical solutions on the electronic device side when running the computer program. Instead, the computer program is stored on a memory.
  • bus system is used to realize the connection communication between these components.
  • the bus system also includes a power bus, a control bus and a status signal bus.
  • the various buses are labeled as bus systems.
  • the memory in the embodiment of the present application is used to store various types of data to support the operation of the electronic device.
  • Examples of such data include: any computer program used to operate on an electronic device.
  • the memory may be a volatile memory or a nonvolatile memory, and may also include both volatile and nonvolatile memory.
  • the non-volatile memory can be read-only memory (ROM, Read Only Memory), programmable read-only memory (PROM, Programmable Read-Only Memory), erasable programmable read-only memory (EPROM, Erasable Programmable Read-Only Memory) Only Memory), Electrically Erasable Programmable Read-Only Memory (EEPROM, Electrically Erasable Programmable Read-Only Memory), Magnetic Random Access Memory (FRAM, ferromagnetic random access memory), Flash Memory (Flash Memory), Magnetic Surface Memory , CD, or CD-ROM (Compact Disc Read-Only Memory); magnetic surface storage can be disk storage or tape storage.
  • the volatile memory may be random access memory (RAM, Random Access Memory), which is used as an external cache.
  • RAM random access memory
  • RAM Random Access Memory
  • many forms of RAM are available, such as Static Random Access Memory (SRAM, Static Random Access Memory), Synchronous Static Random Access Memory (SSRAM, Synchronous Static Random Access Memory), Dynamic Random Access Memory Memory (DRAM, Dynamic Random Access Memory), synchronous dynamic random access memory (SDRAM, Synchronous Dynamic Random Access Memory), double data rate synchronous dynamic random access memory (DDRSDRAM, Double Data Rate Synchronous Dynamic Random Access Memory), enhanced Synchronous Dynamic Random Access Memory (ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), Synchronous Link Dynamic Random Access Memory (SLDRAM, SyncLink Dynamic Random Access Memory), Direct Memory Bus Random Access Memory (DRRAM, Direct Rambus Random Access Memory ).
  • SRAM Static Random Access Memory
  • SSRAM Synchronous Static Random Access Memory
  • DRAM Dynamic Random Access Memory
  • SDRAM Synchronous Dynamic Random Access Memory
  • a processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of the hardware in the processor or an instruction in the form of software.
  • the aforementioned processor may be a general-purpose processor, DSP, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like.
  • the processor may implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present application.
  • a general purpose processor may be a microprocessor or any conventional processor or the like.
  • the steps of the method disclosed in the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a storage medium, and the storage medium is located in a memory, and the processor reads the program in the memory, and combines with its hardware to complete the steps of the foregoing method.
  • the embodiment of the present application also provides a storage medium, that is, a computer storage medium, specifically a computer-readable storage medium, for example, including a first memory storing a computer program, and the above-mentioned computer program can be processed by an electronic device executed by the controller to complete the steps described in the foregoing method.
  • the computer-readable storage medium can be memories such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disc, or CD-ROM.
  • the disclosed device, electronic equipment and method can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division.
  • the coupling, or direct coupling, or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be electrical, mechanical or other forms of.
  • the units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units; Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application can be integrated into one processing unit, or each unit can be used as a single unit, or two or more units can be integrated into one unit; the above-mentioned integration
  • the unit can be realized in the form of hardware or in the form of hardware plus software functional unit.
  • the above-mentioned integrated units of the present application are realized in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium.
  • the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product.
  • the computer software product is stored in a storage medium and includes several instructions for Make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: various media capable of storing program codes such as removable storage devices, ROM, RAM, magnetic disks or optical disks.

Landscapes

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Finance (AREA)
  • Theoretical Computer Science (AREA)
  • Development Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Educational Administration (AREA)
  • Game Theory and Decision Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本申请实施例提供了一种资源数量确定方法、装置、电子设备及存储介质,其中,资源数量确定方法包括:基于第一容器中第一资源的至少两类库存中每类库存的库存量,以及在第一容器中第一资源的第一日均消耗量,确定在第一容器中第一资源的每类库存对应的库存天数;基于第一容器中第一资源的每类库存对应的库存天数,确定在至少两个第二容器的每个第二容器中第一资源的每类库存对应的库存天数;基于在至少两个第二容器的每个第二容器中第一资源的每类库存对应的库存天数,以及在至少两个第二容器的每个第二容器中第一资源的第二日均消耗量,确定至少两个第二容器的每个第二容器中第一资源的第一数量。

Description

一种资源数量确定方法、装置、电子设备及存储介质
相关申请的交叉引用
本申请基于申请号为202111012137.5,申请日为2021年08月31日的中国专利申请提出,并要求上述中国专利申请的优先权,上述中国专利申请的全部内容在此引入本申请作为参考。
技术领域
本申请涉及信息处理技术领域,尤其涉及一种资源数量确定方法、装置、电子设备及存储介质。
背景技术
在电商配送场景,一个仓库负责处理对应区域中的用户的订单,其他区域中的用户的订单非特殊情况不会到达该仓库。如果区域面积较大,遇到大促等情况会出现订单处理速度慢和配送不及时等情况。为此电商会在当前区域新增仓库,按照配送距离就近分配订单给仓库,以此提高订单的处理速度。在新增仓库的情况下,需要补充货物到区域的各个仓库中,由于在新增仓库场景下,仓库的补货量的变化没有充足的理论依据,目前主要依赖业务人员的经验进行确定,人为确定的补货量不够准确。
发明内容
本申请实施例提供了一种资源数量确定方法、装置、电子设备及存储介质。
本申请的技术方案是这样实现的:
本申请实施例提供了一种资源数量确定方法,该方法包括:
基于第一容器中第一资源的至少两类库存中每类库存的库存量,以及在所述第一容器中所述第一资源的第一日均消耗量,确定在所述第一容器中所述第一资源的每类库存对应的库存天数;
在所述第一容器扩容至至少两个第二容器的情况下,基于所述第一容器中所述第一资源的每类库存对应的库存天数,确定在所述至少两个第二容器的每个第二容器中所述第一资源的每类库存对应的库存天数;
基于在所述至少两个第二容器的每个第二容器中所述第一资源的每类库存对应的库存天数,以及在所述至少两个第二容器的每个第二容器中所述第一资源的第二日均消耗量,确定所述至少两个第二容器的每个第二容 器中所述第一资源的第一数量;其中,
所述第一数量表征需要向对应的第二容器中增加的所述第一资源的数量。
在上述方案中,所述确定所述至少两个第二容器的每个第二容器中所述第一资源的第一数量,包括:
基于在所述第一容器中所述第一资源的第一日均消耗量,以及在所述至少两个第二容器的每个第二容器中所述第一资源的第二日均消耗量,对所述第一容器中所述第一资源的第二数量进行拆分,得到所述至少两个第二容器的每个第二容器中所述第一资源的第三数量;
基于所述至少两个第二容器的每个第二容器中所述第一资源的第三数量和对应的库存放大系数,确定对应的第二容器中所述第一资源的第一数量;所述库存放大系数表征第一库存天数与第二库存天数的比值;所述第一库存天数表征对应的第二容器中所述第一资源的每类库存对应的库存天数之和;所述第二库存天数表征所述第一容器中所述第一资源的每类库存对应的库存天数之和。
在上述方案中,在所述确定所述至少两个第二容器的每个第二容器中所述第一资源的第一数量之前,所述方法还包括:
基于所述至少两个第二容器的每个第二容器对应的地址信息,对所述第一容器中所述第一资源的第一订单数据进行划分,得到每个第二容器对应的第二订单数据;
基于所述第二订单数据确定对应的第二容器中所述第一资源的第二日均消耗量。
在上述方案中,所述至少两类库存包括:
第一库存;所述第一库存表征满足所述第一容器在第一时间段内所述第一资源的第一日均消耗量的库存;
第二库存;所述第二库存表征用于响应所述第一容器在所述第一时间段内发生的第一操作事件的库存;所述第一操作事件表征减少所述第一容器中所述第一资源的第一日均消耗量的事件;
第三库存;所述第三库存表征用于响应所述第一容器在所述第一时间段内发生的第二操作事件的库存;所述第二操作事件表征增加所述第一容器中所述第一资源的第一日均消耗量的事件。
在上述方案中,所述确定在所述至少两个第二容器的每个第二容器中所述第一资源的每类库存对应的库存天数,包括:
基于所述第一容器中所述第一资源的第一库存的库存天数,以及第一时间间隔与第二时间间隔的比值,确定所述至少两个第二容器的每个第二容器中所述第一资源的第一库存的库存天数;所述第一时间间隔表征向所述第一容器中增加所述第一资源的时间间隔;所述第二时间间隔表征向对应的第二容器中增加所述第一资源的时间间隔;
基于所述至少两个第二容器的每个第二容器中所述第一资源的第二日均消耗量,以及每个第二容器对应的第二时间间隔和第三时间间隔,确定对应的第二容器中所述第一资源的第二库存的库存天数;所述第三时间间隔表征向对应的第二容器中增加所述第一资源的起始时间和结束时间之间的时间间隔;
将所述第一容器中所述第一资源的第三库存的库存天数,确定为所述至少两个第二容器的每个第二容器中所述第一资源的第三库存的库存天数。
在上述方案中,在所述确定在所述第一容器中所述第一资源的每类库存对应的库存天数之前,所述方法还包括:
基于所述第一容器中所述第一资源的第一日均消耗量和第一时间间隔,确定所述第一容器中所述第一资源的第一库存的库存量;所述第一时间间隔表征向所述第一容器中增加所述第一资源的时间间隔;
基于所述第一容器中所述第一资源的第一日均消耗量,以及所述第一容器对应的第一时间间隔和第四时间间隔,确定所述第一容器中所述第一资源的第二库存的库存量;所述第四时间间隔表征向所述第一容器中增加所述第一资源的起始时间和结束时间之间的时间间隔;
基于所述第一容器中所述第一资源的第四数量、第一库存的库存量和第二库存的库存量,确定所述第一容器中所述第一资源的第三库存的库存量;所述第四数量表征所述第一容器中所述第一资源的总库存量。
在上述方案中,所述方法还包括:
基于所述至少两个第二容器的每个第二容器中所述第一资源的第一数量,确定对应的第二容器中所述第一资源的现货率;所述现货率表征在设定天数内对应的第二容器中所述第一资源的数量大于1的天数的占比;
基于所述现货率对对应的第二容器中所述第一资源的第一数量进行评估,得到评估结果;所述评估结果表征对应的第二容器中所述第一资源的第一数量是否合理。
本申请实施例提供了一种资源数量确定装置,该装置包括:
第一确定模块,用于基于第一容器中第一资源的至少两类库存中每类库存的库存量,以及在所述第一容器中所述第一资源的第一日均消耗量,确定在所述第一容器中所述第一资源的每类库存对应的库存天数;
第二确定模块,用于在所述第一容器扩容至至少两个第二容器的情况下,基于所述第一容器中所述第一资源的每类库存对应的库存天数,确定在所述至少两个第二容器的每个第二容器中所述第一资源的每类库存对应的库存天数;
第三确定模块,用于基于在所述至少两个第二容器的每个第二容器中所述第一资源的每类库存对应的库存天数,以及在所述至少两个第二容器的每个第二容器中所述第一资源的第二日均消耗量,确定所述至少两个第 二容器的每个第二容器中所述第一资源的第一数量;其中,
所述第一数量表征需要向对应的第二容器中增加的所述第一资源的数量。
本申请实施例提供了一种电子设备,包括处理器和存储器,所述处理器和存储器相互连接,其中,所述存储器用于存储计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行本申请实施例第一方面提供的资源数量确定方法的步骤。
本申请实施例提供了一种计算机可读存储介质,包括:所述计算机可读存储介质存储有计算机程序。所述计算机程序被处理器执行时实现如本申请实施例第一方面提供的资源数量确定方法的步骤。
附图说明
图1是本申请实施例提供的新增仓库场景的示意图;
图2是本申请实施例提供的一种资源数量确定方法的实现流程示意图;
图3是本申请实施例提供的另一种资源数量确定方法的实现流程示意图;
图4是本申请实施例提供的另一种资源数量确定方法的实现流程示意图;
图5是本申请实施例提供的另一种资源数量确定方法的实现流程示意图;
图6是本申请实施例提供的另一种资源数量确定方法的实现流程示意图;
图7是本申请实施例提供的一种补货量计算流程的示意图;
图8是本申请实施例提供的一种资源数量确定装置的示意图;
图9是本申请一实施例提供的电子设备的示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
参考图1,图1是本申请实施例提供的新增仓库场景的示意图,在新增仓库的场景下,在原仓库所覆盖的配送地址范围的基础上,增加新的仓库,新的仓库的数量可以大于1。新增仓库后,原仓库覆盖的配送地址范围发生了变化,原仓库将一部分配送地址范围划分给了新仓库。比如,在新增仓库之前,原仓库需要处理第一区域和第二区域内的用户的订单,在新增仓 库之后,原仓库只处理第一区域内的用户的订单,新仓库处理第二区域内的用户的订单。
在新增仓库之后,需要重新设置新仓库和原仓库的补货量,而按照业务人员的经验设置的补货量不够准确,可能会出现补货量偏高或偏低的情况。补货量偏高会造成库存周转天数上升;补货量偏低会造成销量损失。
针对上述相关技术的缺点,本申请实施例提供了一种资源数量确定方法,至少能够提高补货量的准确率。为了说明本申请所述的技术方案,下面通过具体实施例来进行说明。
图2是本申请实施例提供的一种资源数量确定方法的实现流程示意图,所述资源数量确定方法的执行主体为电子设备,电子设备包括台式电脑、笔记本电脑和服务器等。参考图2,资源数量确定方法包括:
S201,基于第一容器中第一资源的至少两类库存中每类库存的库存量,以及在所述第一容器中所述第一资源的第一日均消耗量,确定在所述第一容器中所述第一资源的每类库存对应的库存天数。
这里,第一容器对应电商的仓库,用户在电商平台上下单后,订单会分配给距离用户最近的仓库,由该仓库负责订单商品的配送。第一资源对应仓库中存放的货品,第一资源的第一日均消耗量表示电商平台上货品的日均销量。
本申请实施例将第一资源的库存划分为至少两类库存,在一实施例中,所述至少两类库存包括:
第一库存;所述第一库存表征满足所述第一容器在第一时间段内所述第一资源的第一日均消耗量的库存;
第二库存;所述第二库存表征用于响应所述第一容器在所述第一时间段内发生的第一操作事件的库存;所述第一操作事件表征减少所述第一容器中所述第一资源的第一日均消耗量的事件;
第三库存;所述第三库存表征用于响应所述第一容器在所述第一时间段内发生的第二操作事件的库存;所述第二操作事件表征增加所述第一容器中所述第一资源的第一日均消耗量的事件。
其中,第一库存指仓库的周转库存,周转库存是电商为了完成商品流转计划,保证市场正常供应,根据商品销售任务、商品流通环节和速度应保持一定数量的周转需要的商品库存。比如,周转库存需要在一个月内满足第一容器中第一资源的日均消耗量维持在30以上。周转库存只受下单周期的影响,下单周期指仓库向供应商下采购订单的周期。这里,第一时间段可以为下单周期。
第二库存指仓库的安全库存,安全库存是为防止未来物资供应或需求的不确定性因素(如大量突发性订货、交货意外中断或突然延期等)而准备的缓冲库存。第一操作事件指上述不确定性因素的事件,比如接到大量突发性订货、交货意外中断或突然延期等事件,这些事件会减少第一资源 的第一日均消耗量。第二库存就是为了应付这些事件发生而设置的库存,在发生这些事件时,使用第二库存进行应急,避免影响第一资源的第一日均消耗量。安全库存受上游和下游的供需影响,安全库存越大,出现缺货的可能性越小;但库存越大,会导致剩余库存的出现。
第三库存指仓库的策略库存,策略库存指因经营策略,需要囤积的库存部分。一般为策略性囤货、营销活动囤货等,策略库存的库存量一般取决于业务人员的经营判断。第二操作事件指增加第一资源的第一日均消耗量的事件,比如营销活动,营销活动会明显增加第一资源的第一日均消耗量。
上述第一库存、第二库存和第三库存共同组成第一容器中第一资源的最大库存,即第一容器中第一资源的总库存量为上述第一库存、第二库存和第三库存的库存量之和。
库存天数即为库存的库存量能够正常消耗的天数,将库存量除以日均消耗量,即可得到库存天数。
在一实施例中,在所述确定在所述第一容器中所述第一资源的每类库存对应的库存天数之前,所述方法还包括:
基于所述第一容器中所述第一资源的第一日均消耗量和第一时间间隔,确定所述第一容器中所述第一资源的第一库存的库存量;所述第一时间间隔表征向所述第一容器中增加所述第一资源的时间间隔。
这里,第一时间间隔为第一容器的下单周期,每隔一段时间就向供应商下第一资源的采购订单。
周转库存的周转天数为只受下单周期影响,在实际应用中,第一容器中第一资源的第一库存的库存量可以通过以下公式进行计算:
公式1:
Figure PCTCN2022110202-appb-000001
公式2:s tvr=min(s,s tvr理论)
其中s tvr是第一库存的库存量,nrt为第一时间间隔(下单周期),μ为第一容器中所述第一资源的第一日均消耗量,s为第一容器中第一资源当前的库存水平。首先,通过公式1计算得到第一库存的理论库存量,然后通过公式2计算得到第一容器中第一资源的第一库存的库存量。
将第一库存的库存量s tvr除以第一日均消耗量μ,即可得到第一库存的库存天数d tvr
Figure PCTCN2022110202-appb-000002
基于所述第一容器中所述第一资源的第一日均消耗量,以及所述第一容器对应的第一时间间隔和第四时间间隔,确定所述第一容器中所述第一资源的第二库存的库存量;所述第四时间间隔表征向所述第一容器中增加所述第一资源的起始时间和结束时间之间的时间间隔。
这里,第四时间间隔是第一容器中第一资源的补货提前期,补货提前期指供应商从接收到采购订单到货品进入仓库的时间间隔。第四时间间隔只受供应商影响。起始时间指第一容器向供应商下采购订单的时间,结束时间指供应商的货品进入仓库的时间。
第二库存的库存量受上游的供应和下游的需求的影响,在实际应用中,第一容器中第一资源的第二库存的库存量可以通过以下公式计算:
Figure PCTCN2022110202-appb-000003
其中,s ss为第二库存的库存量,z cr为标准正态分布在现货率水平cr下的分位数,vlt为第四时间间隔(补货提前期),σ为销量波动,σ vlt为第四时间间隔的波动,σ和σ vlt通过标准差计算得到。
将第二库存的库存量s ss除以第一日均消耗量μ,即可得到第二库存的库存天数dss。
Figure PCTCN2022110202-appb-000004
基于所述第一容器中所述第一资源的第四数量、第一库存的库存量和第二库存的库存量,确定所述第一容器中所述第一资源的第三库存的库存量;所述第四数量表征所述第一容器中所述第一资源的总库存量。
这里,第四数量指第一容器中第一资源当前的库存水平,也就是第一容器中第一资源的总库存量。第四数量为第一库存的库存量、第二库存的库存量和第三库存的库存量之和。
第四数量减去第一库存的库存量和第二库存的库存量,即可得到第一容器中第一资源的第三库存的库存量。
在实际应用中,可以通过以下公式计算第一容器中第一资源的第三库存的库存量:
s ts=max(s left-s ss,0)
s left=s-s tvr
其中,s ts为第三库存的库存量,用最大库存量减去第一库存的库存量和第二库存的库存量,如果还有剩余库存量的话,就将剩余库存量作为第三库存的库存量;如果没有剩余库存量,第三库存的库存量就设置为0。
将第三库存的库存量s ts除以第一日均消耗量μ,即可得到第三库存的库存天数d ts
Figure PCTCN2022110202-appb-000005
S202,在所述第一容器扩容至至少两个第二容器的情况下,基于所述第一容器中所述第一资源的每类库存对应的库存天数,确定在所述至少两个第二容器的每个第二容器中所述第一资源的每类库存对应的库存天数。
这里,第二容器即为在设定区域中新增仓库之后,设定区域中所包含的仓库,至少两个第二容器包括第一容器。
一种方法可以直接将第一容器中第一资源的每类库存对应的库存天数,确定为至少两个第二容器的每个第二容器中第一资源的每类库存对应的库存天数。
新增仓库后,原仓库和新仓库所覆盖的配送地址范围发生了变化,原仓库的周转天数可能不适用于新仓库,因此在新增仓库后需要重新计算各个仓库的周转天数。
参考图3,在一实施例中,所述确定在所述至少两个第二容器的每个第二容器中所述第一资源的每类库存对应的库存天数,包括:
S301,基于所述第一容器中所述第一资源的第一库存的库存天数,以及第一时间间隔与第二时间间隔的比值,确定所述至少两个第二容器的每个第二容器中所述第一资源的第一库存的库存天数;所述第一时间间隔表征向所述第一容器中增加所述第一资源的时间间隔;所述第二时间间隔表征向对应的第二容器中增加所述第一资源的时间间隔。
比如,在设定区域中新增了一个仓库的情况下,设定区域中就包含2个仓库,一个为原仓库(old),一个为新仓库(new)。由于周转库存天数只与下单周期nrt相关,因此新增仓库后,原仓库的周转库存天数
Figure PCTCN2022110202-appb-000006
和新仓库的周转库存天数
Figure PCTCN2022110202-appb-000007
分别为:
Figure PCTCN2022110202-appb-000008
Figure PCTCN2022110202-appb-000009
其中,nrt为第一时间间隔,nrt old和nrt new为对应的第二容器的第二时间间隔,d tvr为第一容器中第一资源的第一库存的库存天数。下单周期nrt是业务人员设置的,是已知的参数。
S302,基于所述至少两个第二容器的每个第二容器中所述第一资源的第二日均消耗量,以及每个第二容器对应的第二时间间隔和第三时间间隔,确定对应的第二容器中所述第一资源的第二库存的库存天数;所述第三时间间隔表征向对应的第二容器中增加所述第一资源的起始时间和结束时间之间的时间间隔。
首先计算至少两个第二容器的每个第二容器中第一资源的第二库存的库存量,然后通过库存量和第二容器中第一资源的第二日均消耗量计算得到第二容器中第一资源的第二库存的库存天数。
可通过以下安全库存公式计算至少两个第二容器的每个第二容器中第一资源的第二库存的库存量:
Figure PCTCN2022110202-appb-000010
Figure PCTCN2022110202-appb-000011
其中,
Figure PCTCN2022110202-appb-000012
Figure PCTCN2022110202-appb-000013
分别为每个第二容器中第一资源的第二库存的库存 量,μ old和μ new分别为每个第二容器中第一资源的第二日均消耗量,vlt old和vlt new分别为每个第二容器对应的第三时间间隔,σ new和σ old分别为每个第二容器中第一资源的第二日均消耗量的波动,
Figure PCTCN2022110202-appb-000014
Figure PCTCN2022110202-appb-000015
分别为每个第二容器的第三时间间隔的波动。σ new、σ old
Figure PCTCN2022110202-appb-000016
Figure PCTCN2022110202-appb-000017
通过标准差计算得到。
然后,将每个第二容器中第一资源的第二库存的库存量除以对应的第二日均消耗量,即可得到每个第二容器中第一资源的第二库存的库存天数。
Figure PCTCN2022110202-appb-000018
Figure PCTCN2022110202-appb-000019
S303,将所述第一容器中所述第一资源的第三库存的库存天数,确定为所述至少两个第二容器的每个第二容器中所述第一资源的第三库存的库存天数。
第三库存为策略库存,策略库存为业务人员因为囤货、营销活动等因素囤积的库存,在新增仓库后,原仓库和新仓库的策略库存周转天数与新增仓库之前保持不变。
Figure PCTCN2022110202-appb-000020
Figure PCTCN2022110202-appb-000021
其中,d ts为第一容器中第一资源的第三库存的库存天数,
Figure PCTCN2022110202-appb-000022
Figure PCTCN2022110202-appb-000023
分别为第二容器中第一资源的第三库存的库存天数。
由于在新增仓库后,原仓库与新仓库所覆盖的配送地址访问发生了变化,因此需要重新计算各仓库的销量均值以及销量波动,即每个第二容器中第一资源的第二日均消耗量。
参考图4,在一实施例中,在所述确定所述至少两个第二容器的每个第二容器中所述第一资源的第一数量之前,所述方法还包括:
S401,基于所述至少两个第二容器的每个第二容器对应的地址信息,对所述第一容器中所述第一资源的第一订单数据进行划分,得到每个第二容器对应的第二订单数据。
新增仓库后,原仓库覆盖的配送地址范围发生了变化,原仓库将一部分配送地址范围划分给了新仓库,也就相当于把一部分订单分配给了新仓库。由于新增仓库后,仓库是没有订单数据的,所以需要利用原仓库的订单数据来计算新增仓库后的仓库的销量。
将第一容器中关于第一资源的第一订单数据,根据至少两个第二容器的每个第二容器对应的地址信息进行划分。每一个第一订单数据中都包括收货地址,确定收货地址属于哪个第二容器的地址信息,从而对第一订单数据进行划分。
应理解,这里第一订单数据是一段时间内的,比如一个月内的第一订 单数据。
比如,第一容器中关于第一资源的第一订单数据有100条,假设扩容后有2个第二容器,根据第二容器对应的地址信息,属于第二容器A的第一订单数据有40条,属于第二容器B的第一订单数据有60条。即第二容器A的第二订单数据有40条,第二容器B的第二订单数据有60条。
S402,基于所述第二订单数据确定对应的第二容器中所述第一资源的第二日均消耗量。
比如,根据上述方法得到一个月内每个第二容器对应的第二订单数据,然后将第二订单数据的数量除以30天,即可得到每个第二容器中第一资源的第二日均消耗量。
S203,基于在所述至少两个第二容器的每个第二容器中所述第一资源的每类库存对应的库存天数,以及在所述至少两个第二容器的每个第二容器中所述第一资源的第二日均消耗量,确定所述至少两个第二容器的每个第二容器中所述第一资源的第一数量;其中,所述第一数量表征需要向对应的第二容器中增加的所述第一资源的数量。
在一应用场景下,可以将每个第二容器中第一资源的每类库存对应的库存天数,乘以对应的第二容器中第一资源的第二日均消耗量,得到每类库存的库存量,然后将所有类库存的库存量之和作为第二容器中第一资源的第一数量。
参考图5,在一实施例中,所述确定所述至少两个第二容器的每个第二容器中所述第一资源的第一数量,包括:
S501,基于在所述第一容器中所述第一资源的第一日均消耗量,以及在所述至少两个第二容器的每个第二容器中所述第一资源的第二日均消耗量,对所述第一容器中所述第一资源的第二数量进行拆分,得到所述至少两个第二容器的每个第二容器中所述第一资源的第三数量。
这里,第一容器中第一资源的第二数量指在新增仓库之前原仓库的补货量,可以通过以下公式计算每个第二容器中第一资源的第三数量:
Figure PCTCN2022110202-appb-000024
Figure PCTCN2022110202-appb-000025
其中,rep指第一容器中第一资源的第二数量,rep old和rep new分别指第二容器中第一资源的第三数量。
根据第二日均消耗量与第一日均消耗量的比值,对第一容器中第一资源的第二数量进行拆分,得到每个第二容器中第一资源的第三数量。
S502,基于所述至少两个第二容器的每个第二容器中所述第一资源的第三数量和对应的库存放大系数,确定对应的第二容器中所述第一资源的第一数量;所述库存放大系数表征第一库存天数与第二库存天数的比值;所述第一库存天数表征对应的第二容器中所述第一资源的每类库存对应的 库存天数之和;所述第二库存天数表征所述第一容器中所述第一资源的每类库存对应的库存天数之和。
这里,库存放大系数指第一库存天数与第二库存天数的比值,第一库存天数指对应的第二容器中第一资源的每类库存对应的库存天数之和,第二库存天数指第一容器中第一资源的每类库存对应的库存天数之和。
库存放大系数计算公式如下:
Figure PCTCN2022110202-appb-000026
Figure PCTCN2022110202-appb-000027
其中,ratioold和rationew指每个第二容器对应的库存放大系数,这里至少两个第二容器以2个为例进行说明,一个第二容器标识为old,一个第二容器标识为new。
然后,将每个第二容器中第一资源的第三数量乘以对应的库存放大系数,即可得到对应的第二容器中第一资源的第一数量,第一数量对应仓库的补货量。
本申请实施例通过基于第一容器中第一资源的至少两类库存中每类库存的库存量,以及在第一容器中所述第一资源的第一日均消耗量,确定在第一容器中第一资源的每类库存对应的库存天数。在第一容器扩容至至少两个第二容器的情况下,基于第一容器中所述第一资源的每类库存对应的库存天数,确定在至少两个第二容器的每个第二容器中第一资源的每类库存对应的库存天数。基于在至少两个第二容器的每个第二容器中第一资源的每类库存对应的库存天数,以及在至少两个第二容器的每个第二容器中第一资源的第二日均消耗量,确定至少两个第二容器的每个第二容器中所述第一资源的第一数量,第一数量表征需要向对应的第二容器中增加的第一资源的数量。本申请实施例通过第一容器中第一资源的每类库存对应的库存天数确定第二容器中第一资源的每类库存的库存天数,再通过每个第二容器中第一资源的第二日均消耗量,计算得到对应的第二容器中第一资源的第一数量。相比相关技术人为确定补货量,本申请实施例通过第一容器中第一资源的库存量量化第二容器中第一资源的库存量,为第二容器中第一资源的第一数量的计算提供了理论依据,确定出的第一数量更加准确,更加符合实际补货场景。
在实际补货场景下,通过上述实施例可以提高补货量的准确率,避免出现补货偏高或偏低的情况,保证了电商销量的稳定。
参考图6,在一实施例中,资源数量确定方法还包括:
S601,基于所述至少两个第二容器的每个第二容器中所述第一资源的第一数量,确定对应的第二容器中所述第一资源的现货率;所述现货率表征在设定天数内对应的第二容器中所述第一资源的数量大于1的天数的占 比。
这里,现货率=有货天数/总天数。设定天数为总天数,有货天数为在设定天数内第二容器中第一资源的数量大于1的天数。比如,30天内,前15天内第二容器中第一资源的数量大于1,后15天第二容器中第一资源的数量为0,现货率=0.5。也就是说,从第16天开始仓库缺货了。
S602,基于所述现货率对对应的第二容器中所述第一资源的第一数量进行评估,得到评估结果;所述评估结果表征对应的第二容器中所述第一资源的第一数量是否合理。
通常电商会设置一个现货率指标,第二容器中第一资源的现货率越接近该指标,说明第二容器中第一资源的第一数量设置的越合理。
通过计算现货率和现货率指标的差值的绝对值,差值的绝对值大于设定值,评估结果表征第二容器中第一资源的第一数量不合理,需要重新计算;差值的绝对值小于设定值,评估结果表征第二容器中第一资源的第一数量合理,可以应用于仓库补货。
参考图7,图7是本申请实施例提供的一种补货量计算流程的示意图,补货量计算流程包括:
首先进行数据提取,从数据库中提取数据,需要利用库存量单位(SKU,Stock Keeping Unit)的库存数据、补货数据、三级地址的订单数据以及原仓库和新仓库对应的配送地址的覆盖关系。库存、补货、订单数据储存在分布式文件系统HDFS中,原仓库和新仓库对应的配送地址的覆盖关系储存在关系型数据库管理系统mysql中,需要通过数据库操作从HDFS和mysql中获取所需的相关数据。在数据提取的过程中,需要判断数据是否完整,对没有库存、补货、订单的数据不完整的SKU进行过滤。同时,为方便后续计算,需要对三级地址的订单数据进行加工,按仓库所覆盖的三级地址,聚合为每天的销量信息。如:仓库A覆盖了5个配送地址,将每天5个配送地址的销量进行相加,得到仓库A每天的销量。
这里将新增仓库之前的仓库命名为第一仓库,新增仓库之后的仓库命名为第二仓库。
对第一仓库的库存进行拆分,得到周转库存、安全库存和策略库存,计算每个库存的库存天数,得到周转库存天数、安全库存天数和策略库存天数。
在新增仓库之后,计算每一个第二仓库的周转库存天数、安全库存天数和策略库存天数,根据第一仓库的周转库存天数、安全库存天数和策略库存天数,以及第二仓库的周转库存天数、安全库存天数和策略库存天数,计算得到第二仓库的库存放大系数。再利用库存放大系数计算得到每个第二仓库的补货量。
最后对第二仓库的补货量进行仿真计算,利用仿真技术,可以通过每天的订单,对第二仓库内的库存的进出进行模拟。仿真模块中,是以SKU 为粒度的订单驱动的仿真,由于SKU数量偏大,且需要对仿真时间的每一天进行库存的进出计算,因此,仿真框架中利用的spark分布式计算框架,利用lambda表达式,并行地对多个SKU进行仿真计算。仿真的流程设置如下:
Step1:获得期初库存、仿真时间参数信息。
期初库存指当前时间剩余的库存量,仿真时间参数包括仿真的时长。
Step2:如果当天发生了补货,记录当天的库存项S t为:
S t=S t+rep
Step 3:记录当天的出库销量sale以及剩余的库存项S t为:
S t=S t-min(S t,sale)
Step 4:判断是否遍历仿真的时间,若是,计算现货率指标,结束仿真;若否,回到step 2。
得到SKU粒度的仿真结果后,利用spark将计算结果存储在分布式文件系统HDFS,方便结果的展示、分析和调用。
本申请实施例相比相关技术人为确定补货量,本申请实施例通过第一仓库的库存量量化第二仓库的库存量,为第二仓库的补货量的计算提供了理论依据,确定出的补货量更加准确,更加符合实际补货场景。在实际补货场景下,通过上述实施例可以提高补货量的准确率,避免出现补货偏高或偏低的情况,保证了电商销量的稳定。
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”和“包含”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。
需要说明的是,本申请实施例所记载的技术方案之间,在不冲突的情况下,可以任意组合。
另外,在本申请实施例中,“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
参考图8,图8是本申请实施例提供的一种资源数量确定装置的示意图,如图8所示,该装置包括:第一确定模块、第二确定模块和第三确定模块。
第一确定模块,用于基于第一容器中第一资源的至少两类库存中每类库存的库存量,以及在所述第一容器中所述第一资源的第一日均消耗量,确定在所述第一容器中所述第一资源的每类库存对应的库存天数;
第二确定模块,用于在所述第一容器扩容至至少两个第二容器的情况下,基于所述第一容器中所述第一资源的每类库存对应的库存天数,确定在所述至少两个第二容器的每个第二容器中所述第一资源的每类库存对应 的库存天数;
第三确定模块,用于基于在所述至少两个第二容器的每个第二容器中所述第一资源的每类库存对应的库存天数,以及在所述至少两个第二容器的每个第二容器中所述第一资源的第二日均消耗量,确定所述至少两个第二容器的每个第二容器中所述第一资源的第一数量;其中,
所述第一数量表征需要向对应的第二容器中增加的所述第一资源的数量。
在一实施例中,第三确定模块在确定所述至少两个第二容器的每个第二容器中所述第一资源的第一数量时,包括:
基于在所述第一容器中所述第一资源的第一日均消耗量,以及在所述至少两个第二容器的每个第二容器中所述第一资源的第二日均消耗量,对所述第一容器中所述第一资源的第二数量进行拆分,得到所述至少两个第二容器的每个第二容器中所述第一资源的第三数量;
基于所述至少两个第二容器的每个第二容器中所述第一资源的第三数量和对应的库存放大系数,确定对应的第二容器中所述第一资源的第一数量;所述库存放大系数表征第一库存天数与第二库存天数的比值;所述第一库存天数表征对应的第二容器中所述第一资源的每类库存对应的库存天数之和;所述第二库存天数表征所述第一容器中所述第一资源的每类库存对应的库存天数之和。
在一实施例中,所述装置还包括:
划分模块,用于基于所述至少两个第二容器的每个第二容器对应的地址信息,对所述第一容器中所述第一资源的第一订单数据进行划分,得到每个第二容器对应的第二订单数据;基于所述第二订单数据确定对应的第二容器中所述第一资源的第二日均消耗量。
在一实施例中,所述至少两类库存包括:
第一库存;所述第一库存表征满足所述第一容器在第一时间段内所述第一资源的第一日均消耗量的库存;
第二库存;所述第二库存表征用于响应所述第一容器在所述第一时间段内发生的第一操作事件的库存;所述第一操作事件表征减少所述第一容器中所述第一资源的第一日均消耗量的事件;
第三库存;所述第三库存表征用于响应所述第一容器在所述第一时间段内发生的第二操作事件的库存;所述第二操作事件表征增加所述第一容器中所述第一资源的第一日均消耗量的事件。
在一实施例中,第二确定模块在确定在所述至少两个第二容器的每个第二容器中所述第一资源的每类库存对应的库存天数时,包括:
基于所述第一容器中所述第一资源的第一库存的库存天数,以及第一时间间隔与第二时间间隔的比值,确定所述至少两个第二容器的每个第二容器中所述第一资源的第一库存的库存天数;所述第一时间间隔表征向所 述第一容器中增加所述第一资源的时间间隔;所述第二时间间隔表征向对应的第二容器中增加所述第一资源的时间间隔;
基于所述至少两个第二容器的每个第二容器中所述第一资源的第二日均消耗量,以及每个第二容器对应的第二时间间隔和第三时间间隔,确定对应的第二容器中所述第一资源的第二库存的库存天数;所述第三时间间隔表征向对应的第二容器中增加所述第一资源的起始时间和结束时间之间的时间间隔;
将所述第一容器中所述第一资源的第三库存的库存天数,确定为所述至少两个第二容器的每个第二容器中所述第一资源的第三库存的库存天数。
在一实施例中,所述装置还包括:
库存量计算模块,用于基于所述第一容器中所述第一资源的第一日均消耗量和第一时间间隔,确定所述第一容器中所述第一资源的第一库存的库存量;所述第一时间间隔表征向所述第一容器中增加所述第一资源的时间间隔;基于所述第一容器中所述第一资源的第一日均消耗量,以及所述第一容器对应的第一时间间隔和第四时间间隔,确定所述第一容器中所述第一资源的第二库存的库存量;所述第四时间间隔表征向所述第一容器中增加所述第一资源的起始时间和结束时间之间的时间间隔;基于所述第一容器中所述第一资源的第四数量、第一库存的库存量和第二库存的库存量,确定所述第一容器中所述第一资源的第三库存的库存量;所述第四数量表征所述第一容器中所述第一资源的总库存量。
在一实施例中,所述装置还包括:
评估模块,用于基于所述至少两个第二容器的每个第二容器中所述第一资源的第一数量,确定对应的第二容器中所述第一资源的现货率;所述现货率表征在设定天数内对应的第二容器中所述第一资源的数量大于1的天数的占比;基于所述现货率对对应的第二容器中所述第一资源的第一数量进行评估,得到评估结果;所述评估结果表征对应的第二容器中所述第一资源的第一数量是否合理。
实际应用时,所述第一确定模块、第二确定模块和第三确定模块可通过电子设备中的处理器,比如中央处理器(CPU,Central Processing Unit)、数字信号处理器(DSP,Digital Signal Processor)、微控制单元(MCU,Microcontroller Unit)或可编程门阵列(FPGA,Field-Programmable Gate Array)等实现。
需要说明的是:上述实施例提供的资源数量确定装置在进行资源数量确定时,仅以上述各模块的划分进行举例说明,实际应用中,可以根据需要而将上述处理分配由不同的模块完成,即将装置的内部结构划分成不同的模块,以完成以上描述的全部或者部分处理。另外,上述实施例提供的资源数量确定装置与资源数量确定方法实施例属于同一构思,其具体实现 过程详见方法实施例,这里不再赘述。
基于上述程序模块的硬件实现,且为了实现本申请实施例的方法,本申请实施例还提供了一种电子设备。图9为本申请实施例电子设备的硬件组成结构示意图,如图9所示,电子设备包括:
通信接口,能够与其它设备比如网络设备等进行信息交互;
处理器,与所述通信接口连接,以实现与其它设备进行信息交互,用于运行计算机程序时,执行上述电子设备侧一个或多个技术方案提供的方法。而所述计算机程序存储在存储器上。
当然,实际应用时,电子设备中的各个组件通过总线系统耦合在一起。可理解,总线系统用于实现这些组件之间的连接通信。总线系统除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图9中将各种总线都标为总线系统。
本申请实施例中的存储器用于存储各种类型的数据以支持电子设备的操作。这些数据的示例包括:用于在电子设备上操作的任何计算机程序。
可以理解,存储器可以是易失性存储器或非易失性存储器,也可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(ROM,Read Only Memory)、可编程只读存储器(PROM,Programmable Read-Only Memory)、可擦除可编程只读存储器(EPROM,Erasable Programmable Read-Only Memory)、电可擦除可编程只读存储器(EEPROM,Electrically Erasable Programmable Read-Only Memory)、磁性随机存取存储器(FRAM,ferromagnetic random access memory)、快闪存储器(Flash Memory)、磁表面存储器、光盘、或只读光盘(CD-ROM,Compact Disc Read-Only Memory);磁表面存储器可以是磁盘存储器或磁带存储器。易失性存储器可以是随机存取存储器(RAM,Random Access Memory),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(SRAM,Static Random Access Memory)、同步静态随机存取存储器(SSRAM,Synchronous Static Random Access Memory)、动态随机存取存储器(DRAM,Dynamic Random Access Memory)、同步动态随机存取存储器(SDRAM,Synchronous Dynamic Random Access Memory)、双倍数据速率同步动态随机存取存储器(DDRSDRAM,Double Data Rate Synchronous Dynamic Random Access Memory)、增强型同步动态随机存取存储器(ESDRAM,Enhanced Synchronous Dynamic Random Access Memory)、同步连接动态随机存取存储器(SLDRAM,SyncLink Dynamic Random Access Memory)、直接内存总线随机存取存储器(DRRAM,Direct Rambus Random Access Memory)。本申请实施例描述的存储器旨在包括但不限于这些和任意其它适合类型的存储器。
上述本申请实施例揭示的方法可以应用于处理器中,或者由处理器实现。处理器可能是一种集成电路芯片,具有信号的处理能力。在实现过程 中,上述方法的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器可以是通用处理器、DSP,或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。处理器可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的方法的步骤,可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于存储介质中,该存储介质位于存储器,处理器读取存储器中的程序,结合其硬件完成前述方法的步骤。
可选地,所述处理器执行所述程序时实现本申请实施例的各个方法中由电子设备实现的相应流程,为了简洁,在此不再赘述。
在示例性实施例中,本申请实施例还提供了一种存储介质,即计算机存储介质,具体为计算机可读存储介质,例如包括存储计算机程序的第一存储器,上述计算机程序可由电子设备的处理器执行,以完成前述方法所述步骤。计算机可读存储介质可以是FRAM、ROM、PROM、EPROM、EEPROM、Flash Memory、磁表面存储器、光盘、或CD-ROM等存储器。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置、电子设备和方法,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元,即可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。
另外,在本申请各实施例中的各功能单元可以全部集成在一个处理单元中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
或者,本申请上述集成的单元如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。 基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本申请各个实施例所述方法的全部或部分。而前述的存储介质包括:移动存储设备、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
需要说明的是,本申请实施例所记载的技术方案之间,在不冲突的情况下,可以任意组合。
另外,在本申请实例中,“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中术语“至少一种”表示多个中的任意一种或多种中的至少两种的任意组合,例如,包括A、B、C中的至少一种,可以表示包括从A、B和C构成的集合中选择的任意一个或多个元素。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (10)

  1. 一种资源数量确定方法,包括:
    基于第一容器中第一资源的至少两类库存中每类库存的库存量,以及在所述第一容器中所述第一资源的第一日均消耗量,确定在所述第一容器中所述第一资源的每类库存对应的库存天数;
    在所述第一容器扩容至至少两个第二容器的情况下,基于所述第一容器中所述第一资源的每类库存对应的库存天数,确定在所述至少两个第二容器的每个第二容器中所述第一资源的每类库存对应的库存天数;
    基于在所述至少两个第二容器的每个第二容器中所述第一资源的每类库存对应的库存天数,以及在所述至少两个第二容器的每个第二容器中所述第一资源的第二日均消耗量,确定所述至少两个第二容器的每个第二容器中所述第一资源的第一数量;其中,所述第一数量表征需要向对应的第二容器中增加的所述第一资源的数量。
  2. 根据权利要求1所述的方法,其中,所述确定所述至少两个第二容器的每个第二容器中所述第一资源的第一数量,包括:
    基于在所述第一容器中所述第一资源的第一日均消耗量,以及在所述至少两个第二容器的每个第二容器中所述第一资源的第二日均消耗量,对所述第一容器中所述第一资源的第二数量进行拆分,得到所述至少两个第二容器的每个第二容器中所述第一资源的第三数量;
    基于所述至少两个第二容器的每个第二容器中所述第一资源的第三数量和对应的库存放大系数,确定对应的第二容器中所述第一资源的第一数量;所述库存放大系数表征第一库存天数与第二库存天数的比值;所述第一库存天数表征对应的第二容器中所述第一资源的每类库存对应的库存天数之和;所述第二库存天数表征所述第一容器中所述第一资源的每类库存对应的库存天数之和。
  3. 根据权利要求1所述的方法,其中,在所述确定所述至少两个第二容器的每个第二容器中所述第一资源的第一数量之前,所述方法还包括:
    基于所述至少两个第二容器的每个第二容器对应的地址信息,对所述第一容器中所述第一资源的第一订单数据进行划分,得到每个第二容器对应的第二订单数据;
    基于所述第二订单数据确定对应的第二容器中所述第一资源的第二日均消耗量。
  4. 根据权利要求1所述的方法,其中,所述至少两类库存包括:
    第一库存;所述第一库存表征满足所述第一容器在第一时间段内所述第一资源的第一日均消耗量的库存;
    第二库存;所述第二库存表征用于响应所述第一容器在所述第一时间段内发生的第一操作事件的库存;所述第一操作事件表征减少所述第一容器中所述第一资源的第一日均消耗量的事件;
    第三库存;所述第三库存表征用于响应所述第一容器在所述第一时间段内发生的第二操作事件的库存;所述第二操作事件表征增加所述第一容器中所述第一资源的第一日均消耗量的事件。
  5. 根据权利要求4所述的方法,其中,所述确定在所述至少两个第二容器的每个第二容器中所述第一资源的每类库存对应的库存天数,包括:
    基于所述第一容器中所述第一资源的第一库存的库存天数,以及第一时间间隔与第二时间间隔的比值,确定所述至少两个第二容器的每个第二容器中所述第一资源的第一库存的库存天数;所述第一时间间隔表征向所述第一容器中增加所述第一资源的时间间隔;所述第二时间间隔表征向对应的第二容器中增加所述第一资源的时间间隔;
    基于所述至少两个第二容器的每个第二容器中所述第一资源的第二日均消耗量,以及每个第二容器对应的第二时间间隔和第三时间间隔,确定对应的第二容器中所述第一资源的第二库存的库存天数;所述第三时间间隔表征向对应的第二容器中增加所述第一资源的起始时间和结束时间之间的时间间隔;
    将所述第一容器中所述第一资源的第三库存的库存天数,确定为所述至少两个第二容器的每个第二容器中所述第一资源的第三库存的库存天数。
  6. 根据权利要求4所述的方法,其中,在所述确定在所述第一容器中所述第一资源的每类库存对应的库存天数之前,所述方法还包括:
    基于所述第一容器中所述第一资源的第一日均消耗量和第一时间间隔,确定所述第一容器中所述第一资源的第一库存的库存量;所述第一时间间隔表征向所述第一容器中增加所述第一资源的时间间隔;
    基于所述第一容器中所述第一资源的第一日均消耗量,以及所述第一容器对应的第一时间间隔和第四时间间隔,确定所述第一容器中所述第一资源的第二库存的库存量;所述第四时间间隔表征向所述第一容器中增加所述第一资源的起始时间和结束时间之间的时间间隔;
    基于所述第一容器中所述第一资源的第四数量、第一库存的库存量和第二库存的库存量,确定所述第一容器中所述第一资源的第三库存的库存量;所述第四数量表征所述第一容器中所述第一资源的总库存量。
  7. 根据权利要求1所述的方法,其中,所述方法还包括:
    基于所述至少两个第二容器的每个第二容器中所述第一资源的第一数量,确定对应的第二容器中所述第一资源的现货率;所述现货率 表征在设定天数内对应的第二容器中所述第一资源的数量大于1的天数的占比;
    基于所述现货率对对应的第二容器中所述第一资源的第一数量进行评估,得到评估结果;所述评估结果表征对应的第二容器中所述第一资源的第一数量是否合理。
  8. 一种资源数量确定装置,包括:
    第一确定模块,用于基于第一容器中第一资源的至少两类库存中每类库存的库存量,以及在所述第一容器中所述第一资源的第一日均消耗量,确定在所述第一容器中所述第一资源的每类库存对应的库存天数;
    第二确定模块,用于在所述第一容器扩容至至少两个第二容器的情况下,基于所述第一容器中所述第一资源的每类库存对应的库存天数,确定在所述至少两个第二容器的每个第二容器中所述第一资源的每类库存对应的库存天数;
    第三确定模块,用于基于在所述至少两个第二容器的每个第二容器中所述第一资源的每类库存对应的库存天数,以及在所述至少两个第二容器的每个第二容器中所述第一资源的第二日均消耗量,确定所述至少两个第二容器的每个第二容器中所述第一资源的第一数量;其中,
    所述第一数量表征需要向对应的第二容器中增加的所述第一资源的数量。
  9. 一种电子设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如权利要求1至7任一项所述的资源数量确定方法。
  10. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行如权利要求1至7任一项所述的资源数量确定方法。
PCT/CN2022/110202 2021-08-31 2022-08-04 一种资源数量确定方法、装置、电子设备及存储介质 WO2023029874A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111012137.5A CN113822543B (zh) 2021-08-31 2021-08-31 一种资源数量确定方法、装置、电子设备及存储介质
CN202111012137.5 2021-08-31

Publications (1)

Publication Number Publication Date
WO2023029874A1 true WO2023029874A1 (zh) 2023-03-09

Family

ID=78913881

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/110202 WO2023029874A1 (zh) 2021-08-31 2022-08-04 一种资源数量确定方法、装置、电子设备及存储介质

Country Status (2)

Country Link
CN (1) CN113822543B (zh)
WO (1) WO2023029874A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113822543B (zh) * 2021-08-31 2024-06-14 北京沃东天骏信息技术有限公司 一种资源数量确定方法、装置、电子设备及存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109754207A (zh) * 2018-12-26 2019-05-14 秒针信息技术有限公司 库存补充信息的确定方法及装置、存储介质、电子装置
CN110633820A (zh) * 2018-06-25 2019-12-31 北京京东振世信息技术有限公司 仓库地址的推荐方法、装置及计算机可读存储介质
CN110956525A (zh) * 2019-08-28 2020-04-03 耀方信息技术(上海)有限公司 一种采购方法、装置和存储介质
US20200151654A1 (en) * 2018-11-13 2020-05-14 The Boeing Company Inventory management
CN112001666A (zh) * 2019-05-27 2020-11-27 北京沃东天骏信息技术有限公司 一种保留库存量的确定方法、装置、设备和存储介质
CN113822543A (zh) * 2021-08-31 2021-12-21 北京沃东天骏信息技术有限公司 一种资源数量确定方法、装置、电子设备及存储介质

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3945941B2 (ja) * 1999-06-08 2007-07-18 株式会社日立製作所 安全在庫率による在庫補充方法
TW559721B (en) * 2002-05-09 2003-11-01 Hon Hai Prec Ind Co Ltd A system and method for managing inventory
US10181107B2 (en) * 2014-06-25 2019-01-15 Oracle International Corporation Using consumption data and an inventory model to generate a replenishment plan
CN108596544B (zh) * 2018-04-26 2020-06-16 北京车和家信息技术有限公司 库存分配方法及装置
CN110033222B (zh) * 2019-04-17 2023-08-11 东莞市糖酒集团美宜佳便利店有限公司 一种补货方法
CN112633794A (zh) * 2020-12-17 2021-04-09 北京京东振世信息技术有限公司 一种分拣容器信息处理方法、装置、电子设备及存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110633820A (zh) * 2018-06-25 2019-12-31 北京京东振世信息技术有限公司 仓库地址的推荐方法、装置及计算机可读存储介质
US20200151654A1 (en) * 2018-11-13 2020-05-14 The Boeing Company Inventory management
CN109754207A (zh) * 2018-12-26 2019-05-14 秒针信息技术有限公司 库存补充信息的确定方法及装置、存储介质、电子装置
CN112001666A (zh) * 2019-05-27 2020-11-27 北京沃东天骏信息技术有限公司 一种保留库存量的确定方法、装置、设备和存储介质
CN110956525A (zh) * 2019-08-28 2020-04-03 耀方信息技术(上海)有限公司 一种采购方法、装置和存储介质
CN113822543A (zh) * 2021-08-31 2021-12-21 北京沃东天骏信息技术有限公司 一种资源数量确定方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN113822543B (zh) 2024-06-14
CN113822543A (zh) 2021-12-21

Similar Documents

Publication Publication Date Title
Lohmer et al. Analysis of resilience strategies and ripple effect in blockchain-coordinated supply chains: An agent-based simulation study
US20230410200A1 (en) Synchronized processing of data by networked computing resources
CN108090225B (zh) 数据库实例的运行方法、装置、系统及计算机可读存储介质
Hu et al. Managing risk of supply disruptions: Incentives for capacity restoration
JP5076279B2 (ja) It資産管理システム、it資産管理方法およびit資産管理プログラム
WO2015164425A1 (en) Method and system of processing commodity object information
CN104281582B (zh) 分页显示控制方法和装置
Roni et al. A hybrid inventory management system responding to regular demand and surge demand
AU2018217214A1 (en) Method and system for managing resources distributed among resource warehouses
WO2023029874A1 (zh) 一种资源数量确定方法、装置、电子设备及存储介质
US20140351001A1 (en) Business enterprise sales and operations planning through a big data and big memory computational architecture
Wu et al. Modeling cloud business customers’ utility functions
CN111178830A (zh) 成本的核算方法、装置、计算机设备和存储介质
US20150120367A1 (en) Geospatially relevant supply chain optimization through a networked mobile device that leverages a distributed computing environment
CN113554394A (zh) 档案存放方法、装置、电子设备和存储介质
CN112001666B (zh) 一种保留库存量的确定方法、装置、设备和存储介质
CN115713200A (zh) 库存调拨、订单处理、调度数据的处理方法和装置
TW200304601A (en) Order management system
CN108805324A (zh) 一种企业资源的分配方法及其设备
Shastri et al. Towards index-based global trading in cloud spot markets
Lin et al. The cash flows in push and pull supply chains under supply disruptions
TW200411482A (en) A system and method for withdrawing and dispatching goods in stock management according to production commands
JP6016657B2 (ja) データ処理装置及びプログラム
JP2023032251A (ja) 基準在庫管理装置、基準在庫管理システム、基準在庫管理方法
CN117437060A (zh) 业务产品的分配方法、装置、计算机设备、存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22863015

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE