A method for controlling the state safety of methanol production process subsystems

Through modeling and safety status analysis of the methanol preparation process subsystem, an obstacle control function is established, which solves the problem of insufficient safety in the existing technology, realizes safety control of the methanol preparation process, and ensures that system parameters are within a safe range run.

CN118377231BActive Publication Date: 2024-09-06ZHEJIANG BAIMA LAKE LABORATORY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410834888.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-09-06
Estimated Expiration
2044-06-26

AI Technical Summary

Technical Problem

The existing green methanol preparation process lacks safe range control of system parameters, resulting in insufficient safety and reliability.

Method used

By modeling the methanol preparation process subsystem, extract key safety variables, establish a safety state set and obstacle function, combine the system dynamics model to construct a system obstacle control function, and solve the optimal control law to ensure that system parameters are within a safe range.

Benefits of technology

The safety control of the methanol preparation process subsystem is achieved, ensuring the safety and reliability of the green methanol manufacturing process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118377231B
    Figure CN118377231B
Patent Text Reader

Abstract

The present invention discloses a state safety control method for a methanol preparation process subsystem, which solves the problem of lack of operation control of system parameters within a safe range in the existing green methanol preparation process. The method includes modeling the methanol preparation process system; extracting key safety variables of the methanol preparation process subsystem and establishing a safe state set; establishing a barrier function according to the safe state set, determining a system dynamics model of the subsystem, combining the system dynamics model to construct a system barrier control function and solve the optimal control law; combining barrier control functions and solving to obtain the optimal control rate. The present invention performs a safety analysis on the key safety variables of the methanol preparation process subsystem, establishes a system barrier control function, and obtains the optimal control rate by solving to ensure that the system parameters are within a safe range, thereby achieving safety control of the methanol preparation process subsystem.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of methanol preparation safety control, and in particular to a methanol preparation process subsystem state safety control method. Background Art

[0002] With the large-scale development of renewable energy, the development of renewable electricity is mainly restricted by two factors: first, the volatility and imbalance of renewable electricity production will lead to increasing difficulty in grid balance and absorption. Although electrochemical energy storage can provide system balancing capacity, the system cost continues to rise; second, the development of renewable electricity is highly dependent on electricity load, and the contradiction between the reverse distribution of renewable resources and electricity demand is prominent. The problem of green electricity transmission in remote areas with abundant renewable energy is solved. However, the cost of large-scale ultra-high voltage transmission is high, and the fluctuation of renewable energy puts pressure on both the sending and receiving power grids.

[0003] Combining new energy generation with electrochemistry, converting green electricity into chemical products, and transforming power storage and transmission into chemical storage and transportation can greatly reduce the cost of power storage and transmission while expanding the space for green electricity consumption, creating favorable conditions for the development of high-quality renewable energy in remote areas. Compared with traditional energy storage methods such as pumped storage and electrochemical energy storage, hydrogen energy is a high-quality, clean, large-scale energy storage carrier, and methanol is considered an ideal hydrogen carrier.

[0004] Using renewable green electricity to produce green methanol (hereinafter referred to as green methanol) eliminates complex process steps such as coal gasification and purification, reduces fixed asset investment, and directly electrolyzes water into high-purity hydrogen and oxygen. Hydrogen reacts with carbon dioxide and carbon monoxide formed from biomass combustion to produce green methanol in one step, simplifying the production process and improving the reliability of the chemical system. The high-purity oxygen formed by electrolysis can be used for steelmaking and coal chemical processes, greatly reducing the energy consumption of traditional air separation oxygen production. In addition to being made into zero-carbon ocean shipping, green methanol products can also be made into zero-carbon olefins, zero-carbon aromatics and other downstream chemicals, promoting the chemical industry to achieve zero-carbon transformation and upgrading.

