Multi-batch liquid long-distance long-distance pipeline scheduling method and device and storage medium
By using a pressure drop estimator and a neural network to predict the pipeline pressure drop in a long-distance liquid fuel pipeline system, and combining the particle swarm algorithm and Levenberg-Marquardt algorithm to train the neural network, establish an optimal dispatch model, and solve the problem of accuracy in the existing technology. Low and potential risk issues, achieving more efficient energy saving and safe operation.
Patent Information
- Application Number
- CN202410949671.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-07-16
AI Technical Summary
The existing long-distance liquid fuel pipeline system has low accuracy and potential risks in improving energy-saving potential. This is mainly due to the difficulty in quantifying the pressure drop parameter and the neglect of the outbound pressure reducing valve, resulting in low model accuracy.
Using a multi-batch liquid long-distance pipeline scheduling method, by obtaining the technical parameters and real-time operating status of pipeline system components, the pressure drop estimator and neural network are used to predict the pipeline pressure drop, and combined with particle swarm algorithm and Levenberg-Marquardt algorithm training Neural network is used to establish an optimal dispatch model to determine the operating parameters of the main pump and the outbound pressure reducing valve to ensure pipeline pressure safety constraints and minimize energy consumption.
It improves the energy-saving effect and operating accuracy of the pipeline system, reduces potential risks, enhances system safety and performance, and achieves more accurate pressure drop estimation and energy efficiency optimization.
Smart Images

