Device parameter optimization method and device based on simulation analysis, device, and storage medium

By establishing a hierarchical simulation model and optimizing equipment parameters through forward extrapolation, the problem of dynamic drift of reactor feed properties caused by material stratification in crude oil storage tanks was solved. This enabled the prediction and regulation of feed fluctuations, preventing reactor overheating or shutdown and improving production stability.

CN122864196BActive Publication Date: 2026-11-27GUANGZHOU HAOCHUAN NETWORK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202611358218.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-09-03
Publication Date
2026-11-27
Estimated Expiration
2046-09-03

AI Technical Summary

Technical Problem

In chemical production, the dynamic drift of raw material properties caused by material stratification in crude oil storage tanks affects the quality of reactor feed, leading to production fluctuations and safety hazards.

Method used

By using a simulation-based equipment parameter optimization method, a hierarchical simulation model is established to generate nominal and boundary trajectories. Combined with the reactor state, forward extrapolation is performed to optimize equipment parameters in order to predict and regulate feed property fluctuations and prevent reactor overheating or shutdown.

Benefits of technology

Optimize equipment parameters in advance to reduce the impact of feed disturbances on the reactor, prevent reactor overheating or shutdown, and reduce product property fluctuations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122864196B_ABST
    Figure CN122864196B_ABST
Patent Text Reader

Abstract

The application discloses a kind of based on simulation analysis's equipment parameter optimization method, device and storage medium, belong to petrochemical technical field.The application obtains the warehouse test data and online measuring point data of storage tank, establishes hierarchical simulation model according to the warehouse test data and the online measuring point data and determines the physical state estimation value and model parameter error interval of each virtual layer;According to the physical state estimation value and model parameter error interval of each virtual layer, nominal trajectory and boundary trajectory are generated, wherein the nominal trajectory is the forward simulation trajectory when model parameter takes estimation median value;According to the nominal trajectory and the boundary trajectory, the current state of reactor and the current parameter of equipment are combined to forward deduce, and the predicted response curve is obtained;According to the boundary trajectory and the predicted response curve, the rolling horizon constraint optimization problem is solved, and the equipment parameter adjustment instruction is determined, and the beneficial effect of reducing production fluctuation caused by raw material quality fluctuation is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of petrochemical technology, and in particular to a method, apparatus, and storage medium for optimizing equipment parameters based on simulation analysis. Background Technology

[0002] In the chemical production field, data is collected on imported crude oil. Qualified crude oil is stored in storage tanks. During storage, due to gravity settling, the material inside the tank stratifies: the material at the bottom is denser and has higher water and salt content, while the material at the top is relatively lighter. When the outlet pump draws material from the bottom of the tank, the properties of the material drawn in change as the liquid level drops. This causes the properties of the raw material entering the reactor to dynamically shift with the decreasing liquid level. In actual production, using raw crude oil data can affect production efficiency, leading to production fluctuations or even safety accidents.

[0003] The above content is only used to help understand the technical solution of the present invention and does not represent an admission that the above content is prior art. Summary of the Invention

[0004] The main objective of this invention is to provide a method, device, and storage medium for optimizing equipment parameters based on simulation analysis, aiming to reduce production fluctuations caused by raw material quality fluctuations.

[0005] To achieve the above objectives, the present invention provides a method for optimizing equipment parameters based on simulation analysis, the method comprising the following steps: Obtain the inbound test data and online measurement point data of the storage tank, establish a hierarchical simulation model based on the inbound test data and the online measurement point data, and determine the estimated values ​​of physical property states and the error range of model parameters for each virtual layer; Based on the estimated physical state values ​​of each virtual layer and the error range of model parameters, a nominal trajectory and a boundary trajectory are generated, wherein the nominal trajectory is the forward simulation trajectory when the model parameters take the estimated median value; Based on the nominal trajectory and the boundary trajectory, and combined with the current state of the reactor and the current parameters of the equipment, a forward extrapolation is performed to obtain the predicted response curve; The rolling time-domain constraint optimization problem is solved based on the boundary trajectory and the predicted response curve to determine the equipment parameter adjustment instructions.

[0006] Optionally, the step of establishing a hierarchical simulation model based on the in-warehouse test data and the online measurement point data, and determining the estimated physical property state values ​​and model parameter error ranges for each virtual layer, includes: The storage tank is discretized into multiple virtual layers along the height direction, and an evolution model of the physical property variables for each virtual layer is established. The physical property variables include density, moisture content and calorific value, and the inbound test data are used as the initial conditions for the physical property variables. The predicted value of the hierarchical simulation model is determined based on the physical property variables, online measurement point data within a preset time window before the current moment is obtained, and the cumulative deviation between the predicted value and the online measurement point data is calculated. An optimization process aimed at minimizing the accumulated deviation is performed to obtain the estimated physical state values ​​and model parameter values ​​for each virtual layer; The error interval of the model parameters is determined based on the covariance of the estimated model parameters.

[0007] Optionally, the step of performing optimization processing aimed at minimizing the accumulated deviation further includes: In the optimization process, physical inequality constraints are set, including: density monotonically does not decrease along the height direction, physical upper and lower bound constraints on moisture content, and material total quantity conservation constraints. When preset switching conditions are met, the moving time domain estimation algorithm will be switched to the particle filter estimation algorithm. The preset switching conditions include: receiving a switching command, the observed residual exceeding a preset threshold, or the liquid level falling below the sediment disturbance warning value.

