Production planning method and system of oil refinery and storage medium

By constructing the production, steam and coupling subsystem model of the refinery, integrating the operating mechanism of renewable energy, optimizing the production planning of the refinery, solving the problem of renewable energy data integration in the existing technology, and improving the energy utilization efficiency of the refinery and economic benefits.

CN118838271APending Publication Date: 2024-10-25EAST CHINA UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410823868.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-10-25

AI Technical Summary

Technical Problem

Existing refinery production planning methods cannot accurately integrate the uncertainty data of renewable energy, resulting in low energy utilization efficiency and directly affecting the economic benefits of the refinery.

Method used

By obtaining the historical data of the refinery's production process subsystem, steam subsystem and coupling subsystem, the corresponding model is constructed, and the MINLP and TSP planning problems are used to integrate the operating mechanism of renewable energy and optimize the production planning of the refinery. Minimize operating costs and greenhouse gas emissions.

Benefits of technology

It improves the accuracy of refinery production planning, reduces operating costs, improves overall economic benefits, and optimizes energy utilization efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118838271A_ABST
    Figure CN118838271A_ABST
Patent Text Reader

Abstract

The invention provides a production planning method and system for an oil refinery. The production planning method comprises the following steps: acquiring first historical data of a production process subsystem, a steam subsystem and a coupling subsystem of an oil refinery, and second historical data of at least one sustainable energy source; constructing a production process subsystem model, a steam subsystem model and a coupling subsystem model, and constructing an operation principle model of the at least one sustainable energy source; constructing an MINLP problem of a plurality of first-stage variables; clustering the second historical data, and constructing a TSP planning problem of a plurality of second-stage variables according to the second historical data; and solving the TSP planning problem according to the first historical data and the second historical data so as to determine a production plan after the oil refinery incorporates the at least one sustainable energy source.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of petrochemical industry, and in particular to a production planning method for an oil refinery, a production planning system for an oil refinery, and a computer-readable storage medium. Background Art

[0002] The use of renewable energy in the oil refining industry can reduce energy demand and greenhouse gas emissions while ensuring economic benefits. The oil refining production system includes many production and processing units that operate in multiple modes and use multiple energy sources (such as steam, electricity, hydrogen and fossil fuels). In the process of using renewable energy for oil refining production, due to the different energy carriers and the need for mutual coupling of various links in the production process, there is a transfer and interaction of energy, materials and information between different systems.

[0003] However, existing coupling models regard all processing units as a single operating mode, oversimplify the processing unit model of the production process system, and cannot accurately plan the production of the refinery, resulting in low energy efficiency and direct economic benefits of the refinery process.

[0004] In order to overcome the above-mentioned defects of the prior art, there is an urgent need in the art for a refinery production planning technology for integrating the uncertainty data of renewable energy, thereby improving the accuracy of production planning and improving the economic benefits of the entire refinery process. Summary of the invention

[0005] A brief summary of one or more aspects is given below to provide a basic understanding of these aspects. This summary is not an exhaustive overview of all conceived aspects, and is neither intended to identify the key or decisive elements of all aspects nor to define the scope of any or all aspects. Its only purpose is to give some concepts of one or more aspects in a simplified form as a prelude to a more detailed description that will be given later.

[0006] In order to overcome the above-mentioned defects of the prior art, the present invention provides a production planning method for a refinery, a production planning system for a refinery, and a computer-readable storage medium for integrating the uncertainty data of renewable energy, thereby improving the accuracy of production planning and improving the economic benefits of the entire refinery process.

[0007] Specifically, the production planning method for an oil refinery provided according to the first aspect of the present invention comprises the following steps: obtaining first historical data of the production process subsystem, steam subsystem and coupling subsystem of the oil refinery, and second historical data of at least one sustainable energy source; constructing a production process subsystem model, a steam subsystem model, and a coupling subsystem model according to the operating mechanism of each of the subsystems of the oil refinery, and constructing an operating principle model of the at least one sustainable energy source according to the operating mechanism of the at least one sustainable energy source; taking minimizing the sum of the operating cost and investment cost of the oil refinery as the first sub-goal, constructing a production process subsystem model, a steam subsystem model, and a coupling subsystem model based on the production process subsystem model, the steam subsystem model, the coupling subsystem model and the operating principle model of the at least one sustainable energy source. The invention relates to a MINLP problem of multiple first-stage variables of the principle model; clustering each of the second historical data to determine multiple discrete scenarios, and constructing a TSP planning problem based on the production process subsystem model, the steam subsystem model, the coupling subsystem model and the operation principle model with the goal of minimizing the expected value of the first sub-goal and the preset second sub-goal, wherein the expected value of the second sub-goal is the minimum value of the sum of the greenhouse gas emission tax and the operating cost of the coupling system; and solving the TSP planning problem based on the first historical data and the second historical data to determine the production plan of the refinery after incorporating the at least one sustainable energy source.

[0008] Further, in some embodiments of the present invention, the first historical data is selected from processing unit parameters, working mode parameters, H2 consumption parameters and mixer parameters of the production process subsystem, boiler parameters, turbine parameters and air release valve parameters of the steam subsystem, and motor parameters and steam component parameters of the coupling subsystem. The at least one sustainable energy source is selected from solar collectors and / or wind turbines. The first historical data is correspondingly selected from solar irradiance data and / or wind speed data.

[0009] Furthermore, in some embodiments of the present invention, the production process subsystem model includes a processing unit module, a working mode module, an H2 consumption module and a mixer module.

[0010] The processing unit module is represented as:

[0011]

[0012]

[0013] Among them, RPU pu Indicates the processing capacity of the processing unit pu, RPS srepresents the flow of processing unit pu with respect to material s, PU is the set of processing units pu, PUI is the set of input flows of processing unit pu, SPU is the steam processing unit, PUO is the set of output flows of processing unit pu, and the total flow entering the processing unit is divided into different fixed output flows These flows enter the next processing unit in sequence or directly become output products.

[0014] The working mode module is represented as:

[0015]

[0016] in, A binary variable representing the operating mode of the processing unit is selected, OM is a set of operating modes, and MPU is a set of processing units corresponding to the operating mode. The H2 consumption module is represented as:

[0017]

[0018] Wherein, HCPU is a hydrogen consumption processing device. The mixer module is represented as:

[0019]

[0020]

[0021]

[0022] Where BL is the set of blender bl, BLI is the set of input streams of blender bl, BLO is the set of output streams of blender bl, VS S is the volume of the input flow with the corresponding properties, is the component property expected by the product, Θ s,θ It is the component property that actually exists in the product.

[0023] Furthermore, in some embodiments of the present invention, the steam subsystem model includes a boiler module, a turbine module and a relief valve module.

[0024] The boiler module is represented as:

[0025]

[0026]

[0027]

[0028]

[0029] Among them, RBO bois the steam flow rate generated by boiler bo, RBO bocwr and RBO boowr are respectively the cooling water flow and outsourced fresh water flow of boiler bo, BO is the set of boilers bo, BOCWR is the set of cooling water flow bocwr, BOOWR is the set of outsourced fresh water flow boowr, H SS and H cw are the enthalpy of high-pressure steam, circulating water and fresh water added to boiler bo, ε bo is the efficiency of boiler bo, γ bo and ω bo are the parameters of the boiler regression function, is the maximum flow rate of steam generated by boiler bo, RFL fl is the flow rate of boiler fuel fl, Q fl is the calorific value of boiler fuel fl, and FL is the set of boiler fuels fl.

[0030] The steam turbine module is represented as:

[0031]

[0032]

[0033]

[0034]

[0035] Among them, PET et is the total shaft power of the steam turbine et, For the steam turbine et to steam position ext i Extraction steam flow, RET et,in and RET et,exh are the intake and exhaust flow rates of the turbine et, respectively, H et,in , H et,ext and H et,exh are the inlet enthalpy, extraction enthalpy and exhaust enthalpy of the turbine et, PBT bt is the shaft power of turbine bt, RBT bt,in is the inlet flow rate of turbine bt, H bt,in and H bt,out are the inlet enthalpy and outlet enthalpy of turbine bt respectively.

