Fertilizer proportion optimization method, device and equipment based on artificial intelligence and medium

Through the fertilizer ratio optimization method based on artificial intelligence, the problem of difficulty in determining the mixing ratio of multiple raw materials in the prior art is solved, and the use ratio of each raw material is directly determined while reducing the cost of fertilizer production.

CN119623841APending Publication Date: 2025-03-14SHANSHU TECH (BEIJING) CO LTD +5
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411682045.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-22
Publication Date
2025-03-14

AI Technical Summary

Technical Problem

The prior art is difficult to minimize production costs while determining the mixing ratio of multiple raw materials, especially when raw material prices fluctuate.

Method used

Using the fertilizer ratio optimization method based on artificial intelligence, the objective function between production cost and usage ratio is constructed by obtaining the attribute parameters of raw materials and the production formula of composite fertilizers, and the usage ratio of raw materials is adjusted according to the constraints until the production cost is lowest.

Benefits of technology

It realizes that the proportion of use of each raw material is directly determined while controlling production costs, reducing the cost of fertilizer production.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119623841A_ABST
    Figure CN119623841A_ABST
Patent Text Reader

Abstract

The invention provides a fertilizer proportion optimization method, device and equipment based on artificial intelligence and a medium. The method comprises the following steps: acquiring attribute parameters of at least one raw material and a production formula of at least one compound fertilizer, wherein the attribute parameters comprise stock quantity of the raw materials, purchase price of the raw materials and composition elements of the raw materials; according to each attribute parameter and each production formula, constructing a target function between the sum of the production cost of each compound fertilizer and the use proportion of each raw material in each compound fertilizer; determining constraint conditions of each component element according to each attribute parameter and each production formula, wherein the constraint conditions are used for constraining the use ratio of each component element in each compound fertilizer; and based on the constraint condition, adjusting the use proportion of each raw material in each compound fertilizer until the production cost is the lowest, and obtaining the raw material proportion of each compound fertilizer. According to the fertilizer proportion optimization method, the mixing proportion of various raw materials can be determined, so that the production cost is lowest.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of fertilizer production technology, and more specifically, to a fertilizer ratio optimization method, device, equipment and medium based on artificial intelligence. Background Art

[0002] Fertilizer is a substance used to supplement the missing nutrients in the soil and promote plant growth. Each fertilizer contains certain components. In today's agricultural production, in order to meet the increasing demand for food with the growth of population and the acceleration of urbanization, fertilizers are usually used to supplement the lack of nutrients in the soil, thereby increasing the growth rate and yield of crops.

[0003] Fertilizers include organic fertilizers and chemical fertilizers. Organic fertilizers refer to animal manure, plant residues, and green manure crops, while chemical fertilizers are produced through chemical synthesis processes.

[0004] For the production and processing of chemical fertilizers, the production formula is fixed or changes with the inventory of raw materials. However, in the long-term production process of chemical fertilizers, since the price fluctuations of various raw materials are difficult to predict, it is difficult to directly determine the mixing ratio of various raw materials based on the production formula to minimize production costs. Summary of the invention

[0005] In view of the above problems, the present application aims to provide a fertilizer ratio optimization method, device, equipment and medium based on artificial intelligence to solve the problem in the prior art that it is difficult to determine the mixing ratio of multiple raw materials while minimizing the production cost.

[0006] In a first aspect, the present application provides a method for optimizing fertilizer ratio based on artificial intelligence, comprising:

[0007] Acquire at least one attribute parameter of a raw material and at least one production formula of a compound fertilizer, wherein the attribute parameter includes the inventory quantity of the raw material, the purchase price of the raw material, and the constituent elements of the raw material;

[0008] Constructing an objective function between the sum of the production costs of each compound fertilizer and the usage ratio of each raw material in each compound fertilizer according to each of the attribute parameters and each of the production formulas;

[0009] Determining constraints for each of the constituent elements according to each of the attribute parameters and each of the production formulas, wherein the constraints are used to constrain the usage ratio of each of the constituent elements in each of the compound fertilizers;

[0010] Based on the constraint conditions, the usage ratio of each raw material in each compound fertilizer is adjusted until the production cost is the lowest, thereby obtaining the raw material ratio of each compound fertilizer.

[0011] In a possible implementation manner, determining the constraint conditions of each of the component elements according to each of the attribute parameters and each of the production formulas includes:

[0012] Obtaining a first proportion of each of the constituent elements in each of the raw materials;

[0013] Determine the maximum available quantity corresponding to each of the component elements based on each of the first proportions and each of the inventory quantities;

[0014] The sum of the contents of the at least one constituent element in each of the compound fertilizers is limited to not exceed the corresponding maximum available amount.

[0015] In a possible implementation manner, after obtaining the first proportion of each of the constituent elements in each of the raw materials, the method further includes:

[0016] Obtaining a second proportion of each of the constituent elements in each of the compound fertilizers based on each of the first proportions;

[0017] Determine a first ratio lower limit and a first ratio upper limit corresponding to each of the second ratios.

[0018] In a possible implementation, the obtaining, based on the first proportions, a second proportion of each of the constituent elements in each of the compound fertilizers includes:

[0019] The sum of the products of the usage ratio of each raw material in each compound fertilizer and each first proportion is determined as each second proportion.

[0020] In a possible implementation manner, after obtaining the second proportion of each of the constituent elements in each of the compound fertilizers based on each of the first proportions, the method further includes:

[0021] Determine a second ratio lower limit and a second ratio upper limit corresponding to the sum of multiple second ratios of the same compound fertilizer.

[0022] In a possible implementation manner, determining the constraint conditions of each of the component elements according to each of the attribute parameters and each of the production formulas includes:

[0023] The total content of each of the raw materials in any one or more compound fertilizers is limited to not exceed the corresponding inventory quantity.

[0024] In a possible implementation, constructing an objective function between the sum of the production costs of each compound fertilizer and the usage ratio of each raw material in each compound fertilizer according to each of the attribute parameters and each of the production formulas includes:

[0025] Constructing an alternative function between the production cost of each compound fertilizer and the usage ratio of each raw material in each compound fertilizer based on each attribute parameter and each production formula;

[0026] The candidate functions corresponding to the compound fertilizers are added together to obtain an objective function between the sum of the production costs of the compound fertilizers and the usage ratio of the raw materials in the compound fertilizers.

[0027] In a second aspect, the present application provides a fertilizer ratio optimization device based on artificial intelligence, comprising:

[0028] An acquisition module is configured to acquire at least one attribute parameter of a raw material and at least one production formula of a compound fertilizer, wherein the attribute parameter includes the inventory quantity of the raw material, the purchase price of the raw material, and the constituent elements of the raw material;

[0029] A construction module is configured to construct an objective function between the sum of the production costs of each compound fertilizer and the usage ratio of each raw material in each compound fertilizer according to each of the attribute parameters and each of the production formulas;

[0030] A determination module is configured to determine the constraint conditions of each of the constituent elements according to each of the attribute parameters and each of the production formulas, wherein the constraint conditions are used to constrain the usage ratio of each of the constituent elements in each of the compound fertilizers;

[0031] The adjustment module is configured to adjust the usage ratio of each raw material in each compound fertilizer based on the constraint conditions until the production cost is the lowest, thereby obtaining the material ratio of each compound fertilizer.

[0032] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor;

[0033] The memory stores computer-executable instructions;

[0034] The processor executes the computer-executable instructions stored in the memory to implement the method in any possible implementation of the first aspect above.

[0035] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer execution instructions, and when the computer execution instructions are executed by a processor, they are used to implement the method in any possible implementation manner of the above-mentioned first aspect.

[0036] The present application provides an artificial intelligence-based fertilizer ratio optimization method, device, equipment and medium, which constrains the usage ratio of the constituent elements in the compound fertilizer according to the inventory quantity of the raw materials, and then adjusts the usage ratio of the raw materials in each compound fertilizer according to the determined constraint conditions, so that the inventory of raw materials can be used in a targeted manner to determine the material ratio of the compound fertilizer, so that when the compound fertilizer is produced according to the material ratio, the inventory of raw materials can be consumed in a targeted manner, thereby reducing the production cost of the fertilizer; at the same time, by utilizing the purchase price of the raw materials, a functional relationship between the production cost and the usage ratio of the raw materials is formed, so that when the usage ratio of the raw materials is adjusted, the production cost can be predicted based on the functional relationship, and finally, when the production cost is lowest, the material ratio that meets the constraint conditions is determined, so that the ratio of each raw material in all compound fertilizers can be determined to minimize the production cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0038] Figure 1 A schematic diagram of a process flow of a fertilizer ratio optimization method based on artificial intelligence provided in an embodiment of the present application;

[0039] Figure 2 A flowchart of a method for determining a constraint condition provided in an embodiment of the present application;

[0040] Figure 3 A flowchart of another method for determining constraint conditions provided in an embodiment of the present application;

[0041] Figure 4 A schematic diagram of the structure of a fertilizer ratio optimization device based on artificial intelligence provided in an embodiment of the present application;

[0042] Figure 5 A hardware structure diagram of an electronic device provided in an embodiment of the present application.

[0043] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0044] 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 implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0045] In the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with substantially the same functions and effects. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference.

[0046] It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way. In the embodiments of the present application, "at least one" refers to one or more, and "more than one" refers to two or more.

[0047] It should be noted that the “at…” in the embodiments of the present application may be the instant when a certain situation occurs, or may be a period of time after the occurrence of a certain situation, and the embodiments of the present application do not specifically limit this.

[0048] Chemical fertilizers usually contain the main nutrients necessary for plant growth, such as nitrogen (N), phosphorus (P) and potassium (K), as well as secondary nutrients and trace nutrients. According to the main nutrients contained, chemical fertilizers can be divided into nitrogen fertilizers, phosphorus fertilizers, potash fertilizers and compound fertilizers. The raw materials of nitrogen fertilizers are, for example, urea, ammonium sulfate, ammonium nitrate and ammonia water. Among them, urea contains 40%-50% nitrogen, ammonium sulfate contains 15%-25% nitrogen, and ammonium nitrate contains 30%-40% nitrogen. The raw materials of phosphate fertilizers are, for example, superphosphate, dicalcium phosphate, monoammonium phosphate, diammonium phosphate and phosphate rock powder. Among them, superphosphate and dicalcium phosphate both contain 20%-30% phosphorus, monoammonium phosphate and diammonium phosphate both contain 40%-50% phosphorus and 11%-18% nitrogen, and phosphate rock powder is a natural mineral. The raw materials of potash fertilizers are, for example, potassium sulfate, potassium chloride, potassium carbonate and potassium-magnesium fertilizer. Among them, potassium sulfate contains 50%-52% potassium, potassium chloride contains 50%-60% potassium, potassium carbonate contains 57% potassium, and potassium-magnesium fertilizer is a natural mineral containing potassium and magnesium. Compound fertilizer is a fertilizer containing two or more main nutrient elements. Among them, the nitrogen element in compound fertilizer mainly comes from nitrogen fertilizer, the phosphorus element in compound fertilizer mainly comes from phosphorus fertilizer, and the potassium element in compound fertilizer mainly comes from potash fertilizer.

[0049] Since different types of raw materials may include different constituent elements, and there may be multiple constituent elements, the production formula of compound fertilizer can be fixed, that is, the proportion of each constituent element in the compound fertilizer can be fixed. However, since the constituent elements are difficult to exist alone, they usually exist in various raw materials in the form of compounds. Therefore, the production of compound fertilizer is essentially a mixture of multiple raw materials. And since different types of raw materials may include the same constituent elements, different types of raw materials can be replaced with each other, that is, multiple mixing ratios that meet the production formula can be determined based on multiple raw materials. In addition, based on cost considerations, since the price fluctuations of different types of raw materials are difficult to predict, it is difficult to directly determine the mixing ratio of multiple raw materials based on the production formula to minimize production costs.

[0050] In order to achieve the above-mentioned purpose, the present embodiment provides a fertilizer ratio optimization method, device, equipment and medium based on artificial intelligence. By constructing a functional relationship between raw materials and production costs, the production cost changes with the change of the input ratio of raw materials. At the same time, based on the usage ratio of each component element in each compound fertilizer, the usage ratio of multiple raw materials is adjusted until the production cost is lowest. In this way, the usage ratio of each raw material can be directly determined while controlling the production cost.

[0051] It should also be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in one or more embodiments in this specification are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards, and corresponding operation entrances are provided for users to choose to authorize or refuse.

[0052] The following describes the warehouse transfer method provided by the exemplary embodiment of the present application in combination with the above-mentioned application scenarios and with reference to the accompanying drawings. It should be noted that the above-mentioned application scenarios are only shown to facilitate understanding of the spirit and principles of the present application, and the implementation methods of the present application are not subject to any limitations in this regard.

[0053] Figure 1 The following is a flow chart of a fertilizer ratio optimization method based on artificial intelligence provided in the embodiment of the present application. Figure 1 As shown, a fertilizer ratio optimization method based on artificial intelligence may include the following steps:

[0054] S101: Obtaining property parameters of at least one raw material and a production formula of at least one compound fertilizer.

[0055] In this step, the attribute parameters of the raw materials include the inventory quantity of the raw materials, the purchase price of the raw materials, and the components of the raw materials. The purchase price of the raw materials is the real-time market price, that is, the market price when the raw materials are actually purchased.

[0056] In some embodiments, if the raw materials are in stock, and the purchase time of the stored raw materials is the first time x, then the purchase price of the raw materials in stock is the market price corresponding to the first time x. If the raw material demand A is greater than the inventory quantity a, the raw material quantity to be purchased A-a is determined, and the purchase time of the quantity to be purchased is the second time y, then the purchase price of the raw materials to be purchased is the market price corresponding to the second time y.

[0057] The production formula of compound fertilizer includes the types of constituent elements and the proportions of various constituent elements. The constituent elements exist in the raw materials in the form of compounds, so the raw materials contain at least one constituent element.

[0058] S102: constructing an objective function between the sum of the production costs of each compound fertilizer and the usage ratio of each raw material in each compound fertilizer according to each attribute parameter and each production formula.

[0059] Specifically, an alternative function between the production cost of each compound fertilizer and the usage ratio of each raw material in each compound fertilizer can be constructed based on each attribute parameter and each production formula; then the alternative functions corresponding to each compound fertilizer are added together to obtain the objective function between the sum of the production costs of each compound fertilizer and the usage ratio of each raw material in each compound fertilizer.

[0060] Furthermore, the production cost of each compound fertilizer can be calculated using the purchase price of each raw material, the proportion of each raw material used in each compound fertilizer, and the total amount of each compound fertilizer. The purchase price of the raw materials and the total amount of each compound fertilizer are known constants, the proportion of each raw material used in each compound fertilizer is the independent variable, and the production cost is the dependent variable.

[0061] In some embodiments, the production cost of the i-th compound fertilizer can be calculated by the following formula:

[0062]

[0063] Among them, T' i represents the production cost of the i-th compound fertilizer, pi represents the i-th compound fertilizer, need pi Characterizes the total amount of the i-th compound fertilizer, v mj represents the purchase price of the jth raw material, c represents the total number of raw materials, x pi,mj Characterizes the usage ratio of the jth raw material when producing the i-th compound fertilizer.

[0064] Furthermore, the sum of the production costs of each compound fertilizer can be calculated by the following formula:

[0065]

[0066] Among them, T represents the sum of the production costs of each compound fertilizer, pi represents the i-th compound fertilizer, b represents the total number of compound fertilizers, need pi Characterizes the total amount of the i-th compound fertilizer, v mj represents the purchase price of the jth raw material, c represents the total number of raw materials, x pi,mj Characterizes the usage ratio of the jth raw material when producing the i-th compound fertilizer.

[0067] m represents a raw material in M', and M' represents the set of all raw materials. Wherein, m∈M', and the types of raw materials included in M' are, for example, urea, monoammonium phosphate, diammonium phosphate, potassium chloride, potassium sulfate, etc. P' represents the set of all compound fertilizers, and p represents a compound fertilizer in P', p∈P'.

[0068] S103: Determine the constraint conditions of each component element according to each attribute parameter and each production formula, where the constraint conditions are used to constrain the usage ratio of each component element in each compound fertilizer.

[0069] Specifically, the content of each raw material in any compound fertilizer may be limited to not exceed the corresponding inventory quantity. The content of each raw material in any compound fertilizer may be calculated by the following formula:

[0070] Mj=need pi × pi,mj ≤inv mj

[0071] Among them, Mj represents the content of the jth raw material in the i-th compound fertilizer, inv mj Represents the inventory quantity of the j-th raw material, i is a positive integer, and its value range is [1, b].

[0072] It is also possible to limit the sum of the contents of each raw material in at least two compound fertilizers to not exceed the corresponding inventory quantity.

[0073] In some embodiments, the sum of the contents of each raw material in the entire compound fertilizer can be calculated by the following formula:

[0074]

[0075] S104: Based on the constraint conditions, the usage ratio of each raw material in each compound fertilizer is adjusted until the production cost is lowest, and the raw material ratio of each compound fertilizer is obtained.

[0076] Specifically, based on the constraints, the functional relationship between the production cost and the usage ratio of each raw material in each compound fertilizer can be optimized and calculated until the production cost is the lowest, and the raw material ratio of all compound fertilizers is obtained.

[0077] After establishing the objective function and obtaining all the constraints, the constraints and the parameters in the objective function can be converted into a specific programming language and solved with the help of an operations research solver to obtain the raw material ratios of all compound fertilizers.

[0078] Among them, operations research solvers are software tools or algorithm libraries specially designed to solve various optimization problems in operations research. These solvers can handle various types of problems including linear programming, integer programming, mixed integer programming, nonlinear programming, etc. They use efficient algorithms and numerical techniques to search the feasible solution space and find solutions that meet the constraints and make the objective function optimal. Common operations research solvers such as CPLEX, Gurobi, SCIP, etc. are widely used in industrial engineering, management science, transportation, energy and other fields to help decision makers make the best decisions to improve efficiency, reduce costs, optimize resource allocation, etc.

[0079] The fertilizer ratio optimization method based on artificial intelligence provided by the above embodiment, by constraining the use ratio of the constituent elements in the compound fertilizer according to the inventory quantity of the raw materials, and then adjusting the use ratio of the raw materials in each compound fertilizer according to the determined constraint conditions, so that the raw materials in stock can be used to determine the raw material ratio of the compound fertilizer in a targeted manner, so that when the compound fertilizer is produced according to the raw material ratio, the raw materials in stock can be consumed in a targeted manner, thereby reducing the production cost. At the same time, by using the purchase price of the raw materials, a functional relationship between the production cost and the use ratio of the raw materials is formed, so that when the use ratio of the raw materials is adjusted, the production cost can be predicted according to the functional relationship, and finally, when the production cost is the lowest, the raw material ratio that meets the constraint conditions is determined, so that the ratio ratio of each raw material in all compound fertilizers can be determined, so that the production cost is minimized. In addition, the raw material ratio ratio of multiple compound fertilizers can be determined based on the inventory quantity of the raw materials, so that the working efficiency of the ratio optimization is higher.

[0080] In some embodiments, after obtaining the raw material ratio of compound fertilizer, the fertilizer ratio optimization method based on artificial intelligence also includes: determining the demand for raw materials according to the raw material ratio of each compound fertilizer and the total amount of compound fertilizer, if the demand for raw materials is greater than the inventory quantity of raw materials, then using the demand for raw materials minus the inventory quantity of raw materials, obtain the quantity of raw materials to be purchased, and push the quantity of raw materials to be purchased to the purchaser. If the demand for raw materials is greater than or equal to the inventory quantity of raw materials, then directly mix the various types of raw materials according to the raw material ratio of each compound fertilizer to obtain compound fertilizer. In this way, after determining that the demand for raw materials is greater than the inventory quantity of raw materials, directly use the demand for raw materials minus the inventory quantity of raw materials to obtain the quantity of raw materials to be purchased, and push the quantity of raw materials to be purchased to the purchaser, so that the purchaser can be urged to purchase the missing raw materials in time to avoid insufficient raw materials when producing compound fertilizer according to the raw material ratio.

[0081] In some embodiments, after obtaining the raw material ratios of each compound fertilizer, the fertilizer ratio optimization method based on artificial intelligence also includes: mixing various types of raw materials according to the raw material ratios of each compound fertilizer to obtain multiple compound fertilizers.

[0082] Among them, the sum of the usage proportions of each raw material in each compound fertilizer is equal to 1.

[0083] Specifically, the sum of the usage ratios of the raw materials in the i-th compound fertilizer satisfies the formula:

[0084]

[0085] Among them, xpi,mj Indicates the proportion of the jth raw material used in the i-th compound fertilizer. c indicates the total number of raw materials.

[0086] Figure 2 A flowchart of a method for determining constraint conditions provided in an embodiment of the present application is provided. Figure 1 Based on the embodiment shown, a method for determining constraint conditions is provided, such as Figure 2 As shown, a method for determining a constraint condition may include the following steps:

[0087] S201: Obtain a first proportion of each component element in each raw material.

[0088] When the type of raw material is determined, the proportion of each component element in the raw material can be determined. Specifically, the type of raw material can be used to perform a matching operation in a preset database to obtain the first proportion of each component element in the raw material. The database stores the corresponding relationship between the type of raw material and the first proportion of the component element.

[0089] In addition, the first proportion of each component element in the raw material can also be determined by detecting the content of the component elements in the raw material. Specifically, the method for detecting the content of nitrogen in the raw material is, for example, Kjeldahl nitrogen determination, distillation-titration, and direct titration. The method for detecting the content of phosphorus in the raw material is, for example, colorimetry, titration, atomic absorption spectroscopy, and inductively coupled plasma mass spectrometry. The method for detecting the content of potassium in the raw material is, for example, flame photometry, potentiometric titration, and the like.

[0090] S202: Determine the maximum available quantity corresponding to each component element based on each first proportion and each inventory quantity.

[0091] Specifically, the maximum available amount of each component element satisfies the following formula:

[0092]

[0093] Among them, Vk represents the maximum available amount of the kth component element, r mj,ek Characterizes the first proportion of the kth component element in the jth raw material; inv mj Represents the inventory quantity of the jth raw material.

[0094] S203: Limiting the sum of the contents of at least one constituent element in each compound fertilizer to not exceed the corresponding maximum available amount.

[0095] Specifically, the content of any one component element in each compound fertilizer may be obtained first, and then the content of the component element in each compound fertilizer may be added together to obtain the total content of the component element in all compound fertilizers.

[0096] In some embodiments, the content of the kth constituent element in the i-th compound fertilizer satisfies the following formula:

[0097]

[0098] Among them, R' k Characterizes the content of the kth element in the ith compound fertilizer; x pi,mj Characterizes the usage ratio of the jth raw material when producing the i-th compound fertilizer; need pi Characterizes the total amount of the i-th compound fertilizer.

[0099] The sum of the contents of each component element in each compound fertilizer satisfies the following formula:

[0100]

[0101] Among them, R k Characterizes the total content of the kth element in the whole compound fertilizer; x pi,mj Characterizes the usage ratio of the jth raw material when producing the i-th compound fertilizer; need pi Characterizes the total amount of the i-th compound fertilizer.

[0102] The total content of each component element in each compound fertilizer is limited to not more than the corresponding maximum available amount, that is, the total content of the kth component element in all compound fertilizers is limited to R k Less than or equal to the maximum available amount V corresponding to the kth component element k .

[0103] The method for determining the constraint conditions provided in the above embodiment obtains the first proportion of each component element in each raw material, and then determines the maximum available amount corresponding to each component element based on each first proportion and the inventory quantity of the raw material, and finally limits the total content of at least one component element in the entire compound fertilizer to not exceed the corresponding maximum available amount. In this way, by limiting the content of the component elements in the compound fertilizer according to the inventory quantity of the raw materials, and then determining the material ratio of the compound fertilizer according to the limiting condition, when producing compound fertilizer according to the determined material ratio, the inventory of raw materials can be consumed in a targeted manner, and the amount of raw materials purchased again can be reduced, thereby achieving the effect of reducing production costs.

[0104] Figure 3 A flowchart of another method for determining constraint conditions provided in an embodiment of the present application. Figure 2Based on the embodiment shown, the method for determining the constraint condition is further defined, such as Figure 3 As shown, a method for determining a constraint condition may include the following steps:

[0105] S301: Obtain a first proportion of each component element in each raw material.

[0106] This step can refer to the description of step S201 in Example 2, and will not be repeated here.

[0107] S302: Obtaining a second proportion of each component element in each compound fertilizer based on each first proportion.

[0108] Among them, the kth component element has the second largest proportion in the i-th compound fertilizer. k Satisfies the following formula:

[0109]

[0110] Among them, x pi,mj Characterizes the usage ratio of the jth raw material when producing the i-th compound fertilizer; r mj,ek Characterizes the first proportion of the kth component element in the jth raw material.

[0111] S303: Determine the first proportion lower limit and the first proportion upper limit corresponding to each second proportion.

[0112] The purpose of this step is to determine the following equation:

[0113]

[0114] in, Characterize the first lower limit of the proportion of the kth component element in the production formula of the i-th compound fertilizer; Characterizes the first upper limit of the proportion of the kth component element in the production formula of the i-th compound fertilizer.

[0115] Specifically, the first lower limit and the first upper limit of the proportion of each component element in the corresponding compound fertilizer can be obtained from the production formula of each compound fertilizer.

[0116] In some embodiments, the first lower limit of the proportion of the kth component element can be obtained from the production formula of the i-th compound fertilizer. and the first percentage limit Then the second proportion H of the kth component element in the i-th compound fertilizer can be determined k The value range is in, and is a constant obtained from the production formula of the i-th compound fertilizer, and H kIt is a variable that changes with the proportion of raw materials used.

[0117] S304: Determine a second proportion lower limit and a second proportion upper limit of the sum of multiple second proportions corresponding to the same compound fertilizer.

[0118] The purpose of this step is to determine the following equation:

[0119]

[0120] Wherein, q represents a set formed by arbitrarily selecting at least two constituent elements from all constituent elements corresponding to the i-th compound fertilizer. It represents the minimum sum of the proportions of the selected constituent elements in the i-th compound fertilizer after at least two constituent elements are randomly selected from all the constituent elements corresponding to the i-th compound fertilizer, that is, the second lower limit of the proportion. It represents the maximum sum of the proportions of at least two constituent elements selected from all constituent elements corresponding to the i-th compound fertilizer, that is, the second upper limit of the proportion.

[0121] In some embodiments, at least two second proportions can be arbitrarily selected from all second proportions corresponding to the same compound fertilizer and summed, that is, at least two constituent elements can be arbitrarily selected from all constituent elements corresponding to the same compound fertilizer, and the second proportions of the selected constituent elements in the compound fertilizer can be summed.

[0122] In some embodiments, the sum of all second proportions corresponding to the same compound fertilizer satisfies the formula:

[0123]

[0124] Among them, E represents the total number of combined elements in the i-th compound fertilizer.

[0125] The method for determining the constraint conditions provided in the above embodiment determines the proportion of each component element in the compound fertilizer according to the production formula, that is, the proportion of the component element in the compound fertilizer is limited to the corresponding first proportion lower limit and the corresponding first proportion upper limit, so as to adjust the use ratio of the raw materials according to the proportion limit, so as to determine the material ratio that meets the constraint conditions, and then facilitate the production of compound fertilizers that meet the constraint conditions. At the same time, since the same raw material may include multiple combination elements, and there may be antagonism between the component elements, therefore, this embodiment limits the sum of the proportions of the multiple combination elements in the compound fertilizer, that is, the sum of the proportions of the multiple combination elements in the compound fertilizer is limited to the corresponding second proportion lower limit and the corresponding second proportion upper limit, and then adjusts the proportion of the raw materials corresponding to the proportion, so as to meet the material ratio ratio of the constraint conditions, so that after the compound fertilizer is produced according to the material ratio ratio, the proportion of the multiple combination elements in the compound fertilizer can be between the corresponding second proportion lower limit and the corresponding second proportion upper limit, reducing the antagonism between the component elements, and ensuring that the plant can grow rapidly under the action of the compound fertilizer.

[0126] In some embodiments, a production formula of a general compound fertilizer is, for example, 10%-20% nitrogen, 10%-20% potassium, 10%-20% phosphorus, 0-10% sulfur, 5%-10% trace elements, and 35%-45% inert filler material. A production formula of a high-potassium compound fertilizer is, for example, 5%-15% nitrogen, 15%-25% potassium, 5%-15% phosphorus, 0-10% sulfur, 5%-10% trace elements, and 35%-45% inert filler material. The total amount of general compound fertilizer required is 5 tons, and the total amount of high-potassium compound fertilizer required is 1 ton.

[0127] The raw materials in stock include urea, monoammonium phosphate, potassium chloride, potassium sulfate, ammonium sulfate and inert filling materials. The stock quantity of urea is 2 tons, and its purchase price is 1.750 yuan per kilogram. The stock quantity of monoammonium phosphate is 1,600 kilograms, and its purchase price is 3.3 yuan per kilogram. The stock quantity of potassium chloride is 1 ton, and its purchase price is 2.300 yuan per kilogram. The stock quantity of potassium sulfate is 1,500 kilograms, and its purchase price is 3.55 yuan per kilogram. The stock quantity of ammonium sulfate is 1,200 kilograms, and its purchase price is 0.800 yuan per kilogram. The stock quantity of inert filling materials is 3 tons, and the inert filling materials are, for example, bentonite, and the purchase price of bentonite is 0.21 yuan per kilogram.

[0128] Urea includes four constituent elements: carbon, oxygen, nitrogen and hydrogen; among them, the carbon element accounts for 17.33% of urea, the oxygen element accounts for 44.11% of urea, the nitrogen element accounts for 46.65% of urea, and the hydrogen element accounts for 11.86% of urea.

[0129] Monoammonium phosphate includes four constituent elements: calcium, phosphorus, oxygen and hydrogen; among them, the first proportion of calcium element in monoammonium phosphate is 17.1%, the first proportion of phosphorus element in monoammonium phosphate is 26.5%, the first proportion of oxygen element in monoammonium phosphate is 48.7%, and the first proportion of hydrogen element in monoammonium phosphate is 1.7%.

[0130] Potassium chloride includes two constituent elements, potassium and chlorine; among them, potassium accounts for 52.48% of potassium chloride and chlorine accounts for 47.52% of potassium chloride.

[0131] Potassium sulfate includes three constituent elements: potassium, sulfur and oxygen; among them, potassium accounts for 44.6% of the total potassium sulfate, sulfur accounts for 18.4% of the total sulfur, and oxygen accounts for 37.0% of the total potassium sulfate.

[0132] Ammonium sulfate includes four constituent elements: nitrogen, hydrogen, sulfur and oxygen; among them, the first proportion of nitrogen in ammonium sulfate is 21.2%, the first proportion of hydrogen in ammonium sulfate is 6.1%, the first proportion of sulfur in ammonium sulfate is 24.3%, and the first proportion of oxygen in ammonium sulfate is 48.4%.

[0133] The production cost of general compound fertilizer can be calculated by the following formula:

[0134] T'1 = 5000 × (1.75 × x p1,m1 +3.3×x p1,m2 +2.3×x p1,m3 +3.55×

[0135] x p1,m4 +0.85×x p1,m5 +0.21×x p1,m6 )

[0136] Among them, x p1,m1 Characterizes the usage ratio of urea in general compound fertilizer, x p1,m2 Characterize the usage ratio of monoammonium phosphate in general compound fertilizer, x p1,m3 Characterize the usage ratio of potassium chloride in general compound fertilizer, x p1,m4 Characterize the usage ratio of potassium sulfate in general compound fertilizer, x p1,m5 Characterize the usage ratio of ammonium sulfate in general compound fertilizer, x p1,m6Characterize the usage ratio of inert filler materials in general compound fertilizers.

[0137] The production cost of high potassium compound fertilizer can be calculated by the following formula:

[0138] T'2 = 1000 × (1.75 × x p2,m1 +3.3×x p2,m2 +2.3×x p2,m3 +3.55×

[0139] x p2,m4 +0.85×x p2,m5 +0.21×x p2,m6 )

[0140] Among them, x p2,m1 Characterize the usage ratio of urea in high potassium compound fertilizer, x p2,m2 Characterize the usage ratio of monoammonium phosphate in high potassium compound fertilizer, x p2,m3 Characterize the usage ratio of potassium chloride in high potassium compound fertilizer, x p2,m4 Characterize the usage ratio of potassium sulfate in high potassium compound fertilizer, x p2,m5 Characterize the usage ratio of ammonium sulfate in high potassium compound fertilizer, x p2,m6 Characterize the usage ratio of inert filler materials in high-potassium compound fertilizers.

[0141] The total production cost of high-potassium compound fertilizer and general compound fertilizer can be calculated by the following formula:

[0142] T=T'1+T'2

[0143] Then determine the constraints of each component element based on the following steps:

[0144] The proportion of urea used in general compound fertilizers p1,m1 Multiply by the total amount of general compound fertilizer required 5 tons, you can get the amount of urea used in general compound fertilizer. p2,m1 Multiply by the total amount of high-potassium compound fertilizer required of 1 ton to get the amount of urea used in high-potassium compound fertilizer. Finally, add the amount of urea used in general compound fertilizer and the amount of urea used in high-potassium compound fertilizer to get the total amount of urea used, which is limited to no more than 2 tons of urea in stock.

[0145] The proportion of monoammonium phosphate used in general compound fertilizers p1,m2 Multiplying by the total amount of general compound fertilizer required 5 tons, we can get the usage of monoammonium phosphate in general compound fertilizer. p2,m2Multiplying by the total amount of high-potassium compound fertilizer required of 1 ton, the amount of monoammonium phosphate used in high-potassium compound fertilizer can be obtained. Finally, the amount of monoammonium phosphate used in general compound fertilizer is added to the amount of monoammonium phosphate used in high-potassium compound fertilizer to obtain the total amount of monoammonium phosphate used, which is limited to no more than 1,600 kilograms of monoammonium phosphate inventory.

[0146] The proportion of potassium chloride used in general compound fertilizer p1,m3 Multiply by the total amount of general compound fertilizer required 5 tons, you can get the amount of potassium chloride used in general compound fertilizer. Use the proportion of potassium chloride used in high potassium compound fertilizer x p2,m3 Multiply by the total amount of high-potassium compound fertilizer required of 1 ton to get the amount of potassium chloride used in high-potassium compound fertilizer. Finally, add the amount of potassium chloride used in general compound fertilizer and the amount of potassium chloride used in high-potassium compound fertilizer to get the total amount of potassium chloride used, which is limited to no more than 1 ton of potassium chloride inventory.

[0147] The proportion of potassium sulfate used in general compound fertilizer p1,m4 Multiply by the total amount of general compound fertilizer required 5 tons, you can get the amount of potassium sulfate used in general compound fertilizer. p2,m4 Multiply by the total amount of high-potassium compound fertilizer required to be 1 ton to get the amount of potassium sulfate used in high-potassium compound fertilizer. Finally, add the amount of potassium sulfate used in general compound fertilizer and the amount of potassium sulfate used in high-potassium compound fertilizer to get the total amount of potassium sulfate used, which is limited to no more than 1,500 kilograms of potassium sulfate inventory.

