CN108876262B - Product distribution method, electronic equipment and computer storage medium - Google Patents

Product distribution method, electronic equipment and computer storage medium Download PDF

Info

Publication number
CN108876262B
CN108876262B CN201810975339.1A CN201810975339A CN108876262B CN 108876262 B CN108876262 B CN 108876262B CN 201810975339 A CN201810975339 A CN 201810975339A CN 108876262 B CN108876262 B CN 108876262B
Authority
CN
China
Prior art keywords
product
products
distributed
group
parameter
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201810975339.1A
Other languages
Chinese (zh)
Other versions
CN108876262A (en
Inventor
欧阳文理
丑强
朱明达
范伟
徐丽霜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201810975339.1A priority Critical patent/CN108876262B/en
Publication of CN108876262A publication Critical patent/CN108876262A/en
Application granted granted Critical
Publication of CN108876262B publication Critical patent/CN108876262B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/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

Abstract

The embodiment of the invention discloses a product distribution method, which comprises the steps that at least two products to be distributed with the same function in a first stock form a first product group; wherein the first inventory is used to provide a product to be dispensed; obtaining a first order for each product to be dispensed in a first product group; wherein the first order comprises a first demand quantity for each product to be dispensed within the first product group; calculating the value of subtracting a first demand quantity corresponding to each product to be distributed in the first product group from the quantity of each product to be distributed in the first product group to obtain a first parameter; calculating the absolute value of the sum of the parameters with the negative numerical values in the first parameters to obtain a first quantity, and calculating the sum of the parameters with the positive numerical values in the first parameters to obtain a second quantity; and distributing the products to be distributed in the first inventory to a first sub-inventory corresponding to the first order according to the first quantity and the second quantity. The embodiment of the invention also discloses electronic equipment and a computer storage medium at all times.

Description

Product distribution method, electronic equipment and computer storage medium
Technical Field
The present invention relates to information processing technologies in the field of communications, and in particular, to a product allocation method, an electronic device, and a computer storage medium.
Background
In the existing product supply chain system, a user manually reports the demand of a local inventory point for a certain product to an electronic device, and the electronic device distributes the product to the local inventory point after receiving the demand reported by the user. Therefore, at present, the electronic device can only distribute products to local inventory points according to the products reported by the user, and cannot distribute the products in an artificial intelligence manner.
Disclosure of Invention
In order to solve the above technical problems, embodiments of the present invention are expected to provide a product allocation method, an electronic device, and a computer storage medium, so as to solve the problem in the related art that the electronic device can only allocate products to local inventory points according to products reported by a user, and cannot allocate products in an artificial intelligence manner, implement intelligent allocation of equivalent products in a product supply chain, improve the intelligence degree of product allocation, and improve the intelligence of the electronic device.
The technical scheme of the invention is realized as follows:
a method of product dispensing, the method comprising:
combining at least two products to be distributed with the same function in a first stock into a first product group; wherein the first inventory is used to provide a product to be dispensed;
obtaining a first order for each product to be dispensed in a first product group; wherein the first order comprises a first demand quantity for each product to be dispensed within the first product group;
calculating the value of subtracting a first demand quantity corresponding to each product to be distributed in the first product group from the quantity of each product to be distributed in the first product group to obtain a first parameter;
calculating the absolute value of the sum of the parameters with the negative numerical values in the first parameters to obtain a first quantity, and calculating the sum of the parameters with the positive numerical values in the first parameters to obtain a second quantity;
and distributing the products to be distributed in the first stock to a first sub-stock corresponding to the first order according to the first quantity and the second quantity.
Optionally, the grouping at least two products to be dispensed having the same function in the first stock into a first product group includes:
selecting any product from the products to be dispensed in the first inventory as a first product;
acquiring a product function of a first product;
selecting a product to be distributed with a product function except the first product from the first stock to obtain a second product; wherein the second product and the first product can be mutually replaced;
the first product and the second product are grouped into a first product group.
Optionally, the first sub-inventory includes at least two, and the allocating the product to be allocated in the first inventory to the first sub-inventory corresponding to the first order according to the first quantity and the second quantity includes:
if the first quantity is larger than the second quantity, selecting a second quantity of products to be distributed from the first product set and distributing the products to the second product set to obtain an updated first product set and an updated second product set; the first product set comprises products to be distributed corresponding to the parameter with the positive numerical value in the first parameter, and the second product set comprises products to be distributed corresponding to the parameter with the negative numerical value in the first parameter;
obtaining a second product group according to the updated first product set, the updated second product set and the third product set; the third product set comprises products to be distributed corresponding to the parameters with the numerical values of zero in the first parameters;
adjusting a first target quantity of each product to be distributed in the second product group corresponding to each first sub-stock;
each product to be dispensed within the second product group is assigned to each of the first sub-inventories according to the first target quantity.
Optionally, if the first number is greater than the second number, selecting a second number of products to be distributed from the first product set and distributing the products to the second product set, including:
if the first quantity is larger than the second quantity, selecting a second quantity of products to be distributed from the first product set;
obtaining a second target quantity of each product to be dispensed in the first product group associated with the first target satisfaction; wherein the first target satisfaction characterizes a maximum of a sum of user satisfaction with a quantity of each product to be dispensed within the first product group;
a second quantity of the product to be dispensed is dispensed into a second product set based on a second target quantity for each of the products to be dispensed within the first product group.
Optionally, if the first number is greater than the second number, selecting a second number of products to be distributed from the first product set and distributing the products to the second product set, including:
if the first quantity is greater than the second quantity, selecting a second quantity of products to be distributed from the first product set;
determining a first product to be dispensed from a second number of products to be dispensed;
determining a second product to be dispensed from the second set of products;
distributing the first product to be distributed into a second product set and setting the first product to be distributed as a second product to be distributed; and the difference value between the price of the first product to be distributed and the price of the second product to be distributed is smaller than a preset threshold value.
Optionally, before adjusting the first target quantity of each product to be dispensed in the second product group corresponding to each first sub-inventory, the method further includes:
acquiring a first target quantity corresponding to each product to be distributed and each first sub-stock in a second product group associated with a second target satisfaction degree; wherein the second target satisfaction characterizes a maximum of a sum of user satisfaction with a quantity of products corresponding to each of the first sub-inventories and each of the products to be dispensed within the second product group.
Optionally, allocating the products in the first inventory to a first sub-inventory corresponding to the first order according to the first quantity and the second quantity, including:
if the first quantity is smaller than the second quantity, selecting a first quantity of products to be distributed from the fourth product set and distributing the products to the fifth product set to obtain an updated fourth product set and an updated fifth product set; the fourth product set comprises products to be distributed corresponding to the parameter with the positive numerical value in the first parameter, and the fifth product set comprises products to be distributed corresponding to the parameter with the negative numerical value in the first parameter;
obtaining a third product group according to the updated fourth product set, the updated fifth product set and the sixth product set; the sixth product set comprises products to be distributed corresponding to the parameter with the value of zero in the first parameter;
distributing the products to be distributed in the third product group to a first sub-stock corresponding to the first order, and taking the updated first stock as a second stock;
forming a fourth product group by at least two products to be distributed with the same function in the second stock;
obtaining a second order for each product to be dispensed in a fourth product group; wherein the second order comprises a second demand quantity for each product to be dispensed within the fourth product group;
calculating the value of subtracting a second required quantity corresponding to each product to be distributed in the fourth product group from the quantity of each product to be distributed in the fourth product group to obtain a second parameter;
calculating the absolute value of the parameter sum with the value being a negative number in the second parameters to obtain a third quantity, and calculating the sum of the parameter sum with the value being a positive number in the second parameters to obtain a fourth quantity;
and distributing the products to be distributed in the second inventory to a second sub-inventory corresponding to the second order according to the third quantity and the fourth quantity.
Optionally, the second sub-inventory includes at least two, and the allocating, according to the third quantity and the fourth quantity, the product to be allocated in the second inventory to the second sub-inventory corresponding to the second order includes:
if the third quantity is larger than the fourth quantity, selecting a fourth quantity of products to be distributed from the seventh product set and distributing the fourth quantity of products to the eighth product set to obtain an updated seventh product set and an updated eighth product set; the seventh product set comprises products to be distributed corresponding to the parameter with the positive numerical value in the second parameter, and the eighth product set comprises products to be distributed corresponding to the parameter with the negative numerical value in the second parameter;
obtaining a fifth product group according to the updated seventh product set, the updated eighth product set and the ninth product set; the ninth product set comprises products to be distributed corresponding to the parameter with the value of zero in the second parameters;
adjusting a third target quantity of each product to be distributed in the fifth product group corresponding to each second sub-stock;
allocating each product to be allocated within the fifth product group to each second sub-inventory according to a third target quantity;
if the third quantity is smaller than the fourth quantity, selecting a third quantity of products to be distributed from the fifth product set and distributing the products to the sixth product set to obtain an updated fifth product set and an updated sixth product set; the fifth product set comprises products to be distributed corresponding to the parameter with the positive numerical value in the second parameter, and the sixth product set comprises products to be distributed corresponding to the parameter with the negative numerical value in the second parameter;
and distributing the products to be distributed in the fifth product group to a second sub-stock corresponding to the second order.
Optionally, if the third number is greater than the fourth number, selecting a fourth number of products to be distributed from the seventh product set and distributing the fourth number of products to the eighth product set, where the selecting includes:
if the third quantity is greater than the fourth quantity, selecting a fourth quantity of products to be distributed from the seventh product set;
obtaining a fourth target quantity of each product to be distributed in a fourth product group associated with the third target satisfaction; wherein the third target satisfaction characterizes a maximum of a sum of user satisfaction with a quantity of each product to be dispensed within the fourth product group;
and distributing the fourth quantity of the products to be distributed into the eighth product set according to the fourth target quantity of each product to be distributed in the fourth product group.
An electronic device, comprising: a processor, a memory, and a communication bus;
the communication bus is used for realizing communication connection between the processor and the memory;
the processor is configured to execute the product allocation program stored in the memory to perform the steps of:
combining at least two products to be distributed with the same function in a first stock into a first product group; wherein the first inventory is used to provide a product to be dispensed;
obtaining a first order for each product to be dispensed in a first product group; wherein the first order comprises a first demand quantity for each product to be dispensed within the first product group;
calculating the value obtained by subtracting the first demand quantity corresponding to each product to be distributed in the first product group from the quantity of each product to be distributed in the first product group to obtain a first parameter;
calculating the absolute value of the sum of the parameters with the negative numerical values in the first parameters to obtain a first quantity, and calculating the sum of the parameters with the positive numerical values in the first parameters to obtain a second quantity;
and distributing the products to be distributed in the first inventory to a first sub-inventory corresponding to the first order according to the first quantity and the second quantity.
A computer readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to perform the steps of the product dispensing method as described above.
According to the product distribution method, the electronic equipment and the computer storage medium provided by the embodiment of the invention, at least two products to be distributed with the same function in a first stock form a first product group; wherein the first inventory is used to provide a product to be dispensed; obtaining a first order for each product to be dispensed in a first product group; wherein the first order comprises a first demand quantity for each product to be dispensed within the first product group; calculating the value of subtracting a first demand quantity corresponding to each product to be distributed in the first product group from the quantity of each product to be distributed in the first product group to obtain a first parameter; calculating the absolute value of the sum of the parameters with the negative numerical values in the first parameters to obtain a first quantity, and calculating the sum of the parameters with the positive numerical values in the first parameters to obtain a second quantity; according to the first quantity and the second quantity, products to be distributed in the first stock are distributed to a first sub-stock corresponding to the first order; that is, in the embodiment of the present invention, the products to be distributed in the global inventory are first grouped, the products to be distributed in the group can be replaced with each other, then at the level of the product group, calculating the shortage of the products to be distributed in the group and the surplus of the products to be distributed in the group according to the quantity of each product to be distributed and the quantity required in the order, and based on the relationship between the shortage of product to be dispensed in the group and the surplus of product to be dispensed in the group, the intelligent distribution of products to be distributed in global inventory is realized, so that the problem that the electronic equipment in the related art can only distribute the products to local inventory points according to the products reported by users and cannot distribute the products in an artificial intelligent mode is solved, the intelligent distribution of equivalent products in a product supply chain is realized, the intelligent degree of product distribution is improved, and the intelligence of the electronic equipment is improved.
Drawings
FIG. 1 is a schematic flow chart of a product dispensing method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of another product dispensing method provided by an embodiment of the present invention;
FIG. 3 is a schematic flow chart of another product dispensing method provided by an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
The embodiment of the invention provides a product distribution method, which can be used in electronic equipment, wherein the electronic equipment at least comprises the following steps: a processor and a storage medium configured to store executable instructions. Here, briefly explaining the related art of product distribution, for some high-tech manufacturing enterprises across countries with high globalization degree, it is common to deploy an inventory center (world wide hub) at the headquarters and a distribution center (distribution center) at each continent around the world. A sales terminal (store) for distributing goods from a logistics center to each receiving customer is required for a manufacturing supply chain; for the service supply chain, it is necessary to distribute the parts of goods, i.e. repair parts (service parts), from the logistics center to the front-end service location. There will typically be multiple levels of the supply chain logistics network. Meanwhile, for the goods of the manufacturing supply chain or the accessories of the goods of the service supply chain, certain goods can have other goods which are equivalent to the goods to be replaced, and certain accessories can also have other accessories which are equivalent to the goods to be replaced, particularly in the situations of shortage of goods and goods inventory shortage. Aiming at the characteristics of the scenes, in order to distribute needed products, including goods and accessories, to proper places at proper time so as to achieve the aim of optimizing customer satisfaction, the embodiment of the invention provides a product distribution method, which has the core idea that an optimal first distribution strategy is firstly made according to the quantity of historical demands in an artificial intelligence mode, and part of products in global inventory are intelligently distributed according to the first distribution strategy so as to meet the historical demands; predicting the future demand quantity in a manual and intelligent mode, working out an optimal second distribution strategy aiming at the future demand quantity, and then intelligently distributing the residual products in the global inventory according to the second distribution strategy to meet the future demand; in addition, in the process of realizing intelligent distribution of products in an artificial intelligence mode, the setting of the distribution strategy and the optimization of the distribution strategy are carried out on the basis of the product group consisting of equivalent products, so that the optimal distribution result is realized; in the process of distributing the products by adopting the product distribution method provided by the embodiment of the invention, on one hand, the inventory condition and the in-transit product condition of each level and place are monitored at a fixed frequency, and then a distribution request, namely historical demand quantity or future demand quantity, is sent out; on the other hand, according to the received goods distribution request, the number of products needing to be distributed to a next-level network, namely a next-level stock, is obtained through analysis from top to bottom according to the hierarchical relation; in yet another aspect, the electronic device automatically records and monitors the products that have been distributed and calculates the distributed products as in-transit products for the destination inventory until the destination inventory receives the in-transit products, at which time the distribution of the products is complete.
According to the foregoing embodiment, an embodiment of the present invention provides a product dispensing method applied to an electronic device, as shown in fig. 1, the method including the steps of:
step 101, at least two products to be distributed with the same function in a first stock are combined into a first product group.
Wherein the first inventory is used to provide a product to be dispensed; the product to be dispensed includes the goods to be dispensed and the fitment of the goods to be dispensed.
In an embodiment of the present invention, for example, for some high-tech manufacturing companies across countries with a high globalization degree, the first inventory may be referred to as a global inventory for providing products to be dispensed. The inventory architecture in embodiments of the present invention includes global inventory, various levels of inventory, and local inventory.
In the process of distributing the products, the electronic device can combine at least two products to be distributed with the same function in the first stock, such as goods or accessories of goods, into a first product group, and all product distribution decision and optimization steps are realized based on the first product group.
A first order for each product to be dispensed within a first product group is obtained, step 102.
Wherein the first order includes a first demand quantity for each product to be dispensed within the first product group. The first demand amount here may be a history demand amount.
Here, the first order may be an order generated by the electronic device to be associated with a required quantity of the product to be dispensed by monitoring, at a fixed frequency, the quantity of the product in stock at each level, the quantity of the product in stock at a local location, and the quantity of the product in transit. For example, the electronic device may set the fixed frequency to 24 hours, such that the electronic device obtains the number of products in stock, and the number of products in transit at each level every 24 hours, and then generates the first order. Of course, the fixed frequency is not specifically limited in the embodiment of the present invention.
In practical application, products are generally distributed to local inventory points according to product requirements manually reported by the local inventory points; however, since the demand of the product reported by the local inventory points is often greater than the actual demand, the product to be dispensed cannot be dispensed to the local inventory points that are actually needed most. In the embodiment of the invention, the first order is an order which is generated by the electronic equipment for monitoring the product quantity of each level of inventory, the product quantity of the local inventory and the quantity of the in-transit products and is associated with the required quantity of the products to be distributed for the local inventory, so that the products required to be distributed for each local inventory point can be distributed according to the actual requirement of the local inventory point, and the products to be distributed in the global inventory can be reasonably distributed to the local inventory which actually needs the products.
Step 103, calculating a value obtained by subtracting a first required quantity corresponding to each product to be distributed in the first product group from the quantity of each product to be distributed in the first product group, and obtaining a first parameter.
Here, the electronic device may calculate a shortage of each product to be dispensed and a surplus of each product to be dispensed, based on the quantity of each product to be dispensed in the first product group and the first required quantity for each product to be dispensed in the first product group in the first order, after grouping at least two products to be dispensed having the same function in the first stock into the first product group. The shortage of each product to be dispensed indicates that the quantity of that product to be dispensed is less than the required quantity of that product to be dispensed. The surplus of each type of products to be distributed indicates that the quantity of the type of products to be distributed is larger than the required quantity of the type of products to be distributed.
In the embodiment of the invention, the value of the first demand quantity corresponding to each product to be distributed in the first product group is subtracted from the quantity of each product to be distributed in the first product group, and the surplus of the product to be distributed of the type is represented if the obtained parameter is greater than zero; subtracting a value of a first demand quantity corresponding to each product to be distributed in the first product group from the quantity of each product to be distributed in the first product group, and representing that the type of product to be distributed just meets the order requirement if the obtained parameter is equal to zero; and subtracting the value of the first demand quantity corresponding to each product to be distributed in the first product group from the quantity of each product to be distributed in the first product group, and if the obtained parameter is less than zero, representing that the type of product to be distributed is in short supply.
And 104, calculating the absolute value of the sum of the parameters with the negative numerical values in the first parameters to obtain a first quantity, and calculating the sum of the parameters with the positive numerical values in the first parameters to obtain a second quantity.
Here, after obtaining a first parameter, which is a value obtained by subtracting a first required quantity corresponding to each product to be distributed in the first product group from the quantity of each product to be distributed in the first product group, the electronic device calculates an absolute value of a sum of parameters having negative numerical values in the first parameter to obtain a first quantity, and calculates a sum of parameters having positive numerical values in the first parameter to obtain a second quantity.
In an embodiment of the present invention, the first quantity is equal to the sum of the shortages of historical backlog orders for each product in the first product group; the second quantity is equal to the sum of the surplus quantities of each product historical backlog order within the first product group, the surplus quantities referring to the quantity of products remaining after the demand for the order is met.
Illustratively, the first product group includes a product a, a product B, a product C, a product D, and a product E, and the product a, the product B, the product C, the product D, and the product E have the same functions and are replaceable products; wherein, the number of A products can be 5, the number of B products can be 3, the number of C products can be 2, the number of D products can be 5 and the number of E products can be 3. The first demand quantity for the product a is 8, the first demand quantity for the product B is 10, the first demand quantity for the product C is 5, the first demand quantity for the product D is 3, and the first demand quantity for the product E is 4. The electronic device calculates that the first number is 14 and the second number is 2 at this time based on the above conditions.
And 105, distributing the products to be distributed in the first inventory to a first sub-inventory corresponding to the first order according to the first quantity and the second quantity.
Here, the first sub-inventory means a local inventory, i.e., a sales terminal receiving a customer.
In the embodiment of the present invention, after calculating the first quantity and the second quantity, the electronic device may specify an optimized allocation policy for the to-be-allocated products in the first inventory according to the first quantity and the second quantity, and allocate the to-be-allocated products in the first inventory to the first sub-inventory corresponding to the first order according to the policy.
In the embodiment of the present invention, when the electronic device performs product allocation, after calculating the first quantity and the second quantity, the electronic device can analyze the relationship between the first quantity and the second quantity, and at this time, the following three situations may occur, where (1) the shortage of the non-delivered orders in the product group is greater than the surplus of the non-delivered orders; (2) shortages of outstanding orders within the product group are less than the margins of outstanding orders, but shortages of future demand and safety stock are greater than the margins of future demand and safety stock; (3) shortages of outstanding orders within the product group are less than margins for outstanding orders, and shortages of future demand and safety stock are less than margins for future demand and safety stock; based on the above three situations, the electronic device allocates the products to be allocated in the first inventory to the first sub-inventory corresponding to the first order according to the principle that the delayed outstanding orders (backorder) are satisfied with priority and then future demands and safety stock (future demand and safety stock) are satisfied with priority.
Illustratively, still taking the first quantity calculated by the electronic device as 14 and the second quantity as 2 as an example, the first quantity is greater than the second quantity, which indicates that the shortage of the outstanding orders in the product group is greater than the surplus of the outstanding orders, and the above first situation is met, and at this time, the electronic device preferably satisfies the deferred outstanding orders.
According to the product distribution method provided by the embodiment of the invention, at least two products to be distributed with the same function in a first stock form a first product group; wherein the first inventory is used to provide a product to be dispensed; obtaining a first order for each product to be dispensed in a first product group; wherein the first order comprises a first demand quantity for each product to be dispensed within the first product group; calculating the value obtained by subtracting the first demand quantity corresponding to each product to be distributed in the first product group from the quantity of each product to be distributed in the first product group to obtain a first parameter; calculating the absolute value of the sum of the parameters with the negative numerical values in the first parameters to obtain a first quantity, and calculating the sum of the parameters with the positive numerical values in the first parameters to obtain a second quantity; and distributing the products to be distributed in the first stock to a first sub-stock corresponding to the first order according to the first quantity and the second quantity. The embodiment of the invention also discloses an electronic device and a computer storage medium at all times; that is, in the embodiment of the present invention, the products to be distributed in the global inventory are first grouped, the products to be distributed in the group can be replaced with each other, then at the level of the product group, calculating the shortage of the products to be distributed in the group and the surplus of the products to be distributed in the group according to the quantity of each product to be distributed and the quantity required in the order, and based on the relationship between the shortage of product to be dispensed in the group and the surplus of product to be dispensed in the group, the intelligent distribution of products to be distributed in global inventory is realized, so that the problem that the electronic equipment in the related art can only distribute the products to local inventory points according to the products reported by users and cannot distribute the products in an artificial intelligent mode is solved, the intelligent distribution of equivalent products in a product supply chain is realized, the intelligent degree of product distribution is improved, and the intelligence of the electronic equipment is improved.
Based on the foregoing embodiments, an embodiment of the present invention provides a product distribution method applied to an electronic device, and as shown in fig. 2, the method includes the following steps:
step 201, at least two products to be distributed with the same function in the first stock are combined into a first product group.
Wherein the first inventory is used to provide a product to be dispensed.
In this embodiment of the present invention, step 201 may combine at least two products to be distributed having the same function in the first inventory into a first product group, which may be implemented by the following steps:
a1, selecting any product from the products to be distributed in the first stock as the first product.
And A2, acquiring the product function of the first product.
Here, the product function is the use of the product; after the electronic device selects the first product from the first inventory, the product function of the first product is further acquired.
The first product may be a sound card, and the product function of the first product is to convert the original sound signal from a microphone, a magnetic tape, or an optical disk, output the converted sound signal to an acoustic device such as a headphone, a speaker, a loudspeaker, or a recorder, or make a musical instrument emit a beautiful sound through a digital interface of the musical device.
A3, selecting the product to be distributed with the product function except the first product from the first stock to obtain a second product.
Wherein the second product and the first product can be mutually replaced; the product identification of the first product is different from the product identification of the second product.
Here, after determining the product function of the first product, the electronic device may select a product to be distributed, which has the product function except for the first product, from the first stock to obtain a second product; that is, the second product has the same product function as the first product.
A4, combining the first product and the second product into a first product group.
Here, the electronic device groups products to be dispensed having the same product function in the first stock into a first product group; at this time, the electronic device groups the products to be distributed in the first inventory, and then the electronic device distributes the products to be distributed in the first inventory to the first sub-inventory based on the related information of the product group. In an embodiment of the invention, the first sub-inventory comprises at least two.
At step 202, a first order for each product to be dispensed within a first product group is obtained.
Wherein the first order includes a first demand quantity for each product to be dispensed within the first product group.
Step 203, calculating a value obtained by subtracting a first required quantity corresponding to each product to be distributed in the first product group from the quantity of each product to be distributed in the first product group, so as to obtain a first parameter.
And 204, calculating the absolute value of the sum of the parameters with the negative numerical values in the first parameters to obtain a first quantity, and calculating the sum of the parameters with the positive numerical values in the first parameters to obtain a second quantity.
Step 205, if the first number is larger than the second number, selecting a second number of products to be distributed from the first product set and distributing the products to the second product set to obtain an updated first product set and an updated second product set.
The first product set comprises products to be distributed corresponding to the parameter with the positive numerical value in the first parameter, and the second product set comprises products to be distributed corresponding to the parameter with the negative numerical value in the first parameter.
In the embodiment of the present invention, when the electronic device determines that the first quantity is greater than the second quantity, that is, the shortage of the outstanding orders in the product group is greater than the surplus of the outstanding orders, the electronic device first performs a balancing process on the products to be allocated in the group at the level of the product group, that is, puts the products to be allocated in the first product set into the second product set, and replaces the products to be allocated in the second product set, so as to reduce the shortage quantity of the products to be allocated in the second product set; the electronic device then performs allocation decision optimization for each product to be allocated within the group individually based on the re-balancing results, with the optimization objective being the sum of customer satisfaction at each first sub-inventory, i.e., local distribution site.
Illustratively, the electronic device calculates to obtain the first quantity of 14, and the second quantity of 2, for example, at this time, the first product set includes the product to be dispensed, that is, the D product, corresponding to the parameter with a positive value in the first parameter. The second product set comprises products to be distributed, namely products A, products B, products C and products E, corresponding to the parameters with negative numerical values in the first parameters. The electronic device determines that the first quantity is 14 greater than the second quantity is 2, and when the a product shortage quantity is 3, the B product shortage quantity is 7, the C product shortage quantity is 3, and the E product shortage quantity is 1, then the electronic device may take out 2 products to be dispensed from the D product to replace some of the a product, the B product, the C product, and the E product shortage; herein, the replacement of one product to be dispensed for another within a product group may be referred to as equalizing the products to be dispensed within the group.
In this embodiment of the present invention, if the first number is greater than the second number in step 205, selecting a second number of products to be distributed from the first product set and distributing the products to the second product set, which may be implemented by the following steps:
b1, if the first quantity is larger than the second quantity, selecting a second quantity of products to be distributed from the first product set.
Here, the second quantity is the quantity of products remaining after the quantity within the first product group meets the order requirements.
B2, obtaining a second target quantity of each product to be distributed in the first product group which is associated with the first target satisfaction degree.
Wherein the first target satisfaction characterizes a maximum of a sum of user satisfaction with each quantity of products to be dispensed within the first product group.
In an embodiment of the present invention, the second target quantity of each of the products to be dispensed is different from the current quantity of each of the products to be dispensed. In the process of carrying out the balance processing on the products in the group, the electronic equipment can calculate the satisfaction degree of the user on the quantity of each product to be distributed in the first product group according to the historical demand condition of the user on each product to be distributed in the first product group; and then obtaining the sum of the satisfaction degrees of all the products to be distributed in the first product group, and obtaining the maximum value of the satisfaction degrees, wherein the maximum value corresponds to the optimal satisfaction degree.
In the embodiment of the invention, in the process of carrying out intra-group equalization processing on the electronic equipment, the optimal satisfaction degree can be obtained through the following decision model, and the optimal distribution strategy corresponding to the optimal satisfaction degree is further determined; the electronic equipment determines that if N distribution modes exist based on a decision model, wherein N is a positive integer and is greater than a first preset number, a branch and bound method and a tabu Search (Tabo Search) algorithm are adopted for solving, so that the optimal satisfaction degree is obtained within a limited time; and if N is less than the first preset number, traversing all distribution modes by adopting a brute force solution so as to find out the optimal satisfaction degree. Illustratively, the first predetermined number may be 1000. Therefore, in the process of distributing the products by the artificial intelligence method, the optimal satisfaction degree can be obtained according to the decision model, and the optimal distribution strategy is made according to the optimal satisfaction degree, so that the products are distributed to the local inventory which is needed most at the proper time, and the optimal product distribution effect is achieved.
B3, distributing a second quantity of the product to be distributed into a second product set according to the second target quantity of each product to be distributed in the first product group.
Here, after calculating the second target quantity of each product to be distributed in the first product group, the electronic device distributes the second quantity of products to be distributed in the first product set to the second product set, so as to obtain an updated first product set and an updated second product set.
In another embodiment of the present invention, if the first number is greater than the second number in step 205, selecting a second number of products to be distributed from the first product set and distributing the products to the second product set, may also be implemented by the following steps:
c1, if the first quantity is larger than the second quantity, selecting a second quantity of products to be distributed from the first product set.
C2, determining a first product to be dispensed from the second number of products to be dispensed.
C3, determining a second product to be dispensed from the second set of products.
C4, distributing the first product to be distributed into the second product set and setting as the second product to be distributed.
And the difference value between the price of the first product to be distributed and the price of the second product to be distributed is smaller than a preset threshold value.
Here, when the electronic device allocates a second number of products to be allocated in the first product set to the second product set, taking the difference between the price of the first product to be allocated and the price of the second product to be allocated as a replacement principle, first, selecting a product to be allocated in the first product set from the second product set to replace the product to be allocated in the first product set to make up for the shortage, such as product F1; then, selecting product F2 from the first set of products, having a closest price to product F1, as a replacement for product F1, where product F2 is the surplus product to be dispensed in the first set of products; finally, this product F2 is assigned to the second product group to make up for the shortage of product F1, resulting in an updated first product group and an updated second product group.
And step 206, obtaining a second product group according to the updated first product set, the updated second product set and the third product set.
And the third product set comprises products to be distributed corresponding to the parameters with the value of zero in the first parameters.
Here, the electronic device selects a second number of products to be dispensed from the first set of products, the second number of products to be dispensed including surplus products from the first set of products; then, the electronic equipment distributes the surplus products in the first product set into a second product set and replaces part of products to be distributed which are in short supply in the second product set with the surplus products; then, obtaining a first product set after being updated and a second product set after being updated; and finally, forming a second product group by using the updated first product set, the updated second product set and the third product set, and realizing the balance of the products to be distributed in the group.
Step 207, adjusting a first target quantity corresponding to each first sub-inventory for each product to be distributed in the second product group.
In this embodiment of the present invention, before the step 207 adjusts the first target quantity corresponding to each first sub-inventory for each product to be distributed in the second product group, the following steps may be further implemented:
and acquiring a first target quantity corresponding to each first sub-stock of each product to be distributed in the second product group associated with the second target satisfaction degree.
Wherein the second target satisfaction characterizes a maximum of a sum of user satisfaction with a quantity of products corresponding to each of the first sub-inventories and each of the products to be dispensed within the second product group.
Here, in the process of setting the quantity of each product to be distributed in the group to each first sub-inventory, that is, each local inventory, the electronic device may calculate the satisfaction degree corresponding to the quantity of each product to be distributed in the first product group to each local inventory according to the historical demand condition of each local inventory for each product to be distributed in the first product group; and obtaining a maximum value of the sum of the satisfaction degrees corresponding to the quantities in the respective local stocks, the maximum value representing a second target satisfaction degree, i.e. an optimal satisfaction degree.
In the embodiment of the invention, in the process that each product to be distributed in the set group is distributed to the quantity of each local stock, the electronic equipment can obtain the optimal satisfaction degree through the following decision model, and further determine the optimal distribution strategy corresponding to the optimal satisfaction degree; the electronic device determines, based on the decision model, that the amount of each product to be dispensed to the respective local inventory can be balanced. If M distribution modes exist, wherein M is a positive integer and is larger than a second preset number, a branch and bound method and a tabu Search algorithm are adopted to solve, so that the optimal satisfaction can be obtained within limited time; and if the M is less than the second preset number, traversing all distribution modes by adopting a brute force solution so as to find out the optimal satisfaction degree. Illustratively, the second predetermined number may be 1000. Therefore, in the process of distributing the products by the artificial intelligence method, the optimal satisfaction degree can be obtained according to the decision model, and the optimal distribution strategy is made according to the optimal satisfaction degree, so that the products are distributed to the local inventory which is needed most at the proper time, and the optimal product distribution effect is achieved.
Step 208, assigning each product to be assigned within the second product group to each of the first sub-inventories according to the first target quantity.
Here, the electronic device sets the sum of the first target quantity, and allocates each product to be allocated in the second product group to each first sub-inventory according to the first target quantity, so as to achieve the purpose of optimizing allocation.
It should be noted that, for the explanation of the steps in this embodiment and the same steps in the above embodiments, reference may be made to the description in the above embodiments, and details are not described here.
Based on the foregoing embodiments, an embodiment of the present invention provides a product distribution method applied to an electronic device, and as shown in fig. 3, the method includes the following steps:
step 301, at least two products to be distributed with the same function in the first stock are combined into a first product group.
Wherein the first inventory is used to provide a product to be dispensed.
Step 302, a first order for each product to be dispensed within a first product group is obtained.
Wherein the first order includes a first demand quantity for each product to be dispensed within the first product group.
Step 303, calculating a value obtained by subtracting a first required quantity corresponding to each product to be distributed in the first product group from the quantity of each product to be distributed in the first product group, to obtain a first parameter.
And 304, calculating the absolute value of the sum of the parameters with the negative numerical values in the first parameters to obtain a first quantity, and calculating the sum of the parameters with the positive numerical values in the first parameters to obtain a second quantity.
And 305, if the first quantity is smaller than the second quantity, selecting a first quantity of products to be distributed from the fourth product set and distributing the products to the fifth product set to obtain an updated fourth product set and an updated fifth product set.
The fourth product set comprises products to be distributed corresponding to the parameter with the positive numerical value in the first parameter, and the fifth product set comprises products to be distributed corresponding to the parameter with the negative numerical value in the first parameter. The quantity of product that is in short after the first quantity, i.e., the quantity within the first product group that meets the demand for the order.
In the embodiment of the present invention, when the electronic device determines that the first quantity is smaller than the second quantity, that is, the shortage of the outstanding orders in the product group is smaller than the surplus of the outstanding orders, which indicates that the products to be allocated in the global inventory can satisfy the deferred outstanding orders, and there are surplus, then the electronic device first satisfies the deferred outstanding orders with the products to be allocated in the first inventory, and then updates the global inventory and the local inventory, and then satisfies the future demand and the safety inventory.
In the embodiment of the present invention, when the electronic device determines that the first quantity is smaller than the second quantity, that is, the shortage of the outstanding orders in the product group is smaller than the surplus of the outstanding orders, the electronic device performs the balancing process on the products to be allocated in the group at the level of the product group, and at this time, the balancing process is performed to replace the shortage of products to be allocated with the surplus products to be allocated.
And step 306, obtaining a third product group according to the updated fourth product set, the updated fifth product set and the sixth product set.
And the sixth product set comprises products to be distributed corresponding to the parameter with the value of zero in the first parameter.
Here, after the electronic device performs equalization processing on the products to be distributed in the first product group, a third product group is obtained according to the updated fourth product set, the updated fifth product set and the sixth product set.
And 307, distributing the products to be distributed in the third product group to a first sub-stock corresponding to the first order, and taking the updated first stock as a second stock.
Here, after obtaining the third product group, the electronic device allocates the products to be allocated in the third product group to the first sub-inventory corresponding to the first order, and obtains the updated first inventory as the second inventory.
And 308, forming a fourth product group by at least two products to be distributed with the same function in the second inventory.
Here, the electronic device is capable of grouping at least two products to be dispensed, such as goods or parts of goods, having the same functionality in the second inventory into a fourth product group, after which all product dispensing decisions and optimization steps will be implemented based on the fourth product group.
Step 309, a second order for each product to be dispensed within the fourth product group is obtained.
Wherein the second order includes a second demand quantity for each product to be dispensed within the fourth product group. Here, the second demand amount may be a predicted future demand amount.
Here, the second order may be an order generated by the electronic device to be associated with a required quantity of the product to be dispensed by monitoring, at a fixed frequency, the quantity of the product in stock at each level, the quantity of the product in stock at a local location, and the quantity of the product in transit. In the embodiment of the present invention, the first order and the second order may be generated in the same manner. For example, the electronic device may set the fixed frequency to 24 hours, such that the electronic device obtains the number of products in stock, and the number of products in transit at each level every 24 hours, and then generates a second order. Of course, the fixed frequency is not specifically limited in the embodiment of the present invention.
Step 310, calculating a value obtained by subtracting a second required quantity corresponding to each product to be distributed in the fourth product group from the quantity of each product to be distributed in the fourth product group, so as to obtain a second parameter.
Here, the electronic device may calculate a shortage of each product to be dispensed and a surplus of each product to be dispensed based on the quantity of each product to be dispensed in the fourth product group and the second required quantity for each product to be dispensed in the fourth product group in the second order after grouping at least two products to be dispensed having the same function in the second stock into the fourth product group. The shortage of each product to be dispensed indicates that the quantity of that product to be dispensed is less than the required quantity of that product to be dispensed. The surplus of each type of products to be distributed indicates that the quantity of the type of products to be distributed is larger than the required quantity of the type of products to be distributed.
In the embodiment of the invention, the surplus of the type of products to be distributed is represented when the obtained parameter is greater than zero by subtracting the value of the first demand quantity corresponding to each product to be distributed in the fourth product group from the quantity of each product to be distributed in the fourth product group; subtracting the value of the first demand quantity corresponding to each product to be distributed in the fourth product group from the quantity of each product to be distributed in the fourth product group, and representing that the type of product to be distributed just meets the order requirement if the obtained parameter is equal to zero; and subtracting the value of the first demand quantity corresponding to each product to be distributed in the fourth product group from the quantity of each product to be distributed in the fourth product group, and if the obtained parameter is less than zero, representing that the type of product to be distributed is in shortage.
And 311, calculating the absolute value of the sum of the parameters with the negative numerical values in the second parameters to obtain a third quantity, and calculating the sum of the parameters with the positive numerical values in the second parameters to obtain a fourth quantity.
In an embodiment of the present invention, the third quantity is equal to the sum of the shortages of the historical backlog orders for each product in the fourth product group; the fourth quantity is equal to the sum of the surplus quantities of each product historical backlog order within the fourth product group, the surplus quantities referring to the quantity of products remaining after the demand of the order is met.
And step 312, distributing the products to be distributed in the second inventory to a second sub-inventory corresponding to the second order according to the third quantity and the fourth quantity.
Here, the second sub-inventory represents a local inventory, i.e., a sales terminal receiving a customer.
In this embodiment of the present invention, in step 312, according to the third quantity and the fourth quantity, the to-be-distributed products in the second inventory are distributed to the second sub-inventory corresponding to the second order, which may be implemented by the following steps:
d1, if the third quantity is larger than the fourth quantity, selecting a fourth quantity of products to be distributed from the seventh product set and distributing the fourth quantity of products to the eighth product set to obtain an updated seventh product set and an updated eighth product set.
The seventh product set comprises products to be distributed corresponding to the parameter with the positive numerical value in the second parameter, and the eighth product set comprises products to be distributed corresponding to the parameter with the negative numerical value in the second parameter.
Here, when the electronic device determines that the third quantity is greater than the fourth quantity, the electronic device determines that a shortage of outstanding orders within the product group in the second inventory is less than a surplus of outstanding orders, but a shortage of future demand and safety inventory is greater than a surplus of future demand and safety inventory. At the moment, the electronic equipment rebalances the goods or accessories in the group at the level of the product group, and takes the sum of the customer satisfaction degrees of each kind of goods in the group as an optimization target; and then, the next step is to carry out separate decision optimization on each kind of goods or accessories in the group according to the rebalancing result, and the sum of the customer satisfaction degrees corresponding to the second sub-stocks is taken as an optimization target.
In the embodiment of the present invention, if the third number is greater than the fourth number in D1, selecting a fourth number of products to be dispensed from the seventh product set and dispensing the fourth number of products to the eighth product set, the method may include the following steps:
and step one, if the third quantity is larger than the fourth quantity, selecting a fourth quantity of products to be distributed from a seventh product set.
Here, the fourth quantity of products to be dispensed selected by the electronic device from the seventh product set is used to replace the products to be dispensed that are in short supply in the eighth product set.
And secondly, acquiring a fourth target quantity of each product to be distributed in a fourth product group associated with the third target satisfaction degree.
Wherein the third target satisfaction characterizes a maximum of a sum of user satisfaction with each quantity of products to be dispensed within the fourth product group.
And thirdly, distributing the fourth quantity of products to be distributed into an eighth product set according to the fourth target quantity of each product to be distributed in the fourth product group.
Here, after determining the fourth target quantity of each product to be dispensed in the fourth product group, the electronic device allocates the fourth quantity of products to be dispensed in the eighth product set according to the fourth target quantity of each product to be dispensed in the fourth product group, so as to optimize product allocation at the level of the product group and meet the actual demand of the user.
D2, obtaining a fifth product group according to the updated seventh product set, the updated eighth product set and the ninth product set.
And the ninth product set comprises products to be distributed corresponding to the parameter with the value of zero in the second parameters.
And D3, adjusting a third target quantity corresponding to each second sub-inventory for each product to be distributed in the fifth product group.
D4, allocating each product to be allocated within the fifth product group to each of the second sub-inventories according to the third target quantity.
D5, if the third quantity is smaller than the fourth quantity, selecting a third quantity of products to be distributed from the fifth product set and distributing the products to the sixth product set to obtain an updated fifth product set and an updated sixth product set.
The fifth product set comprises products to be distributed corresponding to the parameter with the positive numerical value in the second parameter, and the sixth product set comprises products to be distributed corresponding to the parameter with the negative numerical value in the second parameter.
Here, the electronic device determines that the third quantity is less than the fourth quantity, indicating that a shortage of outstanding orders within the group of products in the first inventory is less than a surplus of outstanding orders, and after completing delivery of the first order, updates to the second inventory, and determines from the second inventory and the second order that a future demand and a shortage of safety inventory is less than a surplus of future demand and safety inventory, i.e., the second inventory is sufficient to satisfy all of the outstanding and future demands and safety inventory. Then, when the electronic device determines that the third quantity is less than the fourth quantity, the second inventory is rebalanced within the group and a distribution decision is made for each item or part that is balanced.
And D6, distributing the products to be distributed in the fifth product group to a second sub-stock corresponding to the second order.
Here, the electronic device allocates the products to be allocated in the fifth product group to the second sub-inventory corresponding to the second order, so that all the products to be allocated are allocated to the local inventory points which need the products most, and at this time, the global inventory can meet not only the current demand, but also the future demand and the safety inventory.
It should be noted that, for the explanation of the steps in this embodiment and the same steps in the above embodiments, reference may be made to the description in the above embodiments, and details are not described here.
Based on the foregoing embodiments, an embodiment of the present invention provides an electronic device, which may be applied to a product distribution method provided in an embodiment corresponding to fig. 1 to 3, and as shown in fig. 4, the electronic device 4 includes: a processor 41, a memory 42, and a communication bus 43, wherein:
the communication bus 43 is used to realize a communication connection between the processor 41 and the memory 42.
Processor 41 is configured to execute the product allocation program stored in memory 42 to implement the steps of:
combining at least two products to be distributed with the same function in a first stock into a first product group; wherein the first inventory is used to provide a product to be dispensed;
obtaining a first order for each product to be dispensed in a first product group; wherein the first order comprises a first demand quantity for each product to be dispensed within the first product group;
calculating the value of subtracting a first demand quantity corresponding to each product to be distributed in the first product group from the quantity of each product to be distributed in the first product group to obtain a first parameter;
calculating the absolute value of the sum of the parameters with the negative numerical values in the first parameters to obtain a first quantity, and calculating the sum of the parameters with the positive numerical values in the first parameters to obtain a second quantity;
and distributing the products to be distributed in the first stock to a first sub-stock corresponding to the first order according to the first quantity and the second quantity.
In other embodiments of the present invention, processor 41 is configured to execute memory 42 to group at least two products to be dispensed having the same function in the first inventory into a first product group to implement the following steps:
selecting any product from the products to be dispensed in the first inventory as a first product;
acquiring a product function of a first product;
selecting a product to be distributed with product functions except for the first product from the first stock to obtain a second product; wherein the second product and the first product can be mutually replaced;
the first product and the second product are grouped into a first product group.
In other embodiments of the present invention, the processor 41 is configured to execute the following steps to allocate the product to be allocated in the first inventory to the first sub-inventory corresponding to the first order according to the first quantity and the second quantity, where the first sub-inventory in the memory 42 includes at least two of the following components:
if the first quantity is larger than the second quantity, selecting a second quantity of products to be distributed from the first product set and distributing the products to the second product set to obtain an updated first product set and an updated second product set; the first product set comprises products to be distributed corresponding to the parameter with the positive numerical value in the first parameter, and the second product set comprises products to be distributed corresponding to the parameter with the negative numerical value in the first parameter;
obtaining a second product group according to the updated first product set, the updated second product set and the third product set; the third product set comprises products to be distributed corresponding to the parameters with the numerical values of zero in the first parameters;
adjusting a first target quantity of each product to be distributed in the second product group corresponding to each first sub-stock;
each product to be dispensed within the second product group is assigned to each of the first sub-inventories according to the first target quantity.
In other embodiments of the present invention, the processor 41 is configured to select a second number of products to be distributed from the first product set and distribute the products to the second product set if the first number is greater than the second number in the memory 42, so as to implement the following steps:
if the first quantity is greater than the second quantity, selecting a second quantity of products to be distributed from the first product set;
obtaining a second target quantity of each product to be dispensed in the first product group associated with the first target satisfaction; wherein the first target satisfaction characterizes a maximum of a sum of user satisfaction with a quantity of each product to be dispensed within the first product group;
a second quantity of the product to be dispensed is dispensed into a second product set based on a second target quantity for each of the products to be dispensed within the first product group.
In other embodiments of the present invention, the processor 41 is configured to execute the following steps to select a second number of products to be distributed from the first product set and distribute the second number of products to the second product set if the first number is greater than the second number in the memory 42:
if the first quantity is larger than the second quantity, selecting a second quantity of products to be distributed from the first product set;
determining a first product to be dispensed from a second number of products to be dispensed;
determining a second product to be dispensed from the second set of products;
distributing the first product to be distributed into a second product set and setting the first product to be distributed as a second product to be distributed; and the difference value between the price of the first product to be distributed and the price of the second product to be distributed is smaller than a preset threshold value.
In other embodiments of the present invention, processor 41 is configured to execute a product allocation program in memory 42 to perform the steps of:
acquiring a first target quantity corresponding to each product to be distributed and each first sub-stock in a second product group associated with a second target satisfaction degree; wherein the second target satisfaction characterizes a maximum of a sum of user satisfaction with a quantity of products corresponding to each of the first sub-inventories and each of the products to be dispensed within the second product group.
In other embodiments of the present invention, processor 41 is configured to execute the following steps to allocate the products in the first inventory to the first sub-inventory corresponding to the first order according to the first quantity and the second quantity in memory 42:
if the first quantity is smaller than the second quantity, selecting a first quantity of products to be distributed from the fourth product set and distributing the products to the fifth product set to obtain an updated fourth product set and an updated fifth product set; the fourth product set comprises products to be distributed corresponding to the parameter with the positive numerical value in the first parameter, and the fifth product set comprises products to be distributed corresponding to the parameter with the negative numerical value in the first parameter;
obtaining a third product group according to the updated fourth product set, the updated fifth product set and the sixth product set; the sixth product set comprises products to be distributed corresponding to the parameter with the value of zero in the first parameter;
distributing the products to be distributed in the third product group to a first sub-stock corresponding to the first order, and taking the updated first stock as a second stock;
forming a fourth product group by at least two products to be distributed with the same function in the second stock;
obtaining a second order for each product to be dispensed in a fourth product group; wherein the second order comprises a second demand quantity for each product to be dispensed within the fourth product group;
calculating the value of subtracting a second required quantity corresponding to each product to be distributed in the fourth product group from the quantity of each product to be distributed in the fourth product group to obtain a second parameter;
calculating the absolute value of the parameter sum with the value being a negative number in the second parameters to obtain a third quantity, and calculating the sum of the parameter sum with the value being a positive number in the second parameters to obtain a fourth quantity;
and distributing the products to be distributed in the second inventory to a second sub-inventory corresponding to the second order according to the third quantity and the fourth quantity.
In other embodiments of the present invention, the processor 41 is configured to execute that the second sub-inventory in the storage 42 includes at least two, and allocate the products to be allocated in the second inventory to the second sub-inventory corresponding to the second order according to the third quantity and the fourth quantity, so as to implement the following steps:
if the third quantity is larger than the fourth quantity, selecting a fourth quantity of products to be distributed from the seventh product set and distributing the fourth quantity of products to the eighth product set to obtain an updated seventh product set and an updated eighth product set; the seventh product set comprises products to be distributed corresponding to the parameter with the positive numerical value in the second parameter, and the eighth product set comprises products to be distributed corresponding to the parameter with the negative numerical value in the second parameter;
obtaining a fifth product group according to the updated seventh product set, the updated eighth product set and the ninth product set; the ninth product set comprises products to be distributed corresponding to the parameter with the value of zero in the second parameters;
adjusting a third target quantity of each product to be distributed in the fifth product group corresponding to each second sub-stock;
allocating each product to be allocated within the fifth product group to each second sub-inventory according to a third target quantity;
if the third quantity is smaller than the fourth quantity, selecting a third quantity of products to be distributed from the fifth product set and distributing the products to the sixth product set to obtain an updated fifth product set and an updated sixth product set; the fifth product set comprises products to be distributed corresponding to the parameter with the positive numerical value in the second parameter, and the sixth product set comprises products to be distributed corresponding to the parameter with the negative numerical value in the second parameter;
and distributing the products to be distributed in the fifth product group to a second sub-stock corresponding to the second order.
In other embodiments of the present invention, the processor 41 is configured to select a fourth number of products to be distributed from the seventh product set and distribute the fourth number of products to the eighth product set if the third number is greater than the fourth number in the memory 42, so as to implement the following steps:
if the third quantity is greater than the fourth quantity, selecting a fourth quantity of products to be distributed from the seventh product set;
obtaining a fourth target quantity of each product to be distributed in a fourth product group associated with the third target satisfaction; wherein the third target satisfaction characterizes a maximum of a sum of user satisfaction with a quantity of each product to be dispensed within the fourth product group;
and distributing the fourth quantity of products to be distributed into the eighth product set according to the fourth target quantity of each product to be distributed in the fourth product group.
The electronic equipment provided by the embodiment of the invention firstly groups the products to be distributed in the global inventory, the products to be distributed in the group can be mutually replaced, then at the level of the product group, calculating the shortage of the products to be distributed in the group and the surplus of the products to be distributed in the group according to the quantity of each product to be distributed and the quantity required in the order, and based on the relationship between the shortage of product to be dispensed in the group and the surplus of product to be dispensed in the group, the intelligent distribution of products to be distributed in global inventory is realized, so that the problem that the electronic equipment in the related art can only distribute the products to local inventory points according to the products reported by users and cannot distribute the products in an artificial intelligent mode is solved, the intelligent distribution of equivalent products in a product supply chain is realized, the intelligent degree of product distribution is improved, and the intelligence of the electronic equipment is improved.
It should be noted that, a specific implementation process of the steps executed by the processor in this embodiment may refer to an implementation process in the product allocation method provided in the embodiments corresponding to fig. 1 to 3, and details are not described here.
Based on the foregoing embodiments, embodiments of the present invention provide a computer-readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps of:
combining at least two products to be distributed with the same function in a first stock into a first product group; wherein the first inventory is used to provide a product to be dispensed;
obtaining a first order for each product to be dispensed in a first product group; wherein the first order comprises a first demand quantity for each product to be dispensed within the first product group;
calculating the value of subtracting a first demand quantity corresponding to each product to be distributed in the first product group from the quantity of each product to be distributed in the first product group to obtain a first parameter;
calculating the absolute value of the sum of the parameters with the negative numerical values in the first parameters to obtain a first quantity, and calculating the sum of the parameters with the positive numerical values in the first parameters to obtain a second quantity;
and distributing the products to be distributed in the first stock to a first sub-stock corresponding to the first order according to the first quantity and the second quantity.
It should be noted that, a specific implementation process of the steps executed by the processor in this embodiment may refer to an implementation process in the product allocation method provided in the embodiments corresponding to fig. 1 to 3, and details are not described here.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (8)

1. A method of product dispensing, the method comprising:
combining at least two products to be distributed with the same function in a first stock into a first product group; wherein the first inventory is used to provide products to be dispensed;
obtaining a first order for each product to be dispensed within the first product group; wherein the first order comprises a first demand amount for said each product to be dispensed within the first product group;
calculating a value obtained by subtracting a first demand quantity corresponding to each product to be distributed in the first product group from the quantity of each product to be distributed in the first product group to obtain a first parameter;
calculating the absolute value of the sum of the parameters with the negative numerical values in the first parameters to obtain a first quantity, and calculating the sum of the parameters with the positive numerical values in the first parameters to obtain a second quantity;
according to the first quantity and the second quantity, distributing the products to be distributed in the first stock to a first sub-stock corresponding to the first order;
wherein the first sub-inventory comprises at least two, and the allocating the products to be allocated in the first inventory to the first sub-inventory corresponding to the first order according to the first quantity and the second quantity comprises:
if the first quantity is larger than the second quantity, selecting the second quantity of products to be distributed from the first product set and distributing the products to the second product set to obtain an updated first product set and an updated second product set; the first product set comprises products to be distributed corresponding to the parameter with the positive numerical value in the first parameter, and the second product set comprises products to be distributed corresponding to the parameter with the negative numerical value in the first parameter; obtaining a second product group according to the updated first product set, the updated second product set and the third product set; the third product set comprises products to be distributed corresponding to the parameter with the value of zero in the first parameter; adjusting a first target quantity of each product to be distributed in the second product group corresponding to each first sub-stock; allocating each product to be allocated within the second product group to each of the first sub-inventories according to the first target quantity;
alternatively, the first and second electrodes may be,
if the first quantity is smaller than the second quantity, selecting the first quantity of products to be distributed from a fourth product set and distributing the products to a fifth product set to obtain an updated fourth product set and an updated fifth product set; the fourth product set comprises products to be distributed corresponding to the parameter with the positive numerical value in the first parameter, and the fifth product set comprises products to be distributed corresponding to the parameter with the negative numerical value in the first parameter; obtaining a third product group according to the updated fourth product set, the updated fifth product set and the sixth product set; the sixth product set comprises products to be distributed corresponding to the parameter with the value of zero in the first parameter; distributing the products to be distributed in the third product group to a first sub-stock corresponding to the first order, and taking the updated first stock as a second stock; combining at least two products to be distributed with the same function in the second inventory into a fourth product group; obtaining a second order for each product to be dispensed in a fourth product group; wherein the second order comprises a second demand quantity for each product to be dispensed within the fourth product group; calculating a value obtained by subtracting a second required quantity corresponding to each product to be distributed in the fourth product group from the quantity of each product to be distributed in the fourth product group to obtain a second parameter; calculating the absolute value of the sum of the parameters with the numerical values being negative numbers in the second parameters to obtain a third number, and calculating the sum of the parameters with the numerical values being positive numbers in the second parameters to obtain a fourth number; and distributing the products to be distributed in the second inventory to a second sub-inventory corresponding to the second order according to the third quantity and the fourth quantity.
2. The method of claim 1, wherein said grouping at least two products to be dispensed from a first stock having the same functionality into a first product group comprises:
selecting any product from the products to be dispensed in the first inventory as a first product;
acquiring a product function of the first product;
selecting a product to be distributed with the product function except the first product from the first stock to obtain a second product; wherein the second product and the first product can be substituted for each other;
grouping the first product and the second product into the first product group.
3. The method of claim 1, wherein selecting the second number of products to be dispensed from the first set of products and dispensing into the second set of products if the first number is greater than the second number comprises:
if the first quantity is greater than the second quantity, selecting the second quantity of products to be distributed from the first product set;
obtaining a second target quantity of each product to be dispensed within the first product group associated with a first target satisfaction; wherein the first target satisfaction characterizes a maximum of a sum of user satisfaction with a quantity of each product to be dispensed within the first product group;
and distributing the second quantity of the product to be distributed into the second product set according to the second target quantity of each product to be distributed in the first product group.
4. The method of claim 1, wherein selecting the second number of products to be dispensed from the first set of products and dispensing into the second set of products if the first number is greater than the second number comprises:
if the first quantity is greater than the second quantity, selecting the second quantity of products to be distributed from the first product set;
determining a first product to be dispensed from the second number of products to be dispensed;
determining a second product to be dispensed from the second set of products;
distributing the first product to be distributed into a second product set and setting the first product to be distributed as the second product to be distributed; wherein the difference between the price of the first product to be dispensed and the price of the second product to be dispensed is less than a preset threshold.
5. The method of claim 1, wherein prior to adjusting the first target quantity for each product to be dispensed within the second product group corresponding to each first sub-inventory, the method further comprises:
acquiring a first target quantity corresponding to each product to be distributed in the second product group and each first sub-stock, wherein the first target quantity is associated with a second target satisfaction degree; wherein the second target satisfaction characterizes a maximum of a sum of user satisfaction with a quantity of products corresponding to each first sub-inventory and each product to be dispensed within the second product group.
6. The method of claim 1, wherein the second sub-inventory comprises at least two, and the allocating the products to be allocated in the second inventory to the second sub-inventory corresponding to the second order according to the third quantity and the fourth quantity comprises:
if the third number is larger than the fourth number, selecting the fourth number of products to be distributed from a seventh product set and distributing the products to an eighth product set to obtain an updated seventh product set and an updated eighth product set; the seventh product set comprises products to be distributed corresponding to the parameter with the positive numerical value in the second parameter, and the eighth product set comprises products to be distributed corresponding to the parameter with the negative numerical value in the second parameter;
obtaining a fifth product group according to the updated seventh product set, the updated eighth product set and the ninth product set; the ninth product set comprises products to be distributed corresponding to the parameter with the value of zero in the second parameters;
adjusting a third target quantity corresponding to each second sub-inventory and each product to be distributed in the fifth product group;
allocating each product to be allocated within the fifth product group to each of the second sub-inventories according to the third target quantity;
if the third quantity is smaller than the fourth quantity, selecting a third quantity of products to be distributed from a fifth product set and distributing the products to a sixth product set to obtain an updated fifth product set and an updated sixth product set; the fifth product set comprises products to be distributed corresponding to the parameter with the positive numerical value in the second parameter, and the sixth product set comprises products to be distributed corresponding to the parameter with the negative numerical value in the second parameter;
and distributing the products to be distributed in the fifth product group to a second sub-stock corresponding to the second order.
7. The method of claim 1, wherein selecting the fourth number of products to be dispensed from a seventh product group and dispensing into an eighth product group if the third number is greater than the fourth number comprises:
if the third quantity is greater than the fourth quantity, selecting the fourth quantity of products to be distributed from a seventh product set;
obtaining a fourth target quantity of each product to be dispensed in the fourth product group associated with a third target satisfaction; wherein the third target satisfaction characterizes a maximum of a sum of user satisfaction with a quantity of each product to be dispensed within the fourth product group;
and distributing the fourth quantity of products to be distributed into the eighth product set according to the fourth target quantity of each product to be distributed in the fourth product group.
8. An electronic device, characterized in that the electronic device comprises: a processor, a memory, and a communication bus;
the communication bus is used for realizing communication connection between the processor and the memory;
the processor is configured to execute a product allocation program stored in the memory to perform the steps of:
combining at least two products to be distributed with the same function in a first stock into a first product group; wherein the first inventory is used to provide a product to be dispensed;
obtaining a first order for each product to be dispensed within the first product group; wherein the first order comprises a first demand quantity for said each product to be dispensed within the first product group;
calculating a value obtained by subtracting a first demand quantity corresponding to each product to be distributed in the first product group from the quantity of each product to be distributed in the first product group to obtain a first parameter;
calculating the absolute value of the sum of the parameters with the negative numerical values in the first parameters to obtain a first quantity, and calculating the sum of the parameters with the positive numerical values in the first parameters to obtain a second quantity;
distributing the products to be distributed in the first inventory to a first sub-inventory corresponding to the first order according to the first quantity and the second quantity;
wherein the first sub-inventory comprises at least two, and the allocating the products to be allocated in the first inventory to the first sub-inventory corresponding to the first order according to the first quantity and the second quantity comprises:
if the first quantity is larger than the second quantity, selecting the second quantity of products to be distributed from the first product set and distributing the products to the second product set to obtain an updated first product set and an updated second product set; the first product set comprises products to be distributed corresponding to the parameter with the positive numerical value in the first parameter, and the second product set comprises products to be distributed corresponding to the parameter with the negative numerical value in the first parameter; obtaining a second product group according to the updated first product set, the updated second product set and the third product set; the third product set comprises products to be distributed corresponding to the parameter with the value of zero in the first parameter; adjusting a first target quantity of each product to be distributed in the second product group corresponding to each first sub-stock; allocating each product to be allocated within the second product group to each of the first sub-inventories according to the first target quantity;
alternatively, the first and second electrodes may be,
if the first quantity is smaller than the second quantity, selecting the first quantity of products to be distributed from a fourth product set and distributing the products to a fifth product set to obtain an updated fourth product set and an updated fifth product set; the fourth product set comprises products to be distributed corresponding to the parameter with the positive numerical value in the first parameter, and the fifth product set comprises products to be distributed corresponding to the parameter with the negative numerical value in the first parameter; obtaining a third product group according to the updated fourth product set, the updated fifth product set and the sixth product set; the sixth product set comprises products to be distributed corresponding to the parameter with the value of zero in the first parameter; distributing the products to be distributed in the third product group to a first sub-stock corresponding to the first order, and taking the updated first stock as a second stock; combining at least two products to be distributed with the same function in the second inventory into a fourth product group; obtaining a second order for each product to be distributed in a fourth product group; wherein the second order comprises a second demand quantity for each product to be dispensed within the fourth product group; calculating a value obtained by subtracting a second required quantity corresponding to each product to be distributed in the fourth product group from the quantity of each product to be distributed in the fourth product group to obtain a second parameter; calculating the absolute value of the sum of the parameters with the numerical values being negative numbers in the second parameters to obtain a third number, and calculating the sum of the parameters with the numerical values being positive numbers in the second parameters to obtain a fourth number; and distributing the products to be distributed in the second inventory to a second sub-inventory corresponding to the second order according to the third quantity and the fourth quantity.
CN201810975339.1A 2018-08-24 2018-08-24 Product distribution method, electronic equipment and computer storage medium Active CN108876262B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810975339.1A CN108876262B (en) 2018-08-24 2018-08-24 Product distribution method, electronic equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810975339.1A CN108876262B (en) 2018-08-24 2018-08-24 Product distribution method, electronic equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN108876262A CN108876262A (en) 2018-11-23
CN108876262B true CN108876262B (en) 2022-09-23

Family

ID=64321907

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810975339.1A Active CN108876262B (en) 2018-08-24 2018-08-24 Product distribution method, electronic equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN108876262B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11250380B2 (en) 2020-07-17 2022-02-15 Coupang Corp. Computer-implemented systems and methods for optimization of a product inventory by intelligent distribution of inbound products using product assignment validation
CN117436795B (en) * 2023-12-21 2024-03-08 武汉佰思杰科技有限公司 Warehouse material monitoring method and system for hierarchical management

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1402170A (en) * 2001-08-22 2003-03-12 威盛电子股份有限公司 Storage retaining method
CN1427974A (en) * 2000-03-07 2003-07-02 英维尼特体系股份有限公司 Inventory control system and methods
CN103426072A (en) * 2013-07-16 2013-12-04 无限极(中国)有限公司 Order processing system of high concurrency competitive inventory and processing method thereof
CN107748923A (en) * 2016-08-29 2018-03-02 北京三快在线科技有限公司 Order processing method, apparatus and server

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05250394A (en) * 1992-03-09 1993-09-28 Hitachi Ltd Inventory controller for combined article
US20090043638A1 (en) * 2007-08-06 2009-02-12 Michael Wilking Integration of reorder-point based planning and time-period planning
KR101640283B1 (en) * 2010-03-31 2016-07-15 라쿠텐 인코포레이티드 Server apparatus, product grouping method, recording medium with computer-readable product grouping program recorded thereon and product grouping system
US20120150700A1 (en) * 2010-12-13 2012-06-14 Ziauddin Babar Method and system for distributing inventory of a replaced or discontinued distribution center product

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1427974A (en) * 2000-03-07 2003-07-02 英维尼特体系股份有限公司 Inventory control system and methods
CN1402170A (en) * 2001-08-22 2003-03-12 威盛电子股份有限公司 Storage retaining method
CN103426072A (en) * 2013-07-16 2013-12-04 无限极(中国)有限公司 Order processing system of high concurrency competitive inventory and processing method thereof
CN107748923A (en) * 2016-08-29 2018-03-02 北京三快在线科技有限公司 Order processing method, apparatus and server

Also Published As

Publication number Publication date
CN108876262A (en) 2018-11-23

Similar Documents

Publication Publication Date Title
CN106991543B (en) Allocation system and allocation method
EP1428159A1 (en) Resource management method and apparatus
JP6838792B2 (en) Control device, control system, control device operation method and program
CN108876262B (en) Product distribution method, electronic equipment and computer storage medium
KR20160132852A (en) Computing long-term schedules for data transfers over a wide area network
US20130290063A1 (en) Optimizing Allocations In A Workforce Allocation Plan
CN106991544B (en) Allocation system and allocation method
CN109976901A (en) A kind of resource regulating method, device, server and readable storage medium storing program for executing
US8341044B1 (en) System, method, and computer program product for rating and re-rating events
CN110490380A (en) The instant worksheet processing method and device of the minimum transport power of automation dynamic
CN110288276B (en) Method and device for generating information
CN110297713A (en) Configuration management system and method of cloud host
US9794137B2 (en) Method and apparatus for assigning network resource
CN105335376B (en) A kind of method for stream processing, apparatus and system
Chen et al. A partial characterization of the optimal ordering/rationing policy for a periodic review system with two demand classes and backordering
CN107395502B (en) Method and device for determining routing strategy
CN108540404A (en) A kind of method and apparatus of dynamic adjustment flow table
CN115936576A (en) Distribution balancing method and device for warehouse
CN108122326B (en) Data processing method, device and system
Çavdar et al. Capacity allocation in a service system with preferred service completion times
Grabis et al. Context-aware customizable routing solution for fleet management
KR20210157675A (en) Automatic inventory management system
KR20210142996A (en) Cosmetics, automated inventory management system.
CN101258500A (en) Scheduling apparatus, scheduling method and recording medium
CN115545402B (en) Resource adaptation method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant