Raw material distribution method, equipment, medium and program product

CN122072871APending Publication Date: 2026-05-22RICHFIT INFORMATION TECH +1
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
RICHFIT INFORMATION TECH
Filing Date
2024-11-20
Publication Date
2026-05-22

AI Technical Summary

Technical Problem

In existing technologies, after the production demand is released, the efficiency and accuracy of adjusting the storage of raw materials in the flow equipment are low, which makes it impossible to effectively meet the production demand while avoiding raw material inventory.

Method used

By acquiring the target product capacity information for the current period, and using preset constraints and objective functions, the system automatically determines the storage capacity of the target raw materials in the flow equipment, ensuring that production constraints are met and costs are optimized.

Benefits of technology

It improves the efficiency and accuracy of raw material allocation, and optimizes total production costs while meeting the output requirements of the current and next production cycles.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122072871A_ABST
    Figure CN122072871A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a raw material distribution method and device, a medium and a program product. The method comprises the following steps: acquiring productivity information of a target product in a current time period; wherein the productivity information represents the number of target products which can be generated by the target raw materials in the current time period; according to the productivity information, determining candidate first reserves which meet a preset constraint condition and are allocated to the target raw materials in the flowing equipment; wherein the preset constraint conditions are used for indicating the relationship between the raw materials and the flowing equipment and the relationship between the products and the storage equipment and the productivity information; according to a preset target function, determining a first reserve allocated to the target raw material in the flowing equipment in the current time period from the candidate first reserves; wherein the preset objective function represents the total production cost. The method is used for improving the distribution efficiency and precision of the raw materials.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of artificial intelligence technology, and in particular to a method, apparatus, medium and program product for dispensing raw materials. Background Technology

[0002] The production demands of various chemical products by oil refining companies are planned and released at specific points in time. Therefore, for refining companies, after the production demand is released, they need to immediately adjust the reserves of the raw materials required for the products in various flow equipment (such as relay tanks, filling tanks, or distillation towers) to meet the production demand without creating raw material inventory.

[0003] Currently, in related technologies, the storage capacity of each raw material in the flow equipment is usually determined manually after the production demand is released. This method is inefficient and has low calculation accuracy. Therefore, there is an urgent need for a more efficient and accurate raw material allocation method. Summary of the Invention

[0004] This application provides a method, apparatus, medium, and procedure for distributing raw materials, which improves the efficiency and accuracy of raw material distribution.

[0005] In a first aspect, embodiments of this application provide a method for distributing raw materials, comprising:

[0006] Obtain the production capacity information of the target product in the current time period; wherein, the production capacity information represents the quantity of the target product that the target raw materials can generate in the current time period;

[0007] Based on the production capacity information, a first candidate storage quantity of the target raw material to be allocated to the flow equipment is determined, which meets preset constraints; wherein, the preset constraints are used to indicate the relationship between the raw material and the flow equipment, and the relationship between the product and the storage equipment and the production capacity information.

[0008] According to a preset objective function, a first reserve of the target raw material to be allocated to the flow equipment in the current time period is determined from the candidate first reserves; wherein, the preset objective function represents the total production cost.

[0009] In one possible implementation, based on the production capacity information, determining a candidate first reserve of the target raw material to be allocated to the flow equipment that meets preset constraints includes:

[0010] Based on the production capacity information, determine the first candidate reserve of the target raw material to be allocated to the flow device and the second candidate reserve of the target product in the storage device, which meet the preset constraints.

[0011] The step of determining the first reserve of the target raw material to be allocated to the flow equipment in the current time period from the candidate first reserves according to the preset objective function includes:

[0012] Based on the candidate first reserves, candidate second reserves, and a preset objective function, determine the first reserve of the target raw material to be allocated to the flow equipment in the current time period from the candidate first reserves.

[0013] In one possible implementation, based on the production capacity information, determining a first candidate reserve of the target raw material to be allocated to the flow device and a second candidate reserve of the target product in the storage device, satisfying the preset constraints, includes:

[0014] Based on the production capacity information, candidate first variables and candidate second variables that satisfy the preset constraints are determined; wherein, the first variable represents the amount of target raw materials arriving at the flow equipment in the current time period; and the second variable represents the amount of target products arriving at the storage equipment in the current time period.

[0015] Based on the candidate first variable and the first mapping relationship, the candidate first reserve is determined; and based on the candidate second variable and the second mapping relationship, the candidate second reserve is determined; wherein, the first mapping relationship represents the relationship between the first reserve and the first variable; and the second mapping relationship represents the relationship between the second reserve and the second variable.

[0016] In one possible implementation, the preset constraints include the following constraints: a first constraint, a second constraint, a third constraint, a fourth constraint, and a fifth constraint.

[0017] Wherein, the first constraint condition characterizes the relationship between the first variable and the maximum flow rate of the oil flow path, and the relationship between the second variable and the maximum flow rate of the oil flow path;

[0018] The second constraint characterizes the relationship between the first variable and the maximum capacity of the flow equipment;

[0019] The third constraint characterizes the relationship between the second variable and the maximum capacity of the storage device, as well as the relationship between the second variable and the target product conversion rate.

[0020] The fourth constraint condition characterizes the relationship between the second variable and the production capacity information;

[0021] The fifth constraint characterizes the relationship between production capacity information and the first and second demands; wherein the first demand characterizes the demand for the target product during the remaining period of the current production cycle, and the second demand characterizes the demand for the target product in the next production cycle.

[0022] In one possible implementation, determining the candidate first variable and candidate second variable that satisfy the preset constraints based on the capacity information includes:

[0023] Based on the first constraint and the second constraint, determine the candidate first variable that satisfies the preset constraint.

[0024] Based on the production capacity information, the first constraint, the third constraint, the fourth constraint, and the fifth constraint, a candidate second variable that satisfies the preset constraint is determined.

[0025] In one possible implementation, determining the first reserve of the target raw material to be allocated to the flow device in the current time period from the candidate first reserves, the candidate second reserves, and a preset objective function includes:

[0026] Based on the candidate first reserve, the candidate second reserve, and the preset objective function, determine the candidate total production cost;

[0027] The candidate first reserve corresponding to the minimum value among the candidate total production costs is determined as the first reserve of the target raw material allocated to the flow equipment in the current time period.

[0028] In one possible implementation, the preset objective function is used to indicate the mapping relationship between total production cost and the costs of mobile equipment, storage equipment, connection stations, and shipping equipment.

[0029] In one possible implementation, the method further includes:

[0030] Obtain transportation capacity information for equipment arriving at the factory area during the current time period;

[0031] Based on the candidate second storage capacity and the transportation capacity information, the waiting time of the transported equipment in the factory area is determined;

[0032] The cost of transporting the equipment is determined based on the waiting time and the transportation capacity information.

[0033] In one possible implementation, the method further includes:

[0034] Obtain the third reserve of the target raw material in the connecting station during the current time period;

[0035] If it is determined that the third storage capacity is less than or equal to the maximum capacity of the connecting station, then it is determined that the cost of the connecting station is linearly related to the third storage capacity.

[0036] If it is determined that the third reserve is greater than the maximum capacity of the connecting station, then the cost of the connecting station is determined based on the third reserve, the maximum capacity of the connecting station, and the third mapping relationship; wherein, the third mapping relationship represents the relationship between the third reserve, the maximum capacity of the connecting station, and the cost of the connecting station.

[0037] In one possible implementation, obtaining the production capacity information of the target product in the current time period includes:

[0038] Obtain the first demand and the second demand; wherein the first demand represents the demand for the target product during the remaining period of the current production cycle, and the second demand represents the demand for the target product in the next production cycle;

[0039] Based on the first requirement and the second requirement, determine the production capacity information of the target product in the current time period.

[0040] Secondly, embodiments of this application provide a raw material dispensing device, comprising:

[0041] The acquisition module is used to acquire the production capacity information of the target product in the current time period; wherein, the production capacity information represents the quantity of the target product that the target raw materials can generate in the current time period;

[0042] The first determining module is used to determine, based on the production capacity information, a candidate first storage quantity of the target raw material to be allocated to the flow equipment that meets preset constraints; wherein, the preset constraints are used to indicate the relationship between the raw material and the flow equipment, and the relationship between the product and the storage equipment and the production capacity information.

[0043] The second determining module is used to determine, from the candidate first reserves, the first reserve of the target raw material to be allocated to the flow equipment in the current time period according to a preset objective function; wherein the preset objective function represents the total production cost.

[0044] Thirdly, embodiments of this application provide an electronic device, including: a memory and a processor;

[0045] The memory stores computer-executed instructions;

[0046] The processor executes computer execution instructions stored in the memory, causing the processor to perform the first aspect and / or various possible implementations of the first aspect as described above.

[0047] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the first aspect and / or various possible implementations of the first aspect.

[0048] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the first aspect and / or various possible implementations of the first aspect.

[0049] The raw material allocation method, equipment, medium, and program products provided in this application utilize the production capacity information of the target product in the current time period to determine a candidate first reserve quantity that meets preset constraints for allocation to the flow equipment. Then, based on the candidate first reserve quantity and a preset objective function, the first reserve quantity of the target raw material allocated to the flow equipment in the current time period is determined. In this way, electronic equipment can automatically determine the first reserve quantity of the target raw material allocated to the flow equipment in the current time period based on the production capacity information of the target product, preset constraints, and a preset objective function, thereby improving allocation efficiency and accuracy. Attached Figure Description

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

[0051] Figure 1 A schematic diagram illustrating one application scenario provided in this application;

[0052] Figure 2 Flowchart of the raw material distribution method provided in this application Figure 1 ;

[0053] Figure 3 Flowchart of the raw material distribution method provided in this application Figure 2 ;

[0054] Figure 4 A schematic diagram of the raw material distribution device provided in this application;

[0055] Figure 5 A schematic diagram of the structure of the electronic device provided in this application.

[0056] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0057] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0058] Oil refining plants typically include connection stations, flow equipment, and storage facilities. Connection stations collect feedstock, such as crude oil from various well banks, metering stations, and transfer stations. Flow equipment represents the facilities through which feedstock (e.g., crude oil) can flow, and each flow equipment can temporarily store the feedstock for subsequent product processing. This flow equipment may include, for example, relay tanks, filling tanks, and distillation columns. Relay tanks are used for temporary storage and buffering of feedstock; filling tanks are used for storing and distributing feedstock; and distillation columns are used to separate different components of the feedstock to obtain different products.

[0059] It should be noted that the above is only an illustration of a mobile device, and the embodiments of this application do not limit which devices are included in the mobile device.

[0060] The aforementioned storage device can be used to store products, for example, it can be a storage tank.

[0061] Figure 1 A schematic diagram illustrating an application scenario provided in this application is shown below. Figure 1 As shown, each connection station can store crude oil. This type of crude oil can be directly transported to the filling tank via the connection station, or it can be transported to the filling tank via a relay tank. Then, the filling tank is distributed to each distillation tower. After the crude oil is processed by the distillation tower, different products are obtained. The different products are transported to the corresponding storage tanks for storage. Subsequently, the products can be transported out of the plant area by outgoing equipment, such as outgoing vehicles.

[0062] Oil refining companies can produce products to meet output demands by allocating the raw material reserves in various processing units. However, the output demand is planned and released at specific times. For example, with a 90-day production cycle, the output demand for the next production cycle can be received on the 60th day of the current cycle. Therefore, for oil refining companies, the first 59 days of the production cycle are for producing products according to the current cycle's output demand. After the 60th day, the raw material reserves in each processing unit need to be reallocated. The output of products produced based on the reallocated raw material reserves must not only meet the output demand of the current production cycle but also the output demand of the next cycle.

[0063] However, the current process of redistributing raw material reserves in various mobile equipment is mostly done manually, resulting in low efficiency and accuracy in raw material allocation. Therefore, this application provides a method for allocating raw materials. Given production capacity information, it can automatically determine the raw material reserves in each mobile equipment that meets the production capacity information in the current time period using a preset objective function and constraints, thereby improving allocation efficiency and accuracy.

[0064] The execution subject of this application embodiment can be an electronic device with processing capabilities, such as a laptop, smartphone, desktop computer, server, tablet computer, etc., and this application embodiment is not limited thereto.

[0065] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.

[0066] Figure 2 Flowchart of the raw material distribution method provided in this application Figure 1 ,like Figure 2 As shown, the method includes:

[0067] S201. Obtain the production capacity information of the target product in the current time period.

[0068] For example, the target product refers to the product that needs to be produced, and the target raw material refers to the raw material required to produce the target product. It should be noted that the embodiments of this application do not limit the type and quantity of the target raw material and the target product.

[0069] It should be noted that a production cycle can include multiple time periods, thus the demand for the target product throughout the entire production cycle can be divided into the production capacity information of the target product for each time period. The demand for the target product represents the total quantity of the target product after one production cycle, and the production capacity information represents the quantity of the target product that the target raw materials can generate in the current time period, i.e., the production capacity of the target product for one time period. For example, taking a production cycle of 90 days as an example, each day of the 90 days can be considered a time period, or a specific time period within each day can be considered a time period, such as 8:00 AM to 5:00 PM, or two days can be considered a time period. The specific settings can be configured according to actual needs. This embodiment does not limit the specific duration of each time period.

[0070] The current time period mentioned above represents the period after receiving the demand for the target product in the next production cycle. If the demand for the target product is released on the 60th day of the current production cycle, the current time period can be a period in the current production cycle after the 60th day, or a period in the next production cycle.

[0071] It should be noted that the production capacity information of the target product in each time period can be the same or different, and the production capacity information between different products can also be the same or different. This application does not impose any limitations on this; the specific settings can be configured according to actual needs. For example, if the target raw material can produce two products, the production capacity information of the target product in the current time period can be represented as follows: in, This indicates the production capacity information of the first product in the current time period t. This indicates the production capacity information of the second product in the current time period t.

[0072] In some possible implementations, electronic devices can directly obtain the production capacity information of the target product in the current time period. For example, they can directly extract the production capacity information of the target product in the current time period from a database, or they can communicate with other electronic devices to obtain the production capacity information of the target product in the current time period, or receive the production capacity information of the target product in the current time period input by the user, or receive the production capacity information of the target product in the current time period imported by an external device, such as a USB flash drive.

[0073] In some possible implementations, the electronic device can first obtain the first demand for the target product during the remaining time of the current production cycle, and the second demand for the target product in the next production cycle. Based on the first and second demands, the total demand is determined, and the total time period is determined based on the remaining time of the current production cycle and the time period of the next production cycle. Then, based on the total demand and the total time period, the production capacity information for the target product in the current time period can be determined. For example, if the production capacity information is the same for each time period, then the production capacity information for the target product in the current time period can be obtained by dividing the total demand by the total time period.

[0074] S202. Based on the production capacity information, determine the first candidate reserve of the target raw material that meets the preset constraints and is allocated to the flow equipment.

[0075] The aforementioned preset constraints are used to indicate the relationship between raw materials and flow equipment, as well as the relationship between products and storage equipment and capacity information. For example, they may include the relationship between the total amount of raw materials arriving at the flow equipment and the maximum capacity of the flow equipment, the relationship between the flow rate of raw materials between two devices and the maximum flow rate of the oil flow path between the two devices, the relationship between the amount of products arriving at the storage equipment and the maximum capacity of the storage equipment, and the relationship between the amount of products arriving at the storage equipment and capacity information.

[0076] The aforementioned candidate first reserves represent the first reserves of the target material that may be allocated to the flow equipment, wherein the first reserves of the target material allocated to the flow equipment refer to the total reserves of the target material allocated to the same type of flow equipment, for example, referring to Figure 1 As shown, the total reserves of the target raw material in multiple relay tanks, multiple filling tanks, and multiple distillation columns are represented. Therefore, the candidate first reserve can be considered as a sequence, where each element represents the reserve of the target raw material in each type of flow device. For example, the candidate first reserve can be represented as B = (b1, b2, b3), where b1 can represent the reserve of the target raw material in the relay tanks, b2 can represent the reserve of the target raw material in the filling tanks, and b3 can represent the reserve of the target raw material in the distillation columns.

[0077] In some possible implementations, the electronic device can exhaustively obtain multiple sequences that satisfy the aforementioned preset constraints as candidate first reserves. Alternatively, the electronic device can randomly determine multiple sequences from the values ​​that satisfy the constraints as candidate first reserves.

[0078] S203. Based on the preset objective function, determine the first reserve of the target raw material to be allocated to the flow equipment in the current time period from the candidate first reserves.