[0036] The blow-off valve module is represented as:

[0037]

[0038]

[0039] Among them, RLV lv,inand RLV lv,out are the steam inlet and outlet flow rates of the vent valve lv, H lv,in , H lv,w and H lv,out are the inlet steam enthalpy, water inlet enthalpy and outlet steam enthalpy of the relief valve lv, RLV lvowr is the water inlet flow rate of the water consumption lvowr of the air relief valve lv, and LVOWR is the set of water consumption lvowr.

[0040] Furthermore, in some embodiments of the present invention, the coupled subsystem model includes a motor module and a steam system module. The motor module is represented as:

[0041]

[0042] Among them, T ey is the motor power driven by electricity, P m The rated power provided by the motor, σ m is a binary integer variable, when σ m When σ is 1, the motor is driven by electricity. m When is 0, the motor is driven by steam, EY is the total power of the motor driven by electricity, and M is the number of motors in the refinery. The steam system module is represented as:

[0043]

[0044]

[0045] in, the steam flow rate supplied by the steam system to the production subsystem, The steam flow rate of the steam system supplied to the production subsystem, x l,ste and They are respectively the steam consumption coefficient and steam production coefficient of the processing units in the production process subsystem model, SCPU is the set of processing units that consume steam, and SPPU is the set of processing units that produce steam.

[0046] Furthermore, in some embodiments of the present invention, the at least one sustainable energy source includes a wind turbine, a solar thermal collector and an electrolyzer, and the operation principle model includes a wind turbine module, a solar thermal collector module and an electrolyzer module. The wind turbine module is represented as:

[0047]

[0048] Among them, T WT is the output power of the wind turbine generator, v rated and V are the cut-off wind speed, rated wind speed, cut-off wind speed, and line wind speed of the wind turbine, respectively. ra ted is the rated power of the wind turbine. The solar collector module is represented as:

[0049] Q SHC =A SHC F R (G(τα)-U L (T in -T a ))

[0050]

[0051] Among them, Q SHC is the heat energy generated by the solar thermal collector SHC, A SHC is the area of ​​the solar thermal collector SHC, F R is the collector heat rejection coefficient, G is the real-time light intensity, τα is a constant representing light efficiency, U L is the collector heat loss coefficient, T in and T a are the fluid temperature entering the solar thermal collector SHC and the ambient temperature, is the mass flow rate of LS-grade steam generated, C ow , C sat and r ow are the specific heat capacity of feed water, the specific heat capacity of supersaturated steam and the latent heat capacity of saturated steam, respectively. ow 、T sat and T LS are feed water temperature, supersaturated steam temperature, and LS-stage steam temperature, respectively. The electrolyzer module is represented by:

[0052]

[0053]

[0054] in, is the hydrogen flow rate produced by the electrolyzer ER, η er is the efficiency of the electrolyzer ER, is the power consumption of the electrolyzer, and meh is the unit conversion coefficient for converting electrical energy into hydrogen.

[0055] Furthermore, in some embodiments of the present invention, after constructing the production process subsystem model, the steam subsystem model, the coupling system model and the operating principle model, the production planning method also includes the following steps: determining the corresponding production process subsystem constraints according to the production process subsystem model; determining the corresponding steam subsystem constraints according to the steam subsystem model; determining the corresponding coupling subsystem constraints according to the coupling subsystem model; and determining the corresponding operating principle constraints according to the operating principle model.

[0056] Furthermore, in some embodiments of the present invention, the production process subsystem constraint is expressed as:

[0057]

[0058]

[0059]

[0060]

[0061]

[0062] in, and They represent the upper and lower limits of the raw materials s that can be obtained from the market, and IMS is the purchase quantity of all raw materials. and They represent the maximum and minimum quantities of product s required by the market respectively, and FMS is the output of all products.

[0063] Further, in some embodiments of the present invention, the steam subsystem constraint is expressed as:

[0064]

[0065]

[0066]

[0067]

[0068]

[0069]

[0070]

[0071]

[0072] in, and are the minimum flow and maximum flow of boiler bo respectively, and are the maximum inlet flow and minimum inlet flow of the turbine et, respectively. and are the maximum and minimum discharge flow rates of the boiler, respectively. is the maximum flow of the relief valve lv, RLV lv1,in and RLV lv1,out are the inlet flow and outlet flow from the exhaust valve to the HS grade steam, the steam flow rate supplied by the steam subsystem to the production process subsystem, The steam flow rate supplied to the steam subsystem by the production process subsystem, R HSbt,in and R HSbt,out are the inlet flow and outlet flow of HS-class steam turbine bt respectively, and l is the steam level.

[0073] Further, in some embodiments of the present invention, the coupled subsystem constraint is expressed as:

[0074]

[0075]

[0076] Among them, M WT is the number of wind turbines introduced, T WT is the power generated by the wind turbine, T bt is the power requirement of the steam turbine bt driving motor, T ey The kilometer requirement for the electric drive motor, is the number of electrolytic cells introduced, is the power consumption of the electrolytic cell, T m is the power demand of all motors, σ m is an integer decision variable.

[0077] Furthermore, in some embodiments of the present invention, the operating principle constraint is expressed as:

[0078]

[0079]

[0080] in, is the maximum value of power consumption, M ER is the number of electrolyzers ER purchased, is the flow rate of hydrogen produced by the electrolyzer, The flow rate for purchasing hydrogen.

[0081] Further, in some embodiments of the present invention, the step of constructing a MINLP problem of multiple first-stage variables based on the production process subsystem model, the steam subsystem model, the coupling subsystem model and the operation principle model with minimizing the sum of the operating cost and the investment cost of the refinery as the first sub-goal includes: cl , external fuel cost T fl , External hydrogen cost External water cost T wr , External electricity cost T ey , operating cost T op , Investment cost T inv and greenhouse gas emission tax T GHG_tax The sum constructs the first sub-objective function:

[0082] TOC=T cl +T fl +T H2 +T wr +T ey +T op +T inv +T GHG_tax

[0083]

[0084]

[0085]

[0086]

[0087]

[0088]

[0089] T inv =C WT ·N WT +C STC ·A STC +C ER ·M ER

[0090]

[0091] Among them, C cl , C fl , C wr , C e y、 C WT , C STC , C ER, C GHG are the prices of raw materials, fuel, hydrogen, water, electricity, the average unit processing cost of each of the processing units, the investment cost of wind turbines, the unit area investment cost of solar collectors, the unit volume investment cost of heat storage tanks and the investment cost of electrolyzers, is the average processing flow of each of the processing units, M is the number of the processing units, τ1, τ2 and τ3 are the greenhouse gas emission coefficients of fuel, electricity and coal-to-hydrogen respectively; and a MINLP problem about the multiple first-stage variables is constructed with the goal of minimizing the first sub-objective function.

[0092] Further, in some embodiments of the present invention, the steps of clustering each of the second historical data to determine a plurality of discrete scenarios, and constructing a TSP planning problem with a plurality of second-stage variables based on the production process subsystem model, the steam subsystem model, the coupling subsystem model and the operation principle model with the goal of minimizing the expected value of the first sub-goal and the preset second sub-goal include: clustering each of the second historical data using a Latin hypercube sampling method and a density-based clustering method to determine a plurality of discrete scenarios; clustering the RPS according to the plurality of discrete scenarios. s , RPU pu , RBO bo 、RBO bocwr 、RBO boowr 、RFL fl , RET et,in ,RET et,exh 、RLV lv,in 、RLV lv,out 、RLV lvowr , σ m , and Determine the second stage variables and the remaining N WT 、V STC , S WT and M ER Determine as the first stage variable; construct a second sub-objective function according to the plurality of second stage variables:

[0093]

[0094] Among them, Probality rrepresents the probability of occurrence of scenario r; and constructs a TSP planning problem with the goal of minimizing the expected values ​​of the first sub-goal and the second sub-goal and based on multiple second-stage variables of the production process subsystem model, the steam subsystem model, the coupling subsystem model and the operation principle model:

[0095]

[0096] Among them, C T is the coefficient matrix of the variables, x is the first stage variable, E w is the expected value of the second-stage system operation, Ax ≥ d is the set of constraints that need to be satisfied during the entire operation process, and the recourse weight function Q (x, w) is defined as:

[0097]

[0098] Where b(w) T is the second-stage variable coefficient, y is the second-stage variable after the uncertainty w is exposed, and W(w)y(w)≥h(w)-T(w)x is the set of constraints that need to be satisfied for the second-stage operation.

[0099] In addition, the production planning system of an oil refinery provided according to the second aspect of the present invention includes: a memory on which computer instructions are stored; and a processor, connected to the memory and configured to execute the computer instructions stored on the memory to implement the production planning method as described in the first aspect of the present invention.

[0100] In addition, the computer-readable storage medium provided according to the third aspect of the present invention stores computer instructions, which, when executed by a processor, implement the production planning method as described in the first aspect of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0101] The above features and advantages of the present invention can be better understood after reading the detailed description of the embodiments of the present disclosure in conjunction with the following drawings. In the drawings, the components are not necessarily drawn to scale, and components with similar related properties or features may have the same or similar reference numerals.

[0102] Figure 1 A schematic flow chart of a production planning method for an oil refinery provided according to some embodiments of the present invention is shown.

[0103] Figure 2 A schematic diagram showing the working principle of a mixer provided according to some embodiments of the present invention is shown.

[0104] Figure 3 A schematic diagram of the working principle of a steam driven compressor provided according to some embodiments of the present invention is shown.

[0105] Figure 4 A schematic diagram of the working principle of a proton exchange membrane electrolyzer provided according to some embodiments of the present invention is shown.

[0106] Figure 5A A schematic diagram of the processing capacity optimization results of the processing units in the TSP_SEICPPSS production process system provided according to some embodiments of the present invention is shown.

[0107] Figure 5B A schematic diagram of steam flow of a boiler, an ET, and a pressure reducing valve in a TSP_SEICPPSS steam system according to some embodiments of the present invention is shown.

[0108] Figure 5C A schematic diagram of a driving method of a back-pressure turbine in a TSP_SEICPPSS steam system according to some embodiments of the present invention is shown.

[0109] Figure 5D A schematic diagram showing the number of newly introduced TSP_SEICPPSS devices and corresponding costs provided according to some embodiments of the present invention.

[0110] Figure 6 A schematic diagram comparing annual total cost results of energy provided according to some embodiments of the present invention is shown.

[0111] Reference numerals:

[0112] 20 Processing Units

[0113] 21 Oil storage tank

[0114] 22. Blender

[0115] 23 Products

[0116] 30 Motor module

[0117] 31 Steam system module

[0118] 32 Compressor

[0119] 41 Proton Exchange Membrane DETAILED DESCRIPTION

[0120] The following specific embodiments illustrate the implementation of the present invention, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. Although the description of the present invention will be introduced in conjunction with the preferred embodiment, this does not mean that the features of this invention are limited to this implementation. On the contrary, the purpose of introducing the invention in conjunction with the implementation is to cover other options or modifications that may be extended based on the claims of the present invention. In order to provide a deep understanding of the present invention, the following description will include many specific details. The present invention can also be implemented without using these details. In addition, in order to avoid confusion or blurring the focus of the present invention, some specific details will be omitted in the description.

[0121] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0122] In addition, the terms "upper", "lower", "left", "right", "top", "bottom", "horizontal" and "vertical" used in the following description should be understood as the directions shown in the paragraph and the related drawings. Such relative terms are only used for the convenience of description and do not mean that the device described therein must be manufactured or operated in a specific direction, and therefore should not be understood as limiting the present invention.

[0123] It is understood that although the terms "first", "second", "third", etc. may be used herein to describe various components, regions, layers and / or parts, these components, regions, layers and / or parts should not be limited by these terms, and these terms are only used to distinguish different components, regions, layers and / or parts. Therefore, the first component, region, layer and / or part discussed below may be referred to as a second component, region, layer and / or part without departing from some embodiments of the present invention.

[0124] In order to overcome the above-mentioned defects of the prior art, the present invention provides a production planning method for a refinery, a production planning system for a refinery, and a computer-readable storage medium for integrating the uncertainty data of renewable energy, thereby improving the accuracy of production planning and improving the economic benefits of the entire refinery process.

[0125] In some non-limiting embodiments, the production planning method of the above-mentioned oil refinery provided by the first aspect of the present invention can be implemented based on the production planning system of the oil refinery provided by the second aspect of the present invention. Specifically, the production planning system of the oil refinery is configured with a memory and a processor. The memory includes but is not limited to the above-mentioned computer-readable storage medium provided by the third aspect of the present invention, on which computer instructions are stored. The processor is connected to the memory and is configured to execute the computer instructions stored on the memory to implement the production planning method of the above-mentioned oil refinery provided by the first aspect of the present invention.

[0126] The following will describe the working principle of the production planning system of the above-mentioned refinery in conjunction with some embodiments of the production planning method of the refinery. Those skilled in the art will understand that the embodiments of the production planning method of these refineries are only some non-restrictive implementation methods provided by the present invention, which are intended to clearly demonstrate the main concept of the present invention and provide some specific solutions that are convenient for the public to implement, rather than to limit all functions or all working methods of the production planning system of the refinery. Similarly, the production planning system of the refinery is also only some restrictive implementation methods provided by the present invention, and does not constitute a limitation on the execution subject or execution order of each step in the production planning method of these refineries.

[0127] Please refer to Figure 1 , Figure 1 A schematic flow chart of a production planning method for an oil refinery provided according to some embodiments of the present invention is shown.

[0128] like Figure 1 As shown, the production planning system first executes step S1: acquiring first historical data of the production process subsystem, steam subsystem and coupling subsystem of the refinery, and second historical data of at least one sustainable energy source.

[0129] Specifically, the first historical data is selected from processing unit parameters, working mode parameters, H2 consumption parameters and mixer parameters of the production process subsystem, boiler parameters, turbine parameters and air release valve parameters of the steam subsystem, and motor parameters and steam component parameters of the coupling subsystem, at least one sustainable energy is selected from a solar collector and / or a wind generator, and the first historical data is correspondingly selected from solar irradiance data and / or wind speed data.

[0130] Further, in some non-limiting embodiments, the production planning system can also pre-process the data. Specifically, taking the actual industrial coupled production process and steam system (CPPSS) of a Chinese refinery (annual output of 8 million tons) as an example, the effect of stochastic programming is verified. These data are all obtained from the process history data of the refinery, which includes the operating parameters, energy consumption data, production efficiency, etc. of each process link. During pre-processing, data cleaning, missing value processing, outlier detection and denoising may be required to ensure the quality and accuracy of the data. The processed data will provide a reliable basis for subsequent modeling and analysis.

[0131] Afterwards, the production planning system may continue to execute step S2: construct a production process subsystem model, a steam subsystem model, and a coupling subsystem model according to the operating mechanisms of the subsystems of the refinery, and construct an operating principle model of at least one sustainable energy according to the operating mechanism of at least one sustainable energy.

[0132] Specifically, in this production planning system, the main input of the production process system is the mixed crude oil. In the production process system, we use PU to represent all processing units and BL to represent the mixer. The input flows of the processing unit and the mixer are represented by the sets PUI = {(pu, s)} and BLI = {(bl, s)}, respectively. The critical mass performance of the final product is represented by Θ. Here, the production process subsystem model includes the processing unit module, the working mode module, the H2 consumption module and the mixer module.