[0005] There are already methods for preparing green methanol in the prior art, such as the Chinese invention application with publication number CN116496141B, entitled A Green Methanol Preparation Process and System, which discloses that by coupling biomass gasification and biomass fuel power generation, the CO content in green alcohol raw gas is increased, the raw material conversion rate is increased, and energy consumption and equipment investment are reduced; renewable energy power generation is combined with biomass fuel power generation to ensure the stability and reliability of electricity consumption of the overall process and system. The existing equipment can achieve the preparation of green methanol, but lacks safety control of the system, especially there is no control method to ensure that the system parameters are within the safe range, and the safety and reliability of the green methanol manufacturing process cannot be guaranteed. Summary of the invention

[0006] The present invention mainly solves the problem that the existing green methanol preparation process lacks operation control over the safe range of system parameters and cannot ensure safety and reliability, and provides a method for safe control of the state of subsystems in the methanol preparation process.

[0007] The above technical problem of the present invention is mainly solved by the following technical solution: a method for controlling the state safety of a methanol preparation process subsystem, comprising the following steps:

[0008] Modeling of methanol production process system;

[0009] Extract the key safety variables of the methanol preparation process subsystem, and establish a subsystem-oriented safety state set based on the value range of the key safety variables;

[0010] Establish an obstacle function based on the safe state set, form a safety criterion based on the vector being in a safe state, determine the system dynamics model of the subsystem, build the system obstacle control function in combination with the system dynamics model and solve the optimal control law;

[0011] Combine the obstacle control functions and solve them to obtain the optimal control rate.

[0012] The present invention performs safety analysis on key safety variables of the methanol preparation process subsystem, establishes a system obstacle control function, obtains the optimal control rate by solving, thereby ensuring that the system parameters are within a safe range, thereby achieving safety control of the methanol preparation process subsystem.

[0013] As a preferred solution, the key safety variables of the methanol extraction preparation process subsystem specifically include:

[0014] The subsystems include a hydrogen electrolysis system and a methanol synthesis system. The key safety variables that affect the safety of the subsystems are obtained. The key safety variables are the range values ​​of the state parameters.

[0015] According to the importance of the parameters in the process, key safety variables are extracted, such as the load fluctuation range of the electrolytic hydrogen system, hydrogen leakage concentration, the upper and lower limits of the tolerable pressure, and the safe temperature range of the methanol synthesis system. The key safety variables are the range values ​​of the state parameters, and the safety status analysis is carried out by obtaining the range values ​​of these important state parameters.

[0016] As a preferred solution, the safety state set includes a key safety variable constituting vector and a vector function, and the vector function is calculated based on the unilateral range limit of the key safety variable.

[0017] The safety state set includes a first safety state set and a second safety state set, and both the first safety state set and the second safety state set include a safety variable constituting vector and a vector function, wherein the vector function is obtained by converting the upper or lower limit range of the key safety variable, and the first safety state set and the second safety state set are constructed according to the vector function representing the upper or lower limit, respectively.

[0018] As a preferred solution, the barrier function is established according to the safety state set, and the safety criterion is formed based on the vector being in a safe state, which specifically includes: establishing the barrier function from the vector function, analyzing when the vector is in a safe state, and the barrier function value satisfies the range of key safety variables to form a safety criterion.

[0019] In this scheme, the barrier function B(x)=h(x) is established according to the vector function h(x) in the safety state concentration. When x is in a safe state, h(x)≥0 is analyzed, and the safety criterion is obtained.

[0020] As a preferred solution, the system dynamics model of the determination subsystem specifically includes:

[0021] a. Set the general form of the system dynamics equation:

[0022] x'=f i (x)+g(x)u

[0023] b. Collect subsystem data and obtain relevant variables;

[0024] c. Batch data preprocessing to achieve time alignment;

[0025] d. Obtain subsystem operating data;

[0026] e. Determine the time window, use the neural dynamics modeling method for complex networks, establish the system dynamics model, solve f(x), obtain g(x) based on the system change obtained from the input signal, and obtain the system dynamics equation of the subsystem.

[0027] Specifically, for the electrolytic hydrogen system, the process of determining the system dynamics model includes:

[0028] 1) Set the general form of the system dynamics equation:

[0029] x'=f i (x)+g(x)u

[0030] This equation is a schematic description function, where f i (x) represents the generation rate of hydrogen under the i-th working condition, and the modeling mainly includes water electrolysis, purification, compression and other units. g(x) represents the influence function of the hydrogen buffer tank and the outlet valve on the hydrogen outlet.

[0031] 2) Collect subsystem data and obtain relevant variables, including lighting conditions during production, electrolyzer current, electrolyte flow, electrolyzer voltage, electrolyte concentration, operating temperature, pressure in the electrolyzer, hydrogen production, hydrogen purity, energy consumption, electrolyte temperature, system pressure, and electrolyte pH value.

[0032] 3) Batch data preprocessing to achieve time alignment, that is, to organize the data based on the sampling frequency of hydrogen production in the hydrogen production process.

[0033] 4) Using hydrogen production and hydrogen purity, establish the hydrogen generation rate under discrete conditions. The hydrogen production at time k is denoted as Q(k), and the hydrogen purity at this time is denoted as c(k). Then the hydrogen generation rate is expressed as Q(k)=c[Q(k)- Q(k-1)].

[0034] 5) Take the hydrogen production rate as a new variable, store it in the database, and construct the vector y=(y1,y2,…,y n ) T , where the elements y in the vector i Indicates the light conditions, cell current, electrolyte flow, cell voltage, electrolyte concentration, operating temperature, pressure in the cell, energy consumption, electrolyte temperature, system pressure, and electrolyte pH value during generation.

[0035] 6) Based on historical data, for vector y and hydrogen production rate Q, establish the element pair in y Q influence heat map, filter out the influence The top 5 variables with the largest Q.

[0036] 7) Based on the five selected key variables, the k-means clustering method is used to form data of different working conditions and mark the data.

[0037] 8) Determine the time window and establish the system dynamics model based on the obtained data of different working modes using the neural dynamics modeling method for complex networks (NDCN), as follows:

[0038] (1)

[0039] xT h (t)=tanh(X(t)W e +b e )W0+b0,X0

[0040] dX h (t) / dt=ReLU(ФX h (t)W+b)

[0041] X(t) = X h (t)W d +b d

[0042] Where t∈[0,T], X(t) represents the time series array of load state x, is the supervised dynamic information valid at time t, || represents the l1-norm, and W e and W0 is the linear layer matrix for encoding, W d is the linear layer matrix for decoding, W is the connection layer weight, b is the connection layer bias, Ф is the diffusion operator, used to normalize the graph Laplacian operator, Ф=D -1 / 2 (DA) D -1 / 2 , A is the connection matrix of the NDCN neural network, and D is the degree of the network node.

[0043] 9) After determining the system dynamics model, obtain f(x) according to the optimal solution of formula (1), find the control variable and control unit of u, give the control unit a certain input signal, obtain the change of the system, obtain g(x) from the change of the system, and obtain the system dynamics equation.

[0044] For the methanol synthesis system, the process of determining the system dynamics model includes:

[0045] 1) Set the general form of the system dynamics equation:

[0046] y'=l(y)+m(y)u

[0047] This equation is a schematic description function,

[0048] 2) Collect data parameters: hydrogen buffer tank temperature, carbon dioxide buffer tank temperature, circulating gas buffer tank temperature, synthesis reactor catalyst bed middle and upper temperature, synthesis reactor catalyst bed outlet temperature data; carbon dioxide low-pressure inlet pressure, carbon dioxide desulfurization outlet pressure, hydrogen inlet pressure, hydrogen buffer tank pressure, carbon dioxide high-pressure inlet pressure data, and distillation tower feed pipeline flow, distillation tower liquid level data.

[0049] 3) Batch data preprocessing to achieve time alignment, that is, to organize the data based on the sampling frequency of hydrogen production in the hydrogen production process.

[0050] The subsequent steps are as follows: Steps 8 and 9 of the process of determining the system dynamics model, and obtaining the system dynamics equation.

[0051] As a preferred solution, the system obstacle control function is constructed by combining the system dynamics equation, specifically including:

[0052] Using h'(x)≥-hw (x) form to design safety control, where h(x) is a vector function, w∈N + ;

[0053] In the system dynamics model, x'=f i (x)+g(x)u, then we have:

[0054] h'(x)≥-h w (x)

[0055]

[0056] Thus, the control barrier function is established:

[0057] CBF: .

[0058] As a preferred solution, the method of solving the optimal control law includes:

[0059] According to the control obstacle function, the optimal control law is obtained, which includes:

[0060] min||u||2 2

[0061] .

[0062] As a preferred solution, the simultaneous obstacle control function is solved to obtain the optimal control rate, including:

[0063] Two control barrier functions are established based on key safety variables;

[0064] Combine the control barrier function and let u i =(u1 i , u2 i ) T ;

[0065] Using quadratic programming, (u1 i ) 2 +(u2 i ) 2 Minimum principle, calculate the optimal control rate u * i .

[0066] In this scheme, the nonlinear system x'=f i (x)+g(x)u, construct the control obstacle function, design the safety control rate, and on this basis, consider taking safe and stable synchronous control as the goal to obtain the optimal control rate.

[0067] As a preferred solution, typical working conditions and modes are divided according to the preparation process. The continuous change data of the operating status parameters of equipment, components, etc. under each process stage are obtained through the fusion of mechanism model and historical data, and the system distributed model framework is established:

[0068] x1'(t)=f1(x0(t),x1(t),…x n (t))

[0069] x2'(t)=f2(x0(t),x1(t),…x n (t))

[0070] …

[0071] x n '(t)=f n (x0(t),x1(t),…x n (t))

[0072] Among them, x i =(Q i ,T i ,P i ,c i …) T , Q i represents the flow of the ith device, x0 is the system input flow, T i , P i , c i are temperature, pressure and concentration state parameters respectively.

[0073] Therefore, the advantages of the present invention are: by conducting safety analysis on the key safety variables of the methanol preparation process subsystem, establishing a system obstacle control function, and obtaining the optimal control rate by solving to ensure that the system parameters are within a safe range, the safety control of the methanol preparation process subsystem is achieved, and the safety and reliability of the green methanol manufacturing process are ensured. BRIEF DESCRIPTION OF THE DRAWINGS

[0074] Figure 1 It is a schematic diagram of a process of the present invention. DETAILED DESCRIPTION

[0075] The technical solution of the present invention is further specifically described below through embodiments and in conjunction with the accompanying drawings. Example

[0076] This embodiment provides a method for controlling the state safety of a methanol preparation process subsystem. Figure 1 As shown, the following steps are included:

[0077] Modeling of methanol production process system;

[0078] Extract the key safety variables of the methanol preparation process subsystem, and establish a subsystem-oriented safety state set based on the value range of the key safety variables;

[0079] Establish an obstacle function based on the safe state set, form a safety criterion based on the vector being in a safe state, determine the system dynamics model of the subsystem, build the system obstacle control function in combination with the system dynamics model and solve the optimal control law;

[0080] Combine the obstacle control functions and solve them to obtain the optimal control rate.

[0081] As a preferred solution of this embodiment, the process of modeling the methanol preparation process system includes:

[0082] According to the preparation process, the typical working conditions and modes are divided. Through the fusion of mechanism model and historical data, the continuous change data of the operating state parameters (pressure, temperature, flow rate, concentration, etc.) of equipment and components in each process stage are obtained to establish the system distributed model framework:

[0083] x1'(t)=f1(x0(t),x1(t),…x n (t))

[0084] x2'(t)=f2(x0(t),x1(t),…x n (t))

[0085] …

[0086] x n '(t)=f n (x0(t),x1(t),…x n (t))