[0079] For example, the aforementioned preset objective function represents the total production cost, which represents the total cost of producing the target product in the current time period. This total production cost may include, for example, the cost of mobile equipment, the cost of storage equipment, the cost of connecting stations, and the cost of shipping equipment, and may also include other costs; this embodiment of the application does not limit the scope of the cost.

[0080] In some possible implementations, as mentioned above, the preset objective function represents the total production cost, which includes the cost of the flow equipment. This cost of the flow equipment is mapped to the amount of raw material stored within it. Therefore, the electronic device can substitute the candidate first storage quantity into the preset objective function to obtain candidate total production costs. The candidate first storage quantity that results in the lowest candidate total production cost is then used as the first storage quantity of the target raw material allocated to the flow equipment in the current time period. For example, it can be expressed as... Among them, B t This indicates the first quantity of the target raw material allocated to the flow equipment during the current time period. This indicates the amount of the target raw material allocated to the relay tank during the current time period. This indicates the amount of the target raw material allocated to the filling tank during the current time period. This indicates the amount of the target raw material allocated to the distillation column during the current time period.

[0081] Alternatively, a threshold range for total production cost can be preset, and the first reserve of candidate total production cost that falls within the preset threshold range will be used as the first reserve of target raw materials allocated to the flow equipment in the current period.

[0082] The raw material allocation method provided in this application utilizes the production capacity information of the target product in the current time period to determine a candidate first reserve quantity that meets preset constraints for allocation to the flow equipment. Then, based on the candidate first reserve quantity and a preset objective function, the first reserve quantity of the target raw material allocated to the flow equipment in the current time period is determined. In this way, electronic equipment can automatically determine the first reserve quantity of the target raw material allocated to the flow equipment in the current time period based on the production capacity information of the target product, preset constraints, and a preset objective function, thereby improving allocation efficiency and accuracy.

[0083] Figure 3 Flowchart of the raw material distribution method provided in this application Figure 2 ,like Figure 3 As shown, in this embodiment... Figure 2 Based on the examples, the method for distributing raw materials is described in detail, which includes:

[0084] S301, Obtain the first and second requirements.

[0085] For example, the first demand represents the demand for the target product during the remaining period of the current production cycle. For instance, taking a 90-day production cycle as an example, each day of the 90 days is considered a period, and the current period is day 60. Therefore, the first demand can be expressed as the demand for the target product from day 60 to day 90. The second demand represents the demand for the target product in the next production cycle. For example, if the next production cycle is 90 days, it represents the demand for the target product within those 90 days.

[0086] S302. Based on the first and second demands, determine the production capacity information of the target product in the current time period.

[0087] For example, if the production capacity information of the target product is the same for each time period, the total demand for the target product can be determined based on the first demand and the second demand. The total demand for the target product can be divided by the total time period to obtain the production capacity information of the target product for each time period, that is, the production capacity information of the target product in the current time period.

[0088] S303. Based on the capacity information, determine the first candidate reserve of the target raw material to be allocated to the flow equipment and the second candidate reserve of the target product to the storage equipment, which meet the preset constraints.

[0089] For example, the electronic device can exhaustively obtain multiple sets of values ​​that satisfy the constraints based on the above-mentioned preset constraints, and use them as candidate first reserves and candidate second reserves respectively.

[0090] In some possible implementations, the electronic device can determine candidate first variables and candidate second variables that meet preset constraints based on production capacity information, and then determine candidate first reserves based on candidate first variables and first mapping relationship; and determine candidate second reserves based on candidate second variables and second mapping relationship.

[0091] For example, the first variable described above represents the arrival amount of the target raw material at the flow equipment during the current time period. This first variable includes the arrival amount of the target raw material at each flow equipment during the current time period. This could be the arrival amount of the target raw material flowing from the connection station to the relay tank, or the arrival amount of the target raw material flowing from one upstream flow equipment to a downstream flow equipment. It should be understood that the connectivity between the connection station storing the target raw material and which flow equipment is connected is fixed, and the connectivity between flow equipment is also fixed. Therefore, the flow equipment that the target raw material can reach is also fixed.

[0092] The second variable mentioned above represents the arrival amount of the target product to the storage device in the current time period. This second variable includes the arrival amount of each target product to the corresponding storage device in the current time period. It can be the arrival amount of the target product flowing from the upstream distillation tower to the downstream storage device. It should be understood that each storage device stores a type of product, and the distillation tower that can produce that type of product can have the product flow into the storage device. Furthermore, the connection relationship between the distillation tower and the storage device is fixed.

[0093] The aforementioned preset constraints can indicate the relationship between raw materials and flow equipment, as well as the relationship between products and storage equipment and capacity information, based on the first and second variables. For example, the preset constraints may include the relationship between the first variable and the maximum capacity of each flow equipment, the relationship between the first variable and the maximum flow rate of the oil flow path between two flow equipment, the relationship between the second variable and the maximum capacity of the storage equipment, and the relationship between the second variable and capacity information.

[0094] For example, the preset constraints include the following constraints: first constraint, second constraint, third constraint, fourth constraint, and fifth constraint.

[0095] The aforementioned first constraint characterizes the relationship between the first variable and the maximum flow rate of the oil flow path, and the relationship between the second variable and the maximum flow rate of the oil flow path. For example, the first constraint can be expressed in the following form:

[0096]

[0097] The first variable includes and The second variable includes P. f,v ; This indicates the flow from the connecting station (u) to the relay tank (h). z The amount of target raw materials to be delivered. This indicates that water flows from the connection station (u) to the filling tank (h). j The amount of target raw materials to be delivered. Indicates from relay tank (h) z ) flows into the filling tank (h j The amount of target raw materials to be delivered. Indicates from the filling tank (h) j The amount of the target feedstock arriving at the distillation column (f), P f,v This represents the amount of the target product arriving at the storage tank (v) from the distillation column (f). s represents the maximum flow rate of the oil flow path, M... a A matrix representing the connections between devices. The dimension of this matrix depends on the total number of devices, including connection stations, mobile devices, and storage devices. For example, if the total number of devices is 10, then the dimension of this matrix is ​​10×10. If two devices are connected, then the M represented by these two devices... a The element value in the matrix is ​​1, and the element value is 0 if there is no connection.

[0098] It should be noted that the above first constraint condition is only an overall illustration of the first variable and the second variable. In specific use, it needs to be determined based on the arrival amount of each mobile device corresponding to the first variable and the arrival amount of each storage device corresponding to the second variable. This application embodiment will not be described in detail here.

[0099] The aforementioned second constraint characterizes the relationship between the first variable and the maximum capacity of the flow equipment. For example, this second constraint can, for each type of flow equipment, determine the relationship between the target raw material storage and the maximum capacity of the flow equipment in the current period, based on the first variable flowing into the flow equipment, the original storage volume of the target raw material in the flow equipment during the current period, and the first variable flowing out of the flow equipment. For example, for a relay tank, based on the first variable flowing into the relay tank, the original storage volume of the target raw material in the relay tank during the current period, and the first variable flowing out of the relay tank, the relationship between the target raw material storage and the maximum capacity of the relay tank during the current period is obtained. Exemplarily, this second constraint can be expressed in the following form:

[0100]

[0101] Among them, the above This indicates the relay tank (h) in the current time period. z The original reserves of the target raw materials in the area. This indicates that the tank is being filled during the current time period (h). j The original reserves of the target raw materials in t f This indicates the original amount of the target feedstock in the distillation column (f) at the current time period. This indicates the maximum capacity of the relay tank. The maximum capacity of the filling tank is indicated by max. f Δ represents the maximum capacity of the distillation column. f,v This indicates the target raw material that will participate in the chemical reaction during the current time period.

[0102] It should be noted that the above second constraint is only an overall illustration of the first variable. In specific use, it needs to be determined based on the arrival volume of each flow device corresponding to the first variable. This embodiment will not be elaborated upon here. It should be understood that reference... Figure 1 As shown, there are two ways to connect the filling tank: one is to connect it directly to the connection station, and the other is to connect it to the relay tank. Therefore, the target raw materials flowing into the filling tank can be in two forms, which are respectively limited by the second constraint condition mentioned above.

[0103] The aforementioned third constraint characterizes the relationship between the second variable and the maximum capacity of the storage device, as well as the relationship between the second variable and the target product conversion rate. For example, this third constraint can, for each storage device, determine the relationship between the target product's storage capacity and maximum capacity in the current period based on the second variable flowing into the storage device, the original target product's storage capacity in the storage device during the current time period, and the second variable flowing out of the storage device. Exemplarily, this third constraint can be expressed in the following form:

[0104]

[0105] Among them, the above τ v t represents the conversion rate of the target product. v This indicates the original amount of the target product stored in storage tank (v) at the current time period. This indicates the capacity information for the current time period, max. v This indicates the maximum capacity of the storage tank.

[0106] It should be noted that the above third constraint is only an overall illustration of the second variable. In specific use, it needs to be determined based on the arrival amount of each storage device corresponding to the second variable. This application embodiment will not elaborate on each one here.

[0107] The fourth constraint described above characterizes the relationship between the second variable and the production capacity information. For example, it represents the relationship between the original storage capacity of the target product in all storage tanks of this type of product, the second variable of the target product flowing into the storage tank, and the production capacity information. For instance, the fourth constraint can be expressed in the following form:

[0108]

[0109] Among them, A t This represents the production capacity information of the target product in the current time period t, where n represents the type of product.

[0110] It should be noted that the above fourth constraint is only an overall illustration of the second variable. In specific use, it needs to be determined based on the arrival amount of each storage device corresponding to the second variable. This application embodiment will not elaborate on each one here.

[0111] The fifth constraint described above represents the relationship between production capacity information and the first and second demands. The first demand represents the demand for the target product during the remaining time period of the current production cycle; for example, the relationship between the total production capacity information corresponding to the remaining time period of the current production cycle and the first demand. The second demand represents the demand for the target product in the next production cycle; for example, the relationship between the total production capacity information corresponding to each time period of the next production cycle and the second demand. For example, this fifth constraint can be expressed in the following form:

[0112]

[0113] Among them, A k This represents the production capacity information for time period k, where t represents the current time period, T represents the last time period of the current production cycle, T+1 represents the last time period of the next production cycle, and D... T D represents the primary need. T+1 This indicates the second requirement.

[0114] It should be noted that the fifth constraint mentioned above is only a general illustration of the production capacity information of the target product. In specific use, it needs to be determined based on the production capacity information corresponding to each product. This application embodiment will not elaborate on it here.

[0115] In this implementation, the electronic device can exhaustively obtain candidate first and second variables that satisfy the constraints based on the production capacity information. For example, after obtaining the original reserves of the target raw materials in each flow device during the current period, the electronic device can exhaustively determine the candidate second variables that satisfy the preset constraints based on the production capacity information, the first constraint, the third constraint, the fourth constraint, and the fifth constraint, and exhaustively determine the candidate first variables that satisfy the preset constraints based on the first and second constraints.

[0116] The aforementioned first mapping relationship characterizes the relationship between the first reserve and the first variable. For example, it could be the relationship between the first variable and the first reserve for each type of mobile equipment in the current time period. In other words, the first reserve characterizes the reserve for each type of mobile equipment. The first mapping relationship can be expressed, for example, in the following form:

[0117]

[0118] The aforementioned first storage capacity includes the storage capacity of the relay tank. Storage capacity of the filling tank And the storage capacity of the distillation column

[0119] Therefore, the electronic device can determine the candidate first storage quantity corresponding to the candidate first variable based on the above first mapping relationship and the above candidate first variable.

[0120] The aforementioned second mapping relationship characterizes the relationship between the second reserve and the second variable, and this second mapping relationship can be expressed, for example, in the following form:

[0121]

[0122] The second storage quantity mentioned above includes the storage capacity of the storage tank (i v ).

[0123] Therefore, the electronic device can determine the candidate second storage quantity corresponding to the candidate second variable based on the above-mentioned second mapping relationship and the above-mentioned candidate second variable.

[0124] S304. Based on the candidate first reserve, the candidate second reserve, and the preset objective function, determine the first reserve of the target raw material to be allocated to the flow equipment in the current time period from the candidate first reserve.

[0125] In some possible implementations, the pre-defined objective function can characterize the mapping relationship between total production costs and the costs of mobile equipment, storage equipment, connection stations, and shipping equipment. For example, the pre-defined objective function can be expressed in the following form:

[0126]

[0127] in, This indicates the cost of the connecting station; the cost of the mobile equipment includes the cost of the relay tank. Cost of filling tank Cost of distillation column Indicates the cost of storage devices. This indicates the cost of shipping the equipment out.

[0128] In some possible implementations, the electronic device can determine the candidate total production cost based on the candidate first reserve, the candidate second reserve, and a preset objective function. The candidate first reserve corresponding to the minimum candidate total production cost is then determined as the first reserve of the target raw material allocated to the flow equipment in the current time period. The cost of the flow equipment can then be determined based on the candidate first reserve, and the cost of the storage equipment can be determined based on the candidate second reserve. These costs are then substituted into the preset objective function to obtain the candidate total production cost. Finally, the candidate first reserve corresponding to the minimum candidate total production cost can be used as the first reserve of the target raw material allocated to the flow equipment in the current time period.

[0129] In some possible implementations, the cost of the connecting station can be a fixed value or dynamically determined based on the target raw material reserves in the connecting station during the current time period. Specifically, a third reserve of the target raw material in the connecting station during the current time period is obtained; if the third reserve is determined to be less than or equal to the maximum capacity of the connecting station, then the cost of the connecting station is determined to be linearly related to the third reserve; if the third reserve is determined to be greater than the maximum capacity of the connecting station, then the cost of the connecting station is determined based on the third reserve, the maximum capacity of the connecting station, and a third mapping relationship; wherein, the third mapping relationship characterizes the relationship between the third reserve, the maximum capacity of the connecting station, and the cost of the connecting station. For example, the cost of the connecting station can be expressed in the following form:

[0130]

[0131] Among them, i u The third reserve of the target raw material in the connecting station, max u This represents the maximum capacity of the connecting station, where α and β represent preset coefficients, and β(i u -max u () represents the waiting cost of the target raw material.

[0132] In some possible implementations, the cost of transporting equipment can be a fixed value or dynamically determined based on the candidate second reserves for the current time period. Specifically, the transportation capacity information of the equipment arriving at the plant area in the current time period is obtained; based on the candidate second reserves and transportation capacity information, the waiting time of the equipment in the plant area is determined; and based on the waiting time and transportation capacity information, the cost of transporting the equipment is determined.

[0133] For example, the aforementioned capacity information represents the maximum transport volume of outgoing equipment arriving at the plant area. If the candidate second storage capacity does not reach the maximum transport volume of the outgoing equipment, a waiting cost for the outgoing equipment will be incurred. Therefore, the electronic device can determine the waiting time of the outgoing equipment in the plant area based on the candidate second storage capacity and the capacity information. For instance, based on the candidate second storage capacity in the current time period and the candidate second storage capacity in the next time period, it can be determined whether the capacity information can be met. Then, the waiting time can be determined based on the current time period and the next time period, and the cost of outgoing equipment can be determined based on the waiting time and the capacity information. The cost of outgoing equipment can be expressed in the following form:

[0134]

[0135] Among them, t w Indicates the waiting time.

[0136] The raw material allocation method provided in this application allows an electronic device to determine, using current-period production capacity information and preset constraints, a candidate first variable representing the arrival amount of the target raw material at each flow device and a candidate second variable representing the arrival amount of the target product at the storage device. Based on the candidate first and candidate second variables, candidate first and candidate second reserves are determined respectively. Finally, based on the candidate first and candidate second reserves and a preset objective function, the candidate first reserve that minimizes the value of the preset objective function is determined as the first reserve of the target raw material allocated to the flow devices in the current period. In this way, the electronic device can automatically determine the first reserve of the target raw material allocated to the flow devices in the current period using current-period production capacity information, preset constraints, and a preset objective function, improving the efficiency and accuracy of raw material allocation.

[0137] Figure 4 A schematic diagram of the raw material distribution device provided in this application is shown below. Figure 4 As shown, the raw material dispensing device 400 provided in this embodiment includes:

[0138] The acquisition module 401 is used to acquire the production capacity information of the target product in the current time period; wherein, the production capacity information represents the quantity of the target product that the target raw materials can generate in the current time period;

[0139] The first determining module 402 is used to determine, based on the production capacity information, a candidate first storage quantity of the target raw material to be allocated to the flow equipment that meets preset constraints; wherein, the preset constraints are used to indicate the relationship between the raw material and the flow equipment, and the relationship between the product and the storage equipment and the production capacity information.

[0140] The second determining module 403 is used to determine, from the candidate first reserves, the first reserve of the target raw material to be allocated to the flow equipment in the current time period according to a preset objective function; wherein the preset objective function represents the total production cost.

[0141] In one possible implementation, the first determining module 402 is specifically used for:

[0142] Based on the production capacity information, determine the first candidate reserve of the target raw material to be allocated to the flow device and the second candidate reserve of the target product in the storage device, which meet the preset constraints.

[0143] The second determining module 403 is specifically used for:

[0144] Based on the candidate first reserves, candidate second reserves, and a preset objective function, determine the first reserve of the target raw material to be allocated to the flow equipment in the current time period from the candidate first reserves.

[0145] In one possible implementation, the first determining module 402 is specifically used for:

[0146] Based on the production capacity information, candidate first variables and candidate second variables that satisfy the preset constraints are determined; wherein, the first variable represents the amount of target raw materials arriving at the flow equipment in the current time period; and the second variable represents the amount of target products arriving at the storage equipment in the current time period.

[0147] Based on the candidate first variable and the first mapping relationship, the candidate first reserve is determined; and based on the candidate second variable and the second mapping relationship, the candidate second reserve is determined; wherein, the first mapping relationship represents the relationship between the first reserve and the first variable; and the second mapping relationship represents the relationship between the second reserve and the second variable.

[0148] In one possible implementation, the preset constraints include the following constraints: a first constraint, a second constraint, a third constraint, a fourth constraint, and a fifth constraint.

[0149] Wherein, the first constraint condition characterizes the relationship between the first variable and the maximum flow rate of the oil flow path, and the relationship between the second variable and the maximum flow rate of the oil flow path;

[0150] The second constraint characterizes the relationship between the first variable and the maximum capacity of the flow equipment;

[0151] The third constraint characterizes the relationship between the second variable and the maximum capacity of the storage device, as well as the relationship between the second variable and the target product conversion rate.

[0152] The fourth constraint condition characterizes the relationship between the second variable and the production capacity information;

[0153] The fifth constraint characterizes the relationship between production capacity information and the first and second demands; wherein the first demand characterizes the demand for the target product during the remaining period of the current production cycle, and the second demand characterizes the demand for the target product in the next production cycle.

[0154] In one possible implementation, the first determining module 402 is specifically used for:

[0155] Based on the first constraint and the second constraint, determine the candidate first variable that satisfies the preset constraint.

[0156] Based on the production capacity information, the first constraint, the third constraint, the fourth constraint, and the fifth constraint, a candidate second variable that satisfies the preset constraint is determined.

[0157] In one possible implementation, the second determining module 403 is specifically used for:

[0158] Based on the candidate first reserve, the candidate second reserve, and the preset objective function, determine the candidate total production cost;

[0159] The candidate first reserve corresponding to the minimum value among the candidate total production costs is determined as the first reserve of the target raw material allocated to the flow equipment in the current time period.

[0160] In one possible implementation, the preset objective function is used to indicate the mapping relationship between total production cost and the costs of mobile equipment, storage equipment, connection stations, and shipping equipment.

[0161] In one possible implementation, the second determining module 403 can also be used for:

[0162] Obtain transportation capacity information for equipment arriving at the factory area during the current time period;

[0163] Based on the candidate second storage capacity and the transportation capacity information, the waiting time of the transported equipment in the factory area is determined;

[0164] The cost of transporting the equipment is determined based on the waiting time and the transportation capacity information.

[0165] In one possible implementation, the second determining module 403 can also be used for:

[0166] Obtain the third reserve of the target raw material in the connecting station during the current time period;

[0167] If it is determined that the third storage capacity is less than or equal to the maximum capacity of the connecting station, then it is determined that the cost of the connecting station is linearly related to the third storage capacity.

[0168] If it is determined that the third reserve is greater than the maximum capacity of the connecting station, then the cost of the connecting station is determined based on the third reserve, the maximum capacity of the connecting station, and the third mapping relationship; wherein, the third mapping relationship represents the relationship between the third reserve, the maximum capacity of the connecting station, and the cost of the connecting station.

[0169] In one possible implementation, module 401 is specifically used for:

[0170] Obtain the first demand and the second demand; wherein the first demand represents the demand for the target product during the remaining period of the current production cycle, and the second demand represents the demand for the target product in the next production cycle;

[0171] Based on the first requirement and the second requirement, determine the production capacity information of the target product in the current time period.

[0172] The raw material dispensing device provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.

[0173] Figure 5 A schematic diagram of the structure of the electronic device provided in this application. Figure 5 As shown, the electronic device 500 provided in this embodiment includes at least one processor 501 and a memory 502. Optionally, the device 500 further includes a communication component 503. The processor 501, memory 502, and communication component 503 are connected via a bus 504.

[0174] In a specific implementation, at least one processor 501 executes computer execution instructions stored in memory 502, causing at least one processor 501 to perform the above-described method.

[0175] The specific implementation process of processor 501 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.

[0176] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.

[0177] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.

[0178] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.

[0179] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.

[0180] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the above-described method.

[0181] The aforementioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.

[0182] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.

[0183] The division of units is merely a logical functional division; in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.

[0184] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0185] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0186] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0187] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.

