Method, device, electronic device and storage medium for dynamically allocating items
Through dynamically allocating items, combining user needs, scheduling and diversion of items, the problem of mismatch in the warehousing system is solved, accurate prediction and distribution of item requirements is achieved, and the efficiency and user experience of the warehousing system are improved.
Patent Information
- Application Number
- CN202210406763.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-18
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2042-04-18
AI Technical Summary
The existing warehousing system failed to combine the actual needs of users when determining the replenishment of items, resulting in mismatch of item demands, resulting in lower yield rate, high logistics damage rate and waste of storage resources.
Through the dynamic allocation method, the item category attributes and category proportion information are determined based on the item category and quantity of users in the target area, the items are scheduled and diverted to the corresponding temporary storage area, and the message queue is used to coordinate with the third-party platform. goods, realize accurate prediction and delivery of item demand.
It improves the efficiency and user experience of item delivery, avoids transportation problems during emergency orders, reduces the ineffective occupation of warehouses, and ensures the rational use of warehousing resources.
Smart Images

Figure CN114723369B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of computer technology, and in particular, to a method, device, electronic device, and storage medium for dynamically allocating items. Background Art
[0002] In the existing warehousing system, the replenishment of each category of goods is mostly determined by the quantity of each category of goods in the warehousing system, that is, the quantity required for replenishment is determined according to the required inventory and the current inventory, and then replenishment is carried out. That is, the surrounding suppliers corresponding to the warehousing system generate and replenish goods according to the replenishment quantity.
[0003] When implementing the technical solution based on the above method, the inventor found the following problems:
[0004] However, in different time periods, users have different demands for different categories of goods. When the above method is used to determine the allocation of goods, it cannot match the actual needs of users. For example, the demand for item category A is particularly large at the moment, but the number of items in the storage system is insufficient, then the surrounding factories need to run at full capacity for production. At this time, it is inevitable that the quality rate of items will decrease and the logistics damage rate will be high. In addition, if the demand for a certain item is not high, but there are many items stored in the storage system, there will be a problem of occupying storage resources.
[0005] Based on the above, it can be seen that when storing various categories of items, the existing warehousing system does not take into account the actual needs of users, resulting in technical problems such as being unable to provide effective services to users. Summary of the invention
[0006] The present invention provides a method, device, electronic device and storage medium for dynamically allocating items, so as to achieve the technical effect of dynamically scheduling items according to the actual needs of users, so as to provide better services to users when they obtain corresponding items.
[0007] In a first aspect, an embodiment of the present invention provides a method for dynamically allocating items, the method comprising:
[0008] According to the item categories and corresponding item quantities associated with each user in the target area, determine the category attributes belonging to the same item category, and the category proportion information of each item category relative to the corresponding item category;
[0009] According to the category attributes of each item category and the related category proportion information, determine the item scheduling attributes and temporary storage area attributes corresponding to each item category;
[0010] For each item category, the corresponding items to be dispatched are dispatched according to the item dispatching attribute of the current item category, and the items to be dispatched are diverted to the corresponding temporary storage area according to the temporary storage area attribute corresponding to the current item category.
[0011] Furthermore, the number of items includes the number of items to be acquired and the number of items acquired, and before the item categories and corresponding item quantities associated with each user in the target area, it also includes:
[0012] Determine the target area and each user located in the target area according to the location information of the storage area and the preset neighborhood information;
[0013] Determine a set of item categories associated with each user, and the number of items to be acquired and the number of acquired items corresponding to each item category in the set of item categories.
[0014] Furthermore, determining the category attributes of items belonging to the same category of items according to the item categories and corresponding item quantities associated with each user in the target area includes:
[0015] Determine the total number of acquired items based on the number of acquired items corresponding to each item category; and determine the total number of items to be acquired based on the number of items to be acquired corresponding to each item category;
[0016] For each item category, determine the target category attribute of the current item category according to the number of acquired items, the number of items to be acquired, the total number of acquired items, and the total number of items to be acquired corresponding to the current item category;
[0017] The category attribute is determined according to the target category attribute corresponding to each item category belonging to the same item category.
[0018] Furthermore, determining the target category attribute of the current item category according to the number of acquired items, the number of items to be acquired, the total number of acquired items, and the total number of items to be acquired corresponding to the current item category includes:
[0019] Determine a first category attribute according to the number of acquired items of the current item category and the total number of acquired items; and determine a second category attribute according to the number of items to be acquired and the total number of items to be acquired;
[0020] According to the first category attribute, the second category attribute and the corresponding weight values, a target category attribute of the current item category is determined.
[0021] Furthermore, the category proportion information of each item category relative to the corresponding category attributes is determined, including:
[0022] For each item category, the category proportion information of each item category in the current item category is determined according to the target category attribute of each item category associated with the current item category and the category attribute of the current item category.
[0023] Furthermore, determining the item scheduling attributes and temporary storage area attributes corresponding to each item category according to the category attributes of each item category and the associated category proportion information includes:
[0024] Determine the temporary storage area location and area identifier according to the category attributes of each item category, and use them as the temporary storage area attributes;
[0025] According to the proportion information of each category, the item scheduling quantity of each item category is determined and used as the item scheduling attribute.
[0026] Furthermore, the method further comprises:
[0027] According to the proportion information of each category, a grid identifier located in the temporary storage area is determined, and the grid identifier and the corresponding item category are updated to the temporary storage area attribute.
[0028] Furthermore, the scheduling of corresponding items to be dispatched according to the item scheduling attribute of the current item category, and the diversion of the items to be dispatched to the corresponding temporary storage area according to the temporary storage area attribute corresponding to the current item category, includes:
[0029] Determine the number of items to be dispatched according to each item category and the corresponding category ratio information, and retrieve the items to be dispatched that are consistent with the number of items;
[0030] When an item to be dispatched is detected, the location of the target temporary storage area is determined according to the item category of the item to be dispatched and the corresponding temporary storage area attribute;
[0031] The items to be delivered are temporarily stored in the target temporary storage area.
[0032] Furthermore, the method further comprises:
[0033] The item categories and the corresponding category proportion information are sent to at least one third-party platform associated with the target area based on a message queue, so that the at least one third-party platform allocates the items to be allocated based on the item categories and the category proportion information.
[0034] In a second aspect, an embodiment of the present invention further provides a device for dynamically allocating items, the device comprising:
[0035] A first information determination module, configured to determine, based on the item categories and corresponding item quantities associated with each user in the target area, the category attributes of items belonging to the same item category, and the category proportion information of each item category relative to the corresponding item category;
[0036] An attribute determination module, used to determine the item scheduling attribute and temporary storage area attribute corresponding to each item category according to the category attribute of each item category and the associated category proportion information;
[0037] The item scheduling module is used to schedule corresponding items to be dispatched according to the item scheduling attributes of the current item category for each item category, and to distribute the items to be dispatched to the corresponding temporary storage area according to the temporary storage area attributes corresponding to the current item category.
[0038] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:
[0039] one or more processors;
[0040] a storage device for storing one or more programs,
[0041] When the one or more programs are executed by the one or more processors, the one or more processors implement the method for dynamically allocating items as described in any one of the embodiments of the present invention.
[0042] In a fourth aspect, an embodiment of the present invention further provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute a method for dynamically allocating items as described in any one of the embodiments of the present invention.
[0043] The technical solution provided by the embodiment of the present invention can determine the category attributes belonging to the same item category and the category proportion information of each item category relative to the corresponding item category by processing the item categories and the corresponding item quantities associated with each user in the target area. According to the category attributes and the corresponding category proportion information, the item scheduling attributes and the temporary storage area attributes of each item category can be determined, so as to retrieve the corresponding items to be dispatched according to the item scheduling attributes. At the same time, each item to be dispatched is stored in the storage center according to the temporary storage area attributes, which solves the problem in the prior art that the item categories and quantities of different inventories cannot be prepared in combination with the user information in the area, resulting in the inability to provide effective services to the user, and realizes the technical effect of determining the items to be dispatched associated with the area from the perspectives of the actual item information obtained by the user and the item information to be obtained, thereby accurately predicting future demand. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the following briefly introduces the drawings required to describe the embodiments. Obviously, the drawings introduced are only drawings of a part of the embodiments to be described in the present invention, rather than all the drawings. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0045] Figure 1 A schematic flow chart of a method for dynamically allocating items provided by an embodiment of the present invention;
[0046] Figure 2 A schematic diagram of the structure of a device for dynamically allocating items provided by an embodiment of the present invention;
[0047] Figure 3 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0048] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0049] Before introducing this technical solution, an example of the application scenario can be explained first. At different stages, users have different demands for different categories of goods. In order to better provide users with corresponding goods delivery services, the user's demand for goods at each stage can be predicted, and then the goods can be allocated to the corresponding warehouse for corresponding storage based on the prediction results, so that when the user obtains the corresponding goods, the goods can be quickly retrieved from the corresponding storage area and delivered to them, which improves the efficiency of goods delivery and the technical effect of user experience.
[0050] Figure 1 A flow chart of a method for dynamically allocating items provided in an embodiment of the present invention. This embodiment can be applied to situations where each storage area is taken as the center, the demand for items by users in a neighborhood is determined, and the corresponding items are allocated. The method can be executed by a device for dynamically allocating items. The device can be implemented in the form of software and / or hardware. The hardware can be deployed in an electronic device. The electronic device can execute the technical solution provided by the present invention to determine the demand for each category of items by users in a certain area, thereby allocating the corresponding items, and further when the user obtains the corresponding items, the item acquisition rate can be improved.
[0051] like Figure 1 As shown, the method includes:
[0052] S110 , determining, according to the item categories and corresponding item quantities associated with each user in the target area, the category attributes belonging to the same item category and the category proportion information of each item category relative to the corresponding item category.
[0053] Among them, if you want to determine the user's demand for each item category in a certain area, then you can use this area as the target area. The target area can be a pre-selected area or an area determined according to a pre-set rule. The item categories and corresponding item quantities that the target user has acquired in the target area, as well as the item categories and item quantities that have not been acquired (added to the shopping cart) can be considered to determine the attributes of each category and the category proportion information. The item category corresponds to a specific item, and the item quantity is the demand quantity for the item. The item category includes multiple item categories. Multiple item categories belong to the same item category. For example, if the item category is toiletries, the item category can be: brand A shampoo, brand B shampoo, brand C laundry detergent, etc. That is, the item category is a generalization of multiple item categories. The category attribute is determined based on the category attributes of each item category under the same item category. The category attribute can be understood as the demand proportion information of the item category in all total item categories. The proportion information of each item category is determined based on the proportion information of the item category and the category attributes. The proportion information of the item category and the category attribute proportion information may be calculated to obtain the category proportion information of the corresponding item category.
[0054] In this embodiment, before determining the item categories and corresponding item quantities associated with each user in the target area, it is also necessary to determine the target area, as well as the item categories and corresponding item quantities associated with each user in the target area. Specifically, the target area and each user located in the target area are determined based on the location information of the storage area and the preset neighborhood information; a set of item categories associated with each user is determined, as well as the number of items to be acquired and the number of acquired items corresponding to each item category in the item category set.
[0055] Among them, the storage area can be a certain inventory or delivery center. The preset area can be the range that the storage area can radiate, that is, taking the storage area as the center point, it can be determined which areas of the content need to be shipped by the storage center as the delivery place, and the area that can be covered by the storage area delivery is taken as the target area. It can also be pre-set that the neighborhood range that can be covered by the storage center as the delivery center is used as the preset neighborhood. The item category set includes multiple item categories, and the item category can be an acquired item category and / or an unacquired item category. Each item category corresponds to multiple item quantities, and the item quantity can be composed of two types of item acquisition, namely, the number of acquired items and the number of items to be acquired. The number of acquired items is the sum of the number of items purchased by each user within a certain period of time, and the number of items to be acquired is the total number of items of the same item category added to the shopping cart of each user.
[0056] Exemplarily, there are N users in the target area. According to the purchase record information of the N users within a preset time period, the number of purchased items and the categories of purchased items (the categories of acquired items) are determined, and the categories of items to be acquired and the number of items to be acquired that the N users have added to the shopping cart at the current moment are obtained. If the number of items to be acquired is greater than or equal to a preset value, the number of items to be acquired is marked as the preset value, for example, the preset value may be 5. The union of the acquired item categories and the to-be-acquired item categories is determined to obtain an item category set, and at the same time, the number of acquired items and the number of items to be acquired of each item category in the item category set may be recorded.
[0057] After obtaining the set of item categories corresponding to the target area and the number of items in each item category, the method further includes: determining the total number of acquired items according to the number of acquired items corresponding to each item category; and determining the total number of items to be acquired according to the number of items to be acquired corresponding to each item category; for each item category, determining the target category attribute of the current item category according to the number of acquired items, the number of items to be acquired, the total number of acquired items and the total number of items to be acquired corresponding to the current item category; and determining the category attribute according to the target category attributes corresponding to each item category belonging to the same item category.
[0058] The total number of acquired items is obtained by summing the number of acquired items corresponding to each item category. The total number of items to be acquired is obtained by summing the number of items to be acquired in each item category. Each item category has a corresponding target category attribute. The target category attribute is determined based on the ratio of the number of acquired items and the number of unacquired items under the item category to the corresponding total number. The category attribute of the item category is obtained by accumulating the target category attributes of each item category under the same item category.
[0059] In this embodiment, the target category attribute of each item category may be determined by: determining a first category attribute based on the number of acquired items and the total number of acquired items of the current item category; and determining a second category attribute based on the number of items to be acquired and the total number of items to be acquired; and determining the target category attribute of the current item category based on the first category attribute, the second category attribute and the corresponding weight values.
[0060] It should be noted that the manner of determining the first category attribute and the second category attribute of each item category is the same, and the embodiment of the present invention is described by taking the determination of the target category attribute of one of the item categories as an example.
[0061] Among them, by calculating the ratio of the number of acquired items and the total number of acquired items of the current item category, the first category attribute is obtained, that is, the acquired category attribute. By calculating the ratio of the number of items to be acquired and the total number of items to be acquired of the current item category, the second category attribute is obtained, that is, the to-be-acquired category attribute. The weight values of the first category attribute and the second category attribute can be preset. Optionally, the distribution ratio of the weight value can be 4:6 or 5:5. The specific weight value distribution can be set according to actual needs and is not specifically limited here. The first intermediate value is obtained by calculating the product of the first category attribute and the corresponding weight value, and the second intermediate value is obtained by calculating the product of the second category attribute and the corresponding weight value. The target category attribute of the current item category is obtained by accumulating the first intermediate value and the second intermediate value. After obtaining the target category attribute of each item category, at least one item category belonging to the same item category can be determined, and the category attribute of the item category can be obtained by accumulating the target category attribute of at least one item category.
[0062] After obtaining the category attributes, the category proportion information of each item category under the item category can be determined. Optionally, for each item category, the category proportion information of each item category in the current item category can be determined based on the target category attributes of each item category associated with the current item category and the category attributes of the current item category.
[0063] Among them, the item category includes multiple item categories, that is, the item category is the upper level of the item category, and the item categories of the lower level are mostly of one type. By calculating the ratio between the target category attribute and the category attribute of each item category under the item category, the category proportion information of each item category under the category attribute is obtained.
[0064] Exemplarily, the surrounding area of the current specific warehouse A (within the target area) is determined, and the categories of items to be acquired and the corresponding number of items to be acquired in the shopping cart of each user in the target area are obtained. If the number of items in a certain category in the user's shopping cart is greater than the preset number threshold 5, it is determined according to 5. The acquired data can be displayed in the following manner, such as: item category ID: number A. Based on this, the set of added item categories and the total number of items purchased by all users B can be obtained. By calculating the ratio between the number A of each item category and the total number of items purchased B, the second category attribute X1 corresponding to the item category ID can be changed. The representation form of the second category attribute can be: item category ID: X1; at the same time, the shopping record information of each user in the target area within a preset time period is obtained. Optionally, the preset time period can be one month or one week, etc. The shopping record information can be the acquired item category and the corresponding number of acquired items. By accumulating the number of each acquired item, the total number of acquired items is obtained. For each acquired item category, the ratio of the number of acquired items of the current acquired item category to the total number of acquired items is calculated to obtain the order volume proportion of the current acquired item category, that is, the first category attribute X2. This data can still be represented by json data, such as item category ID: X2. For the same item category, if the weight values of the first category attribute and the second category attribute are both 0.5, then the target category attribute of the item category can be determined as: item category ID: X3 = (X1 + X2) / 2, and the data is simplified to item category ID: X3. According to the item category ID, the item category to which each item category belongs is retrieved. After processing the target category attributes X3 under the same item category, the category attribute, that is, the category ratio, can be obtained. For example, item category 1 includes two item categories, then the instantiated data can be item category ID1 accounting for 2.123%, item category ID2 accounting for 1.1123%, and the category attribute X4 of item category 1 = 3.246%. According to the category attribute X4 of the item category, the proportion information X5 of the item category under the item category can be determined, that is, X5=the proportion of the item category ID1 / X4.
[0065] S120: Determine the item scheduling attributes and temporary storage area attributes corresponding to each item category according to the category attributes of each item category and the associated category proportion information.
[0066] The temporary storage area attribute can be understood as the attribute of the storage location of the item category in the storage area. The item scheduling attribute is mainly used to determine the item scheduling information corresponding to each item category, for example, the number of items in each item category.
[0067] Specifically, according to the category attributes of each item category, the storage area ratio and storage location of each item category in the current warehouse can be determined. At the same time, according to the category ratio information of the item categories associated with each item category, the dispatch quantity of each item category can be determined.
[0068] In this embodiment, the item scheduling attributes and temporary storage area attributes corresponding to each item category are determined according to the category attributes of each item category and the associated category proportion information, including: determining the temporary storage area location and area identification according to the category attributes of each item category, and using them as the temporary storage area attributes; determining the item scheduling quantity of each item category according to the category proportion information, and using them as the item scheduling attributes.
[0069] Among them, the storage center can be divided into multiple grid areas, and the proportion information of each item category in the storage center can be determined according to the category attributes of each item category, and then the corresponding grid area can be allocated to it, and the coordinate information or area identification of the allocated grid area can be used as the temporary storage area attribute. Furthermore, the item dispatch quantity of the corresponding item category can be determined according to the category proportion information, and the dispatch quantity can be used as the item dispatch attribute.
[0070] In this embodiment, according to the proportion information of each category, the grid identifier located in the temporary storage area is determined, and the grid identifier and the corresponding item category are updated to the temporary storage area attribute.
[0071] Furthermore, the temporary storage area is composed of multiple regional grids. According to the proportion information of each category, the temporary storage grid identifier of each item category in the current item category can be determined. The temporary storage grid identifier is bound to the corresponding item category. The grid identifier and the item category are bound accordingly as the temporary storage area attribute.
[0072] S130 . For each item category, the corresponding items to be dispatched are dispatched according to the item dispatching attribute of the current item category, and the items to be dispatched are diverted to the corresponding temporary storage area according to the temporary storage area attribute corresponding to the current item category.
[0073] Specifically, the corresponding item category items can be allocated according to the item scheduling attributes, and the allocated items can be used as items to be allocated. The items to be allocated can be placed on a conveyor belt, so that the server can transfer the items to be allocated to the corresponding grid according to the temporary storage area attribute of the items to be allocated, that is, which grid they are stored in, and temporarily store the allocated items to be matched in the corresponding temporary storage area.
[0074] In this embodiment, the method of scheduling corresponding items to be allocated according to the item scheduling attributes of the current item category, and diverting the items to be allocated to the corresponding temporary storage area according to the temporary storage area attributes corresponding to the current item category, includes: determining the number of items to be allocated corresponding to each item category according to each item category and the corresponding category proportion information, and retrieving items to be allocated that are consistent with the number of items to be allocated; when detecting items to be allocated, determining the target temporary storage area position according to the item category of the items to be allocated and the corresponding temporary storage area attributes; and temporarily storing the items to be allocated at the target temporary storage area position.
[0075] Specifically, the number of items to be allocated corresponding to each item category can be determined based on the category proportion information of each item category. According to the corresponding number of items to be allocated, the items to be allocated corresponding to the corresponding item category are allocated. After obtaining the items to be allocated, the items to be allocated can be placed on the conveyor belt, so that when the items to be allocated are detected, the target temporary storage area location for storing the items to be allocated can be determined according to the temporary storage area attributes corresponding to the item category of the items to be allocated. Based on the conveyor belt, each item to be allocated can be transported to the target temporary storage area location.
[0076] It can be understood as follows: after determining the above data, the cloud data center sends the json data to the storage area by introducing the message queue Kafka, and the storage computing center determines the temporary storage area attributes according to the assigned item categories, category proportion information, and the determined temporary storage area attributes. According to the item categories of the items to be distributed, the temporary storage area grid is determined to transfer the items to be distributed to the corresponding grid area. In order to further improve the processing speed, the redis memory database can also be introduced. The information stored in the database is the item category ID, the corresponding category proportion information, the scheduling attributes, and the temporary storage area attributes, so as to continuously monitor the number of items stored in the grid in the current warehouse dynamically. When the single grid limit is reached, it will be immediately delivered to the next grid until the current commodity set is fully occupied. The warehouse is grid-marked, so that the warehouse's goods distribution can be dynamically adjusted, the goods are stacked according to the specific proportions mentioned above, and the intelligent equipment is used to deliver and transfer specific goods.
[0077] The technical solution of the disclosed embodiment achieves the ability to determine in advance the demand for each category of goods by users in the target area and prepare goods in advance under the conditions that the capacity of the storage center remains unchanged and the work intensity of the users remains unchanged, thereby avoiding the problems of difficult, slow and unstable transportation when placing urgent orders. At the same time, since the demand for goods is predicted in advance, it is possible to avoid logistics obstacles during major holidays and achieve the effect of "peak shaving and valley flattening" in the implementation and deployment of the storage center. Furthermore, due to effective prediction, the occurrence of invalid occupancy of warehouses is reduced. Furthermore, it is also possible to accurately and efficiently determine how to allocate grids for each category of goods based on its actual proportion information, and transport the goods to the corresponding grids, thereby achieving the effect of dynamic configuration of the item storage area.
[0078] Based on the above technical solution, it should be noted that the item categories and the corresponding category proportion information are sent to at least one third-party platform associated with the target area based on the message queue, so that the at least one third-party platform can allocate the items to be allocated based on the item categories and the category proportion information.
[0079] Among them, the number of at least one third-party platform can be one or more. The third-party platform can be a supply platform. The category proportion information of each item category is sent to each third-party platform through a message queue, so that each third-party platform can reasonably produce the corresponding item category according to the category proportion information, and each third-party platform can provide the corresponding items according to the supply ratio information, so as to match the items stored in the storage area with the user needs in the target area, avoiding the problem of failure to deliver to users in time due to insufficient inventory, and waste of resources due to large inventory, realizing dynamic regulation of the number of items corresponding to the target area, and improving the technical effect of convenience and accuracy of item allocation.
[0080] It can be understood as follows: after determining the proportion of each category, it can be sent to the surrounding third-party platforms through the message queue, such as the supply factory and merchant, so that the factory or merchant can give feedback as soon as possible and remind the logistics vehicle to go to transport the goods. At the same time, it solves the problem that a certain category of goods has been stored for a long time and the order volume has not increased significantly, and the manufacturer or merchant can be notified as soon as possible to return the goods. In other words, while sending the scheduling attributes and temporary storage attributes to the warehousing system through the message queue based on the message queue, it is also necessary to connect the data with the surrounding factories or merchants, and pass the json data to the third-party platform through the corresponding data interface or broadcast queue. When the third-party platform retrieves the existence of the item category related to itself, it can automatically call the machine in the factory to start rapid production or reduce the production speed according to the category proportion information. If the number of production batches has reached the standard, the logistics company can be notified immediately to dispatch a transport vehicle to pick up the goods, so as to achieve the technical effect of preparing goods in advance and providing better services to users.
[0081] The technical solution provided by the embodiment of the present invention can determine the category attributes belonging to the same item category and the category proportion information of each item category relative to the corresponding item category by processing the item categories and the corresponding item quantities associated with each user in the target area. According to the category attributes and the corresponding category proportion information, the item scheduling attributes and the temporary storage area attributes of each item category can be determined, so as to retrieve the corresponding items to be dispatched according to the item scheduling attributes. At the same time, each item to be dispatched is stored in the storage center according to the temporary storage area attributes, which solves the problem in the prior art that the item categories and quantities of different inventories cannot be prepared in combination with the user information in the area, resulting in the inability to provide effective services to the user, and realizes the technical effect of determining the items to be dispatched associated with the area from the perspectives of actually obtaining the item information and the item information to be obtained by the user, thereby accurately predicting future demand.
[0082] Figure 2 A schematic diagram of a device structure for dynamically allocating items provided by an embodiment of the present invention, such as Figure 2 The device includes: a first information determination module 210, an attribute determination module 220 and an item scheduling module 230.
[0083] Among them, the first information determination module 210 is used to determine the category attributes belonging to the same item category and the category proportion information of each item category relative to the corresponding item category based on the item categories and the corresponding item quantities associated with each user in the target area; the attribute determination module 220 is used to determine the item scheduling attributes and temporary storage area attributes corresponding to each item category based on the category attributes of each item category and the associated category proportion information; the item scheduling module 230 is used to schedule the corresponding items to be allocated according to the item scheduling attributes of the current item category for each item category, and to divert the items to be allocated to the corresponding temporary storage area according to the temporary storage area attributes corresponding to the current item category.
[0084] On the basis of the above technical solution, the device further comprises: an area determination module, which is used to determine the target area and each user located in the target area according to the location information of the storage area and the preset neighborhood information;
[0085] The quantity determination module is used to determine the item category set associated with each user, and the number of items to be acquired and the number of acquired items corresponding to each item category in the item category set.
[0086] Based on the above technical solution, the first information determination module includes:
[0087] A total quantity determination unit, used to determine the total number of acquired items according to the number of acquired items corresponding to each item category; and to determine the total number of items to be acquired according to the number of items to be acquired corresponding to each item category;
[0088] a target category attribute determination unit, configured to determine, for each item category, a target category attribute of the current item category according to the number of acquired items, the number of items to be acquired, the total number of acquired items, and the total number of items to be acquired corresponding to the current item category;
[0089] The category attribute determination unit is used to determine the category attribute according to the target category attribute corresponding to each item category belonging to the same item category.
[0090] On the basis of the above technical solution, the target category attribute determination unit includes:
[0091] A first category attribute determination subunit, configured to determine the first category attribute according to the number of acquired items of the current item category and the total number of acquired items; and
[0092] A second category attribute determination subunit, configured to determine a second category attribute according to the number of items to be acquired and the total number of items to be acquired;
[0093] The target category attribute determination subunit is used to determine the target category attribute of the current item category according to the first category attribute, the second category attribute and the corresponding weight value.
[0094] On the basis of the above technical solution, the first information determination module is also used to determine, for each item category, the category proportion information of each item category in the current item category according to the target category attributes of each item category associated with the current item category and the category attributes of the current item category.
[0095] Based on the above technical solution, the attribute determination module includes:
[0096] A temporary storage area attribute determination unit, used to determine the temporary storage area location and area identifier according to the category attributes of each item category, and use them as the temporary storage area attributes;
[0097] The attribute determination unit is retrieved to determine the item scheduling quantity of each item category according to the proportion information of each category, and use it as the item scheduling attribute.
[0098] On the basis of the above technical solution, the attribute determination module is also used to determine the grid identifier located in the temporary storage area according to the proportion information of each category, and update the grid identifier and the corresponding item category into the attributes of the temporary storage area.
[0099] Based on the above technical solution, the item scheduling module includes:
[0100] The unit for determining items to be dispatched is used to determine the quantity of items to be dispatched according to each item category and the corresponding category proportion information, and retrieve the items to be dispatched that are consistent with the quantity of items;
[0101] A temporary storage location determination unit, configured to determine the location of a target temporary storage area according to the item category of the item to be dispatched and the corresponding temporary storage area attribute when the item to be dispatched is detected;
[0102] The temporary storage unit is used to temporarily store the items to be delivered at the target temporary storage area.
[0103] On the basis of the above technical solution, the device further comprises:
[0104] A message sending unit is used to send the item category and the corresponding category proportion information to at least one third-party platform associated with the target area based on a message queue, so that the at least one third-party platform can allocate the items to be allocated based on the item category and the category proportion information.
[0105] The technical solution provided by the embodiment of the present invention can determine the category attributes belonging to the same item category and the category proportion information of each item category relative to the corresponding item category by processing the item categories and the corresponding item quantities associated with each user in the target area. According to the category attributes and the corresponding category proportion information, the item scheduling attributes and the temporary storage area attributes of each item category can be determined, so as to retrieve the corresponding items to be dispatched according to the item scheduling attributes. At the same time, each item to be dispatched is stored in the storage center according to the temporary storage area attributes, which solves the problem in the prior art that the item categories and quantities of different inventories cannot be prepared in combination with the user information in the area, resulting in the inability to provide effective services to the user, and realizes the technical effect of determining the items to be dispatched associated with the area from the perspectives of actually obtaining the item information and the item information to be obtained by the user, thereby accurately predicting future demand.
[0106] The device for dynamically allocating items provided in the embodiment of the present invention can execute the method for dynamically allocating items provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0107] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present invention.
[0108] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Figure 3 A block diagram of an exemplary electronic device 30 suitable for implementing exemplary embodiments of the present invention is shown. Figure 3 The electronic device 30 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0109] like Figure 3 As shown, the electronic device 30 is in the form of a general computing device. The components of the electronic device 30 may include but are not limited to: one or more processors or processing units 301, a system memory 302, and a bus 303 connecting different system components (including the system memory 302 and the processing unit 301).
[0110] Bus 303 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnect (PCI) bus.
[0111] The electronic device 30 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 30, including volatile and non-volatile media, removable and non-removable media.
[0112] The system memory 302 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 304 and / or cache memory 305. The electronic device 30 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 306 may be used to read and write non-removable, non-volatile magnetic media ( Figure 3 not shown, usually called a "hard drive"). Although Figure 3 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 303 via one or more data medium interfaces. The memory 302 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the embodiments of the present invention.
[0113] A program / utility 308 having a set (at least one) of program modules 307 may be stored, for example, in the memory 302, such program modules 307 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 307 generally perform the functions and / or methods of the embodiments described herein.
[0114] The electronic device 30 may also communicate with one or more external devices 309 (e.g., keyboards, pointing devices, displays 310, etc.), may communicate with one or more devices that enable a user to interact with the electronic device 30, and / or may communicate with any device that enables the electronic device 30 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication may be performed through an input / output (I / O) interface 311. Furthermore, the electronic device 30 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 312. As shown, the network adapter 312 communicates with other modules of the electronic device 30 through the bus 303. It should be understood that although Figure 3 Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 30, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0115] The processing unit 301 executes various functional applications and data processing by running the programs stored in the system memory 302, such as implementing the method for dynamically allocating items provided in the embodiment of the present invention.
[0116] An embodiment of the present invention further provides a storage medium containing computer executable instructions, which are used to execute a method for dynamically allocating items when executed by a computer processor.
[0117] The method includes:
[0118] According to the item categories and corresponding item quantities associated with each user in the target area, determine the category attributes belonging to the same item category, and the category proportion information of each item category relative to the corresponding item category;
[0119] According to the category attributes of each item category and the related category proportion information, determine the item scheduling attributes and temporary storage area attributes corresponding to each item category;
[0120] For each item category, the corresponding items to be dispatched are dispatched according to the item dispatching attribute of the current item category, and the items to be dispatched are diverted to the corresponding temporary storage area according to the temporary storage area attribute corresponding to the current item category.
[0121] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. 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 (non-exhaustive list) of computer-readable storage media include: 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 this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0122] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may 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 a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0123] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0124] Computer program code for performing the operation of embodiments of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0125] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for dynamically allocating items, characterized in that: include: Determine, according to the item categories and corresponding item quantities associated with each user in the target area, the category attributes belonging to the same item category and the category proportion information of each item category relative to the corresponding item category, wherein the item quantity is composed of the number of items to be acquired and the number of items already acquired; According to the category attributes of each item category and the associated category proportion information, the item dispatching attributes and temporary storage area attributes corresponding to each item category are determined, specifically including: according to the category attributes of each item category, the temporary storage area location and area identifier are determined as the temporary storage area attributes; according to the category proportion information of each item category, the item dispatching quantity of each item category is determined as the item dispatching attribute; For each item category, the corresponding items to be dispatched are dispatched according to the item dispatching attribute of the current item category, and the items to be dispatched are diverted to the corresponding temporary storage area according to the temporary storage area attribute corresponding to the current item category.
2. The method according to claim 1, characterized in that Before the step of determining the item categories and corresponding item quantities associated with each user in the target area, the method further includes: Determine the target area and each user located in the target area according to the location information of the storage area and the preset neighborhood information; Determine a set of item categories associated with each user, and the number of items to be acquired and the number of acquired items corresponding to each item category in the set of item categories.
3. The method according to claim 2, characterized in that The step of determining the category attributes of items belonging to the same category of items according to the item categories and corresponding item quantities associated with each user in the target area includes: Determine the total number of acquired items based on the number of acquired items corresponding to each item category; and determine the total number of items to be acquired based on the number of items to be acquired corresponding to each item category; For each item category, determine the target category attribute of the current item category according to the number of acquired items, the number of items to be acquired, the total number of acquired items, and the total number of items to be acquired corresponding to the current item category; The category attribute is determined according to the target category attribute corresponding to each item category belonging to the same item category.
4. The method according to claim 3, characterized in that Determining the target category attribute of the current item category according to the number of acquired items, the number of items to be acquired, the total number of acquired items, and the total number of items to be acquired corresponding to the current item category includes: Determine a first category attribute according to the number of acquired items of the current item category and the total number of acquired items; and determine a second category attribute according to the number of items to be acquired and the total number of items to be acquired; According to the first category attribute, the second category attribute and the corresponding weight values, a target category attribute of the current item category is determined.
5. The method according to claim 4, characterized in that Determine the category proportion information of each item category relative to the corresponding category attributes, including: For each item category, the category proportion information of each item category in the current item category is determined according to the target category attribute of each item category associated with the current item category and the category attribute of the current item category.
6. The method according to claim 1, characterized in that Also includes: According to the proportion information of each category, a grid identifier located in the temporary storage area is determined, and the grid identifier and the corresponding item category are updated to the temporary storage area attribute.
7. The method according to claim 1, characterized in that The step of scheduling corresponding items to be dispatched according to the item dispatching attributes of the current item category, and distributing the items to be dispatched to corresponding temporary storage areas according to the temporary storage area attributes corresponding to the current item category, includes: According to each item category and the corresponding category ratio information, determine the number of items to be dispatched corresponding to each item category, and retrieve the items to be dispatched that are consistent with the number of items to be dispatched; When an item to be dispatched is detected, the location of the target temporary storage area is determined according to the item category of the item to be dispatched and the corresponding temporary storage area attribute; The items to be delivered are temporarily stored in the target temporary storage area.
8. The method according to claim 1, characterized in that Also includes: The item categories and the corresponding category proportion information are sent to at least one third-party platform associated with the target area based on a message queue, so that the at least one third-party platform allocates the items to be allocated based on the item categories and the category proportion information.
9. A device for dynamically allocating items, characterized in that: include: A first information determination module is used to determine the category attributes belonging to the same item category and the category proportion information of each item category relative to the corresponding item category according to the item categories and the corresponding item quantities associated with each user in the target area, wherein the item quantity is composed of the number of items to be acquired and the number of items acquired; The attribute determination module is used to determine the item scheduling attribute and temporary storage area attribute corresponding to each item category according to the category attribute of each item category and the associated category proportion information, and specifically includes: a temporary storage area attribute determination unit, which is used to determine the temporary storage area position and area identification according to the category attribute of each item category, and use them as the temporary storage area attribute; and a calling attribute determination unit, which is used to determine the item scheduling quantity of each item category according to the category proportion information, and use them as the item scheduling attribute; The item scheduling module is used to schedule corresponding items to be dispatched according to the item scheduling attributes of the current item category for each item category, and to distribute the items to be dispatched to the corresponding temporary storage area according to the temporary storage area attributes corresponding to the current item category.
10. An electronic device, characterized in that: The electronic device comprises: one or more processors; a storage device 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 dynamically allocating items as described in any one of claims 1-8.
11. A storage medium comprising computer executable instructions, wherein the computer executable instructions are used to perform the method for dynamically allocating items according to any one of claims 1 to 8 when executed by a computer processor.