[0148] The proportion of ammonium sulfate used in general compound fertilizers p1,m5 Multiply by the total amount of general compound fertilizer required 5 tons, you can get the amount of ammonium sulfate used in general compound fertilizer. p2,m5 Multiply by the total amount of high-potassium compound fertilizer required to be 1 ton to obtain the amount of ammonium sulfate used in high-potassium compound fertilizer. Finally, add the amount of ammonium sulfate used in general compound fertilizer and the amount of ammonium sulfate used in high-potassium compound fertilizer to obtain the total amount of ammonium sulfate used, which is limited to no more than 1,200 kilograms of ammonium sulfate inventory.

[0149] The proportion of inert filler materials used in general compound fertilizers p1,m6 Multiply by the total amount of general compound fertilizer required 5 tons, you can get the amount of inert filler material used in general compound fertilizer. p2,m6Multiply by the total amount of high-potassium compound fertilizer required of 1 ton to get the amount of inert filler materials used in high-potassium compound fertilizer. Finally, add the amount of inert filler materials used in general compound fertilizers and the amount of inert filler materials used in high-potassium compound fertilizers to get the total amount of inert filler materials used, which is limited to no more than 3 tons of inert filler material inventory.

[0150] The maximum available amount of nitrogen is determined based on the first proportion of nitrogen in each raw material and the inventory quantity of each raw material. The first proportion of nitrogen in urea, 46.65%, can be multiplied by the inventory quantity of urea, 2 tons, to determine that the content of nitrogen in urea is 933 kg. The first proportion of nitrogen in ammonium sulfate, 21.2%, multiplied by the inventory quantity of ammonium sulfate, 1,200 kg, determines that the content of nitrogen in ammonium sulfate is 254.4 kg. Finally, the content of nitrogen in urea and the content in ammonium sulfate are added to obtain the maximum available amount of nitrogen, 1,187.4 kg.

[0151] Further, the first proportion of nitrogen in urea, 46.65%, is multiplied by the proportion of urea used in general compound fertilizer x p1,m1 , we can get the proportion of nitrogen in urea in general compound fertilizer. Multiply the proportion of nitrogen in ammonium sulfate (21.2%) by the proportion of ammonium sulfate in general compound fertilizer x p1,m5 , the proportion of nitrogen in ammonium sulfate in general compound fertilizer can be obtained. Finally, the proportion of nitrogen in urea in general compound fertilizer is added to the proportion of nitrogen in ammonium sulfate in general compound fertilizer to obtain the second proportion of nitrogen in general compound fertilizer.

[0152] Based on the production formula of universal compound fertilizer, it can be determined that the lower limit of the first proportion corresponding to the second proportion of nitrogen in the universal compound fertilizer is 10%, and the upper limit of the first proportion corresponding to the second proportion of nitrogen in the universal compound fertilizer is 20%.

[0153] Further, the first proportion of nitrogen in urea, 46.65%, is multiplied by the proportion of urea used in high-potassium compound fertilizer x p2,m1 , we can get the proportion of nitrogen in urea in high-potassium compound fertilizer. Multiply the proportion of nitrogen in ammonium sulfate (21.2%) by the proportion of ammonium sulfate in high-potassium compound fertilizer x p2,m5 , we can get the proportion of nitrogen in ammonium sulfate in high-potassium compound fertilizer. Finally, we add the proportion of nitrogen in urea in high-potassium compound fertilizer and the proportion of nitrogen in ammonium sulfate in high-potassium compound fertilizer to get the second proportion of nitrogen in high-potassium compound fertilizer.

[0154] Based on the production formula of high-potassium compound fertilizer, it can be determined that the lower limit of the first proportion corresponding to the second proportion of nitrogen in the high-potassium compound fertilizer is 5%, and the upper limit of the first proportion corresponding to the second proportion of nitrogen in the high-potassium compound fertilizer is 15%.

[0155] The maximum available amount of potassium element is determined based on the first proportion of potassium element in each raw material and the inventory quantity of each raw material. The first proportion of potassium element in potassium chloride, 52.48%, can be multiplied by the inventory quantity of potassium chloride, 1 ton, to determine that the content of potassium element in potassium chloride is 524.8 kg. The first proportion of potassium element in potassium sulfate, 44.6%, multiplied by the inventory quantity of potassium sulfate, 1500 kg, determines that the total content of nitrogen element in ammonium sulfate is 699 kg. Finally, add the content of potassium element in potassium chloride and the content in potassium sulfate to obtain the maximum available amount of potassium element, 1223.8 kg.

[0156] Further, the first proportion of potassium in potassium chloride is 52.48% multiplied by the proportion of potassium chloride used in general compound fertilizer x p1,m3 , we can get the proportion of potassium in potassium chloride in general compound fertilizer. We can multiply the proportion of potassium in potassium sulfate (44.6%) by the proportion of potassium sulfate in general compound fertilizer (x). p1,m4 , we can get the proportion of potassium in potassium sulfate in general compound fertilizer. Finally, we add the proportion of potassium in potassium chloride in general compound fertilizer and the proportion of potassium in potassium sulfate in general compound fertilizer to get the second proportion of potassium in general compound fertilizer.

[0157] Based on the production formula of general compound fertilizer, it can be determined that the lower limit of the first proportion corresponding to the second proportion of potassium in the general compound fertilizer is 10%, and the upper limit of the first proportion corresponding to the second proportion of potassium in the general compound fertilizer is 20%.

[0158] Further, the first proportion of potassium in potassium chloride is 52.48% multiplied by the proportion of potassium chloride used in high potassium compound fertilizer x p2,m3 , we can get the proportion of potassium in potassium chloride in high-potassium compound fertilizer. We can multiply the proportion of potassium in potassium sulfate (44.6%) by the proportion of potassium sulfate in high-potassium compound fertilizer (x). p2,m4 , we can get the proportion of potassium in potassium sulfate in high-potassium compound fertilizer. Finally, we add the proportion of potassium in potassium chloride in high-potassium compound fertilizer and the proportion of potassium in potassium sulfate in high-potassium compound fertilizer to get the second proportion of potassium in high-potassium compound fertilizer.

[0159] Based on the production formula of high-potassium compound fertilizer, it can be determined that the lower limit of the first proportion corresponding to the second proportion of potassium element in high-potassium compound fertilizer is 15%, and the upper limit of the first proportion corresponding to the second proportion of potassium element in high-potassium compound fertilizer is 25%.

[0160] The maximum available amount of phosphorus is determined based on the first proportion of phosphorus in each raw material and the inventory quantity of each raw material. The first proportion of phosphorus in monoammonium phosphate, 26.5%, can be multiplied by the inventory quantity of monoammonium phosphate, 1,600 kg, to determine that the content of phosphorus in monoammonium phosphate is 424 kg. Since phosphorus is not included in other raw materials, the maximum available amount of phosphorus is 424 kg.

[0161] Further, the first proportion of phosphorus in monoammonium phosphate (26.5%) is multiplied by the proportion of monoammonium phosphate used in general compound fertilizer x p1,m2 , we can get the proportion of phosphorus in monoammonium phosphate in general compound fertilizer. Since other raw materials do not include phosphorus, the second proportion of phosphorus in general compound fertilizer is the proportion of phosphorus in monoammonium phosphate in general compound fertilizer.