[0087] Among them, x i =(Q i ,T i ,P i ,c i …) T , Q i represents the flow of the ith device (composed of devices / components with high correlation), x0 is the system input flow, T i , P i , c i… are temperature, pressure, concentration and other state parameters respectively.

[0088] On this basis, deep learning methods are used to perform online correction and optimization of the model parameters using the operating data of the methanol preparation process to improve the accuracy and real-time performance of the model.

[0089] As a preferred solution of this embodiment, methanol preparation includes two subsystems: an electrolytic hydrogen system and a methanol synthesis system. According to the importance of parameters in the preparation process, key safety variables in the subsystems are extracted. The key safety variables include the load fluctuation range of the electrolytic hydrogen system, hydrogen leakage concentration, and the upper and lower limits of the tolerable pressure, and the safe temperature range of the methanol synthesis system. The key safety variables are the range values ​​of the state parameters.

[0090] Establish a subsystem-oriented safety state set based on the value range of key safety variables:

[0091] The safety state set includes a vector composed of key safety variables and a vector function, and the vector function is calculated based on the unilateral range limit of the key safety variables.

[0092] The security state set of the subsystem is expressed as follows:

[0093]

[0094] Among them, x is a vector composed of key safety variables, h(x) is a vector function, and the vector function is continuous and differentiable. When the subsystem only considers a single safety issue, x is a scalar.

[0095] The safety state set established according to the key safety variables includes a first safety state set and a second safety state set. Both safety state sets include safety variable constituent vectors and vector functions, wherein the vector functions are obtained by converting the upper or lower limit range of the key safety variables.

[0096] As a preferred solution of this embodiment, after establishing the safe state set of the subsystem, a barrier function is established by a vector function. When the analysis vector is in a safe state, the barrier function value meets the range of key safety variables to form a safety criterion.

[0097] Specifically, according to the vector function h(x) in the safety state concentration of the subsystem, a barrier function is established: B(x) = h(x). When x is in a safe state, h(x) ≥ 0, and the safety criterion is obtained.

[0098] As a preferred solution of this embodiment, a system dynamics model of the subsystem is determined, and a system obstacle control function is constructed in combination with the system dynamics model to solve the optimal control law.

[0099] The process of determining the system dynamics model of the subsystem includes:

[0100] a. Set the general form of the system dynamics equation:

[0101] x'=f i (x)+g(x)u

[0102] b. Collect subsystem data and obtain relevant variables;

[0103] c. Batch data preprocessing to achieve time alignment;

[0104] d. Obtain subsystem operating data;

[0105] e. Determine the time window, use the neural dynamics modeling method for complex networks, establish the system dynamics model, solve f(x), obtain g(x) based on the system change obtained from the input signal, and obtain the system dynamics equation of the subsystem.

[0106] The subsystem includes a hydrogen electrolysis system and a methanol synthesis system. The following is based on the hydrogen electrolysis system to further explain the process of determining the system dynamics model of the subsystem, including:

[0107] Set the general form of the system dynamics equations:

[0108] x'=f i (x)+g(x)u

[0109] This equation is a schematic description function, where f i (x) represents the generation rate of hydrogen under the i-th working condition, and the modeling mainly includes water electrolysis, purification, compression and other units. g(x) represents the influence function of the hydrogen buffer tank and the outlet valve on the hydrogen outlet.

[0110] Collect subsystem data and obtain relevant variables, including lighting conditions during production, electrolyzer current, electrolyte flow, electrolyzer voltage, electrolyte concentration, operating temperature, pressure in the electrolyzer, hydrogen production, hydrogen purity, energy consumption, electrolyte temperature, system pressure, and electrolyte pH value.

[0111] Batch data preprocessing is performed to achieve time alignment, that is, the data is sorted based on the sampling frequency of hydrogen production in the hydrogen production process.

[0112] Using hydrogen production and hydrogen purity, the hydrogen generation rate under discrete conditions is established. The hydrogen production at time k is denoted as Q(k), and the hydrogen purity at this time is denoted as c(k). The hydrogen generation rate is expressed as Q(k)=c[Q(k)- Q(k-1)].

[0113] The hydrogen production rate is taken as a new variable and stored in the database to construct the vector y=(y1,y2,…,y n ) T , where the elements y in the vector i Indicates the light conditions, cell current, electrolyte flow, cell voltage, electrolyte concentration, operating temperature, pressure in the cell, energy consumption, electrolyte temperature, system pressure, and electrolyte pH value during generation.

[0114] Based on historical data, for vector y and hydrogen production rate Q, establish the element pair in y Q influence heat map, filter out the influence The top 5 variables with the largest Q.

[0115] According to the five key variables screened, the k-means clustering method is used to form data of different working conditions and mark the data.

[0116] Determine the time window and establish the system dynamics model based on the obtained data of different working modes using the neural dynamics modeling method for complex networks (NDCN), as follows:

[0117] (1)

[0118] xT h (t)=tanh(X(t)W e +b e )W0+b0,X0

[0119] dX h (t) / dt=ReLU(ФX h (t)W+b)

[0120] X(t) = X h (t)W d +b d

[0121] Where t∈[0,T], X(t) represents the time series array of load state x, is the supervised dynamic information valid at time t, || represents the l1-norm, and W e and W0 is the linear layer matrix for encoding, W d is the linear layer matrix for decoding, W is the connection layer weight, b is the connection layer bias, Ф is the diffusion operator, used to normalize the graph Laplacian operator, Ф=D -1 / 2 (DA) D -1 / 2 , A is the connection matrix of the NDCN neural network, and D is the degree of the network node.

[0122] After determining the system dynamics model, the optimal solution of formula (1) is used to obtain f(x), find the control variable and control unit of u, give the control unit a certain input signal, obtain the change of the system, and obtain g(x) from the change of the system to obtain the system dynamics equation.

[0123] In addition, for the methanol synthesis system, when only a single operating process is considered, the process of determining the system dynamics model of the subsystem includes:

[0124] Set the general form of the system dynamics equations:

[0125] y'=l(y)+m(y)u

[0126] This equation is a schematic description function, l(y) is the system model without control, and m(y) is the impact of control on the system state.

[0127] Collected data parameters: hydrogen buffer tank temperature, carbon dioxide buffer tank temperature, circulating gas buffer tank temperature, synthesis reactor catalyst bed middle and upper temperature, synthesis reactor catalyst bed outlet temperature data; carbon dioxide low-pressure inlet pressure, carbon dioxide desulfurization outlet pressure, hydrogen inlet pressure, hydrogen buffer tank pressure, carbon dioxide high-pressure inlet pressure data, as well as distillation tower feed pipeline flow, distillation tower liquid level data.

[0128] Batch data preprocessing is performed to achieve time alignment, that is, the data is sorted based on the sampling frequency of hydrogen production in the hydrogen production process.

[0129] Determine the time window and use the neural dynamics modeling method for complex networks (NDCN) to establish a system dynamics model as follows:

[0130] (2)

[0131] Y h (t)=tanh(Y(t)W e +b e )W0+b0,Y0

[0132] dY h (t) / dt=ReLU(ФY h (t)W+b)

[0133] Y(t) = Y h (t)W d +b d

[0134] Where t∈[0,T], Y(t) represents the time series array of load state y, is the supervised dynamic information valid at time t, || represents the l1-norm, and W e and W0 is the linear layer matrix for encoding, W d is the linear layer matrix for decoding, W is the connection layer weight, b is the connection layer bias, Ф is the diffusion operator, used to normalize the graph Laplacian operator, Ф=D -1 / 2 (DA) D -1 / 2 , A is the connection matrix of the NDCN neural network, and D is the degree of the network node.

[0135] After determining the system dynamics model, the optimal solution of formula (2) is used to obtain l(y), find the control variable and control unit of u, give the control unit a certain input signal, obtain the change of the system, and obtain m(y) from the change of the system to obtain the system dynamics equation.