[0133] Furthermore, the basic 28 processing units in the production process system are: crude distillation unit 1 (CDU1), crude distillation unit 2 (CDU2), light hydrocarbon recovery unit (LHR), continuous reforming unit (CRU), benzene extraction integrated unit (BEI), fluid catalytic cracking unit 1 (FCC1), fluid catalytic cracking unit 2 (FCC2), sludge diffusion unit (OSS), hydrocracking unit (HCU), delayed coking unit (DCU), solvent deasphalting unit (SDU), wax oil hydrotreating (WHT), diesel hydrotreating 1 (DHT1), diesel hydrotreating 2 (DHT2), gasoline hydrotreating (GHT), jet fuel hydrotreating (JHT), residue hydrotreating (RHT), S-Zorb, pentane hydrotreating (PHT), gasoline fractionation unit 1 (GFU1), gasoline fractionation unit 2 (GFU2), polypropylene unit (PPU), MTBE, sulfur recovery unit (SRU), PSA, benzene unit (BZU), styrene unit (SYU), alkylation unit (ALK).

[0134] Furthermore, the total flow into the processing unit is divided into different fixed output flows These streams either go to the next processing unit or directly become output products. Some processing units have multiple operating modes, each with different outputs. The system introduces integer variables to optimize the selection of different operating modes. In addition, the chemical reactions that occur in some processing units require the consumption of hydrogen, and agitators are used to mix the different streams together to obtain the desired product properties.

[0135] Preferably, in some non-limiting embodiments, the processing unit module is represented as:

[0136]

[0137]

[0138] Among them, RPU pu Indicates the processing capacity of the processing unit pu, RPS s represents the flow of processing unit pu with respect to material s, PU is the set of processing units pu, PUI is the set of input flows of processing unit pu, SPU is the steam processing unit, PUO is the set of output flows of processing unit pu, and the total flow entering the processing unit is divided into different fixed output flows These flows enter the next processing unit in sequence or directly become output products.

[0139] Preferably, in some non-limiting embodiments, FCC1, FCC2 and HCU have two working modes, while other processing units have only one working mode, and the working mode module is represented as:

[0140]

[0141] in, A binary variable representing the operating mode of the selected processing unit, OM is a set of operating modes, and MPU is a set of processing units corresponding to the operating mode.

[0142] Preferably, in some non-limiting embodiments, the hydrogen consuming units include CRU, HCU, WHT, DHT1, DHT2, JHT, RHT, S-Zorb and PHT.

[0143] The H2 consumption module is represented as:

[0144]

[0145] Among them, HCPU is a hydrogen consumption processing unit.

[0146] Please refer to Figure 2 , Figure 2A schematic diagram showing the working principle of a mixer provided according to some embodiments of the present invention is shown.

[0147] like Figure 2 As shown, the mixer 22 mixes the processing units 10 contained in each oil storage tank 21 and synthesizes different products 23.

[0148] Preferably, in some non-limiting embodiments, the blender module is represented by:

[0149]

[0150]

[0151]

[0152] Where BL is the set of blender bl, BLI is the set of input streams of blender bl, BLO is the set of output streams of blender bl, VS S is the volume of the input flow with the corresponding properties, is the component property expected by the product, Θ s,θ It is the component property that actually exists in the product.

[0153] In addition, the steam system is an important energy consumer in the refinery and plays a vital role in providing energy supply. The production planning system can establish a steam system based on the model of each unit and the process steam demand. The steam subsystem model of the production planning system includes a boiler module, a turbine module and a relief valve module.

[0154] Furthermore, through the process of boiler heating circulating water and external fresh water, the boiler module generates high-temperature and high-pressure steam. Steam turbines can be divided into two categories: ETs and BTs. Here, steam turbines can expand steam work and generate a certain amount of electricity. When the steam extraction flow rate of steam emission cannot meet the steam demand, the high-temperature and high-pressure steam can be depressurized through the bleed valve to meet the secondary steam demand.

[0155] Preferably, in some non-limiting embodiments, the boiler module is represented as:

[0156]

[0157]

[0158]

[0159]

[0160] Among them, RBO bo is the steam flow rate generated by boiler bo, RBO bocwrand RBO boowr are respectively the cooling water flow and outsourced fresh water flow of boiler bo, BO is the set of boilers bo, BOCWR is the set of cooling water flow bocwr, BOOWR is the set of outsourced fresh water flow boowr, H SS and H cw are the enthalpy of high-pressure steam, circulating water and fresh water added to boiler bo, ε bo is the efficiency of boiler bo, γ bo and ω bo are the parameters of the boiler regression function, is the maximum flow rate of steam generated by boiler bo, RFL fl is the flow rate of boiler fuel fl, Q fl is the calorific value of boiler fuel fl, and FL is the set of boiler fuels fl.

[0161] Please refer to Table 1, which shows the parameters and capacity flow of boilers provided according to some embodiments of the present invention.

[0162] Table 1 Boiler parameters and capacity flow

[0163]

[0164] Table 1 shows the parameters of the three boiler regression functions and the range of steam flow rate changes. These regression parameters are used to describe the mathematical model of boiler performance. Here, the maximum and minimum values ​​of the steam flow rate describe the highest and lowest steam flow rates handled by the system within a certain period of time or under specific conditions.

[0165] Preferably, in some non-limiting embodiments, the steam turbine module is represented as:

[0166]

[0167]

[0168]

[0169]

[0170] Among them, PET et is the total shaft power of the steam turbine et, For the steam turbine et to steam position ext i Extraction steam flow, RET et,in and RET et,exh are the intake and exhaust flow rates of the turbine et, respectively, H et,in , H et,ext and H et,exh are the inlet enthalpy, extraction enthalpy and exhaust enthalpy of the turbine et, PBTbt is the shaft power of turbine bt, RBT bt,in is the inlet flow rate of turbine bt, H bt,in and H bt,out are the inlet enthalpy and outlet enthalpy of turbine bt respectively.

[0171] Please refer to Tables 2 to 3. Table 2 shows the parameters and variable range constraints of ETs provided according to some embodiments of the present invention. Table 3 shows the steam flow and motor power requirements corresponding to the name of each BT provided according to some embodiments of the present invention.

[0172] Table 2 Parameters and variable range constraints of ETs

[0173]

[0174] As can be seen from Table 2, the steam flow rate at the steam turbine inlet is the steam flow rate entering the steam turbine system, and its maximum and minimum values ​​usually reflect the working capacity range of the system under different operating conditions. Correspondingly, the steam extraction flow rate is the steam flow rate extracted from the steam turbine system, and its maximum and minimum values ​​reflect the working capacity range of the system when adjusting or optimizing energy recovery.

[0175] Table 3 Steam flow and motor power requirements corresponding to each BT name

[0176] BT name flow unit Steam level Motor power unit BT1 FCC1 4569 t / h HS→MS P1 35906 kw BT2 FCC2 4339 t / h HS→MS P2 2828.67 kw BT3 HCU1 3925 t / h HS→MS P3 2493.25 kw BT4 HCU2 40 t / h HS→MS P4 2540.89 kw BT5 RHU1 29.28 t / h HS→MS P5 1874.54 kw BT6 RHU2 30 t / h HS→MS P6 192067 kw BT7 CCR1 51.48 t / h HS→MS P7 2982.98 kw BT8 CCR2 51.5 t / h HS→MS P8 298414 kw BT9 CCR3 40.4 t / h HS→MS P9 2302.8 kw BT10 GS1 5.14 t / h HS→LS P10 128818 kw BT11 SM1 36 t / h HS→LS P11 3087.5 kw BT12 SM2 3537 t / h HS→LS P12 303347 kw BT13 HU1 44 t / h MS → LS P13 1449.68 kw BT14 DC 10 t / h MS → LS p14 406.69 kw BT15 HU2 46.33 t / h MS → LS P15 1526.44 kw

[0177] Table 3 shows the detailed parameters and variable range constraints of BT. In the table, each steam turbine corresponds to the device name, the flow rate is the steam flow processed by each steam turbine, the steam grade provided by each steam turbine reflects the nature and purpose of its output steam, the name of the motor driven by each steam turbine identifies their driving force source, and the rated power of each steam turbine driving motor.

[0178] Preferably, in some non-limiting embodiments, the deflation valve module is represented as:

[0179]

[0180]

[0181] Among them, RLV lv,in and RLV lv,out are the steam inlet and outlet flow rates of the vent valve lv, H lv,in , H lv,w and H lv,out are the inlet steam enthalpy, water inlet enthalpy and outlet steam enthalpy of the relief valve lv, RLV lvowris the water inlet flow rate of the water consumption lvowr of the air relief valve lv, and LVOWR is the set of water consumption lvowr.

[0182] Please refer to Table 4, which shows the deflation valve parameters provided according to some embodiments of the present invention.

[0183] Table 4 Parameters of air relief valve

[0184] Air release valve <![CDATA[ξ lv ]]> Steam flow unit LV1 1.075 80 t / h LV2 1.073 90 t / h LV3 1.057 80 t / h

[0185] Table 4 shows the detailed parameters and variable range constraints of LV. The table records the ratio of the exhaust valve inlet steam flow rate to the outlet steam flow rate in the time period t, which can reflect the efficiency and working status of the exhaust valve in the system during this period. In addition, the table also includes the total steam flow rate of the system in the time period t.

[0186] Furthermore, in the industrial sustainable energy coupling system, different energy carriers and various links in the production process are coupled with each other, and there is transmission and interaction of energy, matter and information between them, which can make energy utilization more efficient and the production process more environmentally friendly and economical.

[0187] Please refer to Figure 3 , Figure 3 A schematic diagram of the working principle of a steam driven compressor provided according to some embodiments of the present invention is shown.

[0188] like Figure 3 As shown, the coupled subsystem model includes a motor module 30 and a steam system module 31. In the motor model, the planning system can consider the steam or electric drive of the motor or compressor 32 in the processing unit. The amount of steam provided by the steam system is equal to the product of the processing rate of the production equipment and the steam consumption rate, and the steam consumption provided by the production equipment is equal to the product of the processing rate of the production equipment and the steam generation rate.

[0189] Preferably, in some non-limiting embodiments, the motor module is represented as:

[0190]

[0191] Among them, T ey is the motor power driven by electricity, P m The rated power provided by the motor, σ m is a binary integer variable, when σ m When σ is 1, the motor is driven by electricity. m When it is 0, the motor is driven by steam, EY is the total power of the motor driven by electricity, M is the number of motors in the refinery,

[0192] Preferably, in some non-limiting embodiments, the steam system module is represented as:

[0193]

[0194]

[0195] in, The steam flow rate supplied to the production subsystem by the steam system, The steam flow rate of the steam system supplied to the production subsystem, χ l,ste and They are respectively the steam consumption coefficient and steam production coefficient of the processing units in the production process subsystem model, SCPU is the set of processing units that consume steam, and SPPU is the set of processing units that produce steam.

[0196] Furthermore, the at least one sustainable energy source includes a wind turbine, a solar thermal collector and an electrolyzer, and the operation principle model correspondingly includes a wind turbine module, a solar thermal collector module and an electrolyzer module.

[0197] Preferably, in some non-limiting embodiments, the wind turbine generator module is represented as:

[0198]

[0199] Among them, T WT is the output power of the wind turbine, v rated and V are the cut-off wind speed, rated wind speed, cut-off wind speed, and line wind speed of the wind turbine, respectively. rated is the rated power of the wind turbine.

[0200] Further, in some non-limiting embodiments, the output power of the wind turbine can be determined by the natural wind speed at the location. Here, the Weibull distribution has a simple form and good simulation effect, and is the most widely used method in wind speed calculation:

[0201]

[0202] Among them, κ h and κ c are the shape and scale parameters of the Weibull distribution, v is the wind speed.

[0203] Preferably, in some non-limiting embodiments, the solar thermal collector module is represented by:

[0204] Q SHC =A SHC F R (G(τα)-U L (T in -T a ))

[0205]

[0206] Among them, Q SHC is the heat energy generated by the solar thermal collector SHC, A SHC is the area of ​​the solar thermal collector SHC, F R is the collector heat rejection coefficient, G is the real-time light intensity, τα is a constant representing light efficiency, U L is the collector heat loss coefficient, T in and T a are the fluid temperature entering the solar thermal collector SHC and the ambient temperature, is the mass flow rate of LS-grade steam generated, C ow , C sat and r ow are the specific heat capacity of feed water, the specific heat capacity of supersaturated steam and the latent heat capacity of saturated steam, respectively. ow 、T sat and T LS They are feed water temperature, supersaturated steam temperature and LS stage steam temperature respectively.

[0207] Please refer to Figure 4 , Figure 4 A schematic diagram of the working principle of a proton exchange membrane electrolyzer provided according to some embodiments of the present invention is shown.

[0208] like Figure 4 As shown, the electrolyzer (ER) is the core equipment of the hydrogen production system, which uses the surplus electricity generated by wind turbines and back-pressure steam turbines (external electricity purchase can be considered when necessary) and purchased water as input to produce hydrogen. At present, the mainstream technologies of electrolysis are alkaline electrolysis cells and proton exchange membrane 41 (PEM) electrolysis cells. Compared with alkaline electrolysis cells, PEM electrolysis cells have higher conversion efficiency, better mechanical strength and chemical stability. Therefore, this study uses PEM type ER.

[0209] Preferably, in some non-limiting embodiments, the electrolyser module is represented by:

[0210]

[0211]

[0212] in, is the hydrogen flow rate produced by the electrolyzer ER, η er is the efficiency of the electrolyzer ER, is the power consumption of the electrolyzer, and meh is the unit conversion factor for converting electrical energy into hydrogen.

[0213] Furthermore, after constructing the production process subsystem model, the steam subsystem model, the coupling system model and the operation principle model, the production planning method also includes determining corresponding system constraints according to each system model.

[0214] Specifically, according to the production process subsystem model, the corresponding production process subsystem constraints are determined. The production process subsystem constraints are that the processing unit needs to operate within the processing range, the composition performance of the products produced by the processing unit also has specification requirements in actual applications, the consumed raw materials should be purchased within the range available in the market, and the output of the production process system should be kept within the market demand range. For example: the raw materials consumed by the processing equipment are mixed oil (MXL), purchased heavy aromatics (PHA), purchased methanol (PML), purchased hydrogen (PH2), purchased reforming raw materials (PRF), purchased MTBE (PMT) and purchased ethylbenzene (PEE). Refinery products include gasoline 92# (national V) (G92), gasoline 95# (national V) (W95), aviation fuel (JFL), gasoline 0# (national V) (W00), ethylene naphtha (ENA), benzene (BNZ), xylene (XYL), liquefied petroleum gas (LPG), polypropylene (PPP), petroleum coke (PCE), sulfur (SFR), liquid ammonia (NH3), styrene (STR), asphalt 60 (A60), commercial dry gas (CDG) and off-specification feedstock (OSF). The composition characteristics of the products were investigated in terms of specific gravity (SPG), sulfur content (SCT), research octane number (RON), antiknock index (AKI), olefin content (OCT), benzene content (BCT), aromatic content (ACT), MTBE content (MCT) and cetane number (CNR). The prices of different energy sources were collected from industrial refineries. The purchasing prices of fuel oil, water, electricity, MXL, PHA, PML, PH2, PRF, PMT and PEE are RMB 1,250.00 / ton, RMB 15.00 / ton, RMB 0.54 / kWh, RMB 481.40 / ton, RMB 1,000.00 / ton, RMB 244.00 / ton, RMB 1,829.00 / ton, RMB 666.00 / ton, RMB 532.00 / ton and RMB 1,021.20 / ton respectively, where CNY is the abbreviation of RMB. The sales prices of G92, G95, JFL, G00, ENA, BNZ, XYL, LPG, PPP, PCE, SFR, NH3, STR, A60, CDG and OSF are 1400.25 yuan / ton, 1320.55 yuan / ton, 784.65 yuan / ton, 713.30 yuan / ton, 668.95 yuan / ton, 500.60 yuan / ton, 521.50 yuan / ton, 548.10 yuan / ton, 1227.95 yuan / ton, 168.25 yuan / ton, 100.50 yuan / ton, 456.00 yuan / ton, 804.35 yuan / ton, 402.10 yuan / ton, 411.50 yuan / ton and 776.20 yuan / ton respectively. In addition, the greenhouse gas tax is set at 10.00$ / t.

[0215] Preferably, in some non-limiting embodiments, the production process subsystem constraints are expressed as:

[0216]

[0217]

[0218]

[0219]

[0220]

[0221] in, and They represent the upper and lower limits of the raw materials s that can be obtained from the market, and IMS is the purchase quantity of all raw materials. and They represent the maximum and minimum quantities of product s required by the market respectively, and FMS is the output of all products.

[0222] Preferably, in some non-limiting embodiments, the corresponding steam subsystem constraints are determined according to the steam subsystem model. During actual operation, the unit equipment in the steam system needs to operate within the allowable range. The steam subsystem constraints are expressed as:

[0223]

[0224]

[0225]

[0226]

[0227]

[0228]

[0229]

[0230]

[0231] in, and are the minimum flow and maximum flow of boiler bo respectively, and are the maximum inlet flow and minimum inlet flow of the turbine et, respectively. and are the maximum and minimum discharge flow rates of the boiler, respectively. is the maximum flow of the relief valve lv, RLV lv1,in and RLV lv1,outare the inlet flow and outlet flow from the exhaust valve to the HS grade steam, The steam flow rate supplied to the production process subsystem by the steam subsystem, The steam flow rate of the steam subsystem supplied to the production process subsystem, R HSbt,in and R HSbt,out are the inlet flow and outlet flow of HS-class steam turbine bt, respectively, l is the steam level, here, R HSbt,in Equal to R HSbt,out .

[0232] Preferably, in some non-limiting embodiments, the corresponding coupled subsystem constraints are determined according to the coupled subsystem model. The coupled subsystem constraints are that the power generated by the electric power, wind turbine and steam turbine should meet the power requirements of all motors in the production process system. The coupled subsystem constraints are expressed as:

[0233]

[0234]

[0235] Among them, M WT is the number of wind turbines introduced, T WT is the power generated by the wind turbine, T bt is the power requirement of the steam turbine bt driving motor, T ey The kilometer requirement for the electric drive motor, is the number of electrolytic cells introduced, is the power consumption of the electrolytic cell, T m is the power demand of all motors, σ m is an integer decision variable.

[0236] Preferably, the corresponding operating principle constraints are determined according to the operating principle model. The operating range of the substation and the hydrogen consumption of the processing equipment can be obtained from the substation or purchased from an external source (such as a coal-to-hydrogen plant). The operating principle constraints are expressed as:

[0237]

[0238]

[0239] in, is the maximum value of power consumption, M ER is the number of electrolyzers ER purchased, is the flow rate of hydrogen produced by the electrolyzer, The flow rate for purchasing hydrogen.

[0240] Afterwards, the production planning system can continue to execute step S3: taking minimizing the sum of the operating cost and investment cost of the refinery as the first sub-goal, constructing a MINLP problem of multiple first-stage variables based on the production process subsystem model, the steam subsystem model, the coupling subsystem model and the operation principle model.

[0241] Specifically, the production planning system firstly calculates the external raw material cost T cl , external fuel cost T fl , External hydrogen cost External water cost T wr , External electricity cost T ey , operating cost T op , Investment cost T inv and greenhouse gas emission tax T GHG_tax The sum constructs the first sub-objective function:

[0242] TOC=T cl +T fl +T H2 +T wr +T ey +T op +T inv +T GHG_tax

[0243]

[0244]

[0245]

[0246]

[0247]

[0248]

[0249] T inv =C WT ·N WT +C STC ·A STC +C ER ·M ER

[0250]

[0251] Among them, C cl , C fl , C wr , C ey , C WT , CSTC , C ER , C GHG They are the prices of raw materials, fuel, hydrogen, water, electricity, the average unit processing cost of each processing unit, the investment cost of wind turbines, the unit area investment cost of solar collectors, the unit volume investment cost of heat storage tanks and the investment cost of electrolyzers. is the average processing flow of each processing unit, M is the number of processing units, τ1, τ2 and τ3 are the greenhouse gas emission coefficients of fuel, electricity and coal-to-hydrogen, respectively. Then, the production planning system can construct a MINLP problem about multiple first-stage variables with the goal of minimizing the first sub-objective function.

[0252] Afterwards, the production planning system can continue to execute step S4: cluster each second historical data to determine multiple discrete scenarios, and construct a TSP planning problem based on the goal of minimizing the expected value of the first sub-goal and the preset second sub-goal, and multiple second-stage variables of the production process subsystem model, the steam subsystem model, the coupling subsystem model and the operation principle model, wherein the expected value of the second sub-goal is the minimum value of the sum of the greenhouse gas emission tax and the operating cost of the coupling system.

[0253] Specifically, the production planning system can use a Latin hypercube sampling method and a density-based clustering method to cluster each second historical data to determine a plurality of discrete scenarios.

[0254] Furthermore, according to multiple discrete scenarios, RPS s , RPU pu , RBO bo 、RBO bocwr 、RBO boowr 、RFL fl , RET et,in ,RET et,exh 、RLV lv,in 、RLV lv,out 、RLV lvowr , σ m , and Determine as the second stage variable, and the remaining N WT 、V STC , S WT and M ER Determined as the first-stage variable.

[0255] Furthermore, according to multiple second-stage variables, the second sub-objective function is constructed:

[0256]

[0257] Among them, Probality r represents the probability of occurrence of scenario r.

[0258] Furthermore, a TSP planning problem with multiple second-stage variables based on the production process subsystem model, steam subsystem model, coupling subsystem model and operation principle model is constructed with the goal of minimizing the expected values ​​of the first sub-goal and the second sub-goal:

[0259]

[0260] Among them, C T is the coefficient matrix of the variables, x is the first stage variable, E w is the expected value of the second-stage system operation, Ax ≥ d is the set of constraints that need to be satisfied during the entire operation process, and the recourse weight function Q (x, w) is defined as:

[0261]

[0262] Where b(w) T is the second-stage variable coefficient, y is the second-stage variable after the uncertainty w is exposed, and W(w)y(w)≥h(w)-T(w)x is the set of constraints that need to be satisfied for the second-stage operation.

[0263] Finally, the production planning method for the oil refinery may execute step S5: solving the TSP planning problem according to the first historical data and the second historical data to determine the production plan of the oil refinery after incorporating at least one sustainable energy source.

[0264] Specifically, the CPPSS of an industrial refinery is used as an example to verify the effectiveness of the proposed method. Here, the SEICPPSS deterministic optimization problem and the two-stage stochastic programming optimization problem with CPPSS integration as the goal (as shown in Equation (62)) are implemented using GAMS33.1.0 on a desktop computer (12th generation Intel(R) Core(TM) i7-12700 CPU@2.10GHz, 16.0GB memory). The optimization solver used for this implementation is Baron (20.10.16). MATLAB R2022a is used for data mining and scenario generation.

[0265] Furthermore, using a two-stage stochastic programming framework for data processing, the data preparation stage can be carried out first. Collect historical data of solar irradiance and wind speed. Then use the Latin hypercube method to generate a scenario tree using density-based application space clustering and noise methods to transform uncertainty factors into a set of discrete scenarios. Determine the first-stage variables and second-stage variables, as well as their value ranges.

[0266] After that, the first stage of stochastic programming is carried out. In the first stage, a deterministic optimization problem (such as the SEICPPSS deterministic optimization problem) is used to optimize the first-stage variables in each scenario, that is, the variables determined before the uncertainty is exposed. The objective function is the sum of operating costs and investment costs. By optimizing the first-stage variables, the objective function is minimized.

[0267] After that, the second stage of stochastic programming is carried out. In the second stage, uncertainty factors, namely the randomness of solar irradiance and wind speed, are considered. For each scenario, the second stage variables, generally continuous variables, are determined based on the results obtained in the first stage for the final decision. The objective function consists of the expected values ​​of the first stage objectives and the second stage objectives, where the second stage objective function is the sum of the greenhouse gas emission tax and the operating costs of the coupled system.