Figure CN118761183A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field related to energy optimization, and more specifically, relates to a method, equipment and storage medium for scheduling multiple batches of liquid long-distance pipelines. Background Art
[0002] The cross-regional transmission and transportation of liquid fuels mainly relies on backbone infrastructure, namely the long-distance pipeline system. This system consumes a huge amount of global electricity every year. Therefore, how to improve the energy-saving potential of the system is one of the issues that need to be explored at present.
[0003] Digitalization is a key enabler to achieve this goal, using data as a resource to make more economical decisions. In order to build a digital liquid fuel long-distance pipeline system and achieve energy conservation and consumption reduction, it is first necessary to deploy measurement equipment (e.g., advanced meters), communication equipment (e.g., fifth-generation (5G) communication technology and optical fiber), and computing equipment (e.g., databases and servers) at the industrial site, and then establish a model that describes the system's operating characteristics and its actual factors. Due to the special elevation points caused by the wide distribution of the system, and the existence of difficult-to-quantify pressure drop parameters due to the unknown mechanism of action of the drag reducer, in addition, the outbound pressure reducing valve, as one of the key components of the system, is often overlooked. If these factors are not taken into account, the model will be less accurate, have a significant impact on actual field use, and lead to potential risks. Summary of the invention
[0004] In response to the above defects or improvement needs of the prior art, the present invention provides a method, equipment and storage medium for scheduling multi-batch liquid long-distance pipeline transportation, the purpose of which is to improve the accuracy of the control model to enhance the energy saving of the pipeline system while reducing potential risks.
[0005] To achieve the above object, according to one aspect of the present invention, a method for scheduling a multi-batch liquid long-distance pipeline is provided, which comprises:
[0006] Obtain technical parameters of each component in the pipeline system and collect real-time operating status of each component;
[0007] Determine the time step t to be optimized, whose starting time is End time is At a small time step t 1 ' to t 1 ′+1, At a small time step t 2 ' to t 2 ′+1, the pressure drop estimator is used to predict the small time step t 1 ′、t 1 ′+1, t2 ′、t 2 '+1 pipeline pressure drop The length of the time step t to be optimized is greater than the length of the micro time step. Interpolate to get the starting time Pipeline pressure drop right Interpolate to get the end time Pipeline pressure drop Subscript l is the pipeline index; the pressure drop estimator is obtained by training a neural network with the pipeline flow value time series from the previous d-1 to the current micro time step, the ratio value time series of different liquids in the pipeline from the previous d-1 to the current micro time step, and the pipeline pressure drop time series of the previous d-1 micro time steps as input, and the pipeline pressure drop of the current micro time step as output, and d is a positive integer greater than 1;
[0008] Establish an optimization scheduling model, including an objective function and constraints, wherein the objective function is to minimize the total power consumption of all main pumps in the system, and the constraints include: pipeline pressure safety constraints, main pump safety operation constraints, outbound pressure reducing valve safety operation constraints, and component coupling relationship constraints; wherein the pipeline pressure safety constraints include pressure safety interval constraints at both ends of each pipeline at the start and end of time step t, and the pressure difference between the two ends of the pipeline at the same time is equal to the pipeline pressure drop calculated based on the pressure drop estimator;
[0009] The dispatching model is solved to obtain a control strategy, including the operating parameters of each main delivery pump and the outlet pressure reducing valve in the pipeline system.
[0010] In a specific embodiment, the neural network is a nonlinear autoregressive exogenous neural network NARX, and the method also includes combining a particle swarm algorithm and a Levenberg-Marquardt algorithm to perform back propagation training on the neural network, wherein each particle is assigned 5 dimensions, which are divided into 5 adjustable hyperparameters corresponding to the number of hidden layers, the number of neurons in the hidden layer, the number of time lags, the number of complete training groups of the back propagation data set, and the initial learning rate.
[0011] In a specific embodiment, in the pipeline safety constraint, the pressure safety interval constraint at both ends of the pipeline at the start and end times of time step t is expressed as:
[0012]
[0013] In the formula, Respectively represent the pressure at the beginning and end of the pipeline at the beginning of time step t; Respectively represent the pressure at the beginning and end of the pipeline at the end of time step t; Indicates the pipeline pressure drop at the start and end of time step t; They represent the lower and upper safety limits of the pressure at the beginning of the pipeline respectively; They respectively represent the safe lower and upper limits of the pressure at the tail end of the pipeline.
[0014] In a specific embodiment, the pipeline safety constraint also includes a pressure safety interval constraint at a key position along the pipeline, wherein the key position includes a maximum point and a minimum point in the pipeline. The pressure safety interval constraint at the key position is expressed as:
[0015]
[0016] In the formula, subscript n l represents the key position index along the pipeline l, They represent the pressure at the key positions along the pipeline at the start and end of time step t, respectively. They represent the safe upper and lower limits of pressure at key locations along the pipeline. represents the average density of the liquid in the pipe, g represents the acceleration due to gravity, L l , They represent the length, inlet elevation, and outlet elevation of the pipeline in the system respectively. They respectively represent the mileage and elevation of key locations along the pipeline in the system.
[0017] In a specific embodiment, the main pump safety operation constraints include:
[0018] The pressure safety interval constraint at the main pump outlet at the start and end of time step t is expressed as:
[0019]
[0020] In the formula, subscript k l Indicates the main pump index in the station. They represent the inlet and outlet pressures of the main delivery pump at the start of time step t respectively; Indicates the inlet and outlet pressures of the main delivery pump at the end of time step t; represents the pressure provided by the main delivery pump at time step t; Indicates the main pump pressure safety alarm value;
[0021] The head safety interval constraint of the main delivery pump is expressed as:
[0022]
[0023] In the formula, represents the main pump head at time step t, Indicates the start and stop status of the main pump at time step t. 1 indicates start and 0 indicates stop. M is a constant. V kl Represents the pump frequency modulation indicator variable, 1 represents variable frequency mode, 0 represents base frequency mode, Indicates the square value of the variable frequency speed of the main transmission pump at time step t, Indicates the pump base frequency speed, represents the base frequency pump head of the main delivery pump at time step t, Indicates the minimum and maximum pump flow of the main delivery pump;
[0024] The speed safety range constraint of the main pump is expressed as:
[0025]
[0026] In the formula, the set K l It is the main pump assembly of the pump station. It is a collection of main pumps that share a common frequency converter in the pump station. Respectively represent the minimum and maximum speeds of the variable frequency main pump.
[0027] In a specific embodiment, when there are two main delivery pumps sharing a frequency converter, the main delivery pump safety operation constraint also includes a shared frequency converter operation constraint, which is expressed as:
[0028]
[0029] In the formula, the subscript Indicates the index of the main pump that shares the inverter. Indicates the working mode of the main pump at time step t. 0 means enabling the variable frequency mode, and 1 means enabling the base frequency mode.
[0030] In a specific embodiment, the outbound pressure reducing valve safety operation constraints include:
[0031]
[0032]
[0033] In the formula, C t,l represents the flow coefficient of the outgoing pressure reducing valve at time step t, represents the pressure difference between the inlet and outlet of the pressure reducing valve at time step t, ρ t,i represents the density of the pumped liquid at time step t, g represents the acceleration due to gravity, is the flow coefficient and valve opening characteristic parameter of the outlet pressure reducing valve, θ t,l is the opening of the outlet pressure reducing valve at time step t, Respectively represent the minimum and maximum limits of the pressure difference between the inlet and outlet of the pressure reducing valve.
[0034] In a specific embodiment, the component coupling relationship constraints include:
[0035] The total pressure provided by the pipeline station is equal to the sum of the pressures provided by all the main pumps in the station minus the pressure difference between the inlet and outlet of the outlet pressure reducing valve;
[0036] The pressure at the beginning of the pipeline at the start of time step t is equal to the sum of the total pressure provided by the pipeline station and the pressure at the end of the previous adjacent pipeline at the start of time step t;
[0037] The pressure at the beginning of the pipeline at the end of time step t is equal to the sum of the total pressure provided by the pipeline station and the pressure at the end of the previous adjacent pipeline at the end of time step t;
[0038] The inlet pressure of the first main pump of the pipeline at the start of time step t is equal to the pressure at the end of the previous adjacent pipeline at the start of time step t;
[0039] The inlet pressure of the first main pump of the pipeline at the end of time step t is equal to the pressure at the end of the previous adjacent pipeline at the end of time step t;
[0040] The outlet pressure of the last main delivery pump of the pipeline at the start of time step t is equal to the sum of the pressure at the beginning of the pipeline at the start of time step t and the pressure difference between the inlet and outlet of the outlet pressure reducing valve;
[0041] The outlet pressure of the last main delivery pump of the pipeline at the end of time step t is equal to the sum of the pressure at the beginning of the pipeline at the end of time step t and the pressure difference between the inlet and outlet of the outlet pressure reducing valve.
[0042] According to another aspect of the present invention, there is also provided an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any of the above methods when executing the computer program.
[0043] According to another aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above methods are implemented.
[0044] In general, compared with the prior art, the above technical solutions conceived by the present invention mainly have the following beneficial effects:
[0045] 1. The present invention proposes a method for scheduling a multi-batch liquid long-distance pipeline, which combines a pressure drop estimator with a scheduling model, wherein the pressure drop estimator is obtained by training a neural network with a historical time series of pipeline flow values, a historical time series of proportions of different liquids in the pipeline, and a historical time series of pipeline pressure drops as inputs, and with the current pipeline pressure drop as output. The method can more accurately predict the pressure drop of the pipeline at a certain moment in the future. A pipeline pressure safety constraint is set in the scheduling model, and the trained pressure drop estimator is used to predict the pressure drop of the pipeline and then input into the scheduling model. The pressure drop estimator and the scheduling model can be integrated, making the scheduling model more accurate, ensuring the reliability of scheduling, and reducing potential risks while improving energy saving of the pipeline system.
[0046] 2. In an optional embodiment, the particle swarm algorithm and the Levenberg-Marquardt algorithm are combined to perform back-propagation training on NARX to obtain a pressure drop estimator. NARX can further improve the accuracy of pressure drop estimation and enhance the performance and reliability of the system. The particle swarm algorithm and the Levenberg-Marquardt algorithm can increase the training speed and quickly determine a better parameter combination.
[0047] 3. In an optional embodiment, the constraint condition adds pressure constraints at key locations of the pipeline to further ensure the safety of the system.
[0048] 4. In an optional embodiment, event-triggered scheduling can adjust the operating strategy based on real-time data and prediction models to optimize the energy efficiency of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 It is a partial structural schematic diagram of a multi-batch liquid long-distance pipeline system in one embodiment of the present invention;
[0050] Figure 2 is a flowchart of the steps of a method for dispatching multiple batches of liquids over long distances through a pipeline in one embodiment of the present invention;
[0051] Figure 3 It is a schematic diagram of the structure of NARX;
[0052] Figure 4 is a flow chart of constructing a pressure drop estimator in one embodiment of the present invention;
[0053] Figure 5 is a comparison diagram of the effects of a pressure drop estimator in one embodiment of the present invention;
[0054] Figure 6 is a pressure distribution diagram along the pipeline system in one embodiment of the present invention;
[0055] Figure 71 is a pressure distribution diagram of different positions of a pipeline system in an embodiment of the present invention, which, from top to bottom, are respectively the pressure distribution diagram of pipeline 1, the pressure distribution diagram of pipeline 3, the pressure distribution diagram of pipeline 6, the pressure distribution diagram of pipeline 10, the pressure distribution diagram of main delivery pump 1, and the pressure distribution diagram of main delivery pump 2. DETAILED DESCRIPTION
[0056] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0057] like Figure 1 The figure shows a partial structural diagram of a multi-batch liquid long-distance pipeline system in one embodiment of the present invention. The pipeline system usually has multiple pipelines connected in sequence, each pipeline has a pipeline start and a pipeline tail, and each pipeline corresponds to a transportation station. Before a certain section of liquid enters the pipeline start, it first passes through the transportation station. There are multiple main pumps inside the station, and the station outlet has an outlet pressure reducing valve. When the liquid flows through the station, a part of the liquid is first downloaded to the storage tank in the station (except for the first station and pure pump station), and the remaining liquid first increases the pressure through the main pump, and then reduces the pressure through the pressure reducing valve, and then flows into the pipeline start. After long-distance transmission, it flows from the pipeline tail into the station of the next pipeline, and then flows into the next pipeline after the next station. Different liquids are sent to the pipeline system in different batches, and the transmission of different liquids is achieved through the same pipeline.
[0058] like Figure 2 The flowchart is a step flow chart of a method for scheduling long-distance pipeline transportation of multiple batches of liquids in one embodiment of the present invention, including steps S1 to S4, each of which is introduced below.
[0059] Step S1: Obtain technical parameters of each component in the pipeline system and collect the real-time operating status of each component.
[0060] Specifically, a digital system for long-distance pipeline transportation of multiple batches of liquid fuel can be built to collect the technical parameters of each component within the system and monitor the real-time operating status of each component within the system.
[0061] Specifically, the real-time operating status includes:
[0062] 1) Real-time monitoring of the pressure values at the inlet and outlet of each pipeline in the system, the inlet and outlet observation points of each main pump, and the inlet and outlet observation points of each outlet pressure reducing valve;
[0063] 2) Real-time monitoring of the volume flow value of each download station in the system and the volume flow value of the first delivery station;
[0064] 3) Real-time monitoring of the density of liquid fuel downloaded at each downloading station in the system and the density of liquid fuel injected at the first delivery station;
[0065] 4) Real-time monitoring of the operating power value and inverter frequency value of each main pump in the system;
[0066] 5) Real-time monitoring of the valve opening value of each outlet pressure reducing valve in the system;
[0067] 6) Timestamps of all real-time data sampling points.
[0068] Specifically, the technical parameters of each component in the system that need to be collected include:
[0069] 1) The length, inner diameter, inlet and outlet elevations, and upper and lower safety limits of inlet and outlet pressures of each pipeline in the system, and the mileage, elevation, and upper and lower safety limits of pressures at key locations along the pipeline;
[0070] 2) The flow-lift characteristic parameters, flow-efficiency characteristic parameters, inverter parameters, inlet and outlet pressure safety alarm values, and maintenance status of each main pump in the system;
[0071] 3) The flow coefficient, valve opening characteristic parameters, and allowable range of inlet and outlet pressure difference of each outlet pressure reducing valve in the system.
[0072] Step S2: Determine the time step t to be optimized, whose starting time is End time is At a small time step t 1 ' to t 1 ′+1, At a small time step t 2 ' to t 2 ′+1, the pressure drop estimator is used to predict the small time step t 1 ′、t 1 ′+1, t 2 ′、t 2 '+1 pipeline pressure drop The length of the time step t to be optimized is greater than the length of the micro time step. Interpolate to get the starting time Pipeline pressure drop right The starting time for interpolation Pipeline pressure drop right Interpolate to get the end time Pipeline pressure drop Subscript l is the pipeline index.
[0073] Among them, the pressure drop estimator is obtained by training a neural network with the pipeline flow value time series from the previous d-1 to the current micro time step, the ratio value time series of different liquids in the pipeline from the previous d-1 to the current micro time step, and the pipeline pressure drop time series of the previous d-1 micro time steps as input, and the pipeline pressure drop of the current micro time step as output, and d is a positive integer greater than 1. Therefore, before calling the pressure drop estimator, it is necessary to construct the pressure drop estimator by training the neural network so that the neural network can predict the pipeline pressure drop at any time in the future based on the input time series. It can be understood that different pipelines can train their own pressure drop estimators for data prediction.
[0074] Specifically, the input and output of the pressure drop estimator can be expressed as the following mapping relationship:
[0075] y t' =f{x t' ,x t'-1 ,…,x t'-d ,y t'-1 ,…,y t'-d}
[0076] The subscript t′ represents the sampling time of the real-time operation status monitoring system. Its length (usually 5 minutes) is determined by the inherent data refresh rate. It is different from the time step t in the scheduling model. t′ and t′ are the input and output of the network, respectively representing the pipeline flow value time series, the ratio value time series of different types of liquid fuels in the pipeline, and the pipeline pressure drop time series. d is a constant, corresponding to the lag relationship obtained by time series analysis. f is the neural network mapping function, which is a strong nonlinear function.
[0077] In a specific embodiment, the nonlinear autoregressive exogenous neural network NARX can be trained to obtain a pressure drop estimator, such as Figure 3 The figure shows the structure of NARX, which includes input layer, hidden layer and output layer, with their own network parameters and activation functions. When training, the particle swarm algorithm and Levenberg-Marquardt algorithm can be combined to perform back propagation training on the neural network, where each particle is given 5 dimensions, which are divided into 5 adjustable hyperparameters corresponding to the number of hidden layers, the number of neurons in the hidden layer, the number of time lags, the number of complete training groups of the back propagation data set, and the initial learning rate.
[0078] like Figure 4 Shown is a flow chart of constructing a pressure drop estimator in one embodiment of the present invention.
[0079] Specifically, before training the model, it is crucial to preprocess the historical pipeline data collected at the production site. Since the data is directly extracted from the digital system of multiple batches of liquid fuel long-distance pipelines, there may be outliers that will affect the performance of the pressure drop estimator. The data preprocessing method includes data cleaning and data normalization. In order to remove abnormal data in the data set, the present invention combines violin plots and box plots, wherein the violin plot is used to observe the data distribution and the box plot is used to observe the outliers. The two are combined to determine which values are outliers and should be refilled. Although the box plot can reflect the range of most data points, not all outliers can be refilled because there are some special operating conditions. In this case, the violin plot can be used as a reference, and the distribution information therein can tell us whether the outliers in the box plot should be refilled (that is, if the probability density of the outliers cannot be ignored, they should be taken into account). After cleaning the original data, the data is usually divided into three parts: training data, verification data, and test data. The ratio of each data set depends on the scale of the original data set. The present invention uses a ratio of 7:1.5:1.5 to allocate to training data, verification data, and test data. When there is a large difference in the range of different features, data normalization techniques are needed:
[0080]
[0081] Among them, x normalized is the new data after normalization, and x is the data before normalization. is the mean value of the data before normalization, and σ is the standard deviation of the data before normalization.
[0082] The present invention normalizes the two types of input features of the three data sets by the mean and variance of the training data set.
[0083] After data preprocessing, back propagation training is performed in combination with particle swarm algorithm and Levenberg-Marquardt algorithm. Since there are multiple hyperparameters that need to be adjusted, the present invention combines particle swarm algorithm and Levenberg-Marquardt algorithm to train neural network and search for better parameter combinations at a faster speed. When initializing the particle swarm, each particle is assigned 5 dimensions, which correspond to 5 adjustable hyperparameters, namely the number of hidden layers, the number of neurons in the hidden layer, the number of time lags, the number of complete training groups of the back propagation data set, and the initial learning rate.
[0084] The back-propagation training process includes:
[0085] (1) Calculate the output data estimate using the input data and the unupdated neural network parameters;
[0086] (2) Calculate the error between the estimated value of the output data and the true value. If the difference between the errors of two consecutive iterations is very small, stop training.
[0087] (3) Calculate the gradient of each neuron connection weight;
[0088] (4) Update the parameters according to the gradient descent rule to reduce the error and repeat (1).
[0089] After the neural network training is completed, the test data is used to evaluate the performance of the training network. The present invention uses the mean square error (MSE) for evaluation:
[0090]
[0091] After obtaining the pressure drop estimator, the pressure drop of the corresponding pipeline at different times in the future can be predicted. The predicted pressure drop can be used to estimate the pressure drop of the corresponding pipeline at the start and end times of time step t.
[0092] Specifically, after determining the time step t to be optimized, the length of the time step to be optimized can be 0.5h or 1h, etc., which can be set as needed. According to the start and end time of the time step t, determine which small time step the pressure drop estimator needs to predict. If At a small time step t 1 ' to t 1 ′+1, At a small time step t 1 ' to t 1 ′+1, it is necessary to predict the small time step t separately. 1 ′、t 1 ′+1, t 2 ′、t 2 '+1 pipeline pressure drop Again The starting time for interpolation Pipeline pressure drop right Interpolate to get the end time Pipeline pressure drop Specifically, it can be expressed as:
[0093]
[0094] Among them, interp() is the interpolation function, and are small time steps t 1 ′ and t 1 The starting time of ′+1, and are small time steps t 2 ′ and t 2 The starting time of ′+1.
[0095] Step S3: Establish an optimization scheduling model, including an objective function and constraints. The objective function is to minimize the total power consumption of all main pumps in the system. The constraints include: pipeline pressure safety constraints, main pump safety operation constraints, outlet pressure reducing valve safety operation constraints and component coupling relationship constraints; among them, the pipeline pressure safety constraints include pressure safety interval constraints at both ends of each pipeline at the start and end times of time step t. The pressure difference at both ends of the pipeline at the same time is equal to the pipeline pressure drop calculated based on the pressure drop estimator.
[0096] Among them, according to the structural relationship of the pipeline system and the construction constraints of the core components, each constraint is introduced below.
[0097] 1) Pipeline pressure safety constraints
[0098] The pipeline provides a flow channel for the liquid. In the process of liquid flow, in order to overcome the viscous friction resistance, a lot of energy is consumed to push the liquid. Therefore, special attention should be paid to the pressure of the nodes along the pipeline to ensure the continuity and safety of the liquid flow in the pipeline. Therefore, the pipeline pressure safety constraint includes constraints on the pressure safety range of each relevant position of the pipeline.
[0099] In the present invention, the pipeline pressure safety constraint specifically includes the following: and end time The pressure safety interval constraint is , where the pressure difference between the two ends of the pipeline at the same time is equal to the pipeline pressure drop calculated based on the pressure drop estimator;
[0100] At the beginning and end of each pipeline at time step t and end time The pressure safety interval constraint can be expressed as follows:
[0101]
[0102] In the formula, Respectively represent the pressure at the beginning and end of the pipeline at the beginning of time step t; Respectively represent the pressure at the beginning and end of the pipeline at the end of time step t; Indicates the pipeline pressure drop at the start and end of time step t; They represent the lower and upper safety limits of the pressure at the beginning of the pipeline respectively; They respectively represent the safe lower and upper limits of the pressure at the tail end of the pipeline.
[0103] In some embodiments, considering that multiple batches of liquid fuel long-distance pipeline systems are widely distributed across mountains, plateaus, hills and basins, which leads to significant changes in altitude along the pipeline route, the static pressure caused by gravitational potential energy will greatly affect the pressure distribution of the pipeline. In addition, the special topography and environment will also affect the design and operation parameters of the pipeline itself, such as the pressure safety limit. Therefore, in addition to the stations, the key positions along the pipeline are also checked and constrained in the model, that is, the pipeline pressure safety constraints can also include the pressure safety interval constraints at the key positions along the pipeline, which can be specifically expressed as follows:
[0104]
[0105] In the formula, subscript n l represents the key position index along the pipeline l, They represent the pressure at the key positions along the pipeline at the start and end of time step t, respectively. They represent the safe upper and lower limits of pressure at key locations along the pipeline. represents the average density of the liquid in the pipe, g represents the acceleration due to gravity, L l , They represent the length, inlet elevation, and outlet elevation of the pipeline in the system respectively. They respectively represent the mileage (the distance between the key location and the head end of the pipeline) and elevation of the key locations along the pipeline in the system.
[0106] 2) Main pump safe operation constraints
[0107] The main pump drives the liquid in the pipeline to flow and consumes electrical energy by providing pressure. The pressure is related to the density of the pumped liquid, gravity acceleration and the head of the main pump. The power consumption is related to the pressure, pump flow and working time:
[0108]
[0109] Among them, k l Indicates the main pump index in the station. represents the pressure (MPa) provided by the main delivery pump at time step t, the subscript i represents the station index, ρ t,i represents the density of the liquid passing through the pump at time step t (kg / m 3 ), represents the head of the main pump after frequency modulation at time step t (m), represents the power consumption of the main delivery pump at time step t (kWh), represents the output power of the main transmission pump at time step t (kW), represents the flow rate through the pump in time step t (m 3 / h), represents the length of time step t (h), Indicates the working efficiency of the main delivery pump at time step t (%).
[0110] The main pump safety operation constraints include the main pump outlet pressure safety range constraints at the start and end times of time step t, the main pump head safety range constraints, and the main pump speed safety range constraints.
[0111] 2.1) Pressure safety interval constraints at the main pump outlet at the start and end of time step t
[0112] The outlet pressure of each main pump is related to the specific conditions of the site (such as altitude, pipeline diameter, etc.), and is affected by the set safety alarm value accordingly, which can be expressed as:
[0113]
[0114] In the formula, subscript k l Indicates the main pump index in the station. They represent the inlet and outlet pressures of the main delivery pump at the start of time step t respectively; Indicates the inlet and outlet pressures of the main delivery pump at the end of time step t; represents the pressure provided by the main delivery pump at time step t; Indicates the main pump pressure safety alarm value.
[0115] 2.2) Main pump head safety range constraints
[0116] The head and efficiency of the base frequency pump are quadratic and cubic polynomial relationships with the flow rate through the pump respectively:
[0117]
[0118] in, represents the base frequency pump head of the main delivery pump at time step t, Indicates the flow-lift characteristic parameters of the main delivery pump. Indicates the flow-efficiency characteristic parameters of the main delivery pump, represents the flow rate through the pump in time step t (m 3 / h), the above parameters can be obtained directly.
[0119] Since liquid delivery plans are usually made independently of system energy management, the flow range of the main delivery pump is sometimes ignored, that is, the flow may exceed the over-pump flow limit of the main delivery pump. Therefore, the energy management party needs to automatically identify these situations and report them to the planner and dispatcher for further adjustment, that is, control the start and stop of the main delivery pump, thereby increasing the decision-making volume To decide the start and stop of each main pump, and set the following constraints:
[0120]
[0121] in, represents the start and stop state of the main delivery pump at time step t, M is a sufficiently large constant, Respectively represent the minimum and maximum pump flow limits after the main pump is started (m 3 / h).
[0122] In order to save energy in industrial sites, manufacturers will equip the main delivery pump with a frequency converter to continuously adjust the pump speed through frequency modulation. The head of the variable frequency pump is limited by the start and stop status of the pump, the frequency modulation indicator variable, the head of the base frequency pump and the square value of the frequency modulation ratio, which can be specifically expressed as:
[0123]
[0124]
[0125] In the formula, represents the main pump head at time step t, Indicates the start and stop status of the main pump at time step t. 1 indicates start and 0 indicates stop. M is a sufficiently large constant. Represents the pump frequency modulation indicator variable, 1 represents variable frequency mode, 0 represents base frequency mode, Indicates the square value of the variable frequency speed of the main transmission pump at time step t, Indicates the pump base frequency speed, represents the base frequency pump head of the main delivery pump at time step t, Indicates the minimum and maximum flow rate of the main pump.
[0126] 2.3) Main pump speed safety range constraints
[0127] The variable frequency speed of the main delivery pump is related to the start and stop status of the pump, the frequency modulation indicator variable, and the maximum and minimum speeds of the pump, which can be specifically expressed as:
[0128]
[0129] In the formula, the set K l It is the main pump assembly of the pump station. It is a collection of main pumps that share a common frequency converter in the pump station. Respectively represent the minimum and maximum speeds of the variable frequency main pump.
[0130] In industrial sites, for economic reasons, a pair of main pumps that share a frequency converter often appear. This means that when one pump is in variable frequency mode, the other pump is either stopped or enabled in base frequency mode. At this time, you can increase:
[0131] 2.4) Common inverter operation constraints
[0132] Specifically, it can be expressed as:
[0133]
[0134]
[0135] In the formula, the subscript Indicates the index of the main pump that shares the inverter. Indicates the working mode of the main pump at time step t. 0 means enabling the variable frequency mode, and 1 means enabling the base frequency mode.
[0136] In addition, in actual operation, maintenance of the main transmission pump is inevitable, and the pipeline operating company has limited the maximum number of pumps activated in the station in advance to ensure the safety of the pipeline and the power cables in the station.
[0137]
[0138] in, Indicates the maintenance status of the main pump at time step t. 1 indicates that the equipment is operating normally, and 0 indicates that the equipment is under maintenance. l,max Indicates the maximum number of pumps enabled in the station.
[0139] 3) Constraints on safe operation of outbound pressure reducing valves
[0140] Once the pressure provided by the main pump is too high, the outlet pressure reducing valve is used to reduce the pressure along the pipeline, which helps to keep the inlet pressure of the pipeline within a limited range. The relationship between the pressure difference between the inlet and outlet of the pressure reducing valve and the flow rate, density and gravity acceleration is as follows:
[0141]
[0142] Among them, C t,l represents the flow coefficient of the outgoing pressure reducing valve at time step t, Represents the pressure difference between the inlet and outlet of the pressure reducing valve at time step t (MPa).
[0143] The flow coefficient is calculated as follows:
[0144]
[0145] in, They are the flow coefficient characteristic parameters and valve opening characteristic parameters of the outlet pressure reducing valve, θ t,l is the opening degree (%) of the outlet pressure reducing valve at time step t, ranging from 0% to 100%.
[0146] The safety constraint of the pressure difference between the inlet and outlet of the pressure reducing valve is expressed as:
[0147]
[0148] in, Respectively represent the minimum and maximum limits of the pressure difference between the inlet and outlet of the pressure reducing valve (MPa).
[0149] 4) Component coupling relationship constraints
[0150] In order to build a complete system operation model, additional constraints are required to represent the coupling relationship between component elements, including:
[0151] The total pressure provided by the pipeline station is equal to the sum of the pressures provided by all the main pumps in the station minus the pressure difference between the inlet and outlet of the outlet pressure reducing valve, which can be specifically expressed as:
[0152]
[0153] The pressure at the beginning of the pipeline at the start of time step t is equal to the sum of the total pressure provided by the pipeline station and the pressure at the end of the previous adjacent pipeline at the start of time step t, which can be specifically expressed as:
[0154]
[0155] The pressure at the beginning of the pipeline at the end of time step t is equal to the sum of the total pressure provided by the pipeline station and the pressure at the end of the previous adjacent pipeline at the end of time step t, which can be specifically expressed as:
[0156]
[0157] The inlet pressure of the first main pump of the pipeline at the start of time step t is equal to the pressure at the end of the previous adjacent pipeline at the start of time step t, which can be specifically expressed as:
[0158]
[0159] The inlet pressure of the first main pump of the pipeline at the end of time step t is equal to the pressure at the end of the previous adjacent pipeline at the end of time step t, which can be specifically expressed as:
[0160]
[0161] The outlet pressure of the last main delivery pump of the pipeline at the start of time step t is equal to the sum of the pressure at the beginning of the pipeline at the start of time step t and the pressure difference between the inlet and outlet of the outlet pressure reducing valve, which can be specifically expressed as:
[0162]
[0163] The outlet pressure of the last main pump of the pipeline at the end of time step t is equal to the sum of the pressure at the beginning of the pipeline at the end of time step t and the pressure difference between the inlet and outlet of the outlet pressure reducing valve, which can be specifically expressed as:
[0164]
[0165] The subscript p(l) represents the adjacent pipeline upstream of a certain pipeline l.
[0166] The objective function of the control model is to minimize the total power consumption of all main pumps in the system, which can be specifically expressed as:
[0167]
[0168] Where L is the pipeline set.
[0169] Step S4: Solve the scheduling model and obtain the control strategy.
[0170] In the above embodiments, the known model parameters include:
[0171] g,ρ t,i , M, N l,max , L l ,
[0172] The decision variables include:
[0173] C t,l ,θ t,l ,
[0174] In one embodiment, the scheduling method further includes monitoring special events that trigger a new round of scheduling. When a special event occurs, an optimization scheduling model is established and a scheduling decision is made. Special events that trigger a new round of optimal coordinated scheduling include: changes in upload or download traffic at a certain station; interfaces between different liquid fuels arrive at a certain station; a certain stable working condition has lasted for 2 hours; and system components are shut down for maintenance. Finally, the dispatcher at the dispatch center executes the optimization scheduling strategy for the long-distance long-distance pipeline system of liquid fuel. This embodiment proposes an event-triggered optimal coordinated scheduling method for long-distance long-distance pipelines of liquid fuel to perform real-time and safe energy management. The core idea of this strategy is that the operation is triggered according to the actual operating status and events of the system instead of operating the system according to a predetermined schedule. The advantage of the event-triggered control method is that it can provide a more flexible and responsive control strategy, which is very beneficial for the dynamically changing system operating environment. In practical applications, this event-triggered optimization and coordination operation can adjust the operation strategy according to real-time data and prediction models to optimize the energy efficiency of the system. By monitoring the system status in real time and triggering operations when necessary, unnecessary energy consumption can be reduced and the overall efficiency of the system can be improved.
[0175] like Figure 5 The figure shows the effect comparison of the pressure drop estimator in one embodiment. The mean square error on the training set, validation set and test set is 8.1×(10) -4 MPa, 7.7×(10) -4 MPa and 5.9×(10) -4 MPa, R 2 The values are all greater than 0.9982. Therefore, the proposed pressure drop estimator can effectively solve the problem of pressure drop estimation accuracy.
[0176] like Figure 6 The figure shows the pressure distribution diagram along the pipeline system in one embodiment. It can be seen from the figure that the proposed model ensures that the pressure at the high-altitude points along the pipeline is within the set safety threshold, preventing the pipeline from being emptied or over-pressurized. This is particularly evident at the key points of pipelines 1, 4, 7 and 12, and the pressure at the low-altitude points of pipeline 8 is also guaranteed.
[0177] like Figure 7 The figure shows the pressure distribution diagram of the pipeline system in one embodiment, and the pressures at all measuring points are within the safety limit. Therefore, the proposed liquid long-distance pipeline scheduling method can achieve real-time and safe energy management.
[0178] Example 2
[0179] The present invention also relates to an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.
[0180] The electronic device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The memory may be used to store computer programs and / or modules, and the processor may perform various functions of the electronic device by running or executing computer programs and / or modules stored in the memory, and calling data stored in the memory.
[0181] Example 3
[0182] The present invention also relates to a computer-readable storage medium having a computer program stored thereon, and the computer program implements the steps of the above method when executed by a processor.
[0183] Specifically, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as a hard disk, an internal memory, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0184] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification. It should be noted that "in one embodiment", "for example", "for example", etc. of the present invention are intended to illustrate the present invention, rather than to limit the present invention.
[0185] The above embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the patent application. It should be pointed out that, for those of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention.
Claims
1. A method for dispatching multiple batches of liquids over long distances through pipelines, characterized in that: include: Obtain technical parameters of each component in the pipeline system and collect real-time operating status of each component; Determine the time step t to be optimized, whose starting time is End time is At a small time step t1 ′ To t1 ′ +1 between, At a small time step t2 ′ To t2 ′ +1, using the pressure drop estimator to predict the small time step t1 ′ 、t1 ′ +1, t2 ′ , t2 ′ +1 pipe pressure drop The length of the time step t to be optimized is greater than the length of the micro time step. Interpolate to get the starting time Pipeline pressure drop right Interpolate to get the end time Pipeline pressure drop Subscript l is the pipeline index; the pressure drop estimator is obtained by training a neural network with the pipeline flow value time series from the previous d-1 to the current micro time step, the ratio value time series of different liquids in the pipeline from the previous d-1 to the current micro time step, and the pipeline pressure drop time series of the previous d-1 micro time steps as input, and the pipeline pressure drop of the current micro time step as output, and d is a positive integer greater than 1; Establish an optimization scheduling model, including an objective function and constraints, wherein the objective function is to minimize the total power consumption of all main pumps in the pipeline system, and the constraints include: pipeline pressure safety constraints, main pump safety operation constraints, outlet pressure reducing valve safety operation constraints, and component coupling relationship constraints; wherein the pipeline pressure safety constraints include pressure safety interval constraints at both ends of each pipeline at the start and end of time step t, and the pressure difference at both ends of the pipeline at the same time is equal to the pipeline pressure drop calculated based on the pressure drop estimator; The dispatching model is solved to obtain a control strategy, including the operating parameters of each main delivery pump and the outlet pressure reducing valve in the pipeline system.
2. The method for dispatching multiple batches of liquids over long distances through pipelines according to claim 1, characterized in that: The neural network is a nonlinear autoregressive exogenous neural network NARX, and the method also includes combining a particle swarm algorithm and a Levenberg-Marquardt algorithm to perform back propagation training on the neural network, wherein each particle is assigned 5 dimensions, which are divided into 5 adjustable hyperparameters corresponding to the number of hidden layers, the number of neurons in the hidden layer, the number of time lags, the number of complete training groups of the back propagation data set, and the initial learning rate.
3. The method for dispatching multiple batches of liquids over long distances through pipelines according to claim 1, characterized in that: In the pipeline safety constraint, the pressure safety interval constraint at both ends of the pipeline at the start and end time of time step t is expressed as: In the formula, Respectively represent the pressure at the beginning and end of the pipeline at the beginning of time step t; Respectively represent the pressure at the beginning and end of the pipeline at the end of time step t; Indicates the pipeline pressure drop at the start and end of time step t; They represent the lower and upper safety limits of the pressure at the beginning of the pipeline respectively; They respectively represent the safe lower and upper limits of the pressure at the tail end of the pipeline.
4. The method for dispatching multiple batches of liquids over long distances through pipelines as claimed in claim 3, characterized in that: The pipeline safety constraint also includes a pressure safety interval constraint at a key position along the pipeline. The key position includes a maximum point and a minimum point in the pipeline. The pressure safety interval constraint at the key position is expressed as: In the formula, subscript n l represents the key position index along the pipeline l, They represent the pressure at the key positions along the pipeline at the start and end of time step t, respectively. They represent the safe upper and lower limits of pressure at key locations along the pipeline. represents the average density of the liquid in the pipe, g represents the acceleration due to gravity, L l , They represent the length, inlet elevation, and outlet elevation of the pipeline in the system respectively. They respectively represent the mileage and elevation of key locations along the pipeline in the system.
5. The method for dispatching multiple batches of liquids over long distances through pipelines according to claim 1, characterized in that: The main pump safe operation constraints include: The pressure safety interval constraint at the main pump outlet at the start and end of time step t is expressed as: In the formula, subscript k l Indicates the main pump index in the station. They represent the inlet and outlet pressures of the main delivery pump at the start of time step t respectively; Indicates the inlet and outlet pressures of the main delivery pump at the end of time step t; represents the pressure provided by the main delivery pump at time step t; Indicates the main pump pressure safety alarm value; The head safety interval constraint of the main delivery pump is expressed as: In the formula, represents the main pump head at time step t, Indicates the start and stop status of the main pump at time step t. 1 indicates start and 0 indicates stop. M is a constant. Represents the pump frequency modulation indicator variable, 1 represents variable frequency mode, 0 represents base frequency mode, Indicates the square value of the variable frequency speed of the main transmission pump at time step t, Indicates the pump base frequency speed, represents the base frequency pump head of the main delivery pump at time step t, Indicates the minimum and maximum pump flow of the main delivery pump; The speed safety range constraint of the main pump is expressed as: In the formula, the set K l It is the main pump assembly of the pump station. It is a collection of main pumps that share a common frequency converter in the pump station. Respectively represent the minimum and maximum speeds of the variable frequency main pump.
6. The method for dispatching multiple batches of liquids over long distances through pipelines as claimed in claim 5, characterized in that: When there are two main delivery pumps sharing a frequency converter, the main delivery pump safety operation constraint also includes a shared frequency converter operation constraint, which is expressed as: In the formula, the subscript Indicates the index of the main pump that shares the inverter. Indicates the working mode of the main pump at time step t. 0 means enabling the variable frequency mode, and 1 means enabling the base frequency mode.
7. The method for dispatching multiple batches of liquids over long distances through pipelines as claimed in claim 1, characterized in that: The outbound pressure reducing valve safety operation constraints include: In the formula, C t,l represents the flow coefficient of the outgoing pressure reducing valve at time step t, represents the pressure difference between the inlet and outlet of the pressure reducing valve at time step t, ρ t,i represents the density of the pumped liquid at time step t, g represents the acceleration due to gravity, They are the flow coefficient and valve opening characteristic parameters of the outlet pressure reducing valve, θ t,l is the opening of the outlet pressure reducing valve at time step t, Respectively represent the minimum and maximum limits of the pressure difference between the inlet and outlet of the pressure reducing valve.
8. The method for dispatching multiple batches of liquids over long distances through pipelines as claimed in claim 1, characterized in that: The component coupling relationship constraints include: The total pressure provided by the pipeline station is equal to the sum of the pressures provided by all the main pumps in the station minus the pressure difference between the inlet and outlet of the outlet pressure reducing valve; The pressure at the beginning of the pipeline at the start of time step t is equal to the sum of the total pressure provided by the pipeline station and the pressure at the end of the previous adjacent pipeline at the start of time step t; The pressure at the beginning of the pipeline at the end of time step t is equal to the sum of the total pressure provided by the pipeline station and the pressure at the end of the previous adjacent pipeline at the end of time step t; The inlet pressure of the first main pump of the pipeline at the start of time step t is equal to the pressure at the end of the previous adjacent pipeline at the start of time step t; The inlet pressure of the first main pump of the pipeline at the end of time step t is equal to the pressure at the end of the previous adjacent pipeline at the end of time step t; The outlet pressure of the last main delivery pump of the pipeline at the start of time step t is equal to the sum of the pressure at the beginning of the pipeline at the start of time step t and the pressure difference between the inlet and outlet of the outlet pressure reducing valve; The outlet pressure of the last main delivery pump of the pipeline at the end of time step t is equal to the sum of the pressure at the beginning of the pipeline at the end of time step t and the pressure difference between the inlet and outlet of the outlet pressure reducing valve.
9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Sequential decision-making method for pump starting schemes of multi-batch sequential liquid transportation pipeline
CN114623073A
Electronic commerce method for semiconductor products, electronic commerce thereof, production system, production method, production equipment design system, production equipment design method, and production equipment manufacturing method
US20010051886A1
Optimization apparatus, system and method for resource production system
US20210102462A1
Simulation method and system for the management of a pipeline network
US20210133372A1
Techniques for modifying and training a neural network
US20210374518A1