[0008] Optionally, the device parameter optimization method further includes: When a switching command is received, the pump inlet physical property data of the first storage tank and the pump inlet physical property data of the second storage tank are obtained. Based on the pump inlet physical property data of the first storage tank, the pump inlet physical property data of the second storage tank, pipeline parameters and switching sequence, the switching transition process is simulated to determine the transition curve. The transition curve includes: transition arrival lag time, transition duration, and physical property timing during the transition period; the switching instruction is to switch the first storage tank to the second storage tank.

[0009] Optionally, the boundary trajectory includes an anti-overheating boundary trajectory and an anti-flameout boundary trajectory, and the step of generating the nominal trajectory and boundary trajectory based on the estimated physical property state values ​​and model parameter error intervals of each virtual layer includes: The nominal trajectory is obtained by taking the median estimated value of each model parameter and performing forward simulation. The anti-overheating boundary trajectory is obtained by forward simulation based on the combination of endpoint values ​​that maximizes the reactor temperature rise. The anti-flameout boundary trajectory is obtained by forward simulation based on the combination of endpoint values ​​that maximizes the reactor temperature drop.

[0010] Optionally, the boundary trajectory includes an anti-overheating boundary trajectory and an anti-flameout boundary trajectory. The step of solving the rolling time-domain constraint optimization problem based on the boundary trajectory and the predicted response curve to determine the equipment parameter adjustment command includes: In the rolling time-domain constrained optimization problem, hard constraints are set, including: the reactor temperature does not exceed the upper limit under the anti-overheat boundary trajectory, and the reactor temperature does not exceed the lower limit under the anti-flameout boundary trajectory; The rolling time-domain constraint optimization problem is solved once in each control cycle, and the device parameter adjustment command for the first control cycle is issued and executed only.

[0011] Optionally, the step of performing forward extrapolation based on the nominal trajectory and the boundary trajectory, combined with the current state of the reactor and the current parameters of the equipment, to obtain the predicted response curve includes: Obtain the current status of the reactor and the current parameters of the equipment; Based on the reactor mechanism model, the nominal trajectory and the boundary trajectory are respectively used as perturbation inputs to the reactor mechanism model, and forward inference is performed to obtain the predicted response curves corresponding to the nominal trajectory and the boundary trajectory.

[0012] Furthermore, to achieve the above objectives, the present invention also provides a device for optimizing equipment parameters based on simulation analysis, the device comprising: The warehousing simulation module is used to acquire warehousing test data and online measurement point data of the storage tank, establish a hierarchical simulation model based on the warehousing test data and the online measurement point data, and determine the estimated values ​​of physical property states and the error range of model parameters for each virtual layer. The analysis module is used to generate nominal trajectories and boundary trajectories based on the estimated physical property states of each virtual layer and the error range of model parameters. The nominal trajectory is the forward simulation trajectory when the model parameters take the median of the estimated values. The prediction module is used to perform forward extrapolation based on the nominal trajectory and the boundary trajectory, combined with the current state of the reactor and the current parameters of the equipment, to obtain the predicted response curve; The adjustment module is used to solve the rolling time-domain constraint optimization problem based on the boundary trajectory and the predicted response curve, and to determine the equipment parameter adjustment instructions.

[0013] Furthermore, to achieve the above objectives, the present invention also provides a device parameter optimization device based on simulation analysis, the device parameter optimization device based on simulation analysis comprising: a memory, a processor, and a device parameter optimization program based on simulation analysis stored in the memory and executable on the processor, the device parameter optimization program based on simulation analysis being configured to implement the steps of any of the device parameter optimization methods based on simulation analysis described above.

[0014] In addition, to achieve the above objectives, the present invention also provides a storage medium storing a device parameter optimization program based on simulation analysis, wherein when the device parameter optimization program based on simulation analysis is executed by a processor, it implements the steps of the device parameter optimization method based on simulation analysis described above.

[0015] This invention proposes a simulation-based method for optimizing equipment parameters. This method acquires inbound testing data and online measurement data from storage tanks, establishes a hierarchical simulation model, and determines the estimated physical properties and error ranges of model parameters for each virtual layer. Based on these estimates, nominal trajectories and boundary trajectories are generated. A forward inference is performed using these trajectories and boundary trajectories, combined with the current reactor state and equipment parameters, to obtain a predicted response curve. Finally, the rolling time-domain constrained optimization problem is solved using the boundary trajectories and the predicted response curve to determine the equipment parameter adjustment instructions. Compared to existing technologies that only provide feedback adjustment after reactor deviations occur, this method optimizes equipment parameters before feed disturbances reach the reactor, thereby preventing reactor overheating or shutdown and narrowing product property fluctuations. Attached Figure Description

[0016] Figure 1 This is a schematic diagram of the device for optimizing device parameters based on simulation analysis in the hardware operating environment involved in the embodiments of the present invention; Figure 2 This is a flowchart illustrating the first embodiment of the device parameter optimization method based on simulation analysis of the present invention. Figure 3 This is a flowchart illustrating the second embodiment of the device parameter optimization method based on simulation analysis of the present invention.

[0017] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0018] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

