Cigarette material purchasing quantity determination method and device and medium
By predicting the consumption of tobacco materials and order completion time through multiple linear regression and normal distribution models, it solves the problem of traditional procurement methods relying on subjective experience, achieves accurate prediction of procurement quantities and optimization of inventory management in the tobacco industry, and reduces the cost of enterprises. cost.
Patent Information
- Application Number
- CN202410722667.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-09-24
AI Technical Summary
Traditional tobacco industry procurement methods rely on subjective evaluation and experience and fail to fully consider various factors, resulting in inefficient procurement, high costs and high inventory costs.
By establishing a multiple linear regression prediction equation and a normal distribution model, the actual consumption of cigarette materials and order completion time are predicted, and the number of safe days when the predetermined percentage is met is calculated to determine the purchase quantity.
It achieves accurate prediction of the purchase quantity of cigarette materials, reduces safety inventory, optimizes inventory management, and reduces corporate costs.
Smart Images

Figure CN118691194A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of tobacco industry, and in particular to a method, device and medium for determining the purchase quantity of tobacco materials. Background Art
[0002] As an important manufacturing sector, procurement management is crucial to the production and operation of enterprises in the tobacco industry. However, traditional procurement methods have many limitations, such as subjective evaluation method, experience method and cost comparison method, which often fail to fully consider various factors and over-rely on experience and subjective judgment, resulting in low procurement efficiency, high procurement costs and high inventory costs. Summary of the invention
[0003] The present disclosure provides a method, device and medium for determining the purchase quantity of tobacco materials to solve the above technical problems.
[0004] According to a first aspect of the present disclosure, a method for determining the purchase quantity of tobacco materials is provided, the method comprising: obtaining relevant data that affect the actual monthly consumption of tobacco materials, and data on the process from placing an order to completing warehousing of tobacco materials; establishing a multivariate linear regression prediction equation based on the relevant data that affect the actual monthly consumption of tobacco materials; substituting the data that affect the actual consumption of tobacco materials to be predicted into the multivariate linear regression prediction equation to obtain the predicted actual consumption; establishing a normal distribution model based on the data on the process from placing an order to completing warehousing of tobacco materials; based on the normal distribution model, calculating the number of safe days when a predetermined percentage is met; and calculating the purchase quantity of tobacco materials based on the predicted actual consumption and the number of safe days.
[0005] In some embodiments, the multivariate linear regression prediction equation is established based on the relevant data affecting the actual monthly consumption of tobacco materials, including: taking the factors affecting the actual consumption of tobacco materials in actual production as independent variables and the actual consumption as dependent variables, and establishing a multivariate linear regression prediction equation about specific coefficients for the independent variables and the dependent variables; substituting multiple groups of factors affecting the actual consumption of tobacco materials in actual production and data on actual production volume into the multivariate linear regression prediction equation to establish a system of simultaneous equations; using the least squares method to convert the system of simultaneous equations into a system of equations with undetermined coefficients, and solving and calculating to obtain specific values of the undetermined coefficients; substituting the specific values of the undetermined coefficients into the multivariate linear regression prediction equation.
[0006] In some embodiments, the normal distribution model is established based on the data of the process from placing an order to completing warehousing of tobacco materials, including: using the order date and warehousing date of the tobacco materials to calculate the order completion time; calculating the mean and standard deviation based on the order completion time; and calculating the normal distribution model based on the mean and standard deviation.
[0007] In some embodiments, the factors affecting the actual consumption of smoking materials include tobacco brand, planned tobacco production volume, actual tobacco production volume and demand for smoking materials.
[0008] In some embodiments, the multivariate linear regression prediction equation is: Y = b0 + b1x1 + b2x2 + b3x3 + ... + b n x n , where Y represents the dependent variable, x j represents the independent variable, b0, b1, b2, ..., b n represents the undetermined coefficient, j = 1, 2, 3 ... n, n represents the number of independent variables; the multiple groups of factors affecting the actual consumption of tobacco materials and the actual production data in actual production are substituted into the multivariate linear regression prediction equation to establish a simultaneous equation system, including: the actual data y of the m groups of dependent variables are represented as y1, y2, ..., y m , the actual data of m groups of independent variables are expressed as Set y1, y2, ..., y m and Substitute Y = b0 + b1x1 + b2x2 + b3x3 + ... + b n x n ,get That is, we get a system of simultaneous equations.
[0009] In some embodiments, the least square method is used to transform the system of simultaneous equations into a system of equations of undetermined coefficients, and the specific values of the undetermined coefficients are obtained by solving and calculating, including: the undetermined coefficients b0, b1, b2, ..., b n The system of equations is:
[0010] Represent the system of equations in matrix form as X T Y=X T XB; X T Y=X T Multiply both sides of XB by (X T X) -1 , we get B = (X T X) -1 X T Y,B=(X T X) -1 X T The matrix result obtained by Y is the unknown coefficients b0, b1, b2, ..., b n The value of .
[0011] According to a second aspect of the present disclosure, a device for determining the purchase quantity of tobacco materials is provided, comprising: an acquisition module for acquiring relevant data affecting the actual monthly consumption of tobacco materials and data on the process from placing an order to completing warehousing of tobacco materials; a first establishment module for establishing a multivariate linear regression prediction equation based on the relevant data affecting the actual monthly consumption of tobacco materials; a first calculation module for substituting the data affecting the actual consumption of tobacco materials to be predicted into the multivariate linear regression prediction equation to obtain the predicted actual consumption; a second establishment module for establishing a normal distribution model based on the data on the process from placing an order to completing warehousing of tobacco materials; a second calculation module for calculating, based on the normal distribution model, the number of safe days when a predetermined percentage is met; and a third calculation module for calculating the purchase quantity of tobacco materials based on the predicted actual consumption and the number of safe days.
[0012] According to a third aspect of the present disclosure, a device for determining the purchase quantity of smoking materials is provided, comprising: a memory; and a processor coupled to the memory, the processor being configured to execute the above-mentioned method for determining the purchase quantity of smoking materials based on instructions stored in the memory.
[0013] According to a fourth aspect of the present disclosure, a computer storable medium is provided, on which computer program instructions are stored, and when the instructions are executed by a processor, the method for determining the purchase quantity of tobacco materials as described above is implemented.
[0014] The advantages of the present invention are as follows: a multivariate linear regression prediction equation is established by using the factors that affect the actual consumption of tobacco materials in historical actual production and the actual consumption, which can effectively and accurately predict the loss of tobacco materials in actual consumption; in addition, a normal distribution curve is obtained by the order completion time required for the tobacco materials from placing an order to completing the warehousing process, and the safe days of tobacco materials are calculated according to the threshold conditions set to meet 95% of the situations, which can effectively reduce the safety inventory and optimize inventory management. The present invention can effectively optimize the purchase quantity of tobacco materials, achieve cost reduction and efficiency improvement, and reduce the cost of enterprises. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0016] Figure 1 is a flow chart showing a method for determining the purchase quantity of smoking materials according to some embodiments of the present disclosure.
[0017] Figure 2 is a normal distribution curve diagram showing the completion time of smoking material orders according to some embodiments of the present disclosure.
[0018] Figure 3 is a diagram showing a comparison between predicted values and actual values of smoking materials according to some embodiments of the present disclosure.
[0019] Figure 4 is a block diagram showing a device for determining the quantity of tobacco material to be purchased according to some embodiments of the present disclosure.
[0020] Figure 5 is a block diagram showing a device for determining the purchase quantity of tobacco materials according to other embodiments of the present disclosure.
[0021] Figure 6 is a block diagram illustrating a computer system for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION
[0022] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless otherwise specifically stated.
[0023] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
[0024] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present disclosure, its application, or uses.
[0025] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
[0026] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0027] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0028] At present, the tobacco industry is an important manufacturing field, and procurement management is crucial to the production and operation of enterprises. However, traditional procurement methods have many limitations, such as subjective evaluation method, experience method and cost comparison method, which often fail to fully consider various factors and over-rely on experience and subjective judgment, resulting in low procurement efficiency, high procurement costs and high inventory costs.
[0029] In view of this, the present disclosure proposes a method, device and medium for determining the purchase quantity of tobacco materials. The multivariate linear regression prediction equation is established by the factors affecting the actual consumption of tobacco materials in historical actual production and the actual consumption, which can effectively and accurately predict the loss of tobacco materials in actual consumption; in addition, the normal distribution curve is obtained by the order completion time required for the tobacco materials from placing an order to completing the warehousing process. According to the conditions of the threshold value that meets 95% of the situations, the safe days of tobacco materials are calculated, which can effectively reduce the safety inventory and optimize the inventory management. The present disclosure can effectively optimize the purchase quantity of tobacco materials, achieve cost reduction and efficiency improvement, and reduce the cost of enterprises.
[0030] Figure 1 FIG. 4 is a flow chart showing a method for determining the quantity of tobacco material purchased according to some embodiments of the present disclosure. Figure 1 As shown, the method for determining the purchase quantity of tobacco materials includes steps 110 to 160.
[0031] In step 110, relevant data affecting the actual monthly consumption of tobacco materials and data on the process from placing an order to completing warehousing of tobacco materials are obtained.
[0032] In step 120, a multiple linear regression prediction equation is established based on the relevant data affecting the actual monthly consumption of the smoking material.
[0033] In step 130, the data that need to be predicted that affect the actual consumption of the smoking material are substituted into the multivariate linear regression prediction equation to obtain the predicted actual consumption.
[0034] In step 140, a normal distribution model is established based on the data of the process from placing an order to completing warehousing of the tobacco materials.
[0035] In step 150, the number of safe days under the condition of satisfying a predetermined percentage is calculated according to the normal distribution model.
[0036] In step 160, the purchase quantity of tobacco materials is calculated based on the predicted actual consumption and the number of safe days.
[0037] Specifically, first, the actual consumption of tobacco materials for the next month is obtained based on the multivariate linear regression prediction equation.
[0038] For the prediction of the actual consumption of tobacco materials, it is clear that changes in factors such as tobacco brand, tobacco production plan, actual tobacco production, and demand for tobacco materials will cause changes in the prediction results. When determining the prediction model of actual consumption of tobacco materials based on the multivariate linear regression algorithm, the independent variables should be based on the above factors. At the same time, the following assumption is made: the actual consumption of tobacco materials per month in history has developed in accordance with the law of multivariate linearity, and the change in the law of development is caused by new external factors. In this embodiment, the influencing factors of the actual consumption of tobacco materials are tobacco brand, tobacco production plan, actual tobacco production, and demand for tobacco materials, a total of four influencing factors, and the value to be predicted is the actual consumption of tobacco materials next month.
[0039] Tobacco brands are encoded using one-hot coding, so that they are sorted according to the rule of 1, 2, ..., n. The unit of tobacco production plan and actual tobacco production is box. The units of tobacco material demand are mainly sticks, ten thousand sticks, sheets, trays, etc., which are also encoded using one-hot coding.
[0040] The training methods of the multivariate linear regression prediction model (or equation) include:
[0041] Step 1: Taking the factors that affect the actual consumption of tobacco materials in actual production as independent variables and the actual consumption as dependent variables, a multiple linear regression prediction equation is established for the independent variables and dependent variables with respect to the unknown coefficients. The multiple linear regression prediction equation is: Y = b0 + b1x1 + b2x2 + b3x3 + ... + b n x n (1), where Y is the dependent variable, i.e., the actual consumption of tobacco materials, and x j are independent variables, i.e., factors that affect the actual consumption of tobacco materials in actual production. n is the unknown coefficient, j=1,2,3…n, n is the number of independent variables.
[0042] In this example, n is 4. The key to predicting using the multiple linear regression prediction method is to determine the coefficients of the multiple linear regression equation. It can be seen that in the multiple linear regression equation, once the undetermined coefficients are determined, the formula is also determined.
[0043] Step 2: Substitute multiple groups of factors affecting the actual consumption of tobacco materials and the actual production data into the multivariate linear regression prediction equation to establish a system of simultaneous equations. The actual data y of the m groups of dependent variables are expressed as y1, y2, …, y m , and the actual data of m groups of independent variables are expressed as: Substituting the actual data of formula (2) into formula (1), we get the following system of simultaneous equations:
[0044]
[0045] Convert formula (3) into matrix form:
[0046] Y=XΒ(4); In the above formula, Y is the actual data matrix of the dependent variable, X is the actual matrix of the independent variable, and B is the coefficient matrix to be determined. The formulas are as follows:
[0047]
[0048] Step 3: Use the least square method to transform the system of simultaneous equations into a system of equations with undetermined coefficients, and solve and calculate the specific values of the undetermined coefficients. n The system of equations is:
[0049] The above formula (8) can be expressed in matrix form as follows: Τ Y=X Τ XΒ(9), multiply both sides of formula (9) by (X Τ X) -1 , we can get the following matrix expression: Β=(X Τ X) -1 X Τ Y(10).
[0050] Step 4: The matrix result obtained by formula (10) is the unknown coefficients b0, b1, b2, …, b n After the unknown coefficients are determined, substitute the specific values of the unknown coefficients into the multivariate linear regression prediction equation of formula (1).
[0051] The present disclosure inputs a total of 23,550 project data from February to September 2023 as a training set to obtain the undetermined coefficients of each influencing factor, as shown in Table 1; 5,937 project data are used as a test set to verify the accuracy of the model. The results show that the prediction accuracy of the actual consumption of tobacco materials next month is relatively high. Figure 3 shown.
[0052] Table 1 The actual consumption of tobacco materials next month and the coefficient values to be determined
[0053]
[0054] The undetermined coefficients of the prediction model disclosed in the present invention are not always constant. When the predicted value deviates greatly from the actual value, the selected samples need to be re-learned to update the undetermined coefficients in time to improve the accuracy of the prediction model.
[0055] 2. Obtaining the safe number of days for smoking materials based on the normal distribution model
[0056] Taking the cigarette material Liqun (soft red long mouth) box as an example, the method of determining the number of safe days based on normal distribution is as follows. The following data units are all days, and the steps are as follows:
[0057] Obtain data on the process of Liqun (soft red long mouth) strip boxes from order placement to completion of warehousing from February to September 2023. Use the order date and warehousing date to calculate the order completion time. Calculate the mean μ = 38.2 and standard deviation δ = 19.1 of the order completion time. Based on the calculated mean and standard deviation data, obtain the normal distribution model and normal distribution curve, as shown in Figure 2 As shown. Taking the mean data as reference data and following the normal distribution law, the number of safe days under 95% conditions is 21.
[0058] Finally, the actual consumption predicted by the multivariate linear regression model and the safety days calculated by the normal distribution model are put into the calculation rule: the recommended purchase quantity for next month = (this month's production + next month's production) * single box usage + (this month's production + next month's production) * single box usage / 60 * safety days - (beginning inventory + this month's orders arriving in stock + this month's orders not arriving in stock), and the final purchase quantity of tobacco materials is obtained.
[0059] In the present disclosure, a prediction method for the actual consumption of tobacco materials based on a multiple linear regression model is used. The multiple linear regression model method adopted uses a cross-validation method to test the significance of the regression equation to ensure the accuracy of the prediction; at the same time, the normal distribution law is used to calculate the number of safe days for tobacco materials. Through the above method, a more realistic and accurate purchase quantity of tobacco materials can be obtained, which effectively reduces safety inventory, optimizes inventory management, reduces costs and increases efficiency, and reduces the cost of the enterprise.
[0060] Figure 4 is a block diagram showing a device for determining the quantity of tobacco material purchased according to some embodiments of the present disclosure. Figure 4 As shown, the device 400 for determining the quantity of tobacco material to be purchased includes a first establishing module 410 , a first calculating module 420 , a second establishing module 430 , a second calculating module 440 , and a third calculating module 450 .
[0061] The first establishing module 410 is used to establish a multivariate linear regression prediction equation according to the relevant data affecting the actual monthly consumption of the smoking material;
[0062] The first calculation module 420 is used to substitute the data that needs to be predicted that affects the actual consumption of the smoking material into the multivariate linear regression prediction equation to obtain the predicted actual consumption;
[0063] The second building module 430 is used to build a normal distribution model based on the data of the process from placing an order to completing the warehousing of the tobacco materials;
[0064] The second calculation module 440 is used to calculate the number of safe days when a predetermined percentage is met according to the normal distribution model;
[0065] The third calculation module 450 is used to calculate the purchase quantity of tobacco materials based on the predicted actual consumption and the number of safe days.
[0066] In the device of the disclosed embodiment, the prediction method of the actual consumption of tobacco materials based on the multivariate linear regression model uses a multivariate linear regression model method, which performs a significance test on the regression equation through a cross-validation method to ensure the accuracy of the prediction; at the same time, the normal distribution law is used to calculate the number of safe days for tobacco materials. Through the above method, a more realistic and accurate purchase quantity of tobacco materials can be obtained, which effectively reduces safety inventory, optimizes inventory management, reduces costs and increases efficiency, and reduces the cost of the enterprise.
[0067] Figure 5 is a block diagram showing a device for determining the quantity of tobacco material purchased according to other embodiments of the present disclosure. Figure 5 As shown, the device 500 for determining the quantity of tobacco material purchased includes a memory 510; and a processor 520 coupled to the memory 510. The memory 510 is used to store instructions for executing the corresponding embodiments of the method for determining the quantity of tobacco material purchased. The processor 520 is configured to execute the method for determining the quantity of tobacco material purchased in any of the embodiments of the present disclosure based on the instructions stored in the memory 510.
[0068] Figure 6 is a block diagram showing a computer system for implementing some embodiments of the present disclosure. Figure 6 As shown, computer system 600 may be embodied in the form of a general purpose computing device. Computer system 600 includes memory 610, processor 620, and bus 630 that connects various system components.
[0069] The memory 610 may include, for example, a system memory, a non-volatile storage medium, etc. The system memory may store, for example, an operating system, an application program, a boot loader, and other programs. The system memory may include a volatile storage medium, such as a random access memory (RAM) and / or a cache memory. The non-volatile storage medium may store, for example, instructions for executing at least one of the corresponding embodiments of the method for determining the quantity of tobacco material purchases. The non-volatile storage medium includes, but is not limited to, a disk storage, an optical storage, a flash memory, etc.
[0070] The processor 620 may be implemented by a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistors, etc. Accordingly, each module such as the first establishment module, the first calculation module, the second establishment module, the second calculation module, and the third calculation module may be implemented by a central processing unit (CPU) running instructions in a memory for executing corresponding steps, or may be implemented by a dedicated circuit for executing corresponding steps.
[0071] The bus 630 may use any of a variety of bus architectures, including, but not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MCA) bus, and a Peripheral Component Interconnect (PCI) bus.
[0072] The computer system 600 may also include an input / output interface 640, a network interface 650, a storage interface 660, etc. These interfaces 640, 650, 660, the memory 610, and the processor 620 may be connected via a bus 630. The input / output interface 640 may provide a connection interface for input / output devices such as a display, a mouse, and a keyboard. The network interface 650 may provide a connection interface for various networked devices. The storage interface 660 may provide a connection interface for external storage devices such as a floppy disk, a USB flash drive, and an SD card.
[0073] Here, various aspects of the present disclosure are described with reference to flowcharts and / or block diagrams of methods, devices, and computer program products according to embodiments of the present disclosure. It should be understood that each frame of the flowchart and / or block diagram and the combination of frames can be implemented by computer-readable program instructions.
[0074] These computer-readable program instructions may be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable device to produce a machine, so that the processor executes the instructions to produce means for implementing the functions specified in one or more blocks in the flowchart and / or block diagram.
[0075] These computer-readable program instructions may also be stored in a computer-readable memory, which cause the computer to work in a specific manner to produce an article of manufacture, including instructions for implementing the functions specified in one or more blocks in the flowchart and / or block diagram.
[0076] The present disclosure can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects.
[0077] In the present disclosure, a prediction method for the actual consumption of tobacco materials based on a multiple linear regression model is used. The multiple linear regression model method adopted uses a cross-validation method to test the significance of the regression equation to ensure the accuracy of the prediction; at the same time, the normal distribution law is used to calculate the number of safe days for tobacco materials. Through the above method, a more realistic and accurate purchase quantity of tobacco materials can be obtained, which effectively reduces safety inventory, optimizes inventory management, reduces costs and increases efficiency, and reduces the cost of the enterprise.
[0078] So far, the method, device and medium for determining the quantity of tobacco material purchased according to the present disclosure have been described in detail. In order to avoid obscuring the concept of the present disclosure, some details known in the art are not described. Based on the above description, those skilled in the art can fully understand how to implement the technical solution disclosed herein.
[0079] Although some specific embodiments of the present disclosure have been described in detail by way of examples, it should be understood by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present disclosure. It should be understood by those skilled in the art that the above embodiments may be modified without departing from the scope and spirit of the present disclosure. The scope of the present disclosure is defined by the appended claims.
Claims
1. A method for determining the purchase quantity of tobacco materials, characterized in that: The method comprises: Obtain relevant data that affects the actual monthly consumption of tobacco materials, as well as data on the process of tobacco materials from order placement to completion of warehousing; Establishing a multiple linear regression prediction equation based on the relevant data affecting the actual monthly consumption of tobacco materials; Substituting the data that need to be predicted affecting the actual consumption of tobacco materials into the multivariate linear regression prediction equation to obtain the predicted actual consumption; A normal distribution model is established based on the data of the process from placing an order to completing warehousing of tobacco materials; According to the normal distribution model, the number of safe days under the condition of meeting the predetermined percentage is calculated; The purchase quantity of tobacco materials is calculated based on the predicted actual consumption and safety days.
2. The method for determining the purchase quantity of tobacco materials according to claim 1, characterized in that: The multiple linear regression prediction equation is established based on the relevant data affecting the actual monthly consumption of the tobacco materials, including: Taking the factors that affect the actual consumption of tobacco materials in actual production as independent variables and the actual consumption as dependent variable, a multivariate linear regression prediction equation about specific coefficients of the independent variables and dependent variables is established; Substitute multiple groups of factors affecting the actual consumption of tobacco materials and data on actual production volume into the multivariate linear regression prediction equation to establish a simultaneous equation system; The least square method is used to transform the simultaneous equations into an equation system with undetermined coefficients, and the specific values of the undetermined coefficients are obtained by solving and calculating. Substitute the specific values of the unknown coefficients into the multiple linear regression prediction equation.
3. The method for determining the purchase quantity of tobacco materials according to claim 1, characterized in that: The normal distribution model is established based on the data of the process from placing an order to completing the warehousing of tobacco materials, including: The order completion time is calculated using the order date and warehousing date of the tobacco materials; Calculate the mean and standard deviation based on order completion time; Based on the mean and standard deviation, the normal distribution model is calculated.
4. The method for determining the purchase quantity of tobacco materials according to claim 2, characterized in that: The factors affecting the actual consumption of tobacco materials include tobacco brand, tobacco production plan, actual tobacco production and demand for tobacco materials.
5. The method for determining the purchase quantity of tobacco materials according to claim 2, characterized in that: The multivariate linear regression prediction equation is: Y=b0+b1x1+b2x2+b3x3+…b n x n , where Y represents the dependent variable, x j represents the independent variable, b0, b1, b2, ..., b n represents the unknown coefficient, j = 1, 2, 3…n, n represents the number of independent variables; Substituting multiple groups of factors affecting the actual consumption of tobacco materials and data of actual production volume in actual production into multiple linear regression prediction equations to establish a set of simultaneous equations, including: The actual data y of the m groups of dependent variables are expressed as y1, y2, …, y m , the actual data of m groups of independent variables are expressed as Set y1, y2, ..., y m and Substitute Y = b0 + b1x1 + b2x2 + b3x3 + ... + b n x n ,get That is, we get a system of simultaneous equations.
6. The method for determining the purchase quantity of tobacco materials according to claim 5, characterized in that: The method of converting the system of simultaneous equations into a system of equations with undetermined coefficients by using the least squares method, and solving and calculating the specific values of the undetermined coefficients, includes: Undetermined coefficients b0, b1, b2, ..., b n The system of equations is: Represent the system of equations in matrix form as X T Y=X T XB; X T Y=X T Multiply both sides of XB by (X T X) -1 , we get B = (X T X) -1 X T Y, B = (X T X) -1 X T The matrix result obtained by Y is the unknown coefficients b0, b1, b2, ..., b n The value of .
7. A device for determining the quantity of tobacco material purchased, characterized in that: include: The acquisition module is used to acquire relevant data affecting the actual monthly consumption of tobacco materials, as well as data on the process of tobacco materials from order placement to completion of warehousing; The first establishment module is used to establish a multiple linear regression prediction equation based on the relevant data affecting the actual monthly consumption of the smoking material; The first calculation module is used to substitute the data that needs to be predicted that affects the actual consumption of the tobacco material into the multivariate linear regression prediction equation to obtain the predicted actual consumption; The second building module is used to build a normal distribution model based on the data of the process from placing an order to completing the warehousing of tobacco materials; The second calculation module is used to calculate the number of safe days when a predetermined percentage is met according to a normal distribution model; The third calculation module is used to calculate the purchase quantity of tobacco materials based on the predicted actual consumption and safety days.
8. A device for determining the quantity of tobacco material purchased, characterized in that: include: Memory; as well as A processor coupled to the memory, the processor being configured to execute the method for determining the quantity of tobacco material to be purchased according to any one of claims 1 to 6 based on instructions stored in the memory.
9. A computer storable medium, characterized in that: Computer program instructions are stored thereon, and when the instructions are executed by a processor, the method for determining the purchase quantity of tobacco materials as described in any one of claims 1 to 6 is implemented.
Citation Information
Cited By
Grouting system and method for house engineering construction
CN118966981A