[0162] Based on the production formula of universal compound fertilizer, it can be determined that the lower limit of the first proportion corresponding to the second proportion of phosphorus in the universal compound fertilizer is 10%, and the upper limit of the first proportion corresponding to the second proportion of phosphorus in the universal compound fertilizer is 20%.

[0163] Further, the first proportion of phosphorus in monoammonium phosphate (26.5%) is multiplied by the proportion of monoammonium phosphate used in high-potassium compound fertilizer x p2,m2 , we can get the proportion of phosphorus in monoammonium phosphate in high-potassium compound fertilizer. Since other raw materials do not include phosphorus, the second proportion of phosphorus in high-potassium compound fertilizer is the proportion of phosphorus in monoammonium phosphate in high-potassium compound fertilizer.

[0164] Based on the production formula of high-potassium compound fertilizer, it can be determined that the lower limit of the first proportion corresponding to the second proportion of phosphorus in the high-potassium compound fertilizer is 5%, and the upper limit of the first proportion corresponding to the second proportion of phosphorus in the high-potassium compound fertilizer is 15%.

[0165] The maximum available amount of sulfur is determined based on the first proportion of sulfur in each raw material and the inventory quantity of each raw material. The first proportion of sulfur in potassium sulfate, 18.4%, can be multiplied by the inventory quantity of potassium sulfate, 1,500 kg, to determine that the content of sulfur in potassium sulfate is 276 kg. The first proportion of sulfur in ammonium sulfate, 24.3%, can be multiplied by the inventory quantity of ammonium sulfate, 1,200 kg, to determine that the content of sulfur in ammonium sulfate is 291.6 kg. Finally, the content of sulfur in potassium sulfate and the content in ammonium sulfate are added to obtain the maximum available amount of sulfur, 567.6 kg.

[0166] Further, the first proportion of sulfur in potassium sulfate is 18.4% multiplied by the proportion of potassium sulfate used in general compound fertilizer x p1,m4 , we can get the proportion of sulfur in potassium sulfate in general compound fertilizer. Multiply the first proportion of sulfur in ammonium sulfate (24.3%) by the proportion of ammonium sulfate in general compound fertilizer x p1,m5 , we can get the proportion of sulfur in ammonium sulfate in general compound fertilizer. Finally, we add the proportion of sulfur in potassium sulfate in general compound fertilizer and the proportion of sulfur in ammonium sulfate in general compound fertilizer to get the second proportion of sulfur in general compound fertilizer.

[0167] Based on the production formula of universal compound fertilizer, it can be determined that the lower limit of the first proportion corresponding to the second proportion of sulfur element in the universal compound fertilizer is 0, and the upper limit of the first proportion corresponding to the second proportion of sulfur element in the universal compound fertilizer is 10%.

[0168] Further, the first proportion of sulfur in potassium sulfate is 18.4% multiplied by the proportion of potassium sulfate used in high-potassium compound fertilizer x p2,m4 , we can get the proportion of sulfur in potassium sulfate in high-potassium compound fertilizer. Multiply the first proportion of sulfur in ammonium sulfate (24.3%) by the proportion of ammonium sulfate in high-potassium compound fertilizer x p2,m5 , we can get the proportion of sulfur in ammonium sulfate in high-potassium compound fertilizer. Finally, we add the proportion of sulfur in potassium sulfate in high-potassium compound fertilizer and the proportion of sulfur in ammonium sulfate in high-potassium compound fertilizer to get the second proportion of sulfur in high-potassium compound fertilizer.

[0169] Based on the production formula of high-potassium compound fertilizer, it can be determined that the lower limit of the first proportion corresponding to the second proportion of sulfur in the high-potassium compound fertilizer is 0, and the upper limit of the first proportion corresponding to the second proportion of sulfur in the high-potassium compound fertilizer is 10%.

[0170] Finally, the constraints and T=T'1+T'2 are converted into a specific programming language and solved with the help of an operations research solver to obtain the raw material ratios in the general compound fertilizer and the raw material ratios in the high-potassium compound fertilizer.

[0171] Figure 4 This is a schematic diagram of the structure of a fertilizer ratio optimization device based on artificial intelligence provided in an embodiment of the present application. The device can be in the form of software and / or hardware. Figure 4 , a fertilizer ratio optimization device based on artificial intelligence includes: an acquisition module 401, a construction module 402, a determination module 403 and an adjustment module 404.

[0172] The acquisition module 401 is used to acquire the attribute parameters of at least one raw material and the production formula of at least one compound fertilizer, wherein the attribute parameters include the inventory quantity of the raw material, the purchase price of the raw material and the constituent elements of the raw material.

[0173] The construction module 402 is used to construct an objective function between the sum of the production costs of each compound fertilizer and the usage ratio of each raw material in each compound fertilizer according to each attribute parameter and each production formula.

[0174] The determination module 403 is used to determine the constraint conditions of each component element according to each attribute parameter and each production formula, and the constraint conditions are used to constrain the usage ratio of each component element in each compound fertilizer.

[0175] The adjustment module 404 is used to adjust the usage ratio of each raw material in each compound fertilizer based on the constraint conditions until the production cost is minimized, thereby obtaining the raw material ratio of each compound fertilizer.

[0176] In some embodiments, the determination module 403 is also used to: obtain the first proportion of each component element in each raw material; determine the maximum available amount corresponding to each component element based on each first proportion and each inventory quantity; limit the sum of the contents of at least one component element in each compound fertilizer to not exceed the corresponding maximum available amount.

[0177] In some embodiments, the determination module 403 is further used to: obtain the second proportion of each component element in each compound fertilizer based on each first proportion, and determine the first proportion lower limit and the first proportion upper limit corresponding to each second proportion.

[0178] In some embodiments, the determination module 403 is further used to: determine the sum of the products of the usage ratio of each raw material in each compound fertilizer and each first proportion as each second proportion.

[0179] In some embodiments, the determination module 403 is further used to determine a second proportion lower limit and a second proportion upper limit of the sum of multiple second proportions corresponding to the same compound fertilizer.

[0180] In some embodiments, the determination module 403 is used to limit the total content of each raw material in any one or more compound fertilizers to not exceed the corresponding inventory quantity.

[0181] In some embodiments, the construction module 402 is used to: construct an alternative function between the production cost of each compound fertilizer and the usage ratio of each raw material in each compound fertilizer based on each attribute parameter and each production formula; add the alternative functions corresponding to each compound fertilizer to obtain the objective function between the sum of the production costs of each compound fertilizer and the usage ratio of each raw material in each compound fertilizer.

[0182] The artificial intelligence-based fertilizer ratio optimization device provided in the embodiment of the present application has the same implementation principle and technical effects as those of the aforementioned artificial intelligence-based fertilizer ratio optimization method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference may be made to the corresponding contents in the aforementioned artificial intelligence-based fertilizer ratio optimization method embodiment.

[0183] Figure 5 A hardware structure diagram of an electronic device provided in an embodiment of the present application. This embodiment provides an electronic device, comprising: at least one processor 501, and a memory 502 in communication with the at least one processor 501; the memory 502 stores computer-executable instructions; the processor 501 executes the computer-executable instructions stored in the memory 502, so as to implement the artificial intelligence-based fertilizer ratio optimization method described in any of the above embodiments.