[0188] Finally, it should be noted that other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.

Claims

1. A method for distributing raw materials, characterized in that, include: Obtain the production capacity information of the target product in the current time period; wherein, the production capacity information represents the quantity of the target product that the target raw materials can generate in the current time period; Based on the production capacity information, a first candidate storage quantity of the target raw material to be allocated to the flow equipment is determined, which meets preset constraints; wherein, the preset constraints are used to indicate the relationship between the raw material and the flow equipment, and the relationship between the product and the storage equipment and the production capacity information. According to a preset objective function, a first reserve of the target raw material to be allocated to the flow equipment in the current time period is determined from the candidate first reserves; wherein, the preset objective function represents the total production cost.

2. The method according to claim 1, characterized in that, Based on the production capacity information, determine the first candidate reserves of the target raw material that meet preset constraints and are allocated to the flow equipment, including: Based on the production capacity information, determine the first candidate reserve of the target raw material to be allocated to the flow device and the second candidate reserve of the target product in the storage device, which meet the preset constraints. The step of determining the first reserve of the target raw material to be allocated to the flow equipment in the current time period from the candidate first reserves according to the preset objective function includes: Based on the candidate first reserves, candidate second reserves, and a preset objective function, determine the first reserve of the target raw material to be allocated to the flow equipment in the current time period from the candidate first reserves.