[0019] Reference Figure 1 , Figure 1 This is a schematic diagram of the device structure for optimizing device parameters based on simulation analysis in the hardware operating environment involved in the embodiments of the present invention.

[0020] like Figure 1As shown, the device parameter optimization device based on simulation analysis may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, an interactive device 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to enable communication between these components. The interactive device 1003 may include a display screen and an input unit such as a keyboard. Optionally, the interactive device 1003 may also be connected to the communication bus via standard wired or wireless interfaces. The network interface 1004 may optionally include standard wired or wireless interfaces (such as a Wi-Fi interface). The memory 1005 may be a high-speed random access memory (RAM) or a stable non-volatile memory (NVM), such as a disk drive. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0021] Those skilled in the art will understand that Figure 1 The structure shown does not constitute a limitation on the device for optimizing device parameters based on simulation analysis. It may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0022] like Figure 1 As shown, the memory 1005, which serves as a storage medium, may include an operating system, a data storage module, a network communication module, a user interface module, and a device parameter optimization program based on simulation analysis.

[0023] exist Figure 1 In the simulation-based device parameter optimization device shown, the network interface 1004 is mainly used for data communication with other devices; the interactive device 1003 is mainly used for data interaction with the user; the processor 1001 and memory 1005 in the simulation-based device parameter optimization device of the present invention can be set in the simulation-based device parameter optimization device, and the simulation-based device parameter optimization device calls the simulation-based device parameter optimization program stored in the memory 1005 through the processor 1001 and executes the simulation-based device parameter optimization method provided in the embodiment of the present invention.

[0024] This invention provides a method for optimizing equipment parameters based on simulation analysis, referring to... Figure 2 , Figure 2 This is a flowchart illustrating the first embodiment of a device parameter optimization method based on simulation analysis according to the present invention.

[0025] In this embodiment, the device parameter optimization method based on simulation analysis includes: Step S1: Obtain the inbound test data and online measurement point data of the storage tank; establish a hierarchical simulation model based on the inbound test data and the online measurement point data; and determine the estimated values ​​of physical property states and the error range of model parameters for each virtual layer. In this embodiment, the incoming testing data refers to the comprehensive testing data of the oil upon its arrival at the warehouse, generally including density, water content, and calorific value. Optionally, it may also include salt content, viscosity, and sulfur content. Salt content is essential data in scenarios involving electro-desalination or corrosion assessment. Viscosity, if omitted, can be substituted using empirical values ​​of the same brand of oil. The online measurement data refers to the real-time data of existing instruments in the tank area, including level gauge readings, pump outlet flow rates, and tank bottom density gauge readings. Optionally, it may also include oil-water interface gauge readings, multi-point thermometer readings on the tank wall, and testing data from periodic re-inspections. It should be noted that the virtual layer here is a computational unit discretized along the height direction of the material within the storage tank. Each layer is considered to have uniform physical properties, and there are no physical separations within the tank. The estimated physical property state is used to retrieve the physical property values ​​of the material sucked into the pump at the current liquid level, and the model parameter error range is used to subsequently construct the boundary trajectory. This allows for the acquisition of physically reliable layered states and quantified parameter errors, providing complete initial conditions for trajectory extrapolation.

[0026] Step S2: Generate nominal trajectory and boundary trajectory based on the estimated physical property state values ​​and model parameter error intervals of each virtual layer, wherein the nominal trajectory is the forward simulation trajectory when the model parameters take the estimated median value; Specifically, the nominal trajectory is the sequence of feed properties changing over time in the future time domain obtained from forward simulation when the estimated median values ​​of each model parameter are taken, representing the conventional expected scenario; the boundary trajectory is the sequence of feed properties obtained from forward simulation when the model parameters are taken as the endpoints of the error interval, representing the worst-case scenario. It should be noted that the future time domain can be two hours after the current time. The nominal trajectory and the boundary trajectory together constitute the scenario constraint set for subsequent optimization. This allows for deterministic coverage of the prediction error range with a finite number of trajectories.

[0027] Step S3: Based on the nominal trajectory and the boundary trajectory, and combined with the current state of the reactor and the current parameters of the equipment, a forward extrapolation is performed to obtain the predicted response curve; Specifically, the nominal trajectory and the boundary trajectory are used as pre-simulation models for the perturbation input to the reactor side. Combined with the current reactor state and current equipment parameters, forward extrapolation is performed to obtain the predicted temperature or pressure response curves for each trajectory in the future time domain. It should be noted that the predicted response curves are used to evaluate the consequences of candidate equipment parameter sequences under normal and worst-case scenarios. This allows subsequent optimization solutions to simultaneously consider both normal expectations and the worst-case scenario.

[0028] Step S4: Solve the rolling time-domain constraint optimization problem based on the boundary trajectory and the predicted response curve to determine the equipment parameter adjustment command.

[0029] Specifically, the rolling time-domain constrained optimization problem uses the sequence of equipment parameters within the future control time domain as decision variables and the constraint that the reactor temperature does not exceed the limit under the boundary trajectory. This rolling time-domain constrained optimization problem is an optimization problem constructed based on the sequence of equipment parameters within the future control time domain, with the objectives of minimizing parameter adjustment amplitude and energy consumption under the nominal trajectory. The resulting equipment parameter adjustment command is then issued to the DCS for execution. It should be noted that since the nominal trajectory and the boundary trajectory are forward-predicted trajectories, the equipment parameter adjustment command arrives at the reactor before the feed disturbance and is executed. For example, the preheating load is adjusted in advance before the liquid level drops to the critical layer, or the equipment parameters are pre-adjusted according to the predicted transition arrival time when the switching command is issued. This transforms the ex-post correction of feed property fluctuations into ex-ante pre-adjustment.

