Material distribution method and device, electronic equipment and storage medium
By generating a material substitution connectivity graph and optimizing the allocation order, the problem of high allocation difficulty caused by untimely material replenishment was solved, and the efficiency of material allocation was improved.
Patent Information
- Application Number
- CN202310501254.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-05
- Publication Date
- 2024-11-05
AI Technical Summary
Untimely replenishment of materials between factories, suppliers, and warehouses leads to difficulties in allocation and low work efficiency.
By generating a material substitution connectivity graph, the allocation order and quantity of materials are determined, and the material allocation is optimized using a preset replenishment quantity determination function and constraints.
It reduced the difficulty of material allocation, decreased calculation time, and improved work efficiency.
Smart Images

Figure CN118898451A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of big data processing, and in particular to a material distribution method, device, electronic device and storage medium. Background Art
[0002] Factories, suppliers and warehouses transport materials through the supply chain and replenish materials to meet production and sales needs. If materials cannot be replenished in time, it is easy to cause out-of-stock and affect work efficiency. However, the number and types of materials are large, and it takes a long time, which makes distribution difficult and work efficiency low. Summary of the invention
[0003] In order to overcome the problems existing in the related art, the present disclosure provides a material distribution method, device, electronic device and storage medium, which are used to improve the working efficiency of material distribution.
[0004] According to a first aspect of an embodiment of the present disclosure, a method for distributing materials is provided, the method comprising:
[0005] Get the associated materials corresponding to the target material;
[0006] Acquire first material inventory data of the target material and second material inventory data of the associated material;
[0007] Generate a material substitution connectivity graph according to the target material and the associated material; the material substitution connectivity graph includes a first node corresponding to the target material and a second node corresponding to the associated material, and a directional relationship between the first node and the second node; the directional relationship is used to indicate the substitution relationship between the target material and the associated material;
[0008] Determining the allocation order of the target material and the associated materials according to the material substitution connectivity diagram;
[0009] The allocation quantities of the target material and the associated material are determined respectively according to the allocation sequence, the first material inventory data, and the second material inventory data.
[0010] Optionally, determining the allocation order of the target material and the associated materials according to the material substitution connectivity graph includes:
[0011] According to the directional relationship in the material substitution connectivity graph, a designated material is determined from the associated materials, and an allocation order of the target material and the designated material is determined;
[0012] The designated material includes a first designated material and / or a second designated material, the first designated material is an associated material that can replace the target material, and the second designated material is an associated material that can replace the target material.
[0013] Optionally, determining a designated material from the associated materials according to the material substitution connectivity graph includes:
[0014] The associated material corresponding to the first designated node in the material substitution connectivity graph is used as the first designated material; the first designated node is a node in the second node, the pointing relationship of the line connecting the first node with the first node is a unidirectional pointing relationship and points to the first node; and / or,
[0015] The associated material corresponding to the second designated node in the material substitution connectivity graph is used as the second designated material; the second designated node is a node in the second node, and the directional relationship between the line connecting the first node and the second node is a bidirectional directional relationship.
[0016] Optionally, the designated material includes a first designated material; and determining the allocation order of the target material and the designated material includes:
[0017] The first allocation sequence is used as the allocation sequence; the first allocation sequence indicates that the allocation sequence of the first designated material is prior to the allocation sequence of the target material.
[0018] Optionally, the designated material includes a second designated material; and determining the allocation order of the target material and the designated material includes:
[0019] The second allocation sequence is used as the allocation sequence; the second allocation sequence indicates that the allocation sequence of the second designated material is prior to the allocation sequence of the target material; or, the allocation sequence of the target material is prior to the allocation sequence of the second designated material.
[0020] Optionally, the designated material includes a first designated material and a second designated material, and determining the allocation order of the target material and the designated material includes:
[0021] The third allocation sequence is used as the allocation sequence; the third allocation sequence indicates that the allocation sequence of the first designated material precedes the allocation sequences of the second designated material and the target material.
[0022] Optionally, the determining, according to the allocation sequence, the first material inventory data, and the second material inventory data, respectively, the allocation quantities of the target material and the associated material comprises:
[0023] According to the first material inventory data and the second material inventory data, the allocation quantities of the target material and the associated material are determined respectively through a preset replenishment quantity determination function.
[0024] Optionally, the determining the allocation quantities of the target material and the associated material respectively by a preset replenishment quantity determination function comprises:
[0025] Based on preset constraints, the allocation quantities of the target material and the associated material are determined respectively through the preset replenishment quantity determination function.
[0026] Optionally, the preset constraint condition includes one or more of the following:
[0027] The allocated quantity is less than or equal to the preset total demand; the allocated quantity is a preset multiple of the preset minimum storage unit;
[0028] The allocated quantity is a preset multiple of the minimum storage unit;
[0029] The target material data is greater than or equal to a preset storage quantity; the target material data is obtained based on the second material inventory data; and,
[0030] The number of designated locations is less than or equal to the preset number of designated locations; the designated locations are locations for storing the target material and the associated materials.
[0031] Optionally, generating a material substitution connectivity graph according to the target material and the associated materials includes:
[0032] The material substitution connectivity graph is generated according to a preset material substitution relationship; the preset material substitution relationship includes a substitution relationship between the target material and the associated material.
[0033] According to a second aspect of an embodiment of the present disclosure, a material distribution device is provided, the device comprising:
[0034] A first acquisition module is configured to acquire associated materials corresponding to the target material;
[0035] A second acquisition module is configured to acquire first material inventory data of the target material and second material inventory data of the associated material;
[0036] A generating module is configured to generate a material substitution connectivity graph according to the target material and the associated material; the material substitution connectivity graph includes a first node corresponding to the target material and a second node corresponding to the associated material, and a directional relationship between the first node and the second node; the directional relationship is used to indicate the substitution relationship between the target material and the associated material;
[0037] A first determination module is configured to determine the allocation order of the target material and the associated materials according to the material substitution connectivity diagram;
[0038] The second determination module is configured to determine the allocation quantity of the target material and the associated material respectively according to the allocation sequence, the first material inventory data and the second material inventory data.
[0039] Optionally, the device further comprises:
[0040] The third determination module is configured to determine the designated material from the associated materials according to the directional relationship in the material substitution connectivity diagram, and determine the allocation order of the target material and the designated material; the designated material includes a first designated material and / or a second designated material, the first designated material is an associated material that can replace the target material, and the second designated material is an associated material that can replace the target material.
[0041] Optionally, the device further comprises:
[0042] The fourth determination module is configured to use the associated material corresponding to the first designated node in the material substitution connectivity graph as the first designated material; the first designated node is a node in the second node, the pointing relationship of the line connecting the first node with the first node is a unidirectional pointing relationship and points to the first node; and / or,
[0043] The associated material corresponding to the second designated node in the material substitution connectivity graph is used as the second designated material; the second designated node is a node in the second node, and the directional relationship between the line connecting the first node and the second node is a bidirectional directional relationship.
[0044] Optionally, the designated material includes a first designated material; and the device further includes:
[0045] The fourth determining module is configured to use a first allocation sequence as the allocation sequence; the first allocation sequence indicates that the allocation sequence of the first designated material is prior to the allocation sequence of the target material.
[0046] Optionally, the designated material includes a second designated material; and the device further includes:
[0047] The fifth determination module is configured to use a second allocation order as the allocation order; the second allocation order indicates that the allocation order of the second designated material precedes the allocation order of the target material; or, the allocation order of the target material precedes the allocation order of the second designated material.
[0048] Optionally, the designated material includes a first designated material and a second designated material; and the device further includes:
[0049] The sixth determining module is configured to use a third allocation sequence as the allocation sequence; the third allocation sequence indicates that the allocation sequence of the first designated material precedes the allocation sequences of the second designated material and the target material.
[0050] Optionally, the device further comprises:
[0051] The seventh determination module is configured to determine the allocation quantity of the target material and the associated material respectively according to the first material inventory data and the second material inventory data through a preset replenishment quantity determination function.
[0052] Optionally, the device further comprises:
[0053] The eighth determination module is configured to determine the allocation quantity of the target material and the associated material respectively based on the preset constraint conditions and through the preset replenishment quantity determination function.
[0054] Optionally, the preset constraints include one or more of the following: the allocated quantity is less than or equal to a preset total demand; the allocated quantity is a preset multiple of a preset minimum storage unit; the allocated quantity is a preset multiple of a minimum storage unit; the target material data is greater than or equal to a preset storage quantity; the target material data is obtained based on the second material inventory data; and, the number of designated locations is less than or equal to a preset number of designated locations; the designated location is a location for storing the target material and the associated materials.
[0055] Optionally, the device further comprises:
[0056] The first generating module is configured to generate the material substitution connectivity graph according to a preset material substitution relationship; the preset material substitution relationship includes a substitution relationship between the target material and the associated material.
[0057] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to implement the steps of the material distribution method provided in the first aspect of the present disclosure when executed.
[0058] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the material distribution method provided in the first aspect of the present disclosure are implemented.
[0059] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: determining the material allocation order through a material substitution connectivity diagram, reducing the allocation difficulty, and realizing the decomposition of the material allocation problem, thereby reducing the calculation time and improving the work efficiency.
[0060] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0062] Figure 1 The present invention is a flow chart of a material distribution method according to an exemplary embodiment.
[0063] Figure 2 It is a schematic diagram of a material substitution connectivity diagram according to an exemplary embodiment.
[0064] Figure 3 It is a structural block diagram of a material distribution device according to an exemplary embodiment.
[0065] Figure 4 The present invention is a structural block diagram of an electronic device according to an exemplary embodiment.
[0066] Figure 5 It is a structural block diagram of another electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0067] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0068] First, the application scenario of the present disclosure is introduced. The present disclosure is applied to the scenario of replenishing materials in the supply chain. The supply chain may include factories, suppliers or warehouses. The materials may include raw materials, auxiliary supplies, semi-finished products or finished products. In this scenario, the warehouse needs to replenish from other warehouses, factories or suppliers according to the actual inventory situation to meet the current production and sales needs. If the materials cannot be replenished in time, it is easy to cause out-of-stock and affect work efficiency. Due to the large number and categories of materials and the long time consumption, the distribution is difficult and the work efficiency is low.
[0069] In order to solve the above problems, the present disclosure provides a method, device, electronic device and storage medium for material allocation; by obtaining the associated materials corresponding to the target material; obtaining the first material inventory data of the target material and the second material inventory data of the associated material; generating a material substitution connectivity graph according to the target material and the associated material; the material substitution connectivity graph includes a first node corresponding to the target material and a second node corresponding to the associated material, and a directional relationship of the connection between the first node and the second node; the directional relationship is used to indicate the substitution relationship between the target material and the associated material; according to the material substitution connectivity graph, determining the allocation order of the target material and the associated material; according to the allocation order, the first material inventory data and the second material inventory data, respectively determining the allocation quantity of the target material and the associated material. According to the above technical solution, the allocation order of the materials is determined by the material substitution connectivity graph, which reduces the allocation difficulty, realizes the decomposition of the material allocation problem, thereby reducing the calculation time and improving the work efficiency.
[0070] Figure 1 is a flow chart of a material distribution method according to an exemplary embodiment. Figure 1 As shown, the method includes the following steps.
[0071] In step S101, the associated materials corresponding to the target material are obtained.
[0072] In step S102, the first material inventory data of the target material and the second material inventory data of the associated material are obtained.
[0073] Among them, the first material inventory data may include a first remaining quantity of the target material at the target designated location and a first in-transit quantity of the target material, and the first in-transit quantity is used to characterize the material quantity of the target material on the transportation path; the transportation path is the path for transportation to the target designated location; the second material inventory data includes a second remaining quantity of the associated material at the target designated location and a second in-transit quantity of the associated material, and the second in-transit quantity characterizes the material quantity of the alternative material on the transportation path; the target designated location may be the receiving location of the material, and may be one of a factory, a supplier or a warehouse.
[0074] In step S103, a material substitution connectivity graph is generated according to the target material and the associated material.
[0075] Among them, the material substitution connectivity diagram includes a first node corresponding to the target material and a second node corresponding to the associated material, and a directional relationship of the line between the first node and the second node; the directional relationship is used to indicate the substitution relationship between the target material and the associated material.
[0076] For example, a material substitution connectivity graph can be generated based on the target material and the associated material by a preset cluster determination algorithm. The preset cluster determination algorithm has been disclosed in the relevant technology and will not be repeated here. The pointing relationship can include a unidirectional pointing relationship and a bidirectional pointing relationship; the unidirectional pointing relationship or the bidirectional pointing relationship can include a pointing relationship between two materials, or a pointing relationship between multiple materials. It should be noted that the above-mentioned connection line can be the degree of the node, and the degree can represent the number of connections (edges) of the node.
[0077] In some embodiments, the material substitution connectivity diagram may be generated based on the target material and the associated material in the following manner: the material substitution connectivity diagram is generated based on a preset material substitution relationship; the preset material substitution relationship includes a substitution relationship between the target material and the associated material.
[0078] For example, when the preset material substitution relationship is obtained, the material substitution connectivity graph can be generated according to the preset material substitution relationship. The preset material substitution relationship can be a material substitution relationship table, which is used to characterize the substitution relationship between the target material and the associated materials. The material substitution connectivity graph can include clusters, and the clusters can include a first cluster, a second cluster, and a third cluster, and the first cluster, the second cluster, and the third cluster respectively characterize different substitution relationships between the target material and the associated materials.
[0079] For example, as shown in Table 1, it is a material substitution relationship table, which shows three types of clusters and the substitution relationship between the target material and the associated materials in each type of cluster.
[0080] Table 1:
[0081]
[0082] Figure 2 It is a schematic diagram of a material substitution connectivity diagram. In some embodiments, the material substitution connectivity diagram may be obtained according to the material substitution relationship table in Table 1. The material substitution connectivity diagram may include a first cluster, a second cluster, and a third cluster. The first cluster, the second cluster, and the third cluster respectively represent different substitution relationships between target materials and associated materials.
[0083] Taking the first type of cluster as an example, the first type of cluster includes nodes A, B, D, E, F and the pointing relationships between them. The above nodes A, B, D, E and F represent different materials. According to the nodes and pointing relationships in the first type of cluster, node A can be a substitute material for node B, node B can be a substitute material for node D, node D can be a substitute material for node F, and nodes D and F can be mutually substitutable materials.
[0084] Taking the second type of cluster as an example, the second type of cluster includes nodes H, I, J, K, L, M and the pointing relationships between them. The above nodes H, I, J, K, L and M represent different materials. According to the nodes and pointing relationships in the second type of cluster, nodes K and L can be substitute materials for node J, node J can be substitute materials for nodes I and H, and nodes J and M can be substitute materials for each other.
[0085] Taking the third type of cluster as an example, the third type of cluster includes node C. According to the nodes and the pointing relationship in the third type of cluster, it can be known that node C has no alternative material.
[0086] In this way, the above-mentioned material substitution relationship can be intuitively displayed through the material substitution connectivity diagram, so as to determine the material allocation order according to the directional relationship in the diagram.
[0087] In step S104, the allocation order of the target material and the associated material is determined according to the material substitution connectivity graph.
[0088] In some embodiments, according to the directional relationship in the material substitution connectivity diagram, a designated material is determined from the associated materials, and an allocation order of the target material and the designated material is determined; the designated material includes a first designated material and / or a second designated material, the first designated material is an associated material that can replace the target material, and the second designated material is an associated material that can replace the target material.
[0089] In other embodiments, determining the designated material from the associated materials according to the material substitution connectivity graph may include: using the associated material corresponding to the first designated node in the material substitution connectivity graph as the first designated material; the first designated node is a node in the second node, and the directional relationship with the line connecting the first node is a unidirectional directional relationship and points to the first node; and / or, using the associated material corresponding to the second designated node in the material substitution connectivity graph as the second designated material; the second designated node is a node in the second node, and the directional relationship with the line connecting the first node is a bidirectional directional relationship.
[0090] For example, the above Figure 2 Taking the first cluster in as an example, when the first node is node D, the first designated node is determined to be node B, and the pointing relationship between node B and node D is a one-way pointing relationship and points to the first node. When the first node is node D, the second designated node is determined to be node E, and the pointing relationship between node E and node D is a two-way pointing relationship. In this way, the pointing relationship between the designated material and the target material can be clearly specified, thereby improving the efficiency of determining the allocation order.
[0091] In other embodiments, the above determination of the allocation order of the target material and the associated material may be performed in the following manner:
[0092] Method 1: when the designated materials include the first designated material, the first allocation sequence is used as the allocation sequence; the first allocation sequence indicates that the allocation sequence of the first designated material is prior to the allocation sequence of the target material.
[0093] For example, the above Figure 2 Taking the first cluster in as an example, when the target material is the material corresponding to node D, and it is determined that the first designated material is the material corresponding to node B, the first allocation order can be to allocate the material corresponding to node B first, and then allocate the material corresponding to node D.
[0094] Method 2: When the designated material includes a second designated material, the second allocation order is used as the allocation order; the second allocation order indicates that the allocation order of the second designated material precedes the allocation order of the target material; or, the allocation order of the target material precedes the allocation order of the second designated material.
[0095] For example, the above Figure 2 Taking the first cluster in as an example, when the target material is the material corresponding to node D, and the first designated material is determined to be the material corresponding to node E, the second allocation order may be to first allocate the material corresponding to node E, and then allocate the material corresponding to node D; or, the second allocation order may be to first allocate the material corresponding to node D, and then allocate the material corresponding to node E. In the above case, there is a two-way correspondence between the target material and the second designated material, and the two materials can replace each other, so the allocation order can be indistinguishable.
[0096] Method three: when the designated material includes the first designated material and the second designated material, the third allocation sequence is used as the allocation sequence; the third allocation sequence indicates that the allocation sequence of the first designated material precedes the allocation sequence of the second designated material and the target material.
[0097] For example, the third allocation sequence may be to first allocate the first designated material, then allocate the target material, and then allocate the second designated material; or, the third allocation sequence may be to first allocate the first designated material, then allocate the second designated material, and then allocate the target material. Figure 2Taking the first cluster in as an example, when the target material is the material corresponding to node D, the first designated material is determined to be the material corresponding to node B, and the second designated material is the material corresponding to node E, the third allocation order can be to first allocate the material corresponding to node B, then allocate the material corresponding to node D, and then allocate the material corresponding to node E; or, the third allocation order can be to first allocate the material corresponding to node B, then allocate the material corresponding to node E, and then allocate the material corresponding to node D.
[0098] In this way, different allocation orders can be determined under different substitution relationships, thereby improving work efficiency.
[0099] It should be noted that when allocating materials, priority can be given to materials that have no alternative materials. For example, Figure 2 Node B, node K or node C, etc.; and, when the above conditions are met, priority can be given to allocating the remaining materials with less.
[0100] In step S105, the allocation quantities of the target material and the associated material are determined respectively according to the allocation sequence, the first material inventory data, and the second material inventory data.
[0101] In some embodiments, the above-mentioned determining the allocation quantity of the target material and the associated material respectively according to the allocation order, the first material inventory data and the second material inventory data may include: determining the allocation quantity of the target material and the associated material respectively according to the first material inventory data and the second material inventory data by a preset replenishment quantity determination function.
[0102] In other embodiments, the above-mentioned determining the allocated quantities of the target material and the associated material respectively through a preset replenishment quantity determination function includes: based on preset constraints, determining the allocated quantities of the target material and the associated material respectively through the preset replenishment quantity determination function.
[0103] In some embodiments, the preset constraints include one or more of the following: the allocated quantity is less than or equal to the preset total demand; the allocated quantity is a preset multiple of the preset minimum storage unit; the allocated quantity is a preset multiple of the minimum storage unit; the target material data is greater than or equal to the preset storage quantity; the target material data is obtained based on the second material inventory data; and, the number of designated locations is less than or equal to the preset number of designated locations; the designated location is a location for storing the target material and the associated material.
[0104] For example, the preset total demand refers to the total demand for materials at the target designated location; the target designated location may be a location that needs to be replenished, such as a factory, supplier, or warehouse. The minimum storage unit may be determined based on the packaging of the material. The target material data may be determined based on the second material inventory data and the designated location data; the second material inventory data also includes the weekly consumption and allocated quantity of the associated material; the designated location data may include the remaining quantity, the quantity in transit, and the preset safety stock at the designated location. The designated location may be a location that needs to be shipped, such as a factory, supplier, or warehouse; the preset number of designated locations may be in the range of 1-5, such as 1, 3, or 5, etc., which is not limited here. Since in the supply chain, the fewer the designated locations, the lower the logistics cost, the number of preset designated locations is in a smaller range.
[0105] For example, the preset total demand can be used to determine the order of material allocation, for example, by the following formula:
[0106]
[0107] In some embodiments, the preset replenishment quantity determination function and the preset constraint condition may include the following formula:
[0108] Preset replenishment quantity determination function:
[0109] Min:∑(wh-ratio) j,s *X j,s +penalty*∑slack j +penalty-ss*∑(slack-safety-stock) j +penalty-order*∑Y j,s ;
[0110] Preset constraints:
[0111]
[0112] X j,s = = n * X oj,s (2);
[0113]
[0114]
[0115] For example, taking the target designated location as a warehouse and the designated location as a supplier or a factory as an example, the meaning of each parameter in the above formula can be shown in Table 2 below.
[0116] Table 2:
[0117]
[0118]
[0119] According to the above technical solution, the material allocation order is determined through the material substitution connectivity diagram, which reduces the allocation difficulty and realizes the decomposition of the material allocation problem, thereby reducing the calculation time and improving the work efficiency.
[0120] Figure 3 is a structural block diagram of a material distribution device 300 according to an exemplary embodiment. Figure 3 The device includes a first acquisition module 310, a second acquisition module 320, a generation module 330, a first determination module 340 and a second determination module 350.
[0121] The first acquisition module 310 is configured to acquire associated materials corresponding to the target material;
[0122] The second acquisition module 320 is configured to acquire the first material inventory data of the target material and the second material inventory data of the associated material;
[0123] The generating module 330 is configured to generate a material substitution connectivity graph according to the target material and the associated material; the material substitution connectivity graph includes a first node corresponding to the target material and a second node corresponding to the associated material, and a directional relationship of a line between the first node and the second node; the directional relationship is used to indicate a substitution relationship between the target material and the associated material;
[0124] A first determination module 340 is configured to determine the allocation order of the target material and the associated material according to the material substitution connectivity graph;
[0125] The second determination module 350 is configured to determine the allocation quantity of the target material and the associated material respectively according to the allocation sequence, the first material inventory data and the second material inventory data.
[0126] According to the above technical solution, the material allocation order is determined through the material substitution connectivity diagram, which reduces the allocation difficulty and realizes the decomposition of the material allocation problem, thereby reducing the calculation time and improving the work efficiency.
[0127] Optionally, the device further comprises:
[0128] The third determination module is configured to determine the designated material from the associated materials according to the directional relationship in the material substitution connectivity diagram, and determine the allocation order of the target material and the designated material; the designated material includes a first designated material and / or a second designated material, the first designated material is an associated material that can replace the target material, and the second designated material is an associated material that can replace the target material.
[0129] Optionally, the device further comprises:
[0130] The fourth determination module is configured to replace the associated material corresponding to the first designated node in the material connection graph as the first designated material; the first designated node is a node in the second node, the pointing relationship of the line connecting the second node with the first node is a unidirectional pointing relationship and points to the first node; and / or,
[0131] The associated material corresponding to the second designated node in the material replacement connectivity graph is used as the second designated material; the second designated node is a node in the second node, and the directional relationship between the line connecting the first node and the second node is a bidirectional directional relationship.
[0132] Optionally, the designated material includes a first designated material; and the device further includes:
[0133] The fourth determining module is configured to use a first allocation sequence as the allocation sequence; the first allocation sequence indicates that the allocation sequence of the first designated material is prior to the allocation sequence of the target material.
[0134] Optionally, the designated material includes a second designated material; and the device further includes:
[0135] The fifth determination module is configured to use a second allocation sequence as the allocation sequence; the second allocation sequence indicates that the allocation sequence of the second designated material precedes the allocation sequence of the target material; or, the allocation sequence of the target material precedes the allocation sequence of the second designated material.
[0136] Optionally, the designated material includes a first designated material and a second designated material; and the device further includes:
[0137] The sixth determining module is configured to use a third allocation sequence as the allocation sequence; the third allocation sequence indicates that the allocation sequence of the first designated material precedes the allocation sequences of the second designated material and the target material.
[0138] Optionally, the device further comprises:
[0139] The seventh determination module is configured to determine the allocation quantity of the target material and the associated material respectively according to the first material inventory data and the second material inventory data through a preset replenishment quantity determination function.
[0140] Optionally, the device further comprises:
[0141] The eighth determination module is configured to determine the allocation quantity of the target material and the associated material respectively based on the preset constraint conditions and through the preset replenishment quantity determination function.
[0142] Optionally, the preset constraints include one or more of the following: the allocated quantity is less than or equal to the preset total demand; the allocated quantity is a preset multiple of the preset minimum storage unit; the allocated quantity is a preset multiple of the minimum storage unit; the target material data is greater than or equal to the preset storage quantity; the target material data is obtained based on the second material inventory data; and, the number of designated locations is less than or equal to the preset number of designated locations; the designated location is a location for storing the target material and the associated material.
[0143] Optionally, the device further comprises:
[0144] The first generating module is configured to generate the material substitution connectivity graph according to a preset material substitution relationship; the preset material substitution relationship includes a substitution relationship between the target material and the associated material.
[0145] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0146] In summary, the present disclosure provides a method, device, electronic device and storage medium for material allocation; by obtaining the associated materials corresponding to the target material; obtaining the first material inventory data of the target material and the second material inventory data of the associated material; generating a material substitution connectivity graph according to the target material and the associated material; the material substitution connectivity graph includes a first node corresponding to the target material and a second node corresponding to the associated material, and a directional relationship between the lines of the first node and the second node; the directional relationship is used to indicate the substitution relationship between the target material and the associated material; according to the material substitution connectivity graph, determining the allocation order of the target material and the associated material; according to the allocation order, the first material inventory data and the second material inventory data, respectively determining the allocation quantity of the target material and the associated material. According to the above technical solution, the allocation order of materials is determined through the material substitution connectivity graph, which reduces the allocation difficulty, realizes the decomposition of the material allocation problem, thereby reducing the calculation time and improving the work efficiency.
[0147] The present disclosure also provides a computer-readable storage medium having computer program instructions stored thereon, and when the program instructions are executed by a processor, the steps of the material distribution method provided by the present disclosure are implemented.
[0148] Figure 44 is a block diagram of an electronic device 400 according to an exemplary embodiment. For example, the electronic device 400 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0149] Reference Figure 4 , the electronic device 400 may include one or more of the following components: a processing component 402 , a memory 404 , a power component 406 , a multimedia component 408 , an audio component 410 , an input / output interface 412 , a sensor component 414 , and a communication component 416 .
[0150] The processing component 402 generally controls the overall operation of the electronic device 400, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to complete all or part of the steps of the above-mentioned material distribution method. In addition, the processing component 402 may include one or more modules to facilitate the interaction between the processing component 402 and other components. For example, the processing component 402 may include a multimedia module to facilitate the interaction between the multimedia component 404 and the processing component 402.
[0151] The memory 404 is configured to store various types of data to support operations on the electronic device 400. Examples of such data include instructions for any application or method operating on the electronic device 400, contact data, phone book data, messages, pictures, videos, etc. The memory 404 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0152] The power supply component 406 provides power to the various components of the electronic device 400. The power supply component 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 400.
[0153] The multimedia component 408 includes a screen that provides an output interface between the electronic device 400 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front camera and / or a rear camera. When the electronic device 400 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0154] The audio component 410 is configured to output and / or input audio signals. For example, the audio component 410 includes a microphone (MIC), and when the electronic device 400 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 404 or sent via the communication component 416. In some embodiments, the audio component 410 also includes a speaker for outputting audio signals.
[0155] The input / output interface 412 provides an interface between the processing component 402 and the peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0156] The sensor assembly 414 includes one or more sensors for providing various aspects of status assessment for the electronic device 400. For example, the sensor assembly 414 can detect the open / closed state of the electronic device 400, the relative positioning of the components, such as the display and keypad of the electronic device 400, and the sensor assembly 414 can also detect the position change of the electronic device 400 or a component of the electronic device 400, the presence or absence of contact between the user and the electronic device 400, the orientation or acceleration / deceleration of the electronic device 400, and the temperature change of the electronic device 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 414 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0157] The communication component 416 is configured to facilitate wired or wireless communication between the electronic device 400 and other devices. The electronic device 400 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0158] In an exemplary embodiment, the electronic device 400 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above-mentioned material distribution method.
[0159] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 504 including instructions, and the instructions can be executed by a processor 520 of an electronic device 500 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0160] Figure 5 FIG. 5 is a block diagram of another electronic device 500 according to an exemplary embodiment. For example, the electronic device 500 may be provided as a server. Figure 5 The electronic device 500 includes a processing component 522, which further includes one or more processors, and a memory resource represented by a memory 532 for storing instructions executable by the processing component 522, such as an application. The application stored in the memory 532 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 522 is configured to execute instructions to perform the above-mentioned material distribution method.
[0161] The electronic device 500 may also include a power supply component 526 configured to perform power management of the electronic device 500, a wired or wireless network interface 550 configured to connect the electronic device 500 to a network, and an input / output interface 558. The electronic device 500 may operate based on an operating system stored in the memory 532, such as Windows Server 2003. TM, Mac OS X TM , Unix TM , Linux TM , FreeBSD TM or similar.
[0162] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the present disclosure. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0163] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A material distribution method, characterized in that: The method comprises: Get the associated materials corresponding to the target material; Acquire first material inventory data of the target material and second material inventory data of the associated material; Generate a material substitution connectivity graph according to the target material and the associated material; the material substitution connectivity graph includes a first node corresponding to the target material and a second node corresponding to the associated material, and a directional relationship between the first node and the second node; the directional relationship is used to indicate the substitution relationship between the target material and the associated material; Determining the allocation order of the target material and the associated materials according to the material substitution connectivity diagram; The allocation quantities of the target material and the associated material are determined respectively according to the allocation sequence, the first material inventory data, and the second material inventory data.
2. The method according to claim 1, characterized in that Determining the allocation order of the target material and the associated materials according to the material substitution connectivity diagram includes: According to the directional relationship in the material substitution connectivity graph, a designated material is determined from the associated materials, and an allocation order of the target material and the designated material is determined; The designated material includes a first designated material and / or a second designated material, the first designated material is an associated material that can replace the target material, and the second designated material is an associated material that can replace the target material.
3. The method according to claim 2, characterized in that Determining the designated material from the associated materials according to the material substitution connectivity graph includes: The associated material corresponding to the first designated node in the material substitution connectivity graph is used as the first designated material; the first designated node is a node in the second node, the pointing relationship of the line connecting the first node with the first node is a unidirectional pointing relationship and points to the first node; and / or, The associated material corresponding to the second designated node in the material substitution connectivity graph is used as the second designated material; the second designated node is a node in the second node, and the directional relationship between the line connecting the first node and the second node is a bidirectional directional relationship.
4. The method according to claim 2, characterized in that: The designated material includes a first designated material; and determining the allocation order of the target material and the designated material includes: The first allocation sequence is used as the allocation sequence; the first allocation sequence indicates that the allocation sequence of the first designated material is prior to the allocation sequence of the target material.
5. The method according to claim 2, characterized in that: The designated material includes a second designated material; and determining the allocation order of the target material and the designated material includes: The second allocation sequence is used as the allocation sequence; the second allocation sequence indicates that the allocation sequence of the second designated material is prior to the allocation sequence of the target material; or, the allocation sequence of the target material is prior to the allocation sequence of the second designated material.
6. The method according to claim 2, characterized in that The designated material includes a first designated material and a second designated material; and determining the allocation order of the target material and the designated material includes: The third allocation sequence is used as the allocation sequence; the third allocation sequence indicates that the allocation sequence of the first designated material precedes the allocation sequences of the second designated material and the target material.
7. The method according to claim 1, characterized in that The determining, according to the allocation sequence, the first material inventory data, and the second material inventory data, respectively, the allocation quantity of the target material and the associated material comprises: According to the first material inventory data and the second material inventory data, the allocation quantities of the target material and the associated material are determined respectively through a preset replenishment quantity determination function.
8. The method according to claim 7, characterized in that The step of respectively determining the allocation quantity of the target material and the associated material by presetting a replenishment quantity determination function comprises: Based on preset constraints, the allocation quantities of the target material and the associated material are determined respectively through the preset replenishment quantity determination function.
9. The method according to claim 8, characterized in that The preset constraints include one or more of the following: The allocated quantity is less than or equal to the preset total demand; the allocated quantity is a preset multiple of the preset minimum storage unit; The allocated quantity is a preset multiple of the minimum storage unit; The target material data is greater than or equal to the preset storage quantity; the target material data is obtained based on the second material inventory data; as well as, The number of designated locations is less than or equal to the preset number of designated locations; the designated locations are locations for storing the target material and the associated materials.
10. The method according to any one of claims 1 to 9, characterized in that The generating of the material substitution connectivity graph according to the target material and the associated materials includes: The material substitution connectivity graph is generated according to a preset material substitution relationship; the preset material substitution relationship includes a substitution relationship between the target material and the associated material.
11. A device for determining the quantity of a material, characterized in that: The device comprises: A first acquisition module is configured to acquire associated materials corresponding to the target material; A second acquisition module is configured to acquire first material inventory data of the target material and second material inventory data of the associated material; A generating module is configured to generate a material substitution connectivity graph according to the target material and the associated material; the material substitution connectivity graph includes a first node corresponding to the target material and a second node corresponding to the associated material, and a directional relationship between the first node and the second node; the directional relationship is used to indicate the substitution relationship between the target material and the associated material; A first determination module is configured to determine the allocation order of the target material and the associated materials according to the material substitution connectivity diagram; The second determination module is configured to determine the allocation quantity of the target material and the associated material respectively according to the allocation sequence, the first material inventory data and the second material inventory data.
12. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to implement the steps of the method according to any one of claims 1 to 10 when executed.
13. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the steps of the method described in any one of claims 1 to 10 are implemented.