3. The method according to claim 2, characterized in that, Based on the production capacity information, determine the first candidate reserves of the target raw material to be allocated to the flow equipment and the second candidate reserves of the target product to the storage equipment, which meet the preset constraints, including: Based on the production capacity information, candidate first variables and candidate second variables that satisfy the preset constraints are determined; wherein, the first variable represents the amount of target raw materials arriving at the flow equipment in the current time period; and the second variable represents the amount of target products arriving at the storage equipment in the current time period. Based on the candidate first variable and the first mapping relationship, the candidate first reserve is determined; and based on the candidate second variable and the second mapping relationship, the candidate second reserve is determined; wherein, the first mapping relationship represents the relationship between the first reserve and the first variable; and the second mapping relationship represents the relationship between the second reserve and the second variable.

4. The method according to claim 3, characterized in that, The preset constraints include the following constraints: first constraint, second constraint, third constraint, fourth constraint, and fifth constraint. Wherein, the first constraint condition characterizes the relationship between the first variable and the maximum flow rate of the oil flow path, and the relationship between the second variable and the maximum flow rate of the oil flow path; The second constraint characterizes the relationship between the first variable and the maximum capacity of the flow equipment; The third constraint characterizes the relationship between the second variable and the maximum capacity of the storage device, as well as the relationship between the second variable and the target product conversion rate. The fourth constraint condition characterizes the relationship between the second variable and the production capacity information; The fifth constraint characterizes the relationship between production capacity information and the first and second demands; wherein the first demand characterizes the demand for the target product during the remaining period of the current production cycle, and the second demand characterizes the demand for the target product in the next production cycle.