[0136] Combine the system dynamics equation to build the system obstacle control function and solve the optimal control law, including:

[0137] Using h'(x)≥-h w (x) form to design safety control, where h(x) is a vector function, w∈N + , usually in actual use, w is a positive integer less than 5.

[0138] In the system dynamics model, x'=f i (x)+g(x)u, then we have:

[0139] h'(x)≥-h w (x)

[0140]

[0141] Thus, the control barrier function is established:

[0142] CBF: .

[0143] According to the control obstacle function, the optimal control law is obtained, which includes:

[0144] min||u||2 2

[0145] .

[0146] As a preferred solution of this embodiment, after determining the obstacle control function, the optimal control rate is obtained by combining the obstacle control functions, which specifically includes:

[0147] Combine the control barrier function and let u i =(u1 i , u2 i ) T ;

[0148] Using quadratic programming, (u1 i ) 2 +(u2 i ) 2 Minimum principle, calculate the optimal control rate u * i .

[0149] The method for controlling the state of a methanol preparation process subsystem in accordance with the present invention will be described in detail below through specific examples.

[0150] The present invention is for the safety control of the green methanol preparation process, mainly targeting the two subsystems with high safety requirements, namely electrolysis of hydrogen and methanol synthesis, and solves their safety control problems according to the safety parameter range of the existing design.

[0151] State safety control of hydrogen electrolysis system

[0152] The main consideration is the hydrogen production load. The hydrogen production load should not be too high or too low. If it is too low, safety accidents are likely to occur. Therefore, the safety range of hydrogen load should be established first. The current process parameters are as follows: the rated hydrogen production capacity is 20Nm 3 / h, load fluctuation range is 20%~110%.

[0153] Assume that the current hydrogen flow rate before entering the hydrogen buffer tank is Q, then the load state x=(Q / 50)*100%. According to the load fluctuation range, the safe state set of the subsystem is established, specifically: C=C1∩C2, where C1={x|x-20≥0}, C2={x|x-110≤0}. Establish the barrier function, set h1(x)= x-20, h2(x)= 110-x, therefore, when the state x is in a safe state, h1(x)≥0 and h2(x)≥0.

[0154] Obtain the system dynamics equation x'=f i After (x)+g(x)u, two system control obstacle functions are constructed:

[0155] CBF1: h1'(x)= x'= f i (x)+g(x)u1 i ≥-x+20

[0156] CBF2: h2'(x)= -x'=- f i (x)-g(x)u2 i ≥x-110

[0157] Combine the control barrier function and let u i =(u1 i , u2 i ) T , using the optimal control rate solution method of state safety control, using quadratic programming, with (u1 i ) 2 +(u2 i ) 2 Minimum principle, calculate the optimal control rate u * i .

[0158] Taking the state safety control of the methanol synthesis system as an example, the existing process parameters of methanol synthesis reaction temperature are 250~350℃. According to the reaction temperature range, the safety state set of the subsystem is established, specifically: C=C3∩C4, where C3={T|T-250≥0}, C4={T|T-350≤0}. Establish the barrier function, set h3(T)=T-250, h4(T)= 350-T, therefore, when the state T is in a safe state, h3(T)≥0 and h4(T)≥0.

[0159] The methanol synthesis system only considers the single-condition process and obtains the system kinetic equation y'=l(y)+m(y)u, where y=(T,P,c) T , T is the reaction temperature, P is the reactor pressure, and c is the methanol concentration.

[0160] By substituting T=(1,0,0)y, two system control barrier functions are constructed:

[0161] CBF3: h3'(T)= T'=(1,0,0) [l(y)+m(y)u3]≥-T+250

[0162] CBF4: h4'(T)= -T'=-(1,0,0) [l(y)+m(y)u4]≥T-350

