Material requirement planning method, system, electronic device and storage medium
By establishing a material requirements planning method in the MRP system to determine shortage materials and calculate the upper limit of substitution of substitute materials, the problem of shortage of materials and inaccurate procurement of substitute materials in the existing technology is solved, ensuring sufficient materials in the production process.
Patent Information
- Application Number
- CN202410614505.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-17
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-05-17
AI Technical Summary
The existing MRP system cannot accurately calculate the purchase quantity of shortage materials and substitute materials when there is incomplete substitution of shortage materials, resulting in the problem of material shortage during the production process.
By establishing a product bill of materials, calculate the demand and supply of each material, determine whether it is a shortage material, calculate the substitution upper limit of substitute materials based on the substitution relationship, limit the purchase quantity of substitute materials, and ensure that purchased materials are matched with production orders.
This avoids excessive procurement of substitute materials, ensures that actual purchased materials are matched with production orders, meets production needs, and prevents shortage of materials during the production process.
Smart Images

Figure CN118211809B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of production and manufacturing informationization, and in particular to a material requirement planning method, system, electronic equipment and storage medium. Background Art
[0002] The MRP (Material Requirement Planning) system is a material planning management system used in manufacturing enterprises. The MRP system can formulate a production plan for a product based on market demand forecasts and customer orders, and then generate a schedule based on the product, form a material structure table and inventory status for the product, and calculate the required material demand and demand plan through a computer, thereby determining the material processing schedule and ordering schedule.
[0003] However, the material requirement calculation method of the MRP system still has some shortcomings in practical applications. For example, in the scenario where there is an incomplete substitution for a certain shortage material (incomplete substitution means that the same material can be replaced with different materials in different bills of materials. For example, the shortage material A in product X can only be replaced with substitute material B, but the shortage material A in product Y can be replaced with substitute material B or substitute material C), the existing material requirement planning method cannot accurately calculate the purchase quantity of the shortage material and the corresponding substitute material, and there is a mismatch between the purchase quantity of the material and the production order, resulting in material shortages during the production process. Summary of the invention
[0004] In view of this, the purpose of the present application is to propose a material requirement planning method, system, electronic device and storage medium, which can ensure that there is no shortage of materials in the production process in a scenario where there is incomplete substitution for scarce materials.
[0005] In order to achieve one of the above-mentioned disclosed purposes, the present application provides a material requirement planning method, including: establishing a product material list, the product material list including all materials required to make the product, and substitute materials for the substitutable materials among all the materials; calculating the demand for each of the all the materials according to the production order; obtaining the supply of each of the all the materials, and judging whether the material is a shortage material according to the relationship between the supply and demand of each material; in response to the material being a non-shortage material, setting the purchase quantity according to the demand for the non-shortage material; in response to the material being a shortage material, obtaining the substitution relationship of the shortage material in the production order; in response to the substitution relationship being a first substitution relationship, using the shortage material to determine the purchase quantity. The substitute material of the material replaces the shortage material; wherein the first substitution relationship includes a substitution method; the sum of the purchase quantities of the shortage material and the substitute material is equal to the demand for the shortage material; in response to the substitution relationship being a second substitution relationship, the corresponding substitution upper limit of the substitute material is calculated according to the demand for the shortage material under each substitution method in the second substitution relationship, and the purchase quantities of the shortage material and the substitute material are calculated according to the substitution upper limit and the demand for the shortage material; wherein the second substitution relationship includes at least two substitution methods; the sum of the purchase quantities of the substitute material and the shortage material is equal to the demand for the shortage material, and the purchase quantity of the substitute material is less than or equal to the substitution upper limit.
[0006] As a further improvement of an embodiment of the present application, the second substitution relationship includes: the short-supply material includes at least a first substitute material and a second substitute material, and the conditions for the first substitute material and the second substitute material to replace the short-supply material are partially or completely different.
[0007] As a further improvement of an embodiment of the present application, the second substitution relationship includes at least a first substitution method and a second substitution method; the conditions for the at least two substitute materials to replace the scarce material are partially the same, including: under the first substitution method, both the first substitute material and the second substitute material can replace the scarce material; under the second substitution method, the first substitute material or the second substitute material can replace the scarce material.
[0008] As a further improvement of an implementation mode of the present application, the product material list also includes the procurement ratio of the alternative materials and the alternative materials among all the materials; the calculation of the demand quantity of each material among all the materials according to the production order includes: when calculating the demand quantity of all materials according to the production order, determining the demand quantity of the alternative materials and the alternative materials among all the materials according to the procurement ratio.
[0009] As a further improvement of an implementation mode of the present application, the substitution upper limit is equal to the demand for the short-supply material under the substitution method; after calculating the corresponding substitution upper limit of the substitution material according to the demand for the short-supply material under each substitution method in the second substitution relationship, it also includes: merging the substitution upper limits of the substitution material under each substitution method.
[0010] As a further improvement of an implementation mode of the present application, after calculating the purchase quantity of the short supply material and the substitute material according to the substitution upper limit and the demand for the short supply material, it also includes: adjusting the purchase quantity of all materials and substitute materials for the substitute materials among all materials according to the minimum supply unit.
[0011] As a further improvement of an implementation mode of the present application, the calculation of the demand quantity of each of all materials according to the production order includes: setting the purchase date of all materials according to the demand date of the product in the production order; when the number of the purchase dates is greater than or equal to two, separately calculating the demand quantity of all materials under each purchase date.
[0012] In order to achieve one of the above-mentioned disclosed purposes, an embodiment of the present application provides a material requirement planning system, and the material requirement planning system includes: a material list establishment module, which is used to establish a product material list, and the product material list includes all materials required to make the product, and substitute materials for the replaceable materials among all the materials; a material requirement calculation module, which is used to calculate the demand quantity of each of all the materials according to the production order; a first acquisition module, which is used to obtain the supply quantity of each of all the materials; a first judgment module, which is used to judge whether a material is a shortage material according to the supply quantity and demand quantity of each material; a first response module, in response to the material being a non-shortage material, sets the purchase quantity according to the demand quantity of the non-shortage material; a second response module, in response to the material being a shortage material, obtains the substitute of the shortage material in the production order substitution relationship; a third response module, in response to the substitution relationship being a first substitution relationship, replacing the short-supply material with a substitute material of the short-supply material; wherein the first substitution relationship includes a substitution method; the sum of the purchase quantities of the short-supply material and the substitute material is equal to the demand for the short-supply material; a fourth response module, in response to the substitution relationship being a second substitution relationship, calculating the corresponding substitution upper limit of the substitute material according to the demand for the short-supply material under each substitution method in the second substitution relationship, and calculating the purchase quantities of the short-supply material and the substitute material according to the substitution upper limit and the demand for the short-supply material; wherein the second substitution relationship includes at least two substitution methods; the sum of the purchase quantities of the substitute material and the short-supply material is equal to the demand for the short-supply material, and the purchase quantity of the substitute material is less than or equal to the substitution upper limit.
[0013] In order to achieve one of the above-mentioned disclosed purposes, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned material requirement planning method when executing the program.
[0014] In order to achieve one of the above disclosed purposes, an embodiment of the present application provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the above material requirement planning method.
[0015] Compared with the prior art, the technical effect of the present invention is: by judging whether there is incomplete substitution for the shortage material, and in the scenario where there is incomplete substitution for the shortage material, the substitution upper limit of the corresponding substitute material is calculated according to the demand for the shortage material under each substitution relationship, and the purchase quantity of the substitute material is limited to be less than or equal to the substitution upper limit, so as to avoid excessive purchase of a certain substitute material, ensure that the actually purchased materials are matched with the production order, and meet the needs of the production order. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the present application or related technologies, the drawings required for use in the implementation methods or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0017] Figure 1 Schematic diagrams of various substitutions;
[0018] Figure 2 A flow chart of a material requirement planning method provided in one embodiment of the present application;
[0019] Figure 3 A schematic diagram of a material requirement planning system provided in one embodiment of the present application;
[0020] Figure 4 A more specific schematic diagram of the hardware structure of an electronic device provided for one embodiment of the present application. DETAILED DESCRIPTION
[0021] The present invention will be described in detail below in conjunction with the specific embodiments shown in the accompanying drawings. However, these embodiments do not limit the present invention, and any structural, methodological, or functional changes made by a person skilled in the art based on these embodiments are all within the scope of protection of the present invention.
[0022] Implementation methods It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the implementation methods of this application should be understood by people with ordinary skills in the field to which this application belongs. The "first", "second" and similar words used in the implementation methods of this application do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprising" and similar words mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects.
[0023] Figure 1 The following are schematic diagrams of various substitutions. Common substitution methods include:
[0024] A. Combination substitution: The substitution relationship is not only one-to-one, but also many-to-many. For example, in Figure 1 In 1a, a bottle body needs to be equipped with a cap, which is a combination (such as color requirements, etc.). Then when the bottle body is replaced, its cap also needs to be replaced.
[0025] B. Priority substitution: There may be multiple substitution relationships, for example, Figure 1 In 1b, when material A is out of stock, it is replaced by material B first. When material B is also out of stock, it can be replaced by material C.
[0026] C. Wrong-order substitution: Substitution may occur in more than one level, and substitution may occur in multiple levels. Figure 1 In 1c, when material B is used to replace material A, it can occur not only when manufacturing a certain product, but also when manufacturing semi-finished product M.
[0027] D. Incomplete substitution: The same material in different bills of materials may have different materials that can be used to replace it. Figure 1 In 1d, for example, material A of product X can only be replaced by material B, but material A of product Y can be replaced by material B or material C.
[0028] The material requirement planning method in the existing MRP system cannot cope with the scenario where there is incomplete substitution of shortage materials (i.e. materials whose supply is less than the demand). For example, as shown in Table 1-Table 2 below:
[0029] Table 1: Product demand planning table
[0030]
[0031] Table 2: Material procurement plan obtained based on the existing material requirement planning method
[0032]
[0033] When material A cannot be supplied in sufficient quantity due to production capacity, quality and other issues, and material B and material C need to be purchased, the existing material requirement planning method cannot determine the purchase quantity of material B and material C; if material A is completely replaced by material C, there will be insufficient material for the production of product X, which cannot meet production needs.
[0034] like Figure 2 As shown, an embodiment of the present application provides a material requirement planning method, comprising the following steps:
[0035] Step S1, establishing a product bill of materials, which includes all materials required to make the product, and alternative materials for all alternative materials;
[0036] Step S2, calculating the demand quantity of each material among all materials according to the production order;
[0037] Step S3, obtaining the supply quantity of each material among all materials, and judging whether the material is a shortage material according to the relationship between the supply quantity and the demand quantity of each material;
[0038] Step S31, in response to the material being a non-shortage material, setting the purchase quantity according to the demand for the non-shortage material;
[0039] Step S4, in response to the material being a shortage material, obtaining a substitution relationship of the shortage material in the production order;
[0040] Step S41, in response to the substitution relationship being the first substitution relationship, replacing the shortage material with a substitute material of the shortage material; wherein the first substitution relationship includes a substitution method; the sum of the purchase quantity of the shortage material and the substitute material is equal to the demand quantity of the shortage material;
[0041] Step S5, in response to the substitution relationship being the second substitution relationship, calculating the substitution upper limit of the corresponding substitute material according to the demand for the shortage material under each substitution method in the second substitution relationship, and calculating the purchase quantity of the shortage material and the substitute material according to the substitution upper limit and the demand for the shortage material; wherein, the second substitution relationship includes at least two substitution methods; the sum of the purchase quantities of the substitute material and the shortage material is equal to the demand for the shortage material, and the purchase quantity of the substitute material is less than or equal to the substitution upper limit.
[0042] In the material requirement planning method of this application, it is determined whether there is an incomplete substitution for the shortage material. In the scenario where there is an incomplete substitution for the shortage material, the upper limit of the substitution of the corresponding substitute material is calculated according to the demand for the shortage material under each substitution relationship, and the purchase quantity of the substitute material is limited to be less than or equal to;, thereby avoiding excessive purchase of a certain substitute material and ensuring that the actually purchased materials are matched with the production order to meet the needs of the production order.
[0043] For example, taking the product demand in Table 1 as an example, under the substitution method in product Y, the demand for material A is 1200. Assuming that material A and material C are 1:1 substitution, the upper limit of material C substitution is 1200. In this case, even if material C with the upper limit of substitution is purchased (that is, material C is purchased for 1200, and material A and material B are purchased for 1000 in total), production needs can still be met. Alternatively, material A and material C can also be set to replace in other ratios, such as a 1:2 substitution of material A and material C.
[0044] In one embodiment of the present application, in step S1, the product material list also includes the purchase ratio of replaceable materials and substitute materials among all materials; in step S2, the demand for each material among all materials is calculated according to the production order, including: when calculating the demand for all materials according to the production order, the demand for replaceable materials and substitute materials among all materials is determined according to the purchase ratio. The setting of the purchase ratio can improve the flexibility of material supply and prevent a certain material from becoming a shortage material due to excessive purchase quantity.
[0045] For example, taking the product demand in Table 1 above as an example, the purchase ratio is set to material A: material B: material C = 4:4:2, and the purchase plan shown in Table 3 below is obtained. Alternatively, the purchase ratio can be set to any appropriate ratio, for example, material A: material B: material C = 1:1:1. The table below illustrates the demand for alternative materials (i.e. material A) and alternative materials (i.e. material B and material C).
[0046] Table 3: Procurement plan after setting the procurement ratio
[0047]
[0048] In one embodiment of the present application, in step S3, the method for obtaining the supply of all materials can be determined by communicating with suppliers or based on the suppliers' previous supply. According to the relationship between the supply and demand of each material, it is judged whether the material is a shortage material, including comparing the supply and demand of each material. When the supply of the material is greater than or equal to the demand, it is judged that the material is not a shortage material; when the supply of the material is less than the demand, it is judged that the material is a shortage material. It can be understood that material A, material B and material C in Table 3 above can all be shortage materials. By judging whether a material is a shortage material before purchasing the material, it is prevented that the supplier is insufficiently supplied and the production progress of the product is affected.
[0049] Furthermore, in step S31, in response to the non-shortage materials, the purchase quantity is set according to the material demand. At this time, the supply of all materials is greater than or equal to the demand, and the production demand can be met by purchasing according to the demand.
[0050] In one embodiment of the present application, in step S4, in response to the material being a shortage material, the substitution relationship of the shortage material in the production order is obtained; wherein the substitution relationship includes a first substitution relationship and a second substitution relationship, the first substitution relationship includes one substitution method, and the second substitution relationship includes at least two substitution methods, namely, judging whether there is incomplete substitution for the shortage material, when the substitution relationship is the first substitution relationship, there is no incomplete substitution for the shortage material; when the substitution relationship is the second substitution relationship, there is incomplete substitution for the shortage material.
[0051] Specifically, the first substitution relationship includes that in the production order, the shortage material can be replaced by only one substitute material. The second substitution relationship includes that the shortage material includes at least a first substitute material and a second substitute material, and the conditions for the first substitute material and the second substitute material to replace the shortage material are partially different or completely different. Exemplarily, the conditions for at least two substitute materials to replace the shortage material are partially different, including that under the first substitution method, the first substitute material and the second substitute material can both replace the shortage material, and under the second substitution method, the first substitute material or the second substitute material can replace the shortage material, that is, Figure 1 As shown in 1d; the conditions for replacing the shortage material with at least two substitute materials are completely different, including that under the first substitution method, only the first substitute material can replace the shortage material, and under the second substitution method, only the second substitute material can replace the shortage material.
[0052] In one embodiment of the present application, in step S5, the upper limit of substitution is equal to the demand of the shortage material under the substitution mode; after calculating the upper limit of substitution of the corresponding substitute material according to the demand of the shortage material under each substitution mode in the second substitution relationship, it also includes: merging the upper limits of substitution of the substitute material under each substitution mode. Merging the upper limits of substitution of the substitute material under each substitution mode makes the demand of the shortage material and the purchase quantity of the substitute material in the bill of materials clearer and more specific.
[0053] Table 4: Purchase plan after replacing the upper limit
[0054]
[0055] As shown in Table 4 above, when material A is in short supply, the upper limit of the number of times material B can replace material A in a production order is 880, and the upper limit of the number of times material C can replace material A in a production order is 380. That is, when material A is unavailable, material B can replace a maximum of 880 of material A, and material C can replace a maximum of 380 of material A.
[0056] In one embodiment of the present application, after calculating the purchase quantity of the shortage material and the substitute material according to the substitution upper limit and the demand of the shortage material, it also includes: adjusting the purchase quantity of all materials and the substitute materials of the substitute materials of all materials according to the minimum supply unit. The minimum supply unit can be determined through communication and negotiation with the supplier.
[0057] For example, here, taking the minimum supply unit as 100 as an example, Table 4 is adjusted to obtain Table 5.
[0058] Table 5: Procurement plan adjusted according to the minimum supply unit
[0059]
[0060] As shown in Table 5 above, when material A is in short supply and needs to be replaced with material B or material C, it is only necessary to limit: the sum of the purchase quantity of material A in Id=1 and the purchase quantities of material B and material C is equal to the demand quantity of material A (i.e. 900), and the purchase quantity of material A is less than or equal to the demand quantity of material A (i.e. 900), the purchase quantity of material B is less than or equal to the replacement upper limit of material B (i.e. 900), and the purchase quantity of material C is less than or equal to the replacement upper limit of material C (i.e. 400).
[0061] That satisfies the following formula:
[0062] Qty(A)+Qty(B)+Qty(C)=QD(A);
[0063] Qty(A)≤D(A);
[0064] Qty(B)≤R(B);
[0065] Qty(C)≤R(C).
[0066] Among them, Qty (A) is the purchase quantity of material A, Qty (B) is the purchase quantity of material B; Qty (C) is the purchase quantity of material C; QD (A) is the demand quantity of material A; R (B) is the replacement upper limit of material B; R (C) is the replacement upper limit of material C.
[0067] At this time, if the purchase quantity of logistics A in id=1 is 0, the purchase quantity of material C is the replacement upper limit of material C (that is, 400), the purchase quantity of material B = the demand quantity of material A (900) - the purchase quantity of material C (400) - the purchase quantity of material A (0) = 500; the purchase quantity of material B in id=2 is 900, and the purchase quantity of material C in id=3 is 500; combined, the total purchase quantity of material A is 0, the total purchase quantity of material B is 1400, and the total purchase quantity of material C is 900; the demand quantity of product X is 1000, and the demand quantity of product Y is 1200. 1000 quantities of material B can be used to produce product X, 400 quantities of material B and 900 quantities of material C can be used to produce product Y. Therefore, the purchase quantities of material B and material C obtained by the material requirement planning method of this application can meet the production requirements of product X and product Y.
[0068] In one embodiment of the present application, the demand quantity of each material among all materials is calculated according to the production order, including: setting the purchase date of all materials according to the demand date of the product in the production order; when the number of purchase dates is greater than or equal to two, separately calculating the demand quantity of all materials under each purchase date. Separately calculating the demand quantity of all materials under each purchase date can constrain material procurement in the time dimension to ensure that there is no shortage of materials on the specific demand date.
[0069] Exemplary, as shown in Table 6-Table 9;
[0070] Table 6: Product Requirements Planning Sheet with Two Requirement Dates
[0071]
[0072] Table 7: Procurement plan obtained using the material procurement planning method of the present invention (wherein the procurement lead time is 5 days, and the procurement ratio is set to material A: material B: material C = 4:4:2)
[0073]
[0074] Table 8 is the procurement plan after the replacement upper limit in Table 7 is combined
[0075]
[0076] Table 9 is the procurement plan adjusted according to the minimum supply unit
[0077]
[0078] As shown in Table 9 above, when material A is out of stock on 2023-07-05, only material A in Id = 1 needs to be replaced; when material A is out of stock on 2023-07-10, only material A in Id = 4 needs to be replaced, so that the procurement plan obtained by the material requirement planning method of this application is more concise and clear, and the purchased materials and production orders can be matched in the time dimension to ensure that the materials are not out of stock in the time dimension.
[0079] To summarize, the material requirement planning method of this application first sets the purchase date of the material according to the product order to ensure that there is no shortage of materials in the time dimension; secondly, the purchase ratio of the material is set in the production order to avoid excessive purchase of a certain material and make it a shortage material; finally, when the material is a shortage material, it is determined whether there is an incomplete substitute, and in the scenario where the material has an incomplete substitute, the upper limit of the substitution of its substitute material is limited to prevent the actual purchased materials from not matching the production order, so as to ensure that the purchased materials meet the needs of the production order.
[0080] It should be noted that the method of the embodiment of the present application can be performed by a single device, such as a computer or server. The method of the present embodiment can also be applied in a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present application, and the multiple devices will interact with each other to complete the described method.
[0081] Based on the same inventive concept, corresponding to the material requirement planning method in any of the above embodiments, another embodiment of the present application further provides a material requirement planning system, such as Figure 3 As shown, the material requirement planning system includes:
[0082] The BOM creation module is used to create a product BOM, which includes all materials required to make the product and alternative materials for all alternative materials.
[0083] Material requirement calculation module, used to calculate the required quantity of each material among all materials according to the production order;
[0084] The first acquisition module is used to obtain the supply quantity of each material among all materials;
[0085] The first judgment module is used to judge whether a material is a shortage material according to the supply and demand of each material;
[0086] The first response module, in response to the material being a non-shortage material, sets the purchase quantity according to the demand for the non-shortage material;
[0087] The second response module, in response to the material being a shortage material, obtains a substitution relationship of the shortage material in the production order;
[0088] A third response module, in response to the substitution relationship being a first substitution relationship, replaces the shortage material with a substitute material of the shortage material; wherein the first substitution relationship includes a substitution method; the sum of the purchase quantity of the shortage material and the substitute material is equal to the demand quantity of the shortage material;
[0089] The fourth response module, in response to the substitution relationship being the second substitution relationship, calculates the substitution upper limit of the corresponding substitute material according to the demand for the shortage material under each substitution method in the second substitution relationship, and calculates the purchase quantity of the shortage material and the substitute material according to the substitution upper limit and the demand for the shortage material; wherein, the second substitution relationship includes at least two substitution methods; the sum of the purchase quantities of the substitute material and the shortage material is equal to the demand for the shortage material, and the purchase quantity of the substitute material is less than or equal to the substitution upper limit.
[0090] The material requirement planning system of this application determines whether there is an incomplete substitution for the shortage material, and in the scenario where there is an incomplete substitution for the shortage material, presets the upper limit of the substitution material and the purchase quantity relationship between the shortage material and the substitute material, to ensure that the total purchase quantity of the shortage material and the substitute material can meet the needs of the production order, avoiding the problem of inconsistency between the actual purchased materials and the production order that may be caused by manual modification scenarios.
[0091] For the convenience of description, the above system is described by dividing the functions into various modules. Of course, when implementing the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0092] The system of the above-mentioned implementation mode is used to implement the corresponding material requirement planning method in any of the above-mentioned implementation modes, and has the beneficial effects of the corresponding method implementation mode, which will not be repeated here.
[0093] Based on the same inventive concept, corresponding to any of the above-mentioned implementation methods, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the material requirement planning method described in any of the above implementation methods is implemented.
[0094] Figure 4 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.
[0095] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the implementation methods of this specification.
[0096] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.
[0097] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0098] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).
[0099] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010 , the memory 1020 , the input / output interface 1030 , and the communication interface 1040 ).
[0100] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the implementation scheme of this specification, and does not necessarily include all the components shown in the figure.
[0101] The electronic device of the above-mentioned implementation mode is used to implement the corresponding material requirement planning method in any of the above-mentioned implementation modes, and has the beneficial effects of the corresponding method implementation mode, which will not be described in detail here.
[0102] Based on the same inventive concept, corresponding to any of the above-mentioned implementation methods, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the material requirement planning method described in any of the above implementation methods.
[0103] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be achieved by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0104] The computer instructions stored in the storage medium of the above-mentioned implementation are used to enable the computer to execute the material requirement planning method described in any of the above-mentioned implementations, and have the beneficial effects of the corresponding method implementation methods, which will not be repeated here.
[0105] A person skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. This narrative style of the specification is merely for the sake of clarity, and those skilled in the art should take the specification as a whole. Under the concept of the present application, the above embodiments or the technical features in different embodiments may be appropriately combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.
[0106] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the well-known power / ground connections to the integrated circuit (IC) chip and other components may or may not be shown in the provided figures. In addition, the device may be shown in the form of a block diagram so as to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform on which the embodiments of the present application will be implemented (that is, these details should be fully within the scope of understanding of those skilled in the art). Where specific details (e.g., circuits) are set forth to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or with changes in these specific details. Therefore, these descriptions should be considered illustrative rather than restrictive.
[0107] Although the present application has been described in conjunction with specific embodiments of the present application, many alternatives, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
[0108] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made without departing from the spirit and principles of the embodiments of the present application should be included in the scope of protection of the present application.
Claims
1. A material requirement planning method, characterized in that: include: Establish a product bill of materials, which includes all materials required to make the product and substitute materials for substitute materials among all the materials; Calculate the demand quantity of each material among all the materials mentioned according to the production order; Obtain the supply quantity of each of the materials, and determine whether the material is a shortage material based on the relationship between the supply quantity and the demand quantity of each material; In response to the material being a non-shortage material, setting a purchase quantity according to a demand for the non-shortage material; In response to the material being a shortage material, obtaining a substitution relationship of the shortage material in the production order; In response to the substitution relationship being a first substitution relationship, replacing the shortage material with a substitute material of the shortage material; wherein the first substitution relationship includes a substitution method; the sum of the purchase quantity of the shortage material and the substitute material is equal to the demand quantity of the shortage material; In response to the substitution relationship being the second substitution relationship, the substitution upper limit of the corresponding substitute material is calculated according to the demand for the shortage material under each substitution method in the second substitution relationship, and the purchase quantity of the shortage material and the substitute material is calculated according to the substitution upper limit and the demand for the shortage material; wherein, the second substitution relationship includes at least two substitution methods; the sum of the purchase quantities of the substitute material and the shortage material is equal to the demand for the shortage material, and the purchase quantity of the substitute material is less than or equal to the substitution upper limit.
2. The material requirement planning method according to claim 1, characterized in that: The second substitution relationship includes: the short-supply material includes at least a first substitute material and a second substitute material, and the conditions for the first substitute material and the second substitute material to replace the short-supply material are partially or completely different.
3. The material requirement planning method according to claim 2, characterized in that: The second alternative relationship includes at least a first alternative and a second alternative; The conditions for replacing the shortage material with at least two of the substitute materials are partially the same, including: In the first substitution mode, both the first substitute material and the second substitute material can replace the short supply material; In the second substitution mode, the first substitute material or the second substitute material can replace the short supply material.
4. The material requirement planning method according to claim 1, characterized in that: The product material list also includes the purchase ratio of the replaceable materials and the replaceable materials among all the materials; The calculating the demand quantity of each material among all the materials according to the production order includes: When calculating the demand for all materials according to the production order, the demand for the substitutable materials and the substitute materials among all the materials is determined according to the procurement ratio.
5. The material requirement planning method according to claim 1, characterized in that: The substitution upper limit is equal to the demand for the short-supply material under the substitution method; After calculating the corresponding upper limit of the substitution material according to the demand of the shortage material under each substitution mode in the second substitution relationship, the method further includes: Combine the upper limits of the substitutions for the substitute materials mentioned under each substitution method.
6. The material requirement planning method according to claim 1, characterized in that: After calculating the purchase quantity of the shortage material and the replacement material according to the replacement upper limit and the demand quantity of the shortage material, the method further includes: Adjust the purchase quantity of all materials and substitute materials for the substitute materials among all the materials according to the minimum supply unit.
7. The material requirement planning method according to claim 1, characterized in that: The calculating the demand quantity of each material among all the materials according to the production order includes: Set the purchase date of all materials according to the demand date of the products in the production order; When the number of the purchase dates is greater than or equal to two, the demand quantity of all the materials under each purchase date is calculated separately.
8. A material requirement planning system, characterized in that: The material requirement planning system comprises: A bill of materials creation module is used to create a product bill of materials, wherein the product bill of materials includes all materials required to make the product, and alternative materials for alternative materials among all the materials; A material demand calculation module, used to calculate the demand quantity of each material among all the materials according to the production order; A first acquisition module, used to acquire the supply quantity of each material among all the materials; A first judgment module is used to judge whether a material is a shortage material according to the supply and demand of each material; A first response module, in response to the material being a non-shortage material, sets a purchase quantity according to a demand for the non-shortage material; A second response module, in response to the material being a shortage material, obtains a substitution relationship of the shortage material in the production order; A third response module, in response to the substitution relationship being a first substitution relationship, replaces the shortage material with a substitute material of the shortage material; wherein the first substitution relationship includes a substitution method; and the sum of the purchase quantity of the shortage material and the substitute material is equal to the demand quantity of the shortage material; The fourth response module, in response to the substitution relationship being the second substitution relationship, calculates the corresponding substitution upper limit of the substitute material according to the demand for the short-supply material under each substitution method in the second substitution relationship, and calculates the purchase quantity of the short-supply material and the substitute material according to the substitution upper limit and the demand for the short-supply material; wherein the second substitution relationship includes at least two substitution methods; the sum of the purchase quantities of the substitute material and the short-supply material is equal to the demand for the short-supply material, and the purchase quantity of the substitute material is less than or equal to the substitution upper limit.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the material requirement planning method according to any one of claims 1 to 7 when executing the program.
10. A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the material requirement planning method according to any one of claims 1 to 7.