[0030] In this embodiment, by acquiring the inbound test data and online measurement data of the storage tank, a hierarchical simulation model is established, and the estimated values ​​of physical properties and the error range of model parameters for each virtual layer are determined. Based on the estimated values ​​of physical properties and the error range of model parameters for each virtual layer, a nominal trajectory and a boundary trajectory are generated. Based on the nominal trajectory and the boundary trajectory, combined with the current state of the reactor and the current parameters of the equipment, a forward extrapolation is performed to obtain a predicted response curve. Based on the boundary trajectory and the predicted response curve, a rolling time-domain constrained optimization problem is solved to determine the equipment parameter adjustment command. Compared with the prior art method of feedback adjustment only after the reactor deviates, this method can optimize equipment parameters in advance before the feed disturbance reaches the reactor, thereby preventing reactor overheating or shutdown and narrowing the fluctuation of product properties.

[0031] Furthermore, based on the first embodiment, a second embodiment of the device parameter optimization method based on simulation analysis of the present invention is proposed. In this embodiment, referring to... Figure 3 The steps of establishing a hierarchical simulation model based on the in-warehouse test data and the online measurement point data, and determining the estimated physical property state values ​​and model parameter error ranges for each virtual layer, include: Step S11: Discretize the storage tank along the height direction into multiple virtual layers, and establish a property variable evolution model for each virtual layer. The property variables include: density, moisture content and calorific value. The inbound test data serve as the initial conditions for the property variables. In this embodiment, the storage tank is specifically discretized into N virtual layers along its height. For example, a 100,000 cubic meter storage tank can be discretized into 20 layers, each approximately 1 meter high. It should be noted that the evolution of the physical properties of each virtual layer over storage time is described by gravity settling dynamics, and the settling velocity of the dispersed phase droplets is determined by Stokes' sedimentation formula, as follows:

[0032] Optionally, a hindered settlement correction can be introduced into the high-water-content virtual layer to prevent overestimation of the settlement velocity, which can be further expressed by the following formula:

[0033] Specifically, the in-warehouse testing data serves as the initial condition for the physical property variables of each virtual layer. Upon initial use, the physical properties of each virtual layer are taken from the in-warehouse testing values. This allows the continuous stratification process within the tank to be transformed into an evolutionary model that can be calculated layer by layer.

[0034] Step S12: Determine the predicted value of the hierarchical simulation model based on the physical property variables, obtain the online measurement point data within the preset time window before the current moment, and calculate the cumulative deviation between the predicted value and the online measurement point data; Specifically, the preset time window here can be 24 hours prior to the current moment. The window slides forward with the estimation period, and the calculation is repeated once at each estimation period. It should be noted that the online measurement data includes continuously collected online data and intermittently inserted offline test data. The offline test data can be used as high-weight observation data, and the preset time window allows for the unified processing of both types of data. The cumulative deviation is the sum of the deviations between the predicted value and the online measurement data at each moment within the preset time window. This allows for continuous improvement of the model using the latest observation data.

[0035] Step S13: Perform optimization processing with the goal of minimizing the accumulated deviation to obtain the estimated values ​​of the physical property state and the estimated values ​​of the model parameters for each virtual layer; The optimization process is a moving-time domain estimation, which is an optimization problem that aims to minimize the accumulated deviation while satisfying physical constraints, as shown in the following formula:

[0036]

[0037]

[0038] Where t is the current time, and W is the length of the preset time window. The data is the online measurement point data at the j-th time point within the preset time window. Let θ be the predicted value of the hierarchical simulation model at time j, and let θ be the model parameters to be identified, which may include the settlement rate coefficient, etc. These are the prior values ​​of the model parameters. , These are the observation variance of the online measurement point data and the variance of the prior values ​​of the model parameters, respectively, used to determine the weights of the corresponding terms in the objective function; i is the virtual layer number, numbered 1, 2, ..., N from the bottom of the tank to the top. Let be the density of the i-th virtual layer. Let be the water content of the i-th virtual layer. Let A_tank be the physical upper limit of the moisture content, A_tank be the cross-sectional area of ​​the storage tank, and Δz be the height of the virtual layer. Let be the total mass of the material inside the tank. In the objective function, the first term is the weighted cumulative deviation between the predicted value and the online measurement data within the preset time window, ensuring the model closely matches the observed data; the second term is a penalty term for the model parameters deviating from their prior values, preventing the model parameters from deviating too far from the prior values; the three constraints are, in order, a monotonically non-increasing density constraint along the height direction, and... ≥ ≥…≥ That is, the lower layer density is not less than the upper layer density, and the physical upper and lower bounds of the moisture content are 0 ≤ ≤ The constraint of material conservation ensures the physical feasibility of the estimation results. It should be noted that the preset time window slides forward with the estimation cycle, and the optimization process is solved once at each estimation cycle to obtain estimated values ​​of the physical properties and model parameters such as the settling rate coefficient for each virtual layer. This allows for estimation results that take into account both observational data and physical laws.