5. The method according to claim 4, characterized in that, The step of determining the candidate first variable and candidate second variable that satisfy the preset constraints based on the production capacity information includes: Based on the first constraint and the second constraint, determine the candidate first variable that satisfies the preset constraint. Based on the production capacity information, the first constraint, the third constraint, the fourth constraint, and the fifth constraint, a candidate second variable that satisfies the preset constraint is determined.

6. The method according to claim 2, characterized in that, Based on the candidate first reserves, candidate second reserves, and a preset objective function, determine the first reserve of the target raw material to be allocated to the flow equipment in the current time period from the candidate first reserves, including: Based on the candidate first reserve, the candidate second reserve, and the preset objective function, determine the candidate total production cost; The candidate first reserve corresponding to the minimum value among the candidate total production costs is determined as the first reserve of the target raw material allocated to the flow equipment in the current time period.

7. The method according to claim 6, characterized in that, The preset objective function is used to indicate the mapping relationship between total production cost and the costs of mobile equipment, storage equipment, connection stations, and outgoing equipment.

8. The method according to claim 7, characterized in that, The method further includes: Obtain transportation capacity information for equipment arriving at the factory area during the current time period; Based on the candidate second storage capacity and the transportation capacity information, the waiting time of the transported equipment in the factory area is determined; The cost of transporting the equipment is determined based on the waiting time and the transportation capacity information.

9. The method according to claim 7, characterized in that, The method further includes: Obtain the third reserve of the target raw material in the connecting station during the current time period; If it is determined that the third storage capacity is less than or equal to the maximum capacity of the connecting station, then it is determined that the cost of the connecting station is linearly related to the third storage capacity. If it is determined that the third reserve is greater than the maximum capacity of the connecting station, then the cost of the connecting station is determined based on the third reserve, the maximum capacity of the connecting station, and the third mapping relationship; wherein, the third mapping relationship represents the relationship between the third reserve, the maximum capacity of the connecting station, and the cost of the connecting station.

10. The method according to any one of claims 1-9, characterized in that, The process of obtaining the production capacity information of the target product in the current time period includes: Obtain the first demand and the second demand; wherein the first demand represents the demand for the target product during the remaining period of the current production cycle, and the second demand represents the demand for the target product in the next production cycle; Based on the first requirement and the second requirement, determine the production capacity information of the target product in the current time period.

11. A raw material dispensing device, characterized in that, include: The acquisition module is used to acquire the production capacity information of the target product in the current time period; wherein, the production capacity information represents the quantity of the target product that the target raw materials can generate in the current time period; The first determining module is used to determine, based on the production capacity information, a candidate first storage quantity of the target raw material to be allocated to the flow equipment that meets preset constraints; wherein, the preset constraints are used to indicate the relationship between the raw material and the flow equipment, and the relationship between the product and the storage equipment and the production capacity information. The second determining module is used to determine, from the candidate first reserves, the first reserve of the target raw material to be allocated to the flow equipment in the current time period according to a preset objective function; wherein the preset objective function represents the total production cost.

12. An electronic device, characterized in that, include: Memory, processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the method as described in any one of claims 1-10.

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

14. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method described in any one of claims 1-10.