[0184] Figure 5 The electronic device shown also includes a communication interface 503 and a communication bus 504, wherein the processor 501, the memory 502 and the communication interface 503 are connected to each other via the communication bus 504. The communication bus 504 can be divided into an address bus, a data bus, a control bus, etc. Figure 5 In the figure, only one thick line is used to represent the communication bus 504, but it does not mean that there is only one communication bus 504 or one type of communication bus 504. The processor 501 may also be called a controller, and there is no limitation on the name.

[0185] In the embodiment of the present application, the memory 502 stores instructions that can be executed by at least one processor 501. The at least one processor 501 can execute the fertilizer ratio optimization method based on artificial intelligence discussed above by executing the instructions stored in the memory 502. The processor 501 can implement Figure 5 The functions of each module in the device shown.

[0186] Among them, the processor 501 is the control center of the device, and can use various interfaces and lines to connect the various parts of the entire control device. By running or executing instructions stored in the memory 502 and calling data stored in the memory 502, the various functions of the device and processing data, the device can be monitored as a whole.

[0187] In one possible design, the processor 501 may include one or more processing units, and the processor 501 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 501. In some embodiments, the processor 501 and the memory 502 may be implemented on the same chip or on separate chips.

[0188] Processor 501 can be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, and can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the fertilizer ratio optimization method based on artificial intelligence disclosed in the embodiments of the present application can be directly embodied as a hardware processor to be executed, or the hardware and software modules in the processor are combined and executed.

[0189] The memory 502 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory 502 may include at least one type of storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory, a random access memory (Random Access Memory, RAM), a static random access memory (Static Random Access Memory, SRAM), a programmable read-only memory (Programmable Read Only Memory, PROM), a read-only memory (Read Only Memory, ROM), an electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), a magnetic memory, a disk, an optical disk, etc. The memory 502 is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 502 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.

[0190] By programming the processor 501, the code corresponding to the fertilizer ratio optimization method based on artificial intelligence described in the above embodiment can be fixed into the chip, so that the chip can execute the code when running. Figure 1 The steps of the artificial intelligence-based fertilizer ratio optimization method in the illustrated embodiment. How to design and program the processor 501 is a technique known to those skilled in the art and will not be described in detail here.

[0191] The present application also provides a computer-readable storage medium, in which a computer-executable instruction is stored. When the computer-executable instruction is executed by a processor, it is used to implement the fertilizer ratio optimization method based on artificial intelligence described in any of the above embodiments. Therefore, it will not be described in detail here. In addition, the description of the beneficial effects of the same method will not be described in detail. For technical details not disclosed in the computer storage medium embodiment involved in the present invention, please refer to the description of the method embodiment of the present invention.

[0192] In some possible embodiments, various aspects of the artificial intelligence-based fertilizer ratio optimization method provided in the present application can also be implemented in the form of a program product, which includes a program code. When the program product is run on an apparatus, the program code is used to enable the control device to execute the steps of the artificial intelligence-based fertilizer ratio optimization method according to various exemplary embodiments of the present application described above in this specification.

[0193] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0194] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0195] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0196] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0197] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A fertilizer ratio optimization method based on artificial intelligence, characterized in that: The method comprises: Acquire at least one attribute parameter of a raw material and at least one production formula of a compound fertilizer, wherein the attribute parameter includes the inventory quantity of the raw material, the purchase price of the raw material, and the constituent elements of the raw material; Constructing an objective function between the sum of the production costs of each compound fertilizer and the usage ratio of each raw material in each compound fertilizer according to each of the attribute parameters and each of the production formulas; Determining constraints for each of the constituent elements according to each of the attribute parameters and each of the production formulas, wherein the constraints are used to constrain the usage ratio of each of the constituent elements in each of the compound fertilizers; Based on the constraint conditions, the usage ratio of each raw material in each compound fertilizer is adjusted until the production cost is the lowest, thereby obtaining the raw material ratio of each compound fertilizer.

2. The method according to claim 1, characterized in that Determining the constraint conditions of each of the component elements according to each of the attribute parameters and each of the production formulas includes: Obtaining a first proportion of each of the constituent elements in each of the raw materials; Determine the maximum available quantity corresponding to each of the component elements based on each of the first proportions and each of the inventory quantities; The sum of the contents of the at least one constituent element in each of the compound fertilizers is limited to not exceed the corresponding maximum available amount.

3. The method according to claim 2, characterized in that After obtaining the first proportion of each of the constituent elements in each of the raw materials, the method further includes: Obtaining a second proportion of each of the constituent elements in each of the compound fertilizers based on each of the first proportions; Determine a first ratio lower limit and a first ratio upper limit corresponding to each of the second ratios.

4. The method according to claim 3, characterized in that Obtaining a second proportion of each of the constituent elements in each of the compound fertilizers based on each of the first proportions includes: The sum of the products of the usage ratio of each raw material in each compound fertilizer and each first proportion is determined as each second proportion.

5. The method according to claim 3, characterized in that: After obtaining the second proportions of the constituent elements in the compound fertilizers based on the first proportions, the method further includes: Determine a second ratio lower limit and a second ratio upper limit corresponding to the sum of multiple second ratios of the same compound fertilizer.

6. The method according to claim 1, characterized in that Determining the constraint conditions of each of the component elements according to each of the attribute parameters and each of the production formulas includes: The total content of each of the raw materials in any one or more compound fertilizers is limited to not exceed the corresponding inventory quantity.

7. The method according to any one of claims 1 to 6, characterized in that: According to each of the attribute parameters and each of the production formulas, an objective function between the sum of the production costs of each compound fertilizer and the usage ratio of each of the raw materials in each of the compound fertilizers is constructed, including: Constructing an alternative function between the production cost of each compound fertilizer and the usage ratio of each raw material in each compound fertilizer based on each attribute parameter and each production formula; The candidate functions corresponding to the compound fertilizers are added together to obtain an objective function between the sum of the production costs of the compound fertilizers and the usage ratio of the raw materials in the compound fertilizers.

8. A fertilizer ratio optimization device based on artificial intelligence, characterized in that: include: An acquisition module is configured to acquire at least one attribute parameter of a raw material and at least one production formula of a compound fertilizer, wherein the attribute parameter includes the inventory quantity of the raw material, the purchase price of the raw material, and the constituent elements of the raw material; A construction module is configured to construct an objective function between the sum of the production costs of each compound fertilizer and the usage ratio of each raw material in each compound fertilizer according to each of the attribute parameters and each of the production formulas; A determination module is configured to determine the constraint conditions of each of the constituent elements according to each of the attribute parameters and each of the production formulas, wherein the constraint conditions are used to constrain the usage ratio of each of the constituent elements in each of the compound fertilizers; The adjustment module is configured to adjust the usage ratio of each raw material in each compound fertilizer based on the constraint conditions until the production cost is the lowest, thereby obtaining the raw material ratio of each compound fertilizer.

9. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 7 when executed by a processor.

Citation Information

Cited By

  • Manufacturing method and equipment of inorganic powder material for coal mine reinforcement and medium

    CN120910580A

  • Method, apparatus and medium for manufacturing inorganic powder material for coal mine reinforcement

    CN120910580B