[0039] Step S14: Determine the error range of the model parameters based on the covariance of the estimated model parameters.

[0040] Specifically, the covariance is output during the optimization process, and a larger covariance indicates lower reliability of the corresponding model parameters. It should be noted that the model parameter error interval is determined based on the covariance. For example, the endpoints of the model parameter error interval are taken as the estimated model parameter value plus or minus two standard deviations. This error interval is used for subsequent construction of the boundary trajectory. This quantifies the uncertainty of the model parameters and provides a basis for determining the endpoint values ​​of the boundary trajectory.

[0041] In this embodiment, by discretizing the storage tank into multiple virtual layers along the height direction and establishing a physical property variable evolution model, the cumulative deviation between the predicted value and the online measurement point data within a preset time window is calculated. An optimization process aimed at minimizing the cumulative deviation is performed, and the model parameter error interval is determined based on the covariance of the model parameter estimates. This allows for obtaining physically reliable layered states and quantified parameter errors, thereby improving the completeness and accuracy of trajectory extrapolation.

[0042] Furthermore, based on the first or second embodiment, a third embodiment of the device parameter optimization method based on simulation analysis of the present invention is proposed. In this embodiment, the step of performing optimization processing with the objective of minimizing the accumulated deviation further includes: In the optimization process, physical inequality constraints are set, including: density monotonically does not decrease along the height direction, physical upper and lower bound constraints on moisture content, and material total quantity conservation constraints. In this embodiment, it should be noted that the monotonically non-decreasing density constraint along the height direction is used to prevent the non-physical conclusion that the density of the lower layer is less than that of the upper layer; the physical upper and lower bound constraints on moisture content are used to limit the moisture content of each virtual layer to within the range that is technologically possible; and the material total conservation constraint is used to limit the sum of the material masses of each virtual layer to always equal the total inventory in the tank. Through the above physical inequality constraints, the solution of the optimization process can always be within the physically feasible range, thereby improving the reliability of the estimation results.

[0043] When preset switching conditions are met, the moving time domain estimation algorithm is switched to the particle filter estimation algorithm. The preset switching conditions include: receiving a switching command, the observed residual suddenly exceeding a preset threshold, or the liquid level being lower than the sediment disturbance warning value.

[0044] In this embodiment, specifically, the observation residual is the deviation between the measured value of the tank bottom density gauge and the pump inlet density predicted by the stratified simulation model, as shown in the following formula:

[0045] in, The measured value of the density meter at the bottom of the tank at time t is the actual value. This represents the pump inlet density at time t predicted by the stratified simulation model. When |r(t)| is greater than three times the residual standard deviation and persists for a preset duration, it indicates a temporary mismatch in the stratified simulation model. A typical scenario is that low-level pumping and agitation of the bottom sediment in the tank leads to abnormal local density. In this case, the particle filter estimation algorithm is switched to. Specifically, the particle filter estimation algorithm involves substituting multiple candidate values ​​of the stratified state in the tank into the stratification evolution equation for derivation. The weights of each candidate value are updated based on the deviation between the predicted and measured values. The weights are then normalized and resampled, and the weighted candidate value set represents the posterior estimate of the stratified state in the tank. It should be noted that the particle filter estimation algorithm does not assume that the observation noise is Gaussian distributed, so it can still maintain tracking under conditions such as sudden jumps in state or abnormal observations due to sediment entrainment. Optionally, after the operating conditions return to normal, the moving-time domain estimation algorithm is reinitialized with the output state of the particle filter estimation algorithm, switching back to normal estimation. This allows for consideration of both normal drift and transient changes in operating conditions.

[0046] Furthermore, when a switching command is received, the pump inlet physical property data of the first storage tank and the pump inlet physical property data of the second storage tank are obtained. Based on the pump inlet physical property data of the first storage tank, the pump inlet physical property data of the second storage tank, pipeline parameters and switching sequence, the switching transition process is simulated to determine the transition curve. The transition curve includes: transition arrival lag time, transition duration, and physical property timing during the transition period; the switching instruction is to switch the first storage tank to the second storage tank.

[0047] In this embodiment, the tank switching is not an ideal instantaneous step. The materials in the first and second tanks form a transition front with piston flow and axial dispersion within the common pipeline and valve assembly. Specifically, using the pump inlet property data of the first tank as the initial distribution and the pump inlet property data of the second tank as the inlet boundary, a one-dimensional convection-dispersion equation is used to simulate the advancement process of the transition front along the pipeline, as shown below:

[0048] Where C is any physical property parameter, and u is the average flow velocity inside the pipe. The axial dispersion coefficient is used. It should be noted that the above equation has a step analytical solution, allowing direct lookup of the transition arrival lag time and the transition duration. Specifically, the transition arrival lag time is the ratio of pipeline length to the average flow velocity within the pipe, and the transition duration can be the difference between two points during the transition period when the physical property change reaches 10% and 90%. For example, when the pipeline length is 3 km and the flow rate is 800 t / h, the transition arrival lag time is on the order of minutes. Optionally, the axial dispersion coefficient is obtained by fitting historical switching events of the same pipeline. For the first use, an empirical value for the same pipe diameter is used, and the error range of the axial dispersion coefficient is output along with the transition curve.

[0049] In this embodiment, by simulating the switching process, a transition curve is determined, including the transition arrival lag time, transition duration, and physical property timing during the transition. This transforms the tank switching from an unpredictable instantaneous step into a precisely calculable transition ramp, providing an accurate timing basis for advance adjustment.

[0050] Furthermore, based on any of the above embodiments, a fourth embodiment of the device parameter optimization method based on simulation analysis of the present invention is proposed. In this embodiment, the boundary trajectory includes an anti-overheating boundary trajectory and an anti-flameout boundary trajectory. The step of generating the nominal trajectory and boundary trajectory based on the estimated physical property state values ​​of each virtual layer and the model parameter error interval includes: The nominal trajectory is obtained by taking the median estimated value of each model parameter and performing forward simulation. The anti-overheating boundary trajectory is obtained by forward simulation based on the combination of endpoint values ​​that maximizes the reactor temperature rise. The anti-flameout boundary trajectory is obtained by forward simulation based on the combination of endpoint values ​​that maximizes the reactor temperature drop.

[0051] In this embodiment, the estimated median value is the most reliable value of each model parameter within its error interval. Forward simulation is performed using the estimated median value of each model parameter. The resulting nominal trajectory represents the change in feed properties in the future time domain under normal expected operating conditions, serving as a benchmark scenario for calculating the optimization objective in subsequent optimization solutions. This provides an evaluation benchmark under normal circumstances for optimization solutions. Optionally, the endpoint value combination is taken from the endpoints of the model parameter error interval, and the anti-overheating boundary trajectory is a combination of the upper limit of feed calorific value, the upper limit of density, and the earliest arrival time of the switching transition, i.e., the case where the feed heating capacity is strongest and arrives fastest. Preferably, the construction rules for the boundary trajectory are as follows:

[0052]

[0053] Where Model represents forward simulation, H, ρ, w, and τ are the feed calorific value, density, moisture content, and transition arrival time, respectively. The term with Δ represents the endpoint offset of the error interval of the model parameters, and the endpoint sign is determined according to the risk direction. The anti-flameout boundary trajectory is a combination of the lower limit of the feed calorific value, the upper limit of the moisture content, and the earliest arrival time, i.e., the case of the worst feed quality and the fastest arrival, corresponding to the second equation in the formula. It should be noted that the three trajectories can be obtained with only three forward simulations, without sampling or training, and with low computational burden. Thus, the worst case can be encapsulated in a deterministic way.

[0054] Furthermore, based on any of the above embodiments, a fifth embodiment of the equipment parameter optimization method based on simulation analysis of the present invention is proposed. In this embodiment, the boundary trajectory includes an anti-overheating boundary trajectory and an anti-flameout boundary trajectory. The step of solving the rolling time-domain constraint optimization problem based on the boundary trajectory and the predicted response curve to determine the equipment parameter adjustment command includes: In the rolling time-domain constrained optimization problem, hard constraints are set, including: the reactor temperature does not exceed the upper limit under the anti-overheat boundary trajectory, and the reactor temperature does not exceed the lower limit under the anti-flameout boundary trajectory; The rolling time-domain constraint optimization problem is solved once in each control cycle, and the device parameter adjustment command for the first control cycle is issued and executed only.

[0055] In this embodiment, specifically, the decision variables of the rolling time-domain constrained optimization problem are a sequence of equipment parameters within the future control time domain, including: the preheater outlet temperature setpoint, feed pump flow rate, heat exchanger bypass opening, fuel gas or air distribution volume, and cooling medium flow rate. The future control time domain can be 30 minutes. It should be noted that the hard constraints are only set for the anti-overheating boundary trajectory and the anti-flameout boundary trajectory, meaning that only the reactor temperature is guaranteed not to exceed the limit under the most unfavorable trajectory, thus achieving a safety guarantee that the most unfavorable situation is still feasible. Specifically, the control cycle can be 1 minute. Each control cycle re-solves the rolling time-domain constrained optimization problem based on the latest state. Only the equipment parameter adjustment command for the first control cycle is issued to the DCS for execution, and the remaining sequences are discarded, forming a rolling time-domain mechanism. It should be noted that since the boundary trajectory is a forward-predicted trajectory, the equipment parameter adjustment command arrives at the reactor before the feed disturbance and is executed. This allows for tracking the latest operating conditions while avoiding over-adjustment.

[0056] Furthermore, based on any of the above embodiments, a sixth embodiment of the device parameter optimization method based on simulation analysis of the present invention is proposed. In this embodiment, the step of performing forward extrapolation based on the nominal trajectory and the boundary trajectory, combined with the current state of the reactor and the current parameters of the device, to obtain the predicted response curve includes: Obtain the current status of the reactor and the current parameters of the equipment; Based on the reactor mechanism model, the nominal trajectory and the boundary trajectory are respectively used as perturbation inputs to the reactor mechanism model, and forward inference is performed to obtain the predicted response curves corresponding to the nominal trajectory and the boundary trajectory.

[0057] In this embodiment, the current state of the reactor includes: reactor inlet temperature, outlet temperature, feed flow rate, and fuel gas flow rate; optionally, it may also include: reactor differential pressure and cooling medium flow rate. The current equipment parameters include: preheater outlet temperature setpoint, feed pump flow rate, heat exchanger bypass opening, and fuel gas or air distribution volume. It should be noted that the current reactor state and the current equipment parameters serve as initial conditions for forward extrapolation. This ensures that the starting point of the extrapolation is consistent with the actual operating conditions. Specifically, the reactor mechanism model can be a mechanism model based on reaction kinetics and energy balance; optionally, it can also be a reduced-order proxy model trained based on historical operating data to reduce online computation. Preferably, the pre-simulation model used for forward extrapolation includes a simplified energy balance model of the preheater, as shown below:

[0058] in, This refers to the outlet temperature of the preheating furnace. η is the inlet temperature of the preheating furnace, and η is the furnace efficiency. For fuel flow rate, Where is the calorific value of the fuel, and F is the feed flow rate. The specific heat of crude oil is used; optionally, the temperature response gain on the reactor side is obtained by linear regression from historical operating data. Specifically, the nominal trajectory and the boundary trajectory are respectively used as measurable disturbance feedforward inputs to the reactor mechanism model, forming a feedforward-feedback composite rolling optimization structure. It should be noted that the above-mentioned pre-simulation model is repeatedly called in each rolling cycle to calculate the consequences of different candidate equipment parameter sequences under normal and worst-case scenarios.

[0059] In this embodiment, by acquiring the current state of the reactor and the current parameters of the equipment, and based on the reactor mechanism model, the nominal trajectory and the boundary trajectory are used as disturbance inputs for forward extrapolation to obtain the predicted response curves corresponding to the nominal trajectory and the boundary trajectory. This enables the optimization solution to simultaneously evaluate the response under normal expectations and the worst case, thereby improving the reliability of equipment parameter adjustment commands.

[0060] Furthermore, this invention also proposes a device for optimizing equipment parameters based on simulation analysis, the device comprising: The warehousing simulation module is used to acquire warehousing test data and online measurement point data of the storage tank, establish a hierarchical simulation model based on the warehousing test data and the online measurement point data, and determine the estimated values ​​of physical property states and the error range of model parameters for each virtual layer. The analysis module is used to generate nominal trajectories and boundary trajectories based on the estimated physical property states of each virtual layer and the error range of model parameters. The nominal trajectory is the forward simulation trajectory when the model parameters take the median of the estimated values. The prediction module is used to perform forward extrapolation based on the nominal trajectory and the boundary trajectory, combined with the current state of the reactor and the current parameters of the equipment, to obtain the predicted response curve; The adjustment module is used to solve the rolling time-domain constraint optimization problem based on the boundary trajectory and the predicted response curve, and to determine the equipment parameter adjustment instructions.

[0061] Furthermore, this invention also proposes a device parameter optimization device based on simulation analysis. The device parameter optimization device based on simulation analysis includes: a memory, a processor, and a device parameter optimization program based on simulation analysis stored in the memory and executable on the processor. The device parameter optimization program based on simulation analysis is configured to implement the steps of the device parameter optimization method based on simulation analysis described above.

[0062] Furthermore, embodiments of the present invention also propose a storage medium storing a device parameter optimization program based on simulation analysis, wherein when the device parameter optimization program based on simulation analysis is executed by a processor, it implements the steps of the device parameter optimization method based on simulation analysis described above.

[0063] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.

[0064] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0065] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present invention.

[0066] The above are merely preferred embodiments of the present invention and do not limit the scope of the patent. Any equivalent structural or procedural transformations made based on the description and drawings of the present invention, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of the present invention.

Claims

1. A method for optimizing equipment parameters based on simulation analysis, characterized in that, The equipment parameter optimization method based on simulation analysis includes the following steps: Obtain the inbound test data and online measurement point data of the storage tank, establish a hierarchical simulation model based on the inbound test data and the online measurement point data, and determine the estimated values ​​of physical property states and the error range of model parameters for each virtual layer; Based on the estimated physical state values ​​of each virtual layer and the error range of model parameters, a nominal trajectory and a boundary trajectory are generated, wherein the nominal trajectory is the forward simulation trajectory when the model parameters take the estimated median value; Based on the nominal trajectory and the boundary trajectory, and combined with the current state of the reactor and the current parameters of the equipment, a forward extrapolation is performed to obtain the predicted response curve; The rolling time-domain constraint optimization problem is solved based on the boundary trajectory and the predicted response curve to determine the equipment parameter adjustment instructions; The steps of establishing a hierarchical simulation model based on the in-warehouse test data and the online measurement point data, and determining the estimated physical property state values ​​and model parameter error ranges for each virtual layer, include: The storage tank is discretized into multiple virtual layers along the height direction, and an evolution model of the physical property variables for each virtual layer is established. The physical property variables include density, moisture content and calorific value, and the inbound test data are used as the initial conditions for the physical property variables. The predicted value of the hierarchical simulation model is determined based on the physical property variables, online measurement point data within a preset time window before the current moment is obtained, and the cumulative deviation between the predicted value and the online measurement point data is calculated. An optimization process aimed at minimizing the accumulated deviation is performed to obtain the estimated physical state values ​​and model parameter values ​​for each virtual layer; The error interval of the model parameters is determined based on the covariance of the estimated model parameters.