[0163] Combine the control barrier function and let u i =(u3 i , u4 i ) T , using the optimal control rate solution method of state safety control, using quadratic programming, with (u3 i ) 2 +(u4 i ) 2 Minimum principle, calculate the optimal control rate u * .

[0164] The specific embodiments described herein are merely examples of the spirit of the present invention. Those skilled in the art may make various modifications or additions to the specific embodiments described or replace them in similar ways, but they will not deviate from the spirit of the present invention or exceed the scope defined by the appended claims.

Claims

1. A method for controlling the state safety of a methanol production process subsystem, characterized in that: The following steps are involved: Modeling of methanol production process system; Extract the key safety variables of the methanol preparation process subsystem. The key safety variables are the range values ​​of the state parameters. According to the value range of the key safety variables, a safety state set for the subsystem is established. The safety state set includes the key safety variable vector x and the vector function h(x). According to the safe state set, the barrier function is established: B(x)=h(x), the safety criterion is formed based on the vector being in a safe state, the system dynamics model of the subsystem is determined, and the system barrier control function is constructed in combination with the system dynamics model to solve the optimal control law; Determine the system dynamics model of the subsystems, including: a. Set the general form of the system dynamics equation: x'=f i (x) +g(x) u where f i (x) and g(x) are nonlinear functions of the system dynamics equation, and u is the input control variable; b. Collect subsystem data and obtain relevant variables; c. Batch data preprocessing to achieve time alignment; d. Obtain subsystem operating data; e. Determine the time window, use the neural dynamics modeling method for complex networks, establish the system dynamics model, solve f(x), obtain g(x) based on the system change obtained by the input signal, and obtain the system dynamics equation of the subsystem; Construct system obstacle control functions, including: Using h'(x)≥-h w (x) form to design safety control, where h(x) is a vector function, w∈N + ; In the system dynamics model, x'=f i (x)+g(x)u, then we have: h'(x)≥-h w (x) ( h / x)x'≥-h w (x) h / x is the partial derivative of the vector function h with respect to x; Thus, the control barrier function is established: CBF:( h / x) (f(x)+g(x)u)≥-h w (x); The optimal control law includes: min||u||2 2 s.t. ( h / x)g(x)u≥-h w (x)- ( h / x)f(x); Two control barrier functions are established based on key safety variables. The control barrier functions are combined and u i =(u1 i , u2 i ) T , using quadratic programming, with (u1 i ) 2 +(u2 i ) 2 Minimum principle, calculate the optimal control rate u * i .

2. The method for controlling the state safety of a methanol production process subsystem according to claim 1, characterized in that The key safety variables of the methanol extraction preparation process subsystem specifically include: The subsystems include the electrolytic hydrogen system and the methanol synthesis system, and the key safety variables that affect the safety of the subsystems are obtained.

3. A method for controlling the state safety of a methanol preparation process subsystem according to claim 2, characterized in that The vector function is calculated based on the unilateral range limit of the key safety variable.

4. The method for controlling the state safety of a methanol production process subsystem according to claim 3 is characterized in that The method of establishing a barrier function according to a safety state set and forming a safety criterion based on the vector being in a safety state specifically includes: establishing a barrier function from a vector function, analyzing when the vector is in a safety state, and whether the barrier function value satisfies the range of key safety variables to form a safety criterion.

5. A method for controlling the state safety of a methanol production process subsystem according to any one of claims 1 to 4, characterized in that According to the preparation process, the typical working conditions and modes are divided. Through the fusion of mechanism model and historical data, the continuous change data of the operating status parameters of equipment and components in each process stage are obtained to establish the system distributed model framework: x1'(t)=f1(x0(t),x1(t),…x n (t)) x2'(t)=f2(x0(t),x1(t),…x n (t)) …… x n '(t)=f n (x0(t),x1(t),…x n (t)) Among them, x i =(Q i ,T i ,P i ,c i …) T , Q i represents the flow of the ith device, x0 is the system input flow, T i , P i , c i are temperature, pressure and concentration state parameters respectively.