[0268] Finally, the results are verified. The optimization results of the first and second phases are combined to obtain the final optimization solution for each scenario. The optimization results of different methods, including the results of deterministic optimization and two-stage stochastic programming optimization, are compared to evaluate their performance when considering uncertainty factors. The information completeness (EVPI) value is calculated to evaluate the degree of influence of uncertainty on the final results.

[0269] Please refer to Table 5, which shows the problem scale and optimization results of different methods based on 20 generated scenarios when the solar radiation intensity is 4 according to some embodiments of the present invention.

[0270] Table 5 Problem scale and optimization results of each method

[0271]

[0272] As shown in Table 5, the traditional deterministic optimization result is 31,760,100,000 yuan / year, which is the best compared with other results. However, it does not take into account the uncertainties related to solar radiation and wind speed, so it is not very suitable for various situations. DOA_SEICPPSS fixes the parameters of each scene, obtains the target value of each scene, and multiplies it with the corresponding probability to calculate the expected value. Therefore, DOA_SEICPPSS can be regarded as a single-stage stochastic planning method. TSP_SEICPPSS achieves the optimal decision. The difference between the optimization results of DOA_SEICPPSS and TSP_SEICPPSS is 11330,040 yuan / year, which is the information completeness (EVPI) value. Therefore, compared with other methods, TSP_SEICPPSS has better economic reference value and decision feasibility.

[0273] Please refer to Figure 5A to Figure 5D and Figure 6 , Figure 5A A schematic diagram of the processing capacity optimization results of the processing units in the TSP_SEICPPSS production process system provided according to some embodiments of the present invention is shown. Figure 5B A schematic diagram of steam flow of a boiler, an ET, and a pressure reducing valve in a TSP_SEICPPSS steam system according to some embodiments of the present invention is shown. Figure 5C A schematic diagram of a driving method of a back-pressure turbine in a TSP_SEICPPSS steam system according to some embodiments of the present invention is shown. Figure 5D A schematic diagram showing the number of newly introduced TSP_SEICPPSS devices and corresponding costs provided according to some embodiments of the present invention. Figure 6 A schematic diagram comparing annual total cost results of energy provided according to some embodiments of the present invention is shown.

[0274] like Figure 5A to Figure 5D and Figure 6 As shown, the combination of wind energy, solar energy and hydrogen energy has the lowest total annual cost of operating costs of the production process system, steam system operating costs, new facility costs and greenhouse gas taxes, making it the most economical form of energy introduction.

[0275] In summary, the refinery production planning method, refinery production planning system, and computer-readable storage medium provided by the present invention can be used to integrate the uncertainty data of renewable energy, thereby improving the accuracy of production planning and improving the economic benefits of the entire refinery process.

[0276] Although the above methods are illustrated and described as a series of actions for simplicity of explanation, it should be understood and appreciated that these methods are not limited by the order of the actions, because according to one or more embodiments, some actions may occur in a different order and / or concurrently with other actions from those illustrated and described herein or not illustrated and described herein but understandable to those skilled in the art.

[0277] The previous description of the disclosure is provided to enable any person skilled in the art to make or use the disclosure. Various modifications to the disclosure will be apparent to those skilled in the art, and the general principles defined herein may be applied to other variations without departing from the spirit or scope of the disclosure. Thus, the disclosure is not intended to be limited to the examples and designs described herein, but should be granted the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A production planning method for an oil refinery, characterized in that: The following steps are involved: Acquire first historical data of a production process subsystem, a steam subsystem, and a coupling subsystem of the refinery, and second historical data of at least one sustainable energy source; According to the operation mechanism of each of the subsystems of the refinery, a production process subsystem model, a steam subsystem model, and a coupling subsystem model are constructed, and according to the operation mechanism of the at least one sustainable energy source, an operation principle model of the at least one sustainable energy source is constructed; Taking minimizing the sum of the operating cost and the investment cost of the refinery as the first sub-goal, constructing a MINLP problem of multiple first-stage variables based on the production process subsystem model, the steam subsystem model, the coupling subsystem model and the operation principle model; Clustering each of the second historical data to determine a plurality of discrete scenarios, and constructing a TSP planning problem based on the plurality of second-stage variables of the production process subsystem model, the steam subsystem model, the coupling subsystem model and the operation principle model with the goal of minimizing the expected value of the first sub-goal and the preset second sub-goal, wherein the expected value of the second sub-goal is the minimum value of the sum of the greenhouse gas emission tax and the operating cost of the coupling system; as well as The TSP planning problem is solved according to the first historical data and the second historical data to determine the production plan of the refinery after incorporating the at least one sustainable energy source.

2. The production planning method according to claim 1, characterized in that: The first historical data is selected from the processing unit parameters, working mode parameters, H2 consumption parameters and mixer parameters of the production process subsystem, the boiler parameters, turbine parameters and air release valve parameters of the steam subsystem, and the motor parameters and steam component parameters of the coupling subsystem, The at least one sustainable energy source is selected from solar collectors and / or wind generators, and the first historical data is correspondingly selected from solar irradiance data and / or wind speed data.

3. The production planning method according to claim 1, characterized in that: The production process subsystem model includes a processing unit module, a working mode module, an H2 consumption module and a mixer module, wherein: The processing unit module is represented as: Among them, RPU pu Indicates the processing capacity of the processing unit pu, RPS s represents the flow of processing unit pu with respect to material s, PU is the set of processing units pu, PUI is the set of input flows of processing unit pu, SPU is the steam processing unit, PUO is the set of output flows of processing unit pu, and the total flow entering the processing unit is divided into different fixed output flows These flows are sequentially fed into the next processing unit or directly become output products. The working mode module is represented as: Among them, θ u,d A binary variable representing the operation mode of the processing unit, OM is a set of operation modes, MPU is a set of processing units corresponding to the operation mode, The H2 consumption module is represented as: Among them, HCPU is a hydrogen consumption processing unit. The mixer module is represented as: Where BL is the set of mixer bl, BLI is the set of input streams of mixer bl, BLO is the set of output streams of mixer bl, VS S is the volume of the input flow with the corresponding properties, is the component property expected by the product, Θ s,θ It is the component property that actually exists in the product.

4. The production planning method according to claim 1, characterized in that: The steam subsystem model includes a boiler module, a turbine module and a relief valve module, wherein: The boiler module is represented as: Among them, RBO bo is the steam flow rate generated by boiler bo, RBO bocwr and RBO boowr are respectively the cooling water flow and outsourced fresh water flow of boiler bo, BO is the set of boilers bo, BOCWR is the set of cooling water flow bocwr, BOOWR is the set of outsourced fresh water flow boowr, H SS and H cw are the enthalpy of high-pressure steam, circulating water and fresh water added to boiler bo, ε bo is the efficiency of boiler bo, γ bo and ω bo are the parameters of the boiler regression function, is the maximum flow rate of steam generated by boiler bo, RFL fl is the flow rate of boiler fuel fl, Q fl is the calorific value of boiler fuel fl, FL is the set of boiler fuel fl, The steam turbine module is represented as: Among them, PET et is the total shaft power of the steam turbine et, For the steam turbine et to steam position ext i Extraction steam flow, RET et,in and RET et,exh are the intake and exhaust flow rates of the turbine et, respectively, H et,in , H et,ext and H et,exh are the inlet enthalpy, extraction enthalpy and exhaust enthalpy of the turbine et, PBT bt is the shaft power of turbine bt, RBT bt,in is the inlet flow rate of turbine bt, H bt,in and H bt,out are the inlet enthalpy and outlet enthalpy of the turbine bt, respectively. The blow-off valve module is represented as: Among them, RLV lv,in and RLV lv,out are the steam inlet and outlet flow rates of the vent valve lv, H lv,in , H lv,w and H lv,out are the inlet steam enthalpy, water inlet enthalpy and outlet steam enthalpy of the relief valve lv, RLV lvowr is the water inlet flow rate of the water consumption lvowr of the air relief valve lv, and LVOWR is the set of water consumption lvowr.

5. The production planning method according to claim 1, characterized in that: The coupled subsystem model includes a motor module and a steam system module, wherein: The motor module is represented as: Among them, T ey is the motor power driven by electricity, P m The rated power provided by the motor, σ m is a binary integer variable, when σ m When σ is 1, the motor is driven by electricity. m When is 0, the motor is driven by steam, EY is the total power of the motor driven by electricity, M is the number of motors in the refinery, The steam system module is represented as: in, the steam flow rate supplied by the steam system to the production subsystem, The steam flow rate of the steam system supplied to the production subsystem, x l,ste and They are respectively the steam consumption coefficient and steam production coefficient of the processing units in the production process subsystem model, SCPU is the set of processing units that consume steam, and SPPU is the set of processing units that produce steam.

6. The production planning method according to claim 1, characterized in that: The at least one sustainable energy source includes a wind turbine, a solar thermal collector and an electrolyzer, and the operation principle model includes a wind turbine module, a solar thermal collector module and an electrolyzer module, wherein: The wind turbine module is represented as: Among them, T WT is the output power of the wind turbine, v、v rate d and V are the cut-off wind speed, rated wind speed, cut-off wind speed, and line wind speed of the wind turbine, respectively. rated is the rated power of the wind turbine, The solar collector module is represented as: Q SHC =A SHC F R (G(τα)-U L (T in -T a )) Among them, Q SHC is the heat energy generated by the solar thermal collector SHC, A SHC is the area of ​​the solar thermal collector SHC, F R is the collector heat rejection coefficient, G is the real-time light intensity, τα is a constant representing light efficiency, U L is the collector heat loss coefficient, T in and T a are the fluid temperature entering the solar thermal collector SHC and the ambient temperature, is the mass flow rate of LS-grade steam generated, C ow , C sat and r ow are the specific heat capacity of feed water, the specific heat capacity of supersaturated steam and the latent heat capacity of saturated steam, respectively. ow , T sat and T LS They are feed water temperature, supersaturated steam temperature, and LS-level steam temperature. The electrolyser module is represented as: in, is the hydrogen flow rate produced by the electrolyzer ER, η er is the efficiency of the electrolyzer ER, is the power consumption of the electrolyzer, and meh is the unit conversion coefficient for converting electrical energy into hydrogen.

7. The production planning method according to any one of claims 3 to 6, characterized in that: After constructing the production process subsystem model, the steam subsystem model, the coupled system model and the operation principle model, the production planning method further includes the following steps: Determine corresponding production process subsystem constraints according to the production process subsystem model; Determining corresponding steam subsystem constraints according to the steam subsystem model; Determining corresponding coupling subsystem constraints according to the coupling subsystem model; and According to the operation principle model, corresponding operation principle constraints are determined.

8. The production planning method according to claim 7, characterized in that: The production process subsystem constraints are expressed as: in, and They represent the upper and lower limits of the raw materials s that can be obtained from the market, and IMS is the purchase quantity of all raw materials. and They represent the maximum and minimum quantities of product s required by the market respectively, and FMS is the output of all products.

9. The production planning method according to claim 7, characterized in that: The steam subsystem constraints are expressed as: in, and are the minimum flow rate and maximum flow rate of boiler bo respectively, and are the maximum inlet flow and minimum inlet flow of the turbine et, respectively. and are the maximum and minimum discharge flow rates of the boiler, respectively. is the maximum flow of the relief valve lv, RLV lv1,in and RLV lv1,out are the inlet flow and outlet flow from the exhaust valve to the HS grade steam, the steam flow rate supplied by the steam subsystem to the production process subsystem, The steam flow rate supplied to the steam subsystem by the production process subsystem, R HSbt,in and R HSbt,out are the inlet flow and outlet flow of HS-class steam turbine bt respectively, and l is the steam level.

10. The production planning method according to claim 7, characterized in that: The coupled subsystem constraints are expressed as: Among them, M WT is the number of wind turbines introduced, T WT is the power generated by the wind turbine, T bt is the power requirement of the steam turbine bt driving motor, T ey The kilometer requirement for the electric drive motor, is the number of electrolytic cells introduced, is the power consumption of the electrolytic cell, T m is the power demand of all motors, σ m is an integer decision variable.

11. The production planning method according to claim 7, characterized in that: The operating principle constraints are expressed as: in, is the maximum value of power consumption, M ER is the number of electrolyzers ER purchased, is the flow rate of hydrogen produced by the electrolyzer, The flow rate for purchasing hydrogen.

12. The production planning method according to claim 1, characterized in that: The steps of constructing a MINLP problem of a plurality of first-stage variables based on the production process subsystem model, the steam subsystem model, the coupling subsystem model and the operation principle model with minimizing the sum of the operating cost and the investment cost of the refinery as the first sub-goal include: According to the external raw material cost T cl , external fuel cost T fl , External hydrogen cost T H2 , external water cost T wr , External electricity cost T ey , operating cost T op , Investment cost T inv and greenhouse gas emission tax T GHG_tax The sum constructs the first sub-objective function: TOC=T cl +T fl +T H2 +T wr +T ey +T op +T inv +T GHG_tax T inv =C WT ·N WT +C STC ·A STC +C ER ·M ER Among them, C cl , C fl , C wr , C ey , C WT , C STC , C ER , C GHG are the prices of raw materials, fuel, hydrogen, water, electricity, the average unit processing cost of each of the processing units, the investment cost of wind turbines, the unit area investment cost of solar collectors, the unit volume investment cost of heat storage tanks and the investment cost of electrolyzers, is the average processing flow rate of each of the processing units, M is the number of the processing units, τ1, τ2 and τ3 are the greenhouse gas emission coefficients of fuel, electricity and coal-to-hydrogen respectively; and A MINLP problem on the plurality of first-stage variables is constructed with the goal of minimizing the first sub-objective function.

13. The production planning method according to claim 12, characterized in that: The step of clustering each of the second historical data to determine a plurality of discrete scenarios, and constructing a TSP planning problem with a plurality of second-stage variables based on the production process subsystem model, the steam subsystem model, the coupling subsystem model and the operation principle model with the goal of minimizing the expected value of the first sub-goal and the preset second sub-goal includes: Clustering each of the second historical data using a Latin hypercube sampling method and a density-based clustering method to determine a plurality of discrete scenarios; According to the plurality of discrete scenarios, RPS s , RPU pu ,θ u,d 、RBO bo 、RBO bocwr 、RBO boowr 、RFL fl , RET et,in ,RET et,exh 、RLV lv,in 、RLV lv,out 、RLV lvowr , σ m , and Determine the second stage variables and the remaining N WT 、V STC , S WT and M ER Determined as the first stage variable; According to the plurality of second-stage variables, a second sub-objective function is constructed: Among them, Probality r represents the probability of occurrence of scenario r; and Construct a TSP planning problem with the goal of minimizing the expected values ​​of the first sub-goal and the second sub-goal and based on multiple second-stage variables of the production process subsystem model, the steam subsystem model, the coupling subsystem model and the operation principle model: stAx≥d Among them, C T is the coefficient matrix of the variables, x is the first stage variable, E w is the expected value of the second-stage system operation, Ax ≥ d is the set of constraints that need to be satisfied during the entire operation process, and the recourse weight function Q (x, w) is defined as: stW(w)y(w)≥h(w)-T(w)x Where b(w) T is the second-stage variable coefficient, y is the second-stage variable after the uncertainty w is exposed, and W(w)y(w)≥h(w)-T(w)x is the set of constraints that need to be satisfied for the second-stage operation.

14. A production planning system for an oil refinery, characterized in that: include: a memory having computer instructions stored thereon; as well as A processor is connected to the memory and configured to execute computer instructions stored in the memory to implement the production planning method according to any one of claims 1 to 13.

15. A computer-readable storage medium having computer instructions stored thereon, characterized in that: When the computer instructions are executed by a processor, the production planning method according to any one of claims 1 to 13 is implemented.