2. The equipment parameter optimization method based on simulation analysis as described in claim 1, characterized in that, The step of performing optimization processing aimed at minimizing the accumulated deviation further includes: In the optimization process, physical inequality constraints are set, including: density monotonically does not decrease along the height direction, physical upper and lower bound constraints on moisture content, and material total quantity conservation constraints. When preset switching conditions are met, the moving time domain estimation algorithm will be switched to the particle filter estimation algorithm. The preset switching conditions include: receiving a switching command, the observed residual exceeding a preset threshold, or the liquid level falling below the sediment disturbance warning value.

3. The equipment parameter optimization method based on simulation analysis as described in claim 2, characterized in that, The equipment parameter optimization method also includes: When a switching command is received, the pump inlet physical property data of the first storage tank and the pump inlet physical property data of the second storage tank are obtained. Based on the pump inlet physical property data of the first storage tank, the pump inlet physical property data of the second storage tank, pipeline parameters and switching sequence, the switching transition process is simulated to determine the transition curve. The transition curve includes: transition arrival lag time, transition duration, and physical property timing during the transition period; the switching instruction is to switch the first storage tank to the second storage tank.

4. The equipment parameter optimization method based on simulation analysis as described in claim 1, characterized in that, The boundary trajectory includes an anti-overheating boundary trajectory and an anti-flameout boundary trajectory. The step of generating the nominal trajectory and boundary trajectory based on the estimated physical property state values ​​and model parameter error intervals of each virtual layer includes: The nominal trajectory is obtained by taking the median estimated value of each model parameter and performing forward simulation. The anti-overheating boundary trajectory is obtained by forward simulation based on the combination of endpoint values ​​that maximizes the reactor temperature rise. The anti-flameout boundary trajectory is obtained by forward simulation based on the combination of endpoint values ​​that maximizes the reactor temperature drop.

5. The equipment parameter optimization method based on simulation analysis as described in claim 1, characterized in that, The boundary trajectories include anti-overheating boundary trajectories and anti-flameout boundary trajectories. The step of solving the rolling time-domain constraint optimization problem based on the boundary trajectories and the predicted response curve to determine the equipment parameter adjustment instructions includes: In the rolling time-domain constrained optimization problem, hard constraints are set, including: the reactor temperature does not exceed the upper limit under the anti-overheat boundary trajectory, and the reactor temperature does not exceed the lower limit under the anti-flameout boundary trajectory; The rolling time-domain constraint optimization problem is solved once in each control cycle, and the device parameter adjustment command for the first control cycle is issued and executed only.

6. The equipment parameter optimization method based on simulation analysis as described in any one of claims 1 to 5, characterized in that, The step of performing forward extrapolation based on the nominal trajectory and the boundary trajectory, combined with the current state of the reactor and the current parameters of the equipment, to obtain the predicted response curve includes: Obtain the current status of the reactor and the current parameters of the equipment; Based on the reactor mechanism model, the nominal trajectory and the boundary trajectory are respectively used as perturbation inputs to the reactor mechanism model, and forward inference is performed to obtain the predicted response curves corresponding to the nominal trajectory and the boundary trajectory.

7. A device for optimizing equipment parameters based on simulation analysis, characterized in that, The device parameter optimization device based on simulation analysis includes: The warehousing simulation module is used to acquire warehousing test data and online measurement point data of the storage tank, establish a hierarchical simulation model based on the warehousing test data and the online measurement point data, and determine the estimated values ​​of physical property states and the error range of model parameters for each virtual layer. The analysis module is used to generate nominal trajectories and boundary trajectories based on the estimated physical state values ​​of each virtual layer and the error range of model parameters. The nominal trajectory is the forward simulation trajectory when the model parameters take the median of the estimated values. The prediction module is used to perform forward extrapolation based on the nominal trajectory and the boundary trajectory, combined with the current state of the reactor and the current parameters of the equipment, to obtain the predicted response curve; The adjustment module is used to solve the rolling time-domain constraint optimization problem based on the boundary trajectory and the predicted response curve, and determine the equipment parameter adjustment instructions; The steps of establishing a hierarchical simulation model based on the in-warehouse test data and the online measurement point data, and determining the estimated physical property state values ​​and model parameter error ranges for each virtual layer, include: The storage tank is discretized into multiple virtual layers along the height direction, and an evolution model of the physical property variables for each virtual layer is established. The physical property variables include density, moisture content and calorific value, and the inbound test data are used as the initial conditions for the physical property variables. The predicted value of the hierarchical simulation model is determined based on the physical property variables, online measurement point data within a preset time window before the current moment is obtained, and the cumulative deviation between the predicted value and the online measurement point data is calculated. An optimization process aimed at minimizing the accumulated deviation is performed to obtain the estimated physical state values ​​and model parameter values ​​for each virtual layer; The error interval of the model parameters is determined based on the covariance of the estimated model parameters.

8. A device for optimizing equipment parameters based on simulation analysis, characterized in that, The simulation-based device parameter optimization device includes: a memory, a processor, and a simulation-based device parameter optimization program stored in the memory and executable on the processor. The simulation-based device parameter optimization program is configured to implement the steps of the simulation-based device parameter optimization method as described in any one of claims 1 to 6.

9. A storage medium, characterized in that, The storage medium stores a device parameter optimization program based on simulation analysis, which, when executed by a processor, implements the steps of the device parameter optimization method based on simulation analysis as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Digital native model energy prediction method and system of physically-driven computing power center

    CN121503302A

  • Method, device and equipment for determining thermal stress parameters of molten salt storage tank

    CN121562410A