Resource allocation method and apparatus, electronic device, and storage device
By configuring optimization models and marginal contribution acquisition models, the problem of allocation adjustment when resource quantity changes is solved, thereby maximizing resource utilization and optimizing the allocation of refining and chemical enterprise load.
Patent Information
- Application Number
- CN202210981114.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-16
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2042-08-16
AI Technical Summary
When the actual amount of resources provided by the resource provider changes, how can the allocation scheme of resources among multiple refining and chemical enterprises be adjusted reasonably and conveniently to maximize the overall resource utilization rate?
By establishing a configuration optimization model, the resource allocation amount and shadow price of the ex-factory products of each refining and chemical enterprise are obtained. A marginal contribution acquisition model is constructed, the resource allocation amount is iteratively adjusted, the marginal contribution of the refining and chemical enterprise is calculated, and the allocation of resources among the refining and chemical enterprises is adjusted according to the marginal contribution.
It enables rapid and rational adjustment of resource allocation when resource quantities change, improves resource utilization, identifies refining and chemical enterprises with excessively high or low loads, and provides guidance on resource allocation.
Smart Images

Figure CN117669905B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a resource allocation method, apparatus, electronic device, and storage device. Background Technology
[0002] Integrated oil companies typically encompass resource extraction, transportation, processing, and sales, comprising multiple oil fields and refining enterprises. The same resource can usually be allocated to multiple refining enterprises for processing, with each enterprise undergoing complex processing steps to transform the resource into various types of finished products. For integrated oil companies, production planning requires a comprehensive optimization of resources, taking into account the production processes, geographical locations, and market demand for refined products at each refining enterprise. Through scientific analysis, the optimal quantity of each resource allocated to each refining enterprise can be determined, thereby maximizing resource utilization.
[0003] Currently, by establishing and solving a configuration optimization model, a resource allocation scheme can be obtained that maximizes the overall resource utilization of a comprehensive oil company while satisfying all constraints of the configuration optimization model (e.g., total resources, market demand for products, refining capacity, and various process parameter limitations).
[0004] However, during resource production and processing, the actual quantity of resources provided by the resource provider may be greater or less than the estimated supply. When the actual quantity of resources provided differs from the estimated quantity, it is necessary to quickly adjust the resource allocation plan among multiple refining and chemical enterprises.
[0005] Therefore, when the actual amount of resources provided by the resource provider changes compared to the expected amount, how to reasonably and conveniently adjust the allocation scheme of resources among multiple refining and chemical enterprises is an urgent technical problem to be solved. Summary of the Invention
[0006] This application provides a resource allocation method, apparatus, electronic device, and storage device for reasonably and conveniently adjusting the resource allocation scheme among multiple refining and chemical enterprises when the quantity of resources provided by the resource provider changes.
[0007] One embodiment of this application provides a resource allocation method. The resource allocation method includes: obtaining the resource allocation amount for each refining enterprise and the shadow price of each refining enterprise's ex-factory product according to a configuration optimization model; wherein, the configuration optimization model is used to determine the resource allocation amount for each refining enterprise when the overall resource utilization rate is maximized; establishing a marginal contribution acquisition model for each refining enterprise based on its resource allocation amount and the shadow price of its ex-factory product; the marginal contribution acquisition model is used to calculate the first marginal contribution corresponding to the resource allocation amount of the refining enterprise; iteratively adjusting the resource allocation amount in at least one marginal contribution acquisition model and solving the adjusted marginal contribution acquisition model to obtain the first marginal contribution of the corresponding refining enterprise under different resource changes; the first marginal contribution characterizes the degree of impact of changes in the resource allocation amount of the refining enterprise on the overall resource utilization rate; when the total amount of resources to be allocated changes, adjusting the resource allocation amount of each refining enterprise according to its first marginal contribution under different resource changes.
[0008] In some embodiments, establishing a marginal contribution acquisition model for each refining enterprise based on its resource allocation and the shadow price of each ex-factory product includes: using the shadow price of each refining enterprise's ex-factory product as the ex-factory price of each refining enterprise's ex-factory product; establishing a marginal contribution acquisition model for each refining enterprise based on the difference between its resource allocation and a preset fine-tuning quantity, and the ex-factory price of each refining enterprise's ex-factory product; wherein the difference between its resource allocation and the preset fine-tuning quantity is used as the resource allocation in the marginal contribution acquisition model for each refining enterprise.
[0009] In some embodiments, obtaining the shadow price of each refining enterprise's ex-factory product according to the configuration optimization model includes: adding a self-sales submodule and a constraint equation for the self-sales submodule to each refining enterprise in the configuration optimization model to obtain an adjusted configuration optimization model; wherein, the self-sales submodule is used to determine the sales quantity of ex-factory products sold at a preset price when resource utilization is maximized, and the constraint equation is used to constrain the upper limit of the sales quantity of ex-factory products in the self-sales submodule; solving the adjusted configuration optimization model to obtain the second marginal contribution of the constraint equation of the self-sales submodule; and calculating the shadow price of the ex-factory product based on the preset price and the second marginal contribution of the constraint equation.
[0010] In some embodiments, the iterative adjustment of resource allocation in at least one marginal contribution acquisition model and the solution of the adjusted marginal contribution acquisition model to obtain the first marginal contribution of the corresponding refining enterprise under different resource changes includes: for each of the at least one marginal contribution acquisition models, adjusting the upper limit in the upper limit constraint equation and the lower limit in the lower limit constraint equation of the marginal contribution acquisition model according to a predetermined step size to obtain the adjusted marginal contribution acquisition model; solving the adjusted marginal contribution acquisition model to obtain the adjusted resource allocation of the corresponding refining enterprise and the third marginal contribution of the upper limit constraint equation and the fourth marginal contribution of the lower limit constraint equation of the marginal contribution acquisition model; if the adjusted resource allocation is not abnormal, adding the third marginal contribution of the upper limit constraint equation and the fourth marginal contribution of the lower limit constraint equation of the marginal contribution acquisition model to obtain the first marginal contribution of the corresponding refining enterprise under the resource change in this adjustment, and executing the next iteration; wherein, the resource change is the product of the step size and the number of iterations; if the adjusted resource allocation is abnormal, the iteration is stopped.
[0011] In some embodiments, after solving the adjusted marginal contribution model to obtain the corresponding adjusted resource allocation amount for the refining enterprise, the method further includes: if the adjusted resource allocation amount is within the predetermined resource threshold range of the refining enterprise, then it is determined that the adjusted resource allocation amount is not abnormal; otherwise, it is determined that the adjusted resource allocation amount is abnormal.
[0012] In some embodiments, the method further includes: establishing a production plan sub-model for each refining enterprise based on resource usage data of each refining enterprise; wherein the production plan sub-model for each refining enterprise is used to determine the resource allocation amount of the refining enterprise when the resource utilization rate of the refining enterprise is maximized; and establishing the configuration optimization model based on the production plan sub-model for each refining enterprise, the transportation network for transporting resources to each refining enterprise, and the sales network for the products manufactured by each refining enterprise.
[0013] One embodiment of this application provides a resource allocation device, the device comprising: an acquisition module, configured to acquire the resource allocation amount of each refining enterprise and the shadow price of the ex-factory product of each refining enterprise according to a configuration optimization model; wherein the configuration optimization model is used to determine the resource allocation amount of each refining enterprise when the overall resource utilization rate is maximized; an establishment module, configured to establish a marginal contribution acquisition model corresponding to each refining enterprise based on the resource allocation amount of each refining enterprise and the shadow price of the ex-factory product of each refining enterprise; the marginal contribution acquisition model is used to calculate the first marginal contribution corresponding to the resource allocation amount of the refining enterprise; an iteration module, configured to iteratively adjust the resource allocation amount in at least one marginal contribution acquisition model and solve the adjusted marginal contribution acquisition model to obtain the first marginal contribution of the corresponding refining enterprise under different resource changes; the first marginal contribution characterizes the degree of influence of the resource allocation amount of the refining enterprise on the overall resource utilization rate when the resource change amount occurs; and an adjustment module, configured to adjust the resource allocation amount of each refining enterprise according to the first marginal contribution of each refining enterprise under different resource changes when the total amount of resources to be allocated changes.
[0014] In some embodiments, the establishment module is specifically used to take the shadow price of the ex-factory product of each refining and chemical enterprise as the ex-factory price of the ex-factory product of each refining and chemical enterprise; the establishment module is further used to establish a marginal contribution acquisition model for each refining and chemical enterprise based on the difference between the resource allocation amount and the preset fine-tuning amount of each refining and chemical enterprise, and the ex-factory price of the ex-factory product of each refining and chemical enterprise; wherein, the difference between the resource allocation amount and the preset fine-tuning amount of each refining and chemical enterprise is taken as the resource allocation amount in the marginal contribution acquisition model for each refining and chemical enterprise.
[0015] This application provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the method described above when running the program.
[0016] This application provides a storage device for storing a computer-readable program, which, when run, performs the method described above.
[0017] The embodiments provided in this application derive a marginal contribution acquisition model based on the shadow price of each ex-factory product of each of the multiple refining and chemical enterprises and the resource allocation of each refining and chemical enterprise. By iteratively adjusting the resource allocation in at least one marginal contribution acquisition model and solving the adjusted marginal contribution acquisition model, the first marginal contribution of each refining and chemical enterprise under different resource changes is obtained. Since the shadow price is the selling price of each ex-factory product sold by the refining and chemical enterprise to the downstream sales market when the downstream sales market breaks even, the shadow price can reflect the price at which the resource utilization rate of each refining and chemical enterprise is maximized, making the marginal contribution data of multiple refining and chemical enterprises more comparable. Since the resource allocation of each refining and chemical enterprise for the resources to be allocated is obtained from the optimized allocation result of production resources obtained by solving the configuration optimization model, the marginal contribution acquisition model obtained based on the optimized processing quantity, and the marginal contribution data obtained by adjusting the marginal contribution acquisition model, can serve as a basis for reasonably and conveniently adjusting the resource allocation scheme among multiple refining and chemical enterprises when the quantity of resources to be allocated provided by the provider to the multiple refining and chemical enterprises increases or decreases compared with the preset provision quantity.
[0018] This application provides a resource allocation method, apparatus, electronic device, and storage device. Using the marginal contribution data of each refining and chemical enterprise obtained from the embodiments of this application as a quantitative basis, the reasons why some refining and chemical enterprises have excessively high loads and others have excessively low loads in the optimized allocation results of production resources obtained through the configuration optimization model can be analyzed. This provides guidance for the subsequent resource allocation of each refining and chemical enterprise. Attached Figure Description
[0019] This application will be further described by way of exemplary embodiments, which will be described in detail with reference to the accompanying drawings. These embodiments are not limiting; in these embodiments, the same reference numerals denote the same structures, wherein:
[0020] Figure 1 This is a schematic diagram illustrating an application scenario of the resource allocation method according to some embodiments of this application;
[0021] Figure 2 This is an exemplary flowchart of a resource allocation method according to some embodiments of this application;
[0022] Figure 3 This is an exemplary flowchart of a method for obtaining shadow prices according to some embodiments of this application;
[0023] Figure 4 This is a summary table of marginal contributions of multiple refining and chemical enterprises to the processing of resources to be allocated, as shown in some embodiments of this application;
[0024] Figure 5This is a ranking table of the marginal contributions of multiple refining and chemical enterprises in processing the resources to be allocated as the quantity of resources to be allocated increases, as shown in some embodiments of this application.
[0025] Figure 6 This is a ranking table of the marginal contributions of multiple refining and chemical enterprises in processing the resources to be allocated when the quantity of resources to be allocated decreases, according to some embodiments of this application.
[0026] Figure 7 This is an exemplary schematic diagram of an allocation adjustment device for resources to be allocated according to some embodiments of this application;
[0027] Figure 8 This is an exemplary structural diagram of an electronic device according to some embodiments of this application. Detailed Implementation
[0028] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are merely some examples or embodiments of this application. For those skilled in the art, these drawings can be applied to other similar scenarios without creative effort. Unless obvious from the context or otherwise specified, the same reference numerals in the drawings represent the same structures or operations.
[0029] It should be understood that the terms “system,” “device,” “unit,” and / or “module” used herein are one way to distinguish different components, elements, parts, sections, or assemblies at different levels. However, if other terms can achieve the same purpose, they may be replaced by other expressions.
[0030] As indicated in this application and claims, unless the context clearly indicates otherwise, the words "a," "an," "an," and / or "the" do not specifically refer to the singular and may also include the plural. Generally speaking, the terms "comprising" and "including" only indicate the inclusion of explicitly identified steps and elements, which do not constitute an exclusive list, and the method or apparatus may also include other steps or elements.
[0031] Flowcharts are used in this application to illustrate the operations performed by the system according to embodiments of this application. It should be understood that the preceding or following operations are not necessarily performed precisely in sequence. Instead, each step can be processed in reverse order or simultaneously. Furthermore, other operations can be added to these processes, or one or more steps can be removed from them.
[0032] Figure 1 This is a schematic diagram illustrating an application scenario of a resource allocation method according to some embodiments of this application.
[0033] As an example only, the following example of a comprehensive oil company adjusting its oil raw material allocation scheme illustrates the application scenario of the resource allocation method in this application.
[0034] like Figure 1 As shown, application scenario 100 may include server 110, terminal 120 and network 130.
[0035] In some embodiments, the server 110 and the terminal 120 can interact with each other via the network 130. For example, the server 110 can obtain information and / or data from the terminal 120 via the network 130, or it can send information and / or data to the terminal 120 via the network 130.
[0036] Terminal 120 is an electronic device used by a user to obtain the allocation plan of an integrated oil company for resources to be allocated. In some embodiments, terminal 120 can establish a configuration optimization model for multiple refining enterprises and use the configuration optimization model to obtain the shadow price of each ex-factory product of each of the multiple refining enterprises. In some embodiments, terminal 120 can obtain a marginal contribution acquisition model based on the shadow price of each ex-factory product of each refining enterprise and the resource allocation amount of each refining enterprise for the resources to be allocated. In some embodiments, terminal 120 can use the marginal contribution acquisition model to obtain the first marginal contribution of each refining enterprise for processing resources. In some embodiments, when the quantity of resources to be allocated provided by the provider of the resources to be allocated to the multiple refining enterprises increases or decreases compared to a preset quantity, the user (e.g., the manager of the integrated oil company) can increase or decrease the quantity of resources to be allocated provided to at least one of the multiple refining enterprises based on at least one first marginal contribution obtained above.
[0037] It should be noted that this application does not limit the specific type of resource; for example, it can be oil, natural gas, and hydrogen.
[0038] When the computing resources of terminal 120 are limited, server 110 can also use the embodiments provided in this application to obtain at least one first marginal contribution of the processing resources to be allocated by each of the multiple refining and chemical enterprises, and send the obtained at least one first marginal contribution to terminal 120. Terminal 120 then displays the at least one first marginal contribution to the user, so that the user can adjust the amount of resources to be allocated to at least one of the multiple refining and chemical enterprises based on the obtained at least one first marginal contribution. Terminal 120 can be one of mobile devices, tablet computers, or other devices with input and / or output functions, or any combination thereof.
[0039] Server 110 can be a single server or a group of servers. The server group can be centralized or distributed (e.g., server 110 can be a distributed system), and can be dedicated or simultaneously provided by other devices or systems. In some embodiments, server 110 can be regional or remote. In some embodiments, server 110 can be implemented on a cloud platform or provided virtually. By way of example only, a cloud platform can include private cloud, public cloud, hybrid cloud, community cloud, distributed cloud, internal cloud, multi-tiered cloud, etc., or any combination thereof.
[0040] In some embodiments, network 130 can be any one or more of wired or wireless networks. For example, network 130 may include a local area network (LAN), a wide area network (WAN), a wireless local area network (WLAN), a metropolitan area network (MAN), or any combination thereof.
[0041] For ease of understanding, the technical solution of this application is described below with reference to the accompanying drawings and embodiments.
[0042] Figure 2 This is an exemplary flowchart illustrating a resource allocation method according to some embodiments of this application. For example... Figure 2 As shown, process 200 includes the following steps.
[0043] Step S210: Based on the resource allocation of each refining enterprise and the shadow price of the ex-factory products of each refining enterprise, establish a marginal contribution acquisition model for each refining enterprise.
[0044] The resources to be allocated are raw materials that need to be delivered to refining and chemical enterprises for processing. The allocation optimization model, based on operations research methods, is a model that includes the supply of resources to be allocated, the production and processing processes of multiple refining and chemical enterprises, and the transportation process of the products obtained from the processed resources. It is used to determine the allocation of production resources for each of the multiple refining and chemical enterprises to maximize resource utilization. The resource allocation determined by the allocation optimization model is the optimized processing quantity. In specific implementation, the allocation optimization model can be obtained in various ways. For example, it can be established using software such as Aspen's MPIMS (Headquarters Supply Chain Optimization Model), Honeywell's RPMS (Advanced Planning System), and the PICIO (Crude Oil Industry Chain Integrated Optimization Platform) software developed by the China Petroleum Planning and Research Institute.
[0045] As an example, the following explanation uses PICIO software to build a configuration optimization model. In practice, based on resource usage data from each of multiple refining and chemical enterprises, a production planning sub-model can be established for each enterprise, encompassing resource intake, unit production and processing, product blending, and product output. This production planning sub-model determines the allocation of production resources for the refining and chemical enterprise when its resource utilization is maximized. Resource usage data for the refining and chemical enterprises may include, but is not limited to: revenue from each product output from each refining and chemical enterprise, procurement costs of resources to be allocated, and utility costs. The objective function of the production planning sub-model is:
[0046] (1)
[0047] In formula (1): For the profits of the refining and chemical enterprise r; These are the ex-factory price and output of product i from refining and chemical enterprise r, respectively; These represent the purchase price and quantity of resource j for refining enterprise r, respectively. For the variable processing costs of a refining and chemical enterprise, r.
[0048] In the production planning sub-model established for each refining and chemical enterprise of an integrated oil company, variables include: the procurement quantity of various resources, the output of various products, the processing capacity of various units, and the feed and output of various units. Model parameters include: the procurement price of various raw materials, the ex-factory price of various products, the unit consumption of raw materials and the yield of products, and the physical properties of materials. The constraint equations of the production planning sub-model include: the plant-wide balance equation for each material, the equation relating the quantities of input and output materials of each unit, the upper and lower limits of raw material procurement quantities, the upper and lower limits of product output, the upper and lower limits of unit processing capacity, the physical property requirements of unit feedstocks, and the physical property requirements of blended products.
[0049] After establishing the production plan sub-model for each of the multiple refining and chemical enterprises, a configuration optimization model can be established based on the production plan sub-model for each of the multiple refining and chemical enterprises, the transportation network for the resources to be allocated from the resource provider to each of the multiple refining and chemical enterprises, and the sales network for the products of each of the multiple refining and chemical enterprises.
[0050] In the allocation optimization model established for integrated oil companies, the overall revenue of an integrated oil company is the difference between the total revenue from products obtained from resource processing in the end market and the total cost of purchasing resources from resource providers, the transportation cost of transporting resources from resource providers to the refining plant, and the transportation cost of transporting products obtained from resource processing from the refining plant to the market, among other expenditures. This can be expressed by the following formula:
[0051] (2)
[0052] In formula (2): Total revenue for integrated oil companies; These are the price and sales volume of product i in the market, respectively; Let n be the price and quantity of resource j supplied by resource provider n; These represent the unit transportation cost and volume of resources transported from resource provider n to refining enterprise r, respectively. These represent the unit transportation cost and volume of products transported from the refining enterprise r to the market m.
[0053] The variables in the above configuration optimization model include: the quantity of a resource supplied by the resource provider to a refining enterprise, the processing volume of the refining enterprise, the output of each product obtained from the processed resources, and the quantity of a product supplied by the refining enterprise to a market. The parameters of the configuration optimization model include: the price at which the resource provider supplies the resource, the price at which the product is sold in the market, the unit transportation cost of the resource, and the unit transportation cost of the product. The configuration optimization model includes the following constraint equations.
[0054] The resource supply balance equation for resource providers: The amount of resource j supplied by resource provider n is equal to the sum of the quantities of resource j distributed from resource provider n to each refining and chemical enterprise, expressed by the following formula:
[0055] (3)
[0056] The resource inflow balance equation for a refining and chemical enterprise: The amount of resource j purchased by refining and chemical enterprise r is equal to the amount of resource j delivered by the resource supplier n to refining and chemical enterprise r. The formula is expressed as follows:
[0057] (4)
[0058] The production and sales balance equation for a refining enterprise: The quantity of product i produced by refining enterprise r is equal to the sum of the quantities of product i distributed from refining enterprise r to various markets. The formula is expressed as follows:
[0059] (5)
[0060] The market's supply and demand balance equation: The quantity of product i sold in market m is equal to the sum of the quantities of product i distributed from each refining and chemical enterprise to market m, as expressed in the formula below:
[0061] (6)
[0062] The above configuration optimization model also includes the following constraint equations: upper and lower limit constraint equations for the supply of a certain resource from a certain resource provider, upper and lower limit constraint equations for the sales quantity of each product processed from the resource in a certain market, upper and lower limit constraint equations for the capacity of various transportation networks, and constraint equations that the integrated production planning sub-models must follow.
[0063] In some embodiments, after obtaining the configuration optimization model, a marginal contribution acquisition model for each refining enterprise can be established based on the resource allocation amount of each refining enterprise and the shadow price of its ex-factory products. Subsequently, the marginal contribution acquisition model can be used to calculate at least one marginal contribution for each of the multiple refining enterprises regarding the resources to be allocated.
[0064] In some embodiments, a configuration optimization model can be used to obtain the shadow price of each ex-factory product of each refining enterprise, where each ex-factory product is obtained after processing the resources to be allocated. Then, the shadow price of each ex-factory product is used as the ex-factory price of each ex-factory product in each production planning sub-model. The shadow price of each ex-factory product is the selling price that the refining enterprise sets for each ex-factory product in the downstream market when each ex-factory product is at break-even. For details on using the configuration optimization model to obtain the shadow price of each ex-factory product of each refining enterprise, see [link to relevant documentation]. Figure 3 The relevant content will not be repeated here.
[0065] In some embodiments, the upper and lower constraint equations in each production planning sub-model can be used to set the purchase quantity of each refining enterprise for the allocated resources in each production planning sub-model. The upper constraint equation is a constraint equation for the upper limit of the purchase quantity of each refining enterprise for the allocated resources, and the lower constraint equation is a constraint equation for the lower limit of the purchase quantity of each refining enterprise for the allocated resources. Since the purchase quantity of the allocated resources for production resources obtained through the configuration optimization model may have reached the upper limit of the processing capacity of some refining enterprises, it is necessary to add the purchase quantity of each refining enterprise for the allocated resources to the marginal contribution acquisition model to calculate at least one marginal contribution of each refining enterprise in processing the allocated resources based on the increased purchase quantity. Therefore, in some embodiments, the upper limit of the purchase quantity in the upper constraint equation and the lower limit of the purchase quantity in the lower constraint equation in each production planning sub-model can be set as the difference between the optimized processing quantity and the preset fine-tuning quantity. The resource allocation quantity is the quantity of the allocated resources delivered to each refining enterprise by the provider of the allocated resources in the result of solving the configuration optimization model. Compared to the allocated resource amount, the preset fine-tuning quantity can be a relatively small value. For example, if the allocated resource amount is 500,000 tons, the preset fine-tuning quantity could be 0.1 million tons. In the marginal contribution acquisition model, the upper limit constraint equation and the lower limit constraint equation can be expressed as follows:
[0066] (7)
[0067] (8)
[0068] In the above formula, To determine the amount of resources allocated from the resource provider n to the refining enterprise r, as obtained from the resource allocation model, This is to pre-set the fine-tuning quantity. In the above formula, by setting the upper limit of the procurement quantity in the upper limit constraint equation and the lower limit of the procurement quantity in the lower limit constraint equation to the same value, the existing constraint equations of the production planning sub-model can be used to set the marginal contribution to obtain the procurement quantity of each refining and chemical enterprise for the resources to be allocated in the model.
[0069] After setting the purchase quantity of each refining enterprise for the resources to be allocated in the marginal contribution acquisition model, the marginal contribution acquisition model can be obtained through the following steps:
[0070] (1) Set the resource procurement price for each refining and chemical enterprise:
[0071] The purchase price of the resource j to be allocated for each refining enterprise r is set as: the price at which resource provider n supplies the resource j to be allocated and the unit transportation cost from resource provider n to each refining enterprise r:
[0072] (9)
[0073] (2) Set the ex-factory price of the products of refining and chemical enterprises:
[0074] Set the ex-factory price of product i from refining enterprise r as the shadow price of product i supplied by refining enterprise r.
[0075] (10)
[0076] After establishing the marginal contribution acquisition model, the PICIO software can be used to solve the marginal contribution acquisition model to obtain the third marginal contribution of the upper limit constraint equation. The fourth marginal contribution of the lower bound constraint equation Third marginal contribution The mathematical meaning is: if the upper limit of the processing volume of the refining enterprise r to be allocated resource j is determined by... Change to The slope of the effect on the objective function value. Fourth marginal contribution. The mathematical meaning is: if the lower limit of the processing quantity of the refining enterprise r to be allocated resource j is... Change to The slope of the effect on the objective function value. For a much lower The value, for example, If it is 10,000 tons, then It can be 10,000 tons. Third marginal contribution. and the fourth marginal contribution This can reflect the contribution a refining company can make to its resource utilization rate when its processing volume of allocated resources is slightly lower than its optimal processing volume, and it purchases and processes an additional amount of allocated resources. Based on this, processing more unallocated resources can improve the resource utilization rate of refining and chemical enterprises. If the refining and chemical enterprise r processes a certain amount of Based on this, processing less resource j can improve the resource utilization rate of refining enterprises (equivalent to processing more unallocated resource j can reduce the resource utilization rate of refining enterprises), then... ,therefore, They cannot all be non-zero values at the same time, and There will also be one value that is zero. Therefore, the first marginal contribution of each refining and chemical enterprise to the resources to be allocated is... The calculation formula is as follows:
[0077] (11)
[0078] The relative magnitude of the marginal contribution of each refinery to processing the same resource j is the direct cause of the relatively high load of some refining enterprises and the relatively low load of others in the resource allocation of production resources obtained by using the configuration optimization model.
[0079] Step S220: Iteratively adjust at least one marginal contribution to obtain the resource allocation in the model, and solve the adjusted marginal contribution to obtain the first marginal contribution of the refining enterprise under different resource changes; the first marginal contribution characterizes the degree of impact of the refining enterprise's resource allocation on the overall resource utilization rate when the resource change occurs.
[0080] In some embodiments, to quickly adjust the resource allocation scheme among multiple refining enterprises when the actual amount of resources provided by the resource provider increases compared to the expected amount, it is necessary to obtain at least one first marginal contribution for each of the multiple refining enterprises when the amount of processed resources increases relative to the preset processing quantity. This allows for the allocation of the increased resources provided by the resource provider among the multiple refining enterprises based on this at least one first marginal contribution. In specific implementation, for each refining enterprise, a step size for calculating the resource marginal contribution can be set. Each step increase in the processing quantity of the resources to be allocated provided to that refining enterprise yields a first marginal contribution, until the processing quantity of the resources to be allocated provided to that refining enterprise exceeds the upper limit of its processing capacity. Therefore, for each refining enterprise, at least one first marginal contribution can be obtained.
[0081] In practical implementation, during at least one iteration, the upper limit of the procurement quantity in the upper constraint equation and the lower limit of the procurement quantity in the lower constraint equation of the marginal contribution acquisition model can be added to a preset marginal contribution analysis step size (e.g., 10,000 tons) to obtain the adjusted upper limit of the procurement quantity in the upper constraint equation and the lower limit of the procurement quantity in the lower constraint equation of the marginal contribution acquisition model. For ease of description, the marginal contribution acquisition model adjusted in the first iteration will be referred to as Model A+1, the marginal contribution acquisition model adjusted in the second iteration will be referred to as Model A+2, and so on.
[0082] The adjusted marginal contribution yields the upper and lower bound constraint equations in the model, which are expressed by the following formulas:
[0083] (12)
[0084] (13)
[0085] In formulas (12) and (13), The step size for marginal contribution analysis is m, which represents the number of iterations. For model A+1, the value of m is 1; for model A+2, the value of m is 2, and so on.
[0086] In some embodiments, the adjusted marginal contribution model obtained above can be solved to obtain the adjusted resource allocation, the third marginal contribution of the upper limit constraint equation, and the fourth marginal contribution of the lower limit constraint equation.
[0087] If the adjusted resource allocation does not produce any abnormal results, the third marginal contribution of the upper constraint equation and the fourth marginal contribution of the lower constraint equation are added together to obtain the first marginal contribution of the refining enterprise to the processing resources to be allocated under the resource change in this adjustment. The resource change is the increase in the amount of resources to be processed by the refining enterprise in the adjusted marginal contribution model compared to the amount of resources to be processed (or optimized processing quantity, since the preset fine-tuning quantity is very small and can be ignored in the calculation results). It can be obtained by calculating the product of the marginal contribution analysis step size and the number of iterations. For example, the marginal contribution analysis step size is 10,000 tons. Figure 4 As shown, in the first iteration, the resource change is 1 × 10,000 tons. For refining enterprise D, the marginal contribution of the processing resources to be allocated corresponding to processing an additional 10,000 tons of resources is 320. In the second iteration, the resource change is 2 × 10,000 tons. For refining enterprise D, the marginal contribution of the processing resources to be allocated corresponding to processing an additional 20,000 tons of resources is 230. In the third iteration, the resource change is 3 × 10,000 tons. For refining enterprise D, the marginal contribution of the processing resources to be allocated corresponding to processing an additional 30,000 tons of resources is 200.
[0088] After obtaining the marginal contribution in this iteration, the model can be iterated on based on the adjusted marginal contribution. In practice, this can be achieved by letting... Based on formulas (12) and (13), the upper and lower constraint equations of model A+m are obtained. Then, model A+m is solved to obtain the resource change (value: marginal contribution analysis step size). The marginal contribution of each refining and chemical enterprise to the processing of resources to be allocated is calculated for each enterprise until anomalies are found in the resulting resource allocation.
[0089] If any abnormal results are found in the resource allocation, it indicates that the set resource procurement quantity exceeds the processing capacity limit of the refining and chemical enterprise, and the iteration will stop. Abnormal results may include, but are not limited to, material imbalance, unit processing volume exceeding the set upper and lower limits, and other abnormal situations.
[0090] In some embodiments, in order to quickly adjust the resource allocation scheme among multiple refining enterprises when the amount of resources actually provided by the resource provider is less than the expected amount, it is necessary to obtain at least one first marginal contribution of each of the multiple refining enterprises to the resource to be allocated when the amount of resources processed is less than the preset processing quantity.
[0091] In practical implementation, in at least one iteration, the upper limit of the purchase quantity of resources to be allocated for each refining enterprise in the upper limit constraint equation and the lower limit of the purchase quantity of resources to be allocated for each refining enterprise in the lower limit constraint equation of the marginal contribution acquisition model can be subtracted from the marginal contribution analysis step size (e.g., 10,000 tons) to obtain the adjusted upper limit of the purchase quantity of resources to be allocated for each refining enterprise in the upper limit constraint equation and the lower limit of the purchase quantity of resources to be allocated for each refining enterprise in the lower limit constraint equation of the marginal contribution acquisition model. For ease of description, the marginal contribution acquisition model adjusted in the first iteration is referred to as Model A-1, the marginal contribution acquisition model adjusted in the second iteration is referred to as Model A-2, and so on.
[0092] The adjusted marginal contribution yields the upper and lower bound constraint equations in the model, which are expressed by the following formulas:
[0093] (14)
[0094] (15)
[0095] In formulas (14) and (15), The step size for marginal contribution analysis is denoted by n, which represents the number of iterations. For model A-1, the value of n is 1, for model A-2, the value of n is 2, and so on.
[0096] In some embodiments, the adjusted marginal contribution model obtained above can be solved to obtain the resource allocation amount, the third marginal contribution of the upper limit constraint equation, and the fourth marginal contribution of the lower limit constraint equation.
[0097] If no abnormal results are found in the resource allocation, the third marginal contribution of the upper constraint equation is subtracted from the fourth marginal contribution of the lower constraint equation to obtain the first marginal contribution of each refining enterprise for the resource to be allocated, corresponding to the reduction amount in the marginal contribution analysis. The next iteration is then performed based on the adjusted marginal contribution model. The reduction amount in the marginal contribution analysis is the reduction between the processing quantity of the resource to be allocated by each refining enterprise in the adjusted marginal contribution model and the processing quantity (or optimized processing quantity, since the preset fine-tuning quantity is very small and can be ignored in the calculation results) of the resource to be allocated by that refining enterprise in the marginal contribution model. This reduction amount can be obtained by calculating the product of the marginal contribution analysis step size and the number of iterations. For example, the marginal contribution analysis step size is 10,000 tons. Figure 4 As shown, in the first iteration, the marginal contribution analysis reduced the quantity by 1 × 10,000 tons. For refining company A, the marginal contribution of the processing resources to be allocated corresponding to processing 10,000 tons less of resources is 520. In the second iteration, the marginal contribution analysis reduced the quantity by 2 × 10,000 tons. For refining company A, the marginal contribution of the processing resources to be allocated corresponding to processing 20,000 tons less of resources is 530. In the third iteration, the marginal contribution analysis reduced the quantity by 3 × 10,000 tons. For refining company A, the marginal contribution of the processing resources to be allocated corresponding to processing 30,000 tons less of resources is 550.
[0098] After obtaining the marginal contribution, the model can be iterated on based on the adjusted marginal contribution. In specific implementation, this can be done by letting... Based on formulas (14) and (15), the upper and lower constraint equations of model An are obtained. Then, model An is solved to obtain the reduction in marginal contribution analysis (value: marginal contribution analysis step size). n) The marginal contribution of each refining and chemical enterprise to the processing of the resources to be allocated, until there are abnormal results in the obtained resource allocation.
[0099] If there are abnormal results in the resource allocation, it indicates that the set resource procurement quantity is lower than the lower limit of the refining enterprise's processing capacity, and the iteration will stop.
[0100] The above calculations can yield at least one first marginal contribution data for the processing of resources to be allocated by each of the multiple refining and chemical enterprises.
[0101] Step S230: When the total amount of resources to be allocated changes, adjust the resource allocation of each refining and chemical enterprise according to the first marginal contribution of each refining and chemical enterprise under different resource changes.
[0102] In the specific implementation process, the first marginal contribution data of the processing resources to be allocated by each of the multiple refining and chemical enterprises can be summarized and sorted to obtain, as follows: Figure 4 The table shown is a summary of the first marginal contribution of multiple refining and chemical enterprises to the processing of resources to be allocated, such as... Figure 5 The table shown is a ranking of the first marginal contribution of multiple refining and chemical enterprises in processing the resources to be allocated as the quantity of resources to be allocated increases. Figure 6 The table shown is a ranking of the first marginal contribution of multiple refining and chemical enterprises in processing the resources to be allocated when the quantity of resources to be allocated decreases. According to... Figures 4-6 It is possible to clearly know the relative size of the first marginal contribution of the processing of the allocated resources for each of the multiple refining and chemical enterprises under different processing loads.
[0103] In the specific implementation process, the relative load of each refining enterprise's processing resources to be allocated can be directly determined from the results of the configuration optimization model obtained by analyzing the first marginal contribution data of the processing resources to be allocated for each of the multiple refining and chemical enterprises. For example... Figure 4 As shown, in the results of the optimal allocation of production resources, the ranking of the first marginal contribution of the refining and chemical enterprises to the processing of the allocated resources is as follows: refining and chemical enterprise A, refining and chemical enterprise B, refining and chemical enterprise C, refining and chemical enterprise D, refining and chemical enterprise E, and refining and chemical enterprise F.
[0104] In some embodiments, when the amount of resources to be allocated provided by the provider to multiple refining and chemical enterprises increases or decreases compared to a preset provision quantity, it can be determined according to, for example... Figures 4-6 The marginal contribution ranking of the processing of unallocated resources by multiple refining and chemical enterprises is shown, which increases or decreases the amount of unallocated resources provided to at least one of the multiple refining and chemical enterprises.
[0105] For example, if the amount of resources provided by the resource provider increases by 30,000 tons compared to the expected amount, according to... Figure 5 Based on the first marginal contribution ranking shown, refinery D, refinery A, and refinery E should each process an additional 10,000 tons; if the resource provider's supply of resources to be allocated is 20,000 tons less than the expected supply, then according to... Figure 6 Based on the first marginal contribution ranking shown, refining enterprise E and refining enterprise D should each reduce their output by 10,000 tons.
[0106] Figure 3 This is an exemplary flowchart illustrating a method for obtaining shadow prices according to some embodiments of this application. Figure 3 As shown, process 300 includes the following steps.
[0107] Step S310: Add a self-selling submodule and constraint equations for each refining and chemical enterprise to the configuration optimization model to obtain the adjusted configuration optimization model.
[0108] The self-selling submodule is used to determine the sales quantity of factory products sold at a preset price when resource utilization is maximized. The constraint equation is used to constrain the upper limit of the sales quantity of factory products in the self-selling submodule.
[0109] In the specific implementation process, for each refining and chemical enterprise r, a structure is set up that allows the direct sale of the ex-factory product i within the refining and chemical enterprise, and the selling price can be set to be higher than that in other markets. (For example, 10,000 yuan / ton), the sales volume cap is set at a small amount β (e.g., 1 ton).
[0110] The objective function of the configuration optimization model changes as follows:
[0111] (16)
[0112] In formula (16), These represent the price and sales volume of product i sold by the refining and chemical enterprise r.
[0113] The production and sales balance equation of refining and chemical enterprises changes from formula (5) to:
[0114] (17)
[0115] Constraint equations for the self-cancelling submodule:
[0116] (18)
[0117] because The value is very small, therefore, the above modifications have a negligible impact on the calculation results of the original configuration optimization model.
[0118] Step S320: Solve the adjusted configuration optimization model to obtain the second marginal contribution of the constraint equation of the self-supplied submodule.
[0119] In practical implementation, PICIO software can be used to solve the adjusted configuration optimization model from step S310. The solution results include the following information:
[0120] Resource allocation quantity refers to the optimal amount of resources to be allocated from each resource provider n to each refining enterprise r.
[0121] constraint equations Second marginal contribution Based on linear programming theory, PICIO outputs the second marginal contribution of each constraint equation in the calculation results. The mathematical meaning of a constraint equation is: the slope of its impact on the model's objective function value if a small change occurs in the right-hand side of the constraint equation. Regarding the constraint equations... Second marginal contribution This means that if the upper limit of the sales price of product i at the refining and chemical enterprise r is determined by... Change to ( (where is a very small value), the slope of its influence on the objective function value.
[0122] Step S330: Calculate the shadow price of the ex-factory product based on the preset price and the second marginal contribution of the constraint equation.
[0123] In some embodiments, the shadow price can be obtained by subtracting the preset price from the second marginal contribution of the constraint equation. The shadow price of the ex-factory product i supplied by each refining enterprise r is then calculated. The formula is as follows:
[0124] (19)
[0125] As an example only, if in the configuration optimization model, the price of resources sold by each refining enterprise r is 10,000 yuan / ton, the corresponding constraint equation is... If the marginal contribution is 2000 yuan / ton, then the shadow price of the resources sold by the refinery is: 10000 - 2000 = 8000 yuan / ton. The economic implication is that if the refinery supplies resources to the downstream market at 8000 yuan / ton, the downstream market will break even.
[0126] Figure 7 This is an exemplary schematic diagram of an allocation adjustment device for resources to be allocated according to some embodiments of this application.
[0127] like Figure 7 As shown, the resource allocation device includes: an acquisition module 710, an establishment module 720, an iteration module 730, and an adjustment module 740.
[0128] The acquisition module 710 is used to obtain the resource allocation amount of each refining enterprise and the shadow price of the ex-factory product of each refining enterprise according to the configuration optimization model; wherein, the configuration optimization model is used to determine the resource allocation amount of each refining enterprise when the overall resource utilization rate is maximized.
[0129] Module 720 is established to build a marginal contribution acquisition model for each refining enterprise based on the resource allocation of each refining enterprise and the shadow price of the ex-factory products of each refining enterprise; the marginal contribution acquisition model is used to calculate the first marginal contribution corresponding to the resource allocation of the refining enterprise.
[0130] The iteration module 730 is used to iteratively adjust the resource allocation in at least one marginal contribution model and solve the adjusted marginal contribution model to obtain the first marginal contribution of the refining enterprise under different resource changes; the first marginal contribution characterizes the degree of impact of the resource allocation of the refining enterprise on the overall resource utilization rate when the resource change occurs.
[0131] The adjustment module 740 is used to adjust the resource allocation of each refining and chemical enterprise based on the first marginal contribution of each refining and chemical enterprise under different resource changes when the total amount of resources to be allocated changes.
[0132] In the embodiments of the above-mentioned allocation and adjustment device for resources to be allocated, the specific processing of each module and the technical effects thereon can be referred to the relevant descriptions in the corresponding method embodiments, which will not be repeated here.
[0133] Figure 8 This is an exemplary structural diagram of an electronic device according to some embodiments of this application.
[0134] like Figure 8 As shown, the electronic device includes: at least one processor 801, at least one communication interface 802, at least one memory 803, and at least one communication bus 804. Optionally, the communication interface 802 can be an interface for a communication module, such as the interface for a GSM module. The processor 801 may be a CPU, an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention. The memory 803 may include high-speed RAM and may also include non-volatile memory, such as at least one disk storage device. The memory 803 stores a program, and the processor 801 calls the program stored in the memory 803 to execute some or all of the above-described method embodiments.
[0135] This application relates to a storage device for storing a computer-readable program, which, when run, performs some or all of the above-described method embodiments.
[0136] The basic concepts have been described above. Obviously, for those skilled in the art, the detailed disclosure above is merely illustrative and does not constitute a limitation of this application. Although not explicitly stated herein, those skilled in the art may make various modifications, improvements, and corrections to this application. Such modifications, improvements, and corrections are suggested in this application, and therefore remain within the spirit and scope of the exemplary embodiments of this application.
[0137] Furthermore, this application uses specific terms to describe its embodiments. For example, "an embodiment," "one embodiment," and / or "some embodiments" refer to a particular feature, structure, or characteristic related to at least one embodiment of this application. Therefore, it should be emphasized and noted that "an embodiment," "one embodiment," or "an alternative embodiment" mentioned twice or more in different locations in this application do not necessarily refer to the same embodiment. In addition, certain features, structures, or characteristics in one or more embodiments of this application can be appropriately combined.
[0138] Furthermore, unless expressly stated in the claims, the order of processing elements and sequences, the use of numbers and letters, or other names described in this application are not intended to limit the order of the processes and methods of this application. Although the foregoing disclosure has discussed some currently considered useful embodiments of the invention through various examples, it should be understood that such details are for illustrative purposes only, and the appended claims are not limited to the disclosed embodiments; rather, the claims are intended to cover all modifications and equivalent combinations that conform to the substance and scope of the embodiments of this application. For example, while the system components described above can be implemented using hardware devices, they can also be implemented solely through software solutions, such as installing the described system on existing servers or mobile devices.
[0139] Similarly, it should be noted that, in order to simplify the description of the present application and thus aid in the understanding of one or more embodiments of the invention, the foregoing description of the embodiments of the present application sometimes combines multiple features into a single embodiment, drawing, or description thereof. However, this disclosure method does not imply that the subject matter of the application requires more features than those mentioned in the claims. In fact, the embodiments contain fewer features than all the features of the single embodiments disclosed above.
[0140] In some embodiments, numbers describing the quantity of components and attributes are used. It should be understood that such numbers used in the description of embodiments are modified in some examples with the terms "approximately," "approximately," or "generally." Unless otherwise stated, "approximately," "approximately," or "generally" indicates that the numbers are allowed to vary by ±20%. Accordingly, in some embodiments, the numerical parameters used in the specification and claims are approximate values, which may be changed depending on the characteristics required by individual embodiments. In some embodiments, numerical parameters should take into account specified significant digits and employ a general method of digit reservation. Although the numerical ranges and parameters used to confirm their breadth of scope in some embodiments of this application are approximate values, in specific embodiments, such values are set as precisely as feasible.
[0141] For each patent, patent application, patent application publication, and other material such as articles, books, specifications, publications, and documents referenced in this application, the entire contents of that material are incorporated herein by reference. This excludes historical application documents that are inconsistent with or conflict with the content of this application, as well as documents that limit the broadest scope of the claims in this application (currently or subsequently appended to this application). It should be noted that if there is any inconsistency or conflict between the descriptions, definitions, and / or terminology used in the supplementary materials of this application and the content of this application, the descriptions, definitions, and / or terminology used in this application shall prevail.
[0142] Finally, it should be understood that the embodiments described in this application are merely illustrative of the principles of the embodiments of this application. Other modifications may also fall within the scope of this application. Therefore, alternative configurations of the embodiments of this application are considered as examples and not limitations, and are regarded as consistent with the teachings of this application. Accordingly, the embodiments of this application are not limited to the embodiments explicitly described and illustrated in this application.
Claims
1. A resource allocation method, characterized in that, include: Based on the configuration optimization model, the resource allocation for each refining enterprise and the shadow price of each refining enterprise's ex-factory product are obtained; wherein, the configuration optimization model is used to determine the resource allocation for each refining enterprise when the overall resource utilization rate is maximized. The step of obtaining the shadow price of each refining enterprise's ex-factory product based on the configuration optimization model includes: adding a self-sales sub-module and a constraint equation for the self-sales sub-module to each refining enterprise in the configuration optimization model to obtain an adjusted configuration optimization model; wherein, the self-sales sub-module is used to determine the sales quantity of ex-factory products sold at a preset price when resource utilization is maximized, and the constraint equation is used to constrain the upper limit of the sales quantity of ex-factory products in the self-sales sub-module; solving the adjusted configuration optimization model to obtain the second marginal contribution of the constraint equation of the self-sales sub-module; and calculating the shadow price of the ex-factory product based on the preset price and the second marginal contribution of the constraint equation. Based on the resource allocation of each refining and chemical enterprise and the shadow price of the ex-factory products of each refining and chemical enterprise, a marginal contribution acquisition model is established for each refining and chemical enterprise; the marginal contribution acquisition model is used to calculate the first marginal contribution corresponding to the resource allocation of the refining and chemical enterprise. The resource allocation in the model is obtained by iteratively adjusting at least one marginal contribution, and the adjusted marginal contribution model is solved to obtain the first marginal contribution of the refining enterprise under different resource changes; the first marginal contribution characterizes the degree of impact of the resource allocation of the refining enterprise on the overall resource utilization rate when the resource change occurs. When the total amount of resources to be allocated changes, the resource allocation of each refining and chemical enterprise is adjusted according to the first marginal contribution of each refining and chemical enterprise under different resource changes.
2. The method according to claim 1, characterized in that, The model for obtaining the marginal contribution of each refining enterprise is established based on the resource allocation of each refining enterprise and the shadow price of each ex-factory product of each refining enterprise, including: The shadow price of each refining and chemical enterprise's ex-factory product is used as the ex-factory price of each refining and chemical enterprise's ex-factory product; Based on the difference between the resource allocation amount and the preset fine-tuning amount for each refining and chemical enterprise, and the ex-factory price of the products of each refining and chemical enterprise, a marginal contribution acquisition model is established for each refining and chemical enterprise; wherein, the difference between the resource allocation amount and the preset fine-tuning amount for each refining and chemical enterprise is used as the resource allocation amount in the marginal contribution acquisition model for each refining and chemical enterprise.
3. The method according to claim 1, characterized in that, The iterative adjustment of at least one marginal contribution in the resource allocation model is used to solve the adjusted marginal contribution model, thereby obtaining the first marginal contribution of the corresponding refining enterprise under different resource changes, including: For each of the at least one marginal contribution acquisition models, the upper limit in the upper limit constraint equation and the lower limit in the lower limit constraint equation of the marginal contribution acquisition model are adjusted according to a predetermined step size to obtain the adjusted marginal contribution acquisition model. Solve the adjusted marginal contribution acquisition model to obtain the corresponding adjusted resource allocation for refining and chemical enterprises, as well as the third marginal contribution of the upper limit constraint equation and the fourth marginal contribution of the lower limit constraint equation in the marginal contribution acquisition model. If the adjusted resource allocation amount is not abnormal, the third marginal contribution of the upper limit constraint equation and the fourth marginal contribution of the lower limit constraint equation in the marginal contribution acquisition model are added together to obtain the first marginal contribution of the corresponding refining enterprise under the resource change amount in this adjustment, and the next iteration is executed; wherein, the resource change amount is the product of the step size and the number of iterations; If the adjusted resource allocation is abnormal, the iteration will stop.
4. The method according to claim 3, characterized in that, After solving the adjusted marginal contribution model to obtain the corresponding adjusted resource allocation for the refining and chemical enterprise, the process further includes: If the adjusted resource allocation is within the predetermined resource threshold range of the refining enterprise, then the adjusted resource allocation is determined to be normal; otherwise, the adjusted resource allocation is determined to be abnormal.
5. The method according to any one of claims 1 to 4, characterized in that, The method further includes: Based on the resource usage data of each refining and chemical enterprise, a production planning sub-model is established for each refining and chemical enterprise; wherein, the production planning sub-model of the refining and chemical enterprise is used to determine the resource allocation amount of the refining and chemical enterprise when the resource utilization rate is maximized; The configuration optimization model is established based on the production plan sub-model of each refining and chemical enterprise, the transportation network for transporting resources to each refining and chemical enterprise, and the sales network for the products of each refining and chemical enterprise.
6. A resource allocation device, characterized in that, The device includes: The acquisition module is used to obtain the resource allocation amount of each refining and chemical enterprise and the shadow price of the ex-factory product of each refining and chemical enterprise according to the configuration optimization model; wherein, the configuration optimization model is used to determine the resource allocation amount of each refining and chemical enterprise when the overall resource utilization rate is maximized. The acquisition module is specifically used to add a self-sales sub-module and a constraint equation for the self-sales sub-module to each refining enterprise in the configuration optimization model, thereby obtaining an adjusted configuration optimization model. The self-sales sub-module is used to determine the sales quantity of ex-factory products sold at a preset price when resource utilization is maximized, and the constraint equation is used to constrain the upper limit of the sales quantity of ex-factory products in the self-sales sub-module. The acquisition module is also specifically used to solve the adjusted configuration optimization model to obtain the second marginal contribution of the constraint equation for the self-sales sub-module. Furthermore, the acquisition module is also specifically used to calculate the shadow price of the ex-factory products based on the preset price and the second marginal contribution of the constraint equation. A module is established to build a marginal contribution acquisition model for each refining enterprise based on the resource allocation of each refining enterprise and the shadow price of the ex-factory products of each refining enterprise; the marginal contribution acquisition model is used to calculate the first marginal contribution corresponding to the resource allocation of the refining enterprise. An iterative module is used to iteratively adjust the resource allocation in the model by at least one marginal contribution, and solve the adjusted marginal contribution model to obtain the first marginal contribution of the refining enterprise under different resource changes; the first marginal contribution characterizes the degree of impact of the refining enterprise's resource allocation on the overall resource utilization rate when the resource change occurs. The adjustment module is used to adjust the resource allocation of each refining and chemical enterprise based on the first marginal contribution of each refining and chemical enterprise under different resource changes when the total amount of resources to be allocated changes.
7. The apparatus according to claim 6, characterized in that, The aforementioned module is specifically used to use the shadow price of each refining and chemical enterprise's ex-factory product as the ex-factory price of each refining and chemical enterprise's ex-factory product. The establishment module is further configured to establish a marginal contribution acquisition model for each refining enterprise based on the difference between the resource allocation amount and the preset fine-tuning amount of each refining enterprise, and the ex-factory price of the ex-factory products of each refining enterprise; wherein the difference between the resource allocation amount and the preset fine-tuning amount of each refining enterprise is used as the resource allocation amount in the marginal contribution acquisition model for each refining enterprise.
8. An electronic device comprising a memory and a processor, the memory storing a computer program, the processor executing the method as described in any one of claims 1 to 5 when running the program.
9. A storage device for storing a computer-readable program, which, when executed, performs the method as claimed in any one of claims 1 to 5.
Citation Information
Patent Citations
Coal-electricity integrated enterprise production scheduling optimization method, device and system
CN111369067A
Resource allocation method and device based on joint learning
CN114219338A
