Molecular-level online gasoline blending optimization method and system and electronic equipment
Through online near-infrared spectroscopy and intelligent inversion models, the composition of gasoline components is obtained in real time, which solves the real-time and efficiency problems of traditional offline detection methods, and realizes efficient and accurate optimization of gasoline blending, meeting the rapid changes in oil properties monitoring need.
Patent Information
- Application Number
- CN202410914341.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-11-12
AI Technical Summary
Among the existing gasoline blending methods, the traditional offline detection method has poor real-time performance and takes a long time, and cannot meet the demand for rapid changes in oil properties, resulting in inaccurate blending formulas and inability to meet production needs.
The composition of gasoline components is obtained in real time by online near-infrared spectroscopy, and the gasoline blending ratio is optimized in real time through intelligent inversion model and molecular-level physical properties model to achieve real-time online monitoring and multi-objective optimization.
It improves the efficiency and accuracy of gasoline blending, reduces operational complexity, achieves better performance and economic balance, enhances the model's extensibility, and can deal with oil changes in real time.
Smart Images

Figure CN118942567A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of chemical production, and in particular to a molecular-level online gasoline blending optimization method, system and electronic equipment. Background Art
[0002] As the final link in the production of gasoline by petrochemical and oil refining enterprises, gasoline blending directly determines the economic benefits of the production enterprises. In the actual gasoline blending process, there are many component gasolines involved in the blending, including catalytic cracking hydrogenated gasoline, isomerized gasoline, etc. There are also many quality index properties involved in the blending, including octane number, distillation range, etc. In the existing gasoline blending work, production personnel need to first obtain the macroscopic properties of the blending component oils through a time-consuming offline detection method, and then calculate the formula based on manual experience, and issue the production instructions of the blending amount of each component oil to the blending workshop, which not only takes a long time, but also has poor data timeliness, and the blending formula results often fail to meet expectations.
[0003] With the development of instrumental analysis technology, in addition to the traditional detection of macroscopic properties, production personnel began to use offline analysis methods and models to determine the compound composition and macroscopic properties of gasoline samples. Among them, offline gas chromatograph is a commonly used method. The sample is analyzed by gas chromatography technology to obtain the concentration information of gasoline component monomer hydrocarbons or group composition (i.e., PIONA composition), and then the relative content of each component is calculated by the relative peak area of each peak of the sample. On the other hand, a large number of simulation methods for constructing gasoline molecules have also emerged. The simulation method based on the molecular-level physical property calculation model can obtain the macroscopic physical properties of gasoline components. At the same time, based on the correlation model between near-infrared spectroscopy and macroscopic physical properties, multiple macroscopic properties including octane number can also be inferred, which has increased the frequency of analysis and detection of gasoline blending to a certain extent.
[0004] However, the traditional laboratory offline detection method in the above-mentioned blending method has poor real-time performance, and the detection process is cumbersome and time-consuming. It cannot meet the working conditions where the properties of oil products change frequently during the blending process, and the collection and analysis of offline samples requires a lot of time and human resources, resulting in poor real-time performance. Most of the offline gas chromatography technologies can only obtain sample molecular information results offline, and cannot detect the real-time online changes of oil molecules on site. The model of macroscopic properties associated with the near-infrared technology has poor extension. As the oil molecules change, the model cannot capture the changes in molecules from the macroscopic physical properties. The model has poor extension, which can easily lead to inaccurate gasoline blending formulas based on near-infrared technology to predict macroscopic properties, and cannot meet gasoline production needs. In addition, the gasoline blending method based on online near-infrared spectroscopy to predict macroscopic properties cannot obtain feedback on molecular information. As the working conditions change and are adjusted, the effectiveness of the formula cannot be maintained for a long time. Summary of the invention
[0005] In order to solve the above technical problems, the present invention discloses a molecular-level online gasoline blending optimization method, system and electronic equipment, which are used to obtain the compound composition of component gasoline samples in real time and then infer the compound composition of finished gasoline, thereby improving the efficiency and real-time performance of gasoline blending, while reducing the complexity of operation and improving the efficiency and accuracy of the blending process.
[0006] In order to achieve the above objectives, in a first aspect, the present invention discloses a molecular-level online gasoline blending optimization method, comprising:
[0007] Acquire the online near infrared spectrum of each blending component gasoline in the blending pipeline in real time, and input the online near infrared spectrum into a pre-built intelligent inversion model, and obtain the first compound composition corresponding to each blending component gasoline in each blending component gasoline through the intelligent inversion model;
[0008] According to the first compound composition and the preset initial gasoline blending ratio, predicting the second compound composition of the finished gasoline by linear calculation;
[0009] Calculating the macroscopic physical properties corresponding to the finished gasoline according to the composition of the second compound and a preset molecular-level physical property model;
[0010] According to the macroscopic physical properties and preset constraint indicators, the initial gasoline blending ratio is iteratively updated by solving a pre-constructed multi-objective optimization model with the goals of minimizing excess mass and minimizing cost to obtain an optimal gasoline blending ratio.
[0011] The present invention discloses a molecular-level online gasoline blending optimization method, which first obtains the online near-infrared spectrum of each blending component gasoline in the blending pipeline in real time, realizes the online composition analysis of the component gasoline, solves the technical problems of low efficiency and complex operation caused by offline detection, realizes the real-time optimization of gasoline blending, and improves the efficiency and accuracy of gasoline blending. Furthermore, the present invention uses a pre-built intelligent inversion model to perform online analysis on the compound composition of the component gasoline, so as to monitor the change of the compound composition of the finished gasoline in real time online, and explores the positive or negative effect of the compound composition on the change of the gasoline blending result, thereby improving the extension of the model and further improving the accuracy of gasoline blending.
[0012] Furthermore, after analyzing and obtaining the compound composition of the component gasoline, the compound composition of the finished gasoline is first predicted through linear calculation using the set initial gasoline blending ratio, and then the macroscopic physical properties corresponding to the finished gasoline are calculated using a molecular-level physical property model, so that according to the macroscopic physical properties, the initial gasoline blending ratio is optimized through a pre-constructed multi-objective optimization model with the goals of minimizing excess mass and minimizing cost, the optimal blending ratio is obtained, a better balance between performance and economy is achieved, and the quality and performance of gasoline are improved.
[0013] As a preferred example, the real-time acquisition of the online near-infrared spectrum of each blending component gasoline in the blending pipeline and inputting the online near-infrared spectrum into the pre-built intelligent inversion model includes:
[0014] Acquiring the initial online near-infrared spectrum of each of the blending component gasolines in real time according to a preset online near-infrared spectrometer, and performing spectral processing on the initial online near-infrared spectrum to obtain the online near-infrared spectrum;
[0015] The online near-infrared spectra of each blending component gasoline are respectively input into the intelligent inversion model, and the online near-infrared spectra are analyzed and processed by the intelligent inversion model to obtain the first compound composition corresponding to each blending component gasoline; wherein the first compound composition includes the type of compound and the concentration corresponding to each compound.
[0016] The present invention utilizes an online near-infrared spectrometer and the intelligent inversion model to obtain the compound composition of component gasoline in real time without manual operation, and analyzes the spectrum in real time to obtain the gasoline compound composition. The operation is simple and easy to implement, which reduces the complexity of operation and improves the efficiency of the blending process.
[0017] As a preferred example, the construction process of the intelligent inversion model includes:
[0018] The collected offline component gasoline samples are tested and analyzed by a preset offline gas chromatograph to obtain the compound composition corresponding to each offline component gasoline sample;
[0019] Obtaining an offline near-infrared spectrum corresponding to each of the offline component gasoline samples by a preset offline near-infrared spectrometer;
[0020] Constructing an offline component gasoline sample database according to the compound composition and offline near infrared spectrum corresponding to each of the offline component gasoline samples;
[0021] The intelligent inversion model is constructed according to the offline component gasoline sample database through a preset clustering algorithm.
[0022] The present invention will use the compound composition obtained by offline gas chromatograph analysis and the offline near-infrared spectrum obtained by offline near-infrared spectrometer to correlate and construct an intelligent inversion model, so as to analyze the offline component gasoline sample at the molecular level, detect the change of compound concentration in time, and then correlate the compound composition with the macroscopic physical properties of the finished sample, thereby improving the accuracy of gasoline tuning.
[0023] As a preferred example, the method of predicting the second compound composition of the finished gasoline by linear calculation according to the first compound composition and the preset initial gasoline blending ratio includes:
[0024] Determining the proportion of each blending component gasoline according to the initial gasoline blending proportion;
[0025] According to the ratio and the first compound composition, the second compound composition of the finished gasoline is calculated by a preset weighted summation method.
[0026] The present invention uses the first compound composition of the gasoline blending component to calculate the second compound composition of the finished gasoline after mixing, and then subsequently predicts the macroscopic physical properties of the finished gasoline through the second compound composition, thereby improving both the analysis efficiency and the accuracy of sample analysis, thereby improving the accuracy of blending optimization.
[0027] As a preferred example, the step of calculating the macroscopic physical properties corresponding to the finished gasoline according to the second compound composition and the preset molecular physical property model includes:
[0028] According to the second compound composition, the macroscopic physical properties corresponding to the finished gasoline are calculated by the mixing rules set in the molecular-level physical property model; wherein the macroscopic physical properties include research octane number, motor octane number, vapor pressure, density, benzene volume fraction, aromatic volume fraction, olefin volume fraction, oxygen mass fraction, sulfur mass fraction and distillation range; wherein the mixing rules corresponding to the research octane number and the motor octane number are:
[0029]
[0030]
[0031] ON ij =(ON i +ON j ) / 2
[0032]
[0033] Among them, v i is the volume percentage of the i-th compound in the finished gasoline; is the octane number contribution value of the i-th compound in the finished gasoline; i is the octane number of the i-th compound in the finished gasoline, ON j is the octane number of the jth compound in the finished gasoline, q ij is the harmonic effect coefficient of the i-th compound and the j-th compound in the finished gasoline;
[0034] The mixing rule for the vapor pressure is:
[0035]
[0036] Among them, the v i is the volume percentage of the i-th compound in the finished gasoline; r i is the activity coefficient of the ith compound in the finished gasoline at the measurement temperature; i V is the saturated vapor pressure of the i-th compound in the finished gasoline at the measurement temperature V; PR is the Reid vapor pressure; k is the first model parameter; b is the second model parameter;
[0037] The mixing rule of the density, benzene volume fraction, aromatics volume fraction, olefin volume fraction, oxygen mass fraction, or sulfur mass fraction is:
[0038]
[0039] Wherein, fp is the density after mixing, benzene volume fraction, aromatics volume fraction, olefin volume fraction, oxygen mass fraction, or sulfur mass fraction; v i is the volume percentage of the i-th compound in the finished gasoline; the f i is the density, benzene volume fraction, aromatics volume fraction, olefin volume fraction, oxygen mass fraction, or sulfur mass fraction of the i-th compound in the finished gasoline;
[0040] The mixing rule for the distillation range is:
[0041] The distribution ratio of different compounds in the range near their boiling points along with the temperature is obtained through Weibull distribution; wherein the expression of the Weibull distribution is:
[0042]
[0043] The distribution ratio is normalized, then: w = ω / ∑ω;
[0044] According to the content of each compound in the finished gasoline i Calculate its temperature in the preset temperature range [T L ,T U The amount of allocation in ] is z i ·w;
[0045]
[0046] Wherein, k is the first distribution parameter, λ is the second distribution parameter, and the distribution ratio of different types of compounds with temperature is controlled by adjusting the first distribution parameter and the second distribution parameter; T b,i is the boiling point of the compound; L is the maximum temperature threshold corresponding to each compound in the finished gasoline, and the T Uis the minimum temperature threshold corresponding to each compound in the finished gasoline;
[0047] According to the accumulation of the distribution amount and the temperature range, a real boiling point curve equation is constructed, and the real boiling point curve equation is converted into the Engler distillation range; wherein the expression of the Engler distillation range is:
[0048]
[0049]
[0050]
[0051]
[0052]
[0053] Wherein, T0, T10, T30, T50, T70, T90, Tf are respectively the temperature values at which the distillation volume of the actual boiling point curve is 0, 10%, 30%, 50%, 70%, 90%, 98% respectively; E Indicates the distillation temperature corresponding to different distillate volumes.
[0054] The present invention calculates the macroscopic physical properties of online finished gasoline based on the molecular-level physical property model and the compound composition of finished gasoline, and then later uses the macroscopic physical properties and a pre-constructed multi-objective optimization model with the goals of minimum excess mass and minimum cost to solve the optimal adjustment ratio, so that the changes in the compound concentration and macroscopic physical properties in the finished gasoline can be detected in real time through the changes in the adjustment ratio, thereby improving the accuracy of gasoline blending.
[0055] As a preferred example, the method of solving a pre-built multi-objective optimization model with the objectives of minimizing excess quality and minimizing cost, iteratively updating the initial gasoline blending ratio, and obtaining the optimal gasoline blending ratio includes:
[0056] According to the macroscopic physical properties and the preset constraint indicators, the multi-objective optimization model is solved by the interior point method. If the solution is successful, the initial gasoline blending ratio is determined to be the optimal gasoline blending ratio; if the solution fails, the initial gasoline blending ratio is iteratively updated until the solution is successful, and the gasoline blending ratio corresponding to the successful solution is output as the optimal gasoline blending ratio; wherein the constraint indicators include at least one of the research octane number, the motor octane number, the Reid vapor pressure, the Engler distillation range, the density, the benzene volume fraction, the aromatics volume fraction, the olefin volume fraction, the oxygen mass fraction, and the sulfur mass fraction; the Engler distillation range includes the initial distillation point, the 10% distillation temperature, the 50% distillation temperature, the 90% distillation temperature, and the final distillation point;
[0057] The expression of the multi-objective optimization model is:
[0058]
[0059] s.th(x)=∑x-1=0
[0060] g i (x) = ψ 1 -φ i (x)≤0i=1,2,3…,M
[0061] χ i (x) = φ i (x)-ψ u ≤0i=1,2,3…,M
[0062] Wherein, f(x) represents the objective function; n represents the number of types of physical properties involved in optimization; x represents the proportion of each blending component gasoline involved in blending; Φ i (x) represents the function of the i-th physical property involved in the blending; the Φ i The molecular-level physical property model is used to calculate the obtained i represents the target value of the i-th physical property involved in the blending; the w i represents the deviation weight of the i-th physical property involved in the blending; i represents the ith physical property excess equivalent cost of the blending component gasoline involved in the blending; the K represents the unit price vector of the blending component gasoline involved in the blending; the I represents the lower limit of the constraint index; the u represents the upper limit of the constraint index; and the M represents the total number of constraint indexes.
[0063] The present invention solves the optimal adjustment ratio of the multi-objective optimization model so that the changes in the concentration of compounds and macroscopic physical properties in the finished gasoline can be detected in real time through the changes in the adjustment ratio, thereby improving the accuracy of gasoline blending.
[0064] In a second aspect, the present invention discloses a molecular-level online gasoline blending optimization system, including an online analysis module, a molecular prediction module, a physical property calculation module, and a blending optimization module;
[0065] The online analysis module is used to obtain the online near-infrared spectrum of each blending component gasoline in the blending pipeline in real time, and input the online near-infrared spectrum into the pre-built intelligent inversion model, and obtain the first compound composition corresponding to each blending component gasoline in each blending component gasoline through the intelligent inversion model;
[0066] The molecular prediction module is used to predict the second compound composition of the finished gasoline through linear calculation according to the first compound composition and the preset initial gasoline blending ratio;
[0067] The physical property calculation module is used to calculate the macroscopic physical properties corresponding to the finished gasoline according to the second compound composition and a preset molecular-level physical property model;
[0068] The blending optimization module is used to iteratively update the initial gasoline blending ratio according to the macroscopic physical properties and preset constraint indicators by solving a pre-built multi-objective optimization model with the goals of minimizing excess mass and minimizing cost, so as to obtain the optimal gasoline blending ratio.
[0069] The present invention discloses a molecular-level online gasoline blending optimization system, which first obtains the online near-infrared spectrum of each blending component gasoline in the blending pipeline in real time, realizes the online composition analysis of the component gasoline, solves the technical problems of low efficiency and complex operation caused by offline detection, realizes the real-time optimization of gasoline blending, and improves the efficiency and accuracy of gasoline blending. Furthermore, the present invention uses a pre-built intelligent inversion model to perform online analysis on the compound composition of the component gasoline, so as to monitor the change of the compound composition of the finished gasoline in real time online, and explores the positive or negative effect of the compound composition on the change of the gasoline blending result, thereby improving the extension of the model and further improving the accuracy of gasoline blending.
[0070] Furthermore, after analyzing and obtaining the compound composition of the component gasoline, the compound composition of the finished gasoline is first predicted through linear calculation using the set initial gasoline blending ratio, and then the macroscopic physical properties corresponding to the finished gasoline are calculated using a molecular-level physical property model, so that according to the macroscopic physical properties, the initial gasoline blending ratio is optimized through a pre-constructed multi-objective optimization model with the goals of minimizing excess mass and minimizing cost, the optimal blending ratio is obtained, a better balance between performance and economy is achieved, and the quality and performance of gasoline are improved.
[0071] As a preferred example, the online analysis module includes a spectral unit and an inversion unit;
[0072] The spectral unit is used to obtain the initial online near-infrared spectrum of each of the blending component gasolines in real time according to a preset online near-infrared spectrometer, and perform spectral processing on the initial online near-infrared spectrum to obtain the online near-infrared spectrum;
[0073] The inversion unit is used to input the online near-infrared spectra of each blending component gasoline into the intelligent inversion model respectively, and analyze and process the online near-infrared spectra through the intelligent inversion model to obtain the first compound composition corresponding to each blending component gasoline; wherein the first compound composition includes the type of compound and the concentration corresponding to each compound.
[0074] The present invention utilizes an online near-infrared spectrometer and the intelligent inversion model to obtain the compound composition of component gasoline in real time without manual operation, and analyzes the spectrum in real time to obtain the gasoline compound composition. The operation is simple and easy to implement, which reduces the complexity of operation and improves the efficiency of the blending process.
[0075] As a preferred example, the molecular prediction module includes a ratio unit and a combination unit;
[0076] The proportion unit is used to determine the proportion of each blending component gasoline according to the initial gasoline blending proportion;
[0077] The combination unit is used to calculate the second compound composition of the finished gasoline according to the ratio and the first compound composition by a preset weighted summation method.
[0078] The present invention uses the first compound composition of the gasoline blending component to calculate the second compound composition of the finished gasoline after mixing, and then subsequently predicts the macroscopic physical properties of the finished gasoline through the second compound composition, thereby improving both the analysis efficiency and the accuracy of sample analysis, thereby improving the accuracy of blending optimization.
[0079] In a third aspect, the present invention further discloses an electronic device, comprising: a memory on which a computer program is stored; and a processor for executing the computer program in the memory to implement the steps of the method described in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0080] Figure 1 : A schematic diagram of a molecular-level online gasoline blending optimization method disclosed in an embodiment of the present invention;
[0081] Figure 2 : A schematic diagram of the structure of a molecular-level online gasoline blending optimization system disclosed in an embodiment of the present invention;
[0082] Figure 3 : A schematic flow chart of a molecular-level online gasoline blending optimization method disclosed in another embodiment of the present invention;
[0083] Figure 4 : A schematic diagram of a near-infrared spectrum of hydrogenated gasoline disclosed in another embodiment of the present invention;
[0084] Figure 5 : A schematic diagram of a near-infrared spectrum of reformed gasoline disclosed in another embodiment of the present invention;
[0085] Figure 6 : A schematic diagram of an online near-infrared spectrum of gasoline to be inverted disclosed in another embodiment of the present invention;
[0086] Among them, 201 is an online analysis module; 202 is a molecular prediction module; 203 is a physical property calculation module; 204 is a blending optimization module. DETAILED DESCRIPTION
[0087] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0088] Embodiment 1
[0089] This embodiment discloses a molecular-level online gasoline blending optimization method. For the specific implementation process of the optimization method, please refer to Figure 1 , mainly including steps 101 to 104, wherein the steps are mainly:
[0090] Step 101: acquiring in real time an online near-infrared spectrum of each blending component gasoline in a blending pipeline, and inputting the online near-infrared spectrum into a pre-built intelligent inversion model, and obtaining a first compound composition corresponding to each blending component gasoline in each of the blending component gasolines through the intelligent inversion model.
[0091] In this embodiment, this step mainly includes: acquiring the initial online near-infrared spectrum of each blending component gasoline in real time according to a preset online near-infrared spectrometer, and performing spectral processing on the initial online near-infrared spectrum to obtain the online near-infrared spectrum; inputting the online near-infrared spectrum of each blending component gasoline into the intelligent inversion model respectively, analyzing and processing the online near-infrared spectrum through the intelligent inversion model, and obtaining the first compound composition corresponding to each blending component gasoline; wherein the first compound composition includes the type of compound and the concentration corresponding to each compound.
[0092] Furthermore, the construction process of the intelligent inversion model includes: detecting and analyzing the collected offline component gasoline samples through a preset offline gas chromatograph to obtain the compound composition corresponding to each offline component gasoline sample; obtaining the offline near-infrared spectrum corresponding to each of the offline component gasoline samples through a preset offline near-infrared spectrometer; constructing an offline component gasoline sample database based on the compound composition and offline near-infrared spectrum corresponding to each of the offline component gasoline samples; and constructing the intelligent inversion model through a preset clustering algorithm based on the offline component gasoline sample database.
[0093] In this embodiment, this step utilizes an online near-infrared spectrometer and the intelligent inversion model to obtain the compound composition of the component gasoline in real time without manual operation, and the spectrum is analyzed in real time to obtain the gasoline compound composition. The operation is simple and easy to implement, which reduces the complexity of the operation and improves the efficiency of the blending process. Furthermore, the compound composition obtained by analyzing the offline gas chromatograph and the offline near-infrared spectrum obtained by the offline near-infrared spectrometer are correlated to construct an intelligent inversion model, so that the offline component gasoline sample can be analyzed at the molecular level, the change of the compound concentration can be detected in time, and then the compound composition can be correlated with the macroscopic physical properties of the finished sample, thereby improving the accuracy of gasoline tuning.
[0094] Step 102: predicting the second compound composition of the finished gasoline by linear calculation according to the first compound composition and the preset initial gasoline blending ratio.
[0095] In this embodiment, this step mainly includes: determining the proportion of each blending component gasoline according to the initial gasoline blending ratio; and calculating the second compound composition of the finished gasoline by a preset weighted sum method according to the proportion and the first compound composition.
[0096] In this embodiment, this step uses the first compound composition of the gasoline blending component to calculate the second compound composition of the mixed finished gasoline, and then subsequently predicts the macroscopic physical properties of the finished gasoline through the second compound composition, thereby improving both the analysis efficiency and the accuracy of the sample analysis, thereby improving the accuracy of the blending optimization.
[0097] Step 103: Calculate the macroscopic physical properties of the finished gasoline according to the second compound composition and a preset molecular-level physical property model.
[0098] In this embodiment, this step mainly includes: according to the composition of the second compound, calculating the macroscopic physical properties corresponding to the finished gasoline by the mixing rules set in the molecular-level physical property model; wherein the macroscopic physical properties include research octane number, motor octane number, vapor pressure, density, benzene volume fraction, aromatics volume fraction, olefin volume fraction, oxygen mass fraction, sulfur mass fraction and distillation range; wherein the mixing rules corresponding to the research octane number and the motor octane number are:
[0099]
[0100]
[0101] ON ij =(ON i +ON j ) / 2
[0102]
[0103] Among them, v i is the volume percentage of the i-th compound in the finished gasoline; is the octane number contribution value of the i-th compound in the finished gasoline; i is the octane number of the i-th compound in the finished gasoline, ON j is the octane number of the jth compound in the finished gasoline, q ij is the harmonic effect coefficient of the i-th compound and the j-th compound in the finished gasoline;
[0104] The mixing rule for the vapor pressure is:
[0105]
[0106] Among them, the v i is the volume percentage of the i-th compound in the finished gasoline; r i is the activity coefficient of the ith compound in the finished gasoline at the measurement temperature; i V is the saturated vapor pressure of the i-th compound in the finished gasoline at the measurement temperature V; PR is the Reid vapor pressure; k is the first model parameter; b is the second model parameter;
[0107] The mixing rule of the density, benzene volume fraction, aromatics volume fraction, olefin volume fraction, oxygen mass fraction, or sulfur mass fraction is:
[0108]
[0109] Wherein, fp is the density after mixing, benzene volume fraction, aromatics volume fraction, olefin volume fraction, oxygen mass fraction, or sulfur mass fraction; v i is the volume percentage of the i-th compound in the finished gasoline; the f i is the density, benzene volume fraction, aromatics volume fraction, olefin volume fraction, oxygen mass fraction, or sulfur mass fraction of the i-th compound in the finished gasoline;
[0110] The mixing rule for the distillation range is:
[0111] The distribution ratio of different compounds in the range near their boiling points along with the temperature is obtained through Weibull distribution; wherein the expression of the Weibull distribution is:
[0112]
[0113] The distribution ratio is normalized, then: w = ω / ∑ω;
[0114] According to the content of each compound in the finished gasoline i Calculate its temperature in the preset temperature range [T L ,T U The amount of allocation in ] is z i ·w;
[0115]
[0116] Wherein, k is the first distribution parameter, λ is the second distribution parameter, and the distribution ratio of different types of compounds with temperature is controlled by adjusting the first distribution parameter and the second distribution parameter; T b,i is the boiling point of the compound; L is the maximum temperature threshold corresponding to each compound in the finished gasoline, and the T U is the minimum temperature threshold corresponding to each compound in the finished gasoline;
[0117] According to the accumulation of the distribution amount and the temperature range, a real boiling point curve equation is constructed, and the real boiling point curve equation is converted into the Engler distillation range; wherein the expression of the Engler distillation range is:
[0118]
[0119]
[0120]
[0121]
[0122]
[0123] Wherein, T0, T10, T30, T50, T70, T90, Tf are respectively the temperature values at which the distillation volume of the actual boiling point curve is 0, 10%, 30%, 50%, 70%, 90%, 98% respectively; E Indicates the distillation temperature corresponding to different distillate volumes.
[0124] In this embodiment, this step calculates the macroscopic physical properties of the online finished gasoline based on the molecular-level physical property model and the compound composition of the finished gasoline, and then later uses the macroscopic physical properties and a pre-constructed multi-objective optimization model with the goals of minimizing excess mass and minimizing cost to solve the optimal adjustment ratio, so that changes in the compound concentration and macroscopic physical properties in the finished gasoline can be detected in real time through changes in the adjustment ratio, thereby improving the accuracy of gasoline blending.
[0125] Step 104: According to the macroscopic physical properties and preset constraint indicators, the initial gasoline blending ratio is iteratively updated by solving a pre-built multi-objective optimization model with the objectives of minimizing excess mass and minimizing cost to obtain an optimal gasoline blending ratio.
[0126] In this embodiment, this step mainly includes: solving the multi-objective optimization model by the interior point method according to the macroscopic physical properties and the preset constraint indexes, and if the solution is successful, determining the initial gasoline blending ratio as the optimal gasoline blending ratio; if the solution fails, iteratively updating the initial gasoline blending ratio until the solution is successful, and outputting the gasoline blending ratio corresponding to the successful solution as the optimal gasoline blending ratio; wherein the constraint index includes at least one of the research octane number, the motor octane number, the Reid vapor pressure, the Engler distillation range, the density, the benzene volume fraction, the aromatics volume fraction, the olefin volume fraction, the oxygen mass fraction, and the sulfur mass fraction; the Engler distillation range includes the initial distillation point, the 10% distillation temperature, the 50% distillation temperature, the 90% distillation temperature, and the final distillation point;
[0127] The expression of the multi-objective optimization model is:
[0128]
[0129] s.th(x)=Σx-1=0
[0130] g i (x) = ψ I -φ i (x)≤0i=1,2,3…,M
[0131] χ i (x) = φ i (x)-ψ u ≤0i=1,2,3…,M
[0132] Wherein, f(x) represents the objective function; n represents the number of types of physical properties involved in optimization; x represents the proportion of each blending component gasoline involved in blending; Φ i (x) represents the function of the i-th physical property involved in the blending; the Φ i The molecular-level physical property model is used to calculate the obtained i represents the target value of the i-th physical property involved in the blending; the w i represents the deviation weight of the i-th physical property involved in the blending; i represents the ith physical property excess equivalent cost of the blending component gasoline involved in the blending; the K represents the unit price vector of the blending component gasoline involved in the blending; the I represents the lower limit of the constraint index; the u represents the upper limit of the constraint index; and the M represents the total number of constraint indexes.
[0133] In this embodiment, this step solves the optimal adjustment ratio of the multi-objective optimization model so that the changes in the concentration of compounds and macroscopic physical properties in the finished gasoline can be detected in real time through the changes in the adjustment ratio, thereby improving the accuracy of gasoline blending.
[0134] On the other hand, this embodiment also discloses a molecular-level online gasoline blending optimization system. The specific structure and composition of the optimization system can be found in Figure 2 , including an online analysis module 201, a molecular prediction module 202, a physical property calculation module 203 and a blending optimization module 204.
[0135] The online analysis module 201 is used to obtain the online near-infrared spectrum of each blending component gasoline in the blending pipeline in real time, and input the online near-infrared spectrum into a pre-built intelligent inversion model, and obtain the first compound composition corresponding to each blending component gasoline in each blending component gasoline through the intelligent inversion model.
[0136] The molecular prediction module 202 is used to predict the second compound composition of the finished gasoline through linear calculation according to the first compound composition and the preset initial gasoline blending ratio.
[0137] The physical property calculation module 203 is used to calculate the macroscopic physical properties corresponding to the finished gasoline according to the second compound composition and a preset molecular-level physical property model.
[0138] The blending optimization module 204 is used to iteratively update the initial gasoline blending ratio according to the macroscopic physical properties and preset constraint indicators by solving a pre-built multi-objective optimization model with the goals of minimizing excess mass and minimizing cost, so as to obtain the optimal gasoline blending ratio.
[0139] In this embodiment, the online analysis module 201 includes a spectral unit and an inversion unit.
[0140] The spectral unit is used to obtain the initial online near-infrared spectrum of each blending component gasoline in real time according to a preset online near-infrared spectrometer, and perform spectral processing on the initial online near-infrared spectrum to obtain the online near-infrared spectrum.
[0141] The inversion unit is used to input the online near-infrared spectra of each blending component gasoline into the intelligent inversion model respectively, and analyze and process the online near-infrared spectra through the intelligent inversion model to obtain the first compound composition corresponding to each blending component gasoline; wherein the first compound composition includes the type of compound and the concentration corresponding to each compound.
[0142] In this embodiment, the molecule prediction module 202 includes a ratio unit and a combination unit.
[0143] The proportion unit is used to determine the proportion of each blending component gasoline according to the initial gasoline blending proportion.
[0144] The combination unit is used to calculate the second compound composition of the finished gasoline according to the ratio and the first compound composition by a preset weighted summation method.
[0145] In this embodiment, in addition to the above-mentioned method and system, an electronic device is also disclosed, which includes a memory on which a computer program is stored; and a processor for executing the computer program in the memory to implement the steps of the gasoline blending optimization method based on spectral inversion provided in this embodiment.
[0146] Embodiment 2
[0147] This embodiment further discloses a molecular-level online gasoline blending optimization method. The specific implementation process of the optimization method can be referred to Figure 3 , mainly including steps 301 to 305, wherein the steps are mainly:
[0148] Step 301: Detect each offline component gasoline sample acquired according to a preset offline gas chromatograph and offline near-infrared spectrometer to obtain the compound composition and offline near-infrared spectrum corresponding to each offline component gasoline sample, and construct an intelligent inversion model according to the compound composition and offline near-infrared spectrum.
[0149] In this embodiment, the steps mainly include: constructing an offline component gasoline sample database according to the compound composition and offline near-infrared spectrum corresponding to each offline component gasoline sample, and then constructing the intelligent inversion model according to the offline component gasoline sample database through a preset clustering algorithm.
[0150] Specifically, firstly, the offline component gasoline sample is detected and analyzed by an offline gas chromatograph to obtain the compound composition of each offline component gasoline sample. In the process of analyzing by the offline gas chromatograph, the offline component gasoline sample to be tested is first taken back to the laboratory from the sampling device, and then the offline component gasoline sample is injected into the offline gas chromatograph by an appropriate method. Common sample injection methods include injector injection, gas phase microextraction, etc. After injection into the chromatograph, a suitable chromatographic column is selected to achieve separation of target compounds in the offline component gasoline sample. The selection of the chromatographic column is usually based on the chemical properties, volatility, molecular size and other factors of the target compound. At the same time, a good column temperature program is set and an appropriate gas phase carrier gas is selected to achieve separation of compounds in the sample. The column temperature program usually includes parameters such as initial temperature, heating rate, holding time, etc. The carrier gas includes nitrogen, hydrogen, helium, etc. The selection of the carrier gas depends on the purpose of analysis, column type and characteristics of the target compound.
[0151] Next, the detector is selected. When selecting, a suitable detector is selected according to the needs. Common detectors include flame ionization detector (FID), electron capture detector (ECD), mass spectrometer (MS), etc. Then, the obtained gas chromatogram and peak data are analyzed to determine the type, concentration and other information of the target compound in each offline component gasoline sample. The offline gasoline component sample can obtain a gas chromatogram through an offline gas chromatograph, and the gasoline compound composition can be determined through the peak data on the gas chromatogram.
[0152] In the synchronous process of offline detection of the compound composition, an offline near-infrared spectrometer is used to obtain an offline near-infrared spectrum of the offline component gasoline sample. In the process of obtaining the offline near-infrared spectrum, an appropriate spectrometer configuration is selected, including parameters such as light source, spectral range, resolution, etc., to ensure that the offline near-infrared spectrometer is in a proper working state and calibration state. Then, a series of reference samples with known components are prepared, and their component range should cover the components that may appear in the sample to be tested. The preparation of the reference samples should comply with the standard method. Then, the offline near-infrared spectrometer is used to collect spectra of the sample to be tested and the reference sample, and it is ensured that the instrument is stable during the collection process and that the sample is in good contact with the instrument.
[0153] After obtaining the offline near-infrared spectra and compound composition of the offline component gasoline sample, spectral processing is first performed, and the spectral processing method includes but is not limited to mean centering, standardization, vector normalization, maximum and minimum normalization, standard normal variable transformation, multivariate scattering correction, smoothing, derivative method, detrending algorithm, Rubberband, etc., so as to obtain several groups of processed offline near-infrared spectra, and then spectrum interval selection is performed, including but not limited to custom interval selection, full interval selection, etc. Finally, based on clustering algorithms such as Kmeans, hierarchical clustering, distance weight, etc., several groups of offline near-infrared spectra and corresponding gasoline molecular data are matched to construct the intelligent inversion model. The intelligent inversion model uses the offline near-infrared spectrum as input and the compound composition as output. When a new offline near-infrared spectrum is input, a new compound composition can be obtained.
[0154] Step 302: acquiring in real time an online near infrared spectrum corresponding to each blending component gasoline in the blending pipeline through a near infrared spectrometer, and inputting the online near infrared spectrum into the intelligent inversion model to acquire the first compound composition corresponding to each blending component gasoline.
[0155] In this embodiment, this step mainly includes: obtaining the online near-infrared spectrum of each blending component gasoline in real time according to the preset online near-infrared spectrometer, analyzing and processing the online near-infrared spectrum through the intelligent inversion model, and obtaining the first compound composition corresponding to each blending component gasoline, wherein the first compound composition includes the type of compound and the concentration corresponding to each compound.
[0156] Specifically, an online near-infrared spectrometer is used to obtain in real time an online near-infrared spectrum of the blending component gasoline in the blending pipeline, wherein the near-infrared spectrometer is an instrument that can measure the absorption and scattering characteristics of a substance in the near-infrared light band. A near-infrared light source is irradiated onto the blending component gasoline, and near-infrared spectrum data reflected or transmitted by the blending component gasoline are collected. In the process of obtaining the online near-infrared spectrum data, the near-infrared spectrum can also be processed according to the same method as that used to process the spectrum in the process of constructing the intelligent inversion model.
[0157] The processed online near-infrared spectrum is then input into the above-mentioned established intelligent inversion model, and the compound composition is inverted through the intelligent inversion model. The intelligent inversion model will analyze and process the online near-infrared spectrum data to predict the types of compounds in each blending component gasoline and the concentration of each type of compound.
[0158] Step 303: According to the first compound composition and the preset initial gasoline blending ratio, a second compound composition of the finished gasoline is obtained through linear calculation.
[0159] In this embodiment, this step mainly includes: determining the proportion of each blending component gasoline according to the initial gasoline blending proportion, and then calculating the second compound composition of the finished gasoline by a preset weighted summation method.
[0160] Specifically, the preset initial blending ratio of each blending component gasoline is input, combined with the first compound composition of each blending component gasoline, and the second compound composition of the finished gasoline is obtained by linear calculation. Specifically, the blending ratio is the ratio of each blending component gasoline, and the linear calculation refers to the weighted summation method, wherein the weight is the ratio of each blending component gasoline, and the weight of each blending component gasoline is multiplied by its corresponding first compound composition, and the products of the weights and the first compound composition in multiple blending component gasolines are summed to obtain the second compound composition of the finished gasoline.
[0161] Step 304: Calculate the macroscopic physical properties of the finished gasoline according to the second compound composition and based on a pre-constructed molecular-level physical property model.
[0162] In this embodiment, the step is: according to the composition of the second compound, the macroscopic physical properties corresponding to the finished gasoline are calculated by the mixing rules set in the molecular-level physical property model; wherein the macroscopic physical properties include research octane number, motor octane number, vapor pressure, density, benzene volume fraction, aromatic volume fraction, olefin volume fraction, oxygen mass fraction, sulfur mass fraction and distillation range.
[0163] Specifically, the research octane number and the motor octane number adopt the following mixing rules:
[0164]
[0165]
[0166] ON ij =(ON i +ON j ) / 2
[0167]
[0168] Among them, v i is the volume percentage of the i-th compound in the finished gasoline; is the octane number contribution value of the i-th compound in the finished gasoline; i is the octane number of the i-th compound in the finished gasoline, ON j is the octane number of the jth compound in the finished gasoline, q ij is the harmonic effect coefficient of the i-th compound and the j-th compound in the finished gasoline;
[0169] The vapor pressure uses the following mixing rule:
[0170]
[0171] Among them, the v i is the volume percentage of the i-th compound in the finished gasoline; r i is the activity coefficient of the ith compound in the finished gasoline at the measurement temperature; i V is the saturated vapor pressure of the i-th compound in the finished gasoline at the measurement temperature V; PR is the Reid vapor pressure; k is the first model parameter; b is the second model parameter;
[0172] The density, benzene volume fraction, aromatics volume fraction, olefin volume fraction, oxygen mass fraction, or sulfur mass fraction uses the following linear mixing rule:
[0173]
[0174] Wherein, fp is the density after mixing, benzene volume fraction, aromatics volume fraction, olefin volume fraction, oxygen mass fraction, or sulfur mass fraction; v i is the volume percentage of the i-th compound in the finished gasoline; the f i is the density, benzene volume fraction, aromatics volume fraction, olefin volume fraction, oxygen mass fraction, or sulfur mass fraction of the ith compound in the finished gasoline.
[0175] The Engelhard distillation process uses the following mixing rules:
[0176] Weibull distribution is used to describe the range of different compounds near their boiling points [T L ,T U ] The distribution ratio with temperature is as follows:
[0177]
[0178] The actual allocation ratio vector after normalization is: w = ω / Σω.
[0179] If the actual content of the compound is z i , then in the temperature range [T L ,T U The amount of allocation in ] is z i w, where:
[0180]
[0181] Wherein, k is the first distribution parameter, λ is the second distribution parameter, and the distribution ratio of different types of compounds with temperature is controlled by adjusting the first distribution parameter and the second distribution parameter; T b,i is the boiling point of the compound; L is the maximum temperature threshold corresponding to each compound in the finished gasoline, and the T U is the minimum temperature threshold corresponding to each compound in the finished gasoline.
[0182] According to the accumulation of distribution amount and temperature range, the real boiling point curve equation is constructed, and the temperature values at which the distillation volume of the real boiling point curve is 0, 10%, 30%, 50%, 70%, 90%, 98% are recorded as T0, T10, T30, T50, T70, T90, Tf by interpolation method;
[0183] Convert the actual boiling point curve equation into the Engler distillation range as follows:
[0184]
[0185]
[0186]
[0187]
[0188]
[0189] Among them, the T E Indicates the distillation temperature corresponding to different distillate volumes.
[0190] Step 305: Solve the pre-built multi-objective optimization model with the objectives of minimizing excess mass and minimizing cost according to the macroscopic physical properties, and iteratively update the initial gasoline blending ratio according to the solution results to obtain the optimal gasoline blending ratio.
[0191] In this embodiment, this step specifically includes: establishing a multi-objective optimization model with the objective function of minimum excess quality and minimum cost, wherein the expression of the multi-objective optimization model is:
[0192]
[0193] s.th(x)=Σx-1=0
[0194] g i (x) = ψ 1 -φ i (x)≤0i=1,2,3…,M
[0195] χ i(x) = φ i (x)-ψ u ≤0i=1,2,3…,M
[0196] Wherein, f(x) represents the objective function; n represents the number of types of physical properties involved in optimization; x represents the proportion of each blending component gasoline involved in blending; Φ i (x) represents the function of the i-th physical property involved in the blending; the Φ i The molecular-level physical property model is used to calculate the obtained i represents the target value of the i-th physical property involved in the blending; the w i represents the deviation weight of the i-th physical property involved in the blending; i represents the ith physical property excess equivalent cost of the blending component gasoline involved in the blending; the K represents the unit price vector of the blending component gasoline involved in the blending; the I represents the lower limit of the constraint index; the u represents the upper limit of the constraint index; and the M represents the total number of constraint indexes.
[0197] The constraint index includes at least one of the research octane number, the motor octane number, the Reid vapor pressure, the Engler distillation range, the density, the benzene volume fraction, the aromatics volume fraction, the olefin volume fraction, the oxygen mass fraction, and the sulfur mass fraction, wherein the Engler distillation range includes the initial distillation point, the distillation temperature of 10% distillation volume, the distillation temperature of 50% distillation volume, the distillation temperature of 90% distillation volume, and the final distillation point.
[0198] When solving the multi-objective optimization model, the interior point method is used to solve the multi-objective optimization model to obtain the optimal blending ratio. Specifically, according to the set constraint indicators, the multi-objective optimization model is solved based on the sequential quadratic programming mathematical optimization solution method. If the solution is successful, the current initial gasoline blending ratio is determined to be the optimal gasoline blending ratio, and the optimal blending ratio formula is sent to the production workshop. Through the blending control system, the blending flow of the blending component gasoline is controlled. If the solution fails, the initial gasoline blending ratio is adjusted, and the molecular composition and macroscopic physical properties of the finished gasoline are recalculated until the solution is successful.
[0199] Optionally, No. 92 gasoline is blended according to the gasoline blending optimization method based on spectral inversion provided in this embodiment, specifically:
[0200] (1) First, for a petrochemical refinery, a total molecular database covering the compound composition corresponding to all blending component gasolines is established, wherein the compound composition pre-stored in the total molecular database includes hydrogenated gasoline, reformed gasoline, aromatized gasoline, alkylated gasoline, isomerized gasoline, mixed C5 gasoline, mixed aromatic gasoline, raffinate, naphtha, ethers (MTBE, TAME), ethanol, methanol, etc., wherein the types of hydrocarbon molecules contained in different compounds are analyzed by high-resolution capillary gas chromatography or GC-MS gas chromatography-mass spectrometry method, and the chromatographic analysis conditions are set as the chromatographic column can use a PONA analytical column, the vaporization chamber temperature is set to 250°C, and the detector temperature is set to 300°C, thereby establishing a total molecular property database containing at least 305 gasoline molecules (i.e., 305 compounds), wherein the total molecular property database includes the types and properties of gasoline molecules (parts), wherein the types and properties of gasoline molecules (parts) can be summarized as shown in Table 1:
[0201] Table 1 Summary of gasoline molecule (partial) types and properties
[0202]
[0203] Then, the gasoline molecular composition (i.e., compound composition) of k groups of samples is obtained through offline gas chromatograph and offline sample detection and analysis. The gasoline molecular composition can be referred to in Table 2.
[0204] Table 2 Gasoline molecular (partial) composition of a group of samples
[0205]
[0206] (2) Collect k groups of off-line gasoline spectra by off-line near-infrared spectrometer, wherein the off-line gasoline spectra can refer to Figure 4 and Figure 5 ,in, Figure 4 is the near infrared spectrum of hydrogenated gasoline, Figure 5 Near infrared spectrum of reformed gasoline.
[0207] (3) Through steps (1) and (2), a gasoline sample molecular data-near infrared spectrum database is formed, with a total of k groups of data;
[0208] (4) Based on k groups of data strips, a near-infrared inversion molecular model is established, and the methods include but are not limited to Kmeans clustering, hierarchical clustering, spectrum matching, etc.;
[0209] (5) The online near-infrared spectrometer is used to collect the online near-infrared spectra of the gasoline blending components in the blending pipeline in real time. The spectrum of a gasoline component to be inverted is as follows: Figure 6 shown.
[0210] (6) Based on the intelligent inversion model, the online near-infrared spectrum to be inverted is calculated to obtain gasoline molecular composition data, wherein the gasoline molecular composition data can be referred to Table 3.
[0211] Table 3 Molecular data of gasoline samples to be predicted after infrared inversion (partial)
[0212] molecular The volume percentage of gasoline molecules to be predicted, vol% n-Butane 2.1014 Isobutane 1.0330 1-Butene+isobutylene 0.6982 n-Pentane 2.9557 Isopentane 13.8102 3-Methyl-1-butene 1.1765
[0213] (7) Linearly calculate the molecular composition of finished gasoline based on the inverted molecular data and the blending component input ratio; (8) Calculate the physical properties of finished gasoline based on the molecular composition of finished gasoline and the molecular-level physical property model;
[0214] (9) A multi-objective optimization model with the goals of minimizing excess quality and minimizing cost is established, and the corresponding constraint indicators are constructed by taking No. 92 motor gasoline (VI B) as an example. The constraint indicators can be referred to in Table 4.
[0215] Table 4 Constraints of No. 92 Motor Gasoline
[0216]
[0217]
[0218] (10) The interior point method is used to solve the multi-objective optimization model and obtain the optimal reconciliation ratio. The method for solving the multi-objective optimization model is as follows:
[0219] ① Set the blending ratio input x_1, and based on the blending ratio input and inversion, obtain the molecular composition data and molecular-level physical property model of the finished gasoline, and calculate the physical properties of various indicators of the finished gasoline;
[0220] ② Input the set blending ratio as the initial value of the optimization solution, set the constraint index, the constraint index is as shown in Table 4 above, solve based on SQP, if the solution is successful, the optimization formula x_opt is obtained, then go to step ③; if the solution fails, go to step ④;
[0221] ③ Based on the solved optimized formula x_opt, the range of all constraint indicators is calculated through the molecular-level physical property model. If all are within the qualified indicator range, the formula is sent to the blending control system;
[0222] ④ Reset the blending ratio input x_i (i=2,3,4...n), and enter step ② to optimize and obtain the component ratio solution x_opt. The optimal ratio obtained by solving the multi-objective optimization model can be referred to Table 5.
[0223] Table 5 Optimized proportions of components solved by multi-objective optimization
[0224] Components Hydrogenated gasoline Reformed gasoline Extraction of residual oil Hexane oil MTBE Pipeline oil Proportion 37.76% 20.86% 7.24% 6.90% 3.10% 24.14%
[0225] The physical property indices are calculated based on the optimized ratio solution x_opt, and the physical property indices can be referred to Table 6.
[0226] Table 6 Simulated and measured values of each index after optimizing the ratio
[0227]
[0228]
[0229] In this embodiment, the gasoline components were quickly detected using a near-infrared online analysis system, and the molecular composition data of the gasoline components were calculated using an intelligent inversion model, providing a data basis for the molecular-level blending of gasoline. As can be seen from Table 6, the macroscopic physical property analysis results of the finished gasoline have a smaller error than the results measured by the traditional test method and are basically consistent. Therefore, based on molecular-level data, the accuracy of the calculation of the physical properties of the blended finished gasoline is greatly improved.
[0230] The present embodiment provides a molecular-level online gasoline blending optimization method, which uses an online near-infrared spectrometer to obtain near-infrared spectrum data of gasoline samples in real time, and quickly inverts the molecular composition information and macroscopic physical property information of gasoline through an intelligent inversion model. Compared with the traditional offline analysis method, the method provided by the present embodiment has better real-time performance and can obtain analysis results in a short time to meet the requirements of real-time online blending. At the same time, the method provided by the present embodiment greatly improves the analysis efficiency by collecting near-infrared spectrum data online and combining it with an intelligent inversion model for analysis. It reduces the time for sample preparation and data processing, making the analysis process more efficient.
[0231] Furthermore, this embodiment uses an online near-infrared spectrometer for data collection, which is simple to operate and easy to implement. The establishment and application of the intelligent inversion model is also relatively simple, and does not require too much professional knowledge and skills. A near-infrared intelligent inversion method is developed to parse the sample molecular concentration through the near-infrared spectrum, and calculate the macroscopic physical property data according to the molecular-level physical property analysis model. This method analyzes the sample at the molecular level, and can detect the changes in molecular concentration and macroscopic physical properties in time when the sample properties fluctuate greatly. The model has stronger extension and higher accuracy. The method of this embodiment can not only obtain the molecular composition information of the gasoline sample in real time, but also calculate the optimal blending ratio according to the target requirements and optimization algorithm. By optimizing the blending, a better balance between performance and economy can be achieved, and the quality and performance of gasoline can be improved.
[0232] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.
Claims
1. A molecular-level online gasoline blending optimization method, characterized in that: include: Acquire the online near infrared spectrum of each blending component gasoline in the blending pipeline in real time, and input the online near infrared spectrum into a pre-built intelligent inversion model, and obtain the first compound composition corresponding to each blending component gasoline in each blending component gasoline through the intelligent inversion model; According to the first compound composition and the preset initial gasoline blending ratio, predicting the second compound composition of the finished gasoline by linear calculation; Calculating the macroscopic physical properties corresponding to the finished gasoline according to the composition of the second compound and a preset molecular-level physical property model; According to the macroscopic physical properties and preset constraint indicators, the initial gasoline blending ratio is iteratively updated by solving a pre-constructed multi-objective optimization model with the goals of minimizing excess mass and minimizing cost to obtain an optimal gasoline blending ratio.
2. A molecular-level online gasoline blending optimization method as claimed in claim 1, characterized in that: The real-time acquisition of the online near infrared spectrum of each blending component gasoline in the blending pipeline and inputting the online near infrared spectrum into the pre-built intelligent inversion model includes: Acquiring the initial online near-infrared spectrum of each of the blending component gasolines in real time according to a preset online near-infrared spectrometer, and performing spectral processing on the initial online near-infrared spectrum to obtain the online near-infrared spectrum; The online near-infrared spectra of each blending component gasoline are respectively input into the intelligent inversion model, and the online near-infrared spectra are analyzed and processed by the intelligent inversion model to obtain the first compound composition corresponding to each blending component gasoline; wherein the first compound composition includes the type of compound and the concentration corresponding to each compound.
3. A molecular-level online gasoline blending optimization method as claimed in claim 1, characterized in that: The construction process of the intelligent inversion model includes: The collected offline component gasoline samples are tested and analyzed by a preset offline gas chromatograph to obtain the compound composition corresponding to each offline component gasoline sample; Obtaining an offline near-infrared spectrum corresponding to each of the offline component gasoline samples by a preset offline near-infrared spectrometer; Constructing an offline component gasoline sample database according to the compound composition and offline near infrared spectrum corresponding to each of the offline component gasoline samples; The intelligent inversion model is constructed according to the offline component gasoline sample database through a preset clustering algorithm.
4. A molecular-level online gasoline blending optimization method as claimed in claim 1, characterized in that: The method of predicting the second compound composition of the finished gasoline by linear calculation according to the first compound composition and the preset initial gasoline blending ratio includes: Determining the proportion of each blending component gasoline according to the initial gasoline blending proportion; According to the ratio and the first compound composition, the second compound composition of the finished gasoline is calculated by a preset weighted summation method.
5. A molecular-level online gasoline blending optimization method as claimed in claim 1, characterized in that: The calculating the macroscopic physical properties corresponding to the finished gasoline according to the second compound composition and the preset molecular physical property model includes: According to the second compound composition, the macroscopic physical properties corresponding to the finished gasoline are calculated by the mixing rules set in the molecular-level physical property model; wherein the macroscopic physical properties include research octane number, motor octane number, vapor pressure, density, benzene volume fraction, aromatic volume fraction, olefin volume fraction, oxygen mass fraction, sulfur mass fraction and distillation range; wherein the mixing rules corresponding to the research octane number and the motor octane number are: THERE IS ij =(ON i +ON j ) / 2 Among them, v i is the volume percentage of the i-th compound in the finished gasoline; is the octane number contribution value of the i-th compound in the finished gasoline; i is the octane number of the i-th compound in the finished gasoline, ON j is the octane number of the jth compound in the finished gasoline, q ij is the harmonic effect coefficient of the i-th compound and the j-th compound in the finished gasoline; The mixing rule for the vapor pressure is: Among them, the v i is the volume percentage of the i-th compound in the finished gasoline; r i is the activity coefficient of the i-th compound in the finished gasoline at the measurement temperature; is the saturated vapor pressure of the i-th compound in the finished gasoline at the measurement temperature V; PR is the Reid vapor pressure; k is the first model parameter; b is the second model parameter; The mixing rule of the density, benzene volume fraction, aromatics volume fraction, olefin volume fraction, oxygen mass fraction, or sulfur mass fraction is: Wherein, fp is the density after mixing, benzene volume fraction, aromatics volume fraction, olefin volume fraction, oxygen mass fraction, or sulfur mass fraction; v i is the volume percentage of the i-th compound in the finished gasoline; the f i is the density, benzene volume fraction, aromatics volume fraction, olefin volume fraction, oxygen mass fraction, or sulfur mass fraction of the i-th compound in the finished gasoline; The mixing rule for the distillation range is: The distribution ratio of different compounds in the range near their boiling points along with the temperature is obtained through Weibull distribution; wherein the expression of the Weibull distribution is: The distribution ratio is normalized, then: w = ω / Σω; According to the content of each compound in the finished gasoline i Calculate its temperature in the preset temperature range [T L ,T U The amount of allocation in ] is z i ·w; Wherein, k is the first distribution parameter, λ is the second distribution parameter, and the distribution ratio of different types of compounds with temperature is controlled by adjusting the first distribution parameter and the second distribution parameter; T b,i is the boiling point of the compound; L is the maximum temperature threshold corresponding to each compound in the finished gasoline, and the T U is the minimum temperature threshold corresponding to each compound in the finished gasoline; According to the accumulation of the distribution amount and the temperature range, a real boiling point curve equation is constructed, and the real boiling point curve equation is converted into the Engler distillation range; wherein the expression of the Engler distillation range is: Wherein, T0, T10, T30, T50, T70, T90, Tf are respectively the temperature values at which the distillation volume of the actual boiling point curve is 0, 10%, 30%, 50%, 70%, 90%, 98% respectively; E Indicates the distillation temperature corresponding to different distillate volumes.
6. A molecular-level online gasoline blending optimization method as claimed in claim 1, characterized in that: The method solves a pre-built multi-objective optimization model with the objectives of minimizing excess quality and minimizing cost, iteratively updates the initial gasoline blending ratio, and obtains the optimal gasoline blending ratio, including: According to the macroscopic physical properties and the preset constraint indicators, the multi-objective optimization model is solved by the interior point method. If the solution is successful, the initial gasoline blending ratio is determined to be the optimal gasoline blending ratio; if the solution fails, the initial gasoline blending ratio is iteratively updated until the solution is successful, and the gasoline blending ratio corresponding to the successful solution is output as the optimal gasoline blending ratio; wherein the constraint indicators include at least one of the research octane number, the motor octane number, the Reid vapor pressure, the Engler distillation range, the density, the benzene volume fraction, the aromatics volume fraction, the olefin volume fraction, the oxygen mass fraction, and the sulfur mass fraction; the Engler distillation range includes the initial distillation point, the 10% distillation temperature, the 50% distillation temperature, the 90% distillation temperature, and the final distillation point; The expression of the multi-objective optimization model is: s.th(x)=∑x-1=0 g i (x)=ψ I -f i (x)≤0i=1,2,3…,M x i (x)=φ i (x)-ψ u ≤0i=1,2,3…,M Wherein, f(x) represents the objective function; n represents the number of types of physical properties involved in optimization; x represents the proportion of each blending component gasoline involved in blending; Φ i (x) represents the function of the i-th physical property involved in the blending; the Φ i The molecular-level physical property model is used to calculate the obtained i represents the target value of the i-th physical property involved in the blending; the w i represents the deviation weight of the i-th physical property involved in the blending; i represents the ith physical property excess equivalent cost of the blending component gasoline involved in the blending; the K represents the unit price vector of the blending component gasoline involved in the blending; the I represents the lower limit of the constraint index; the u represents the upper limit of the constraint index; and the M represents the total number of constraint indexes.
7. A molecular-level online gasoline blending optimization system, characterized in that: Including online analysis module, molecular prediction module, physical property calculation module and blending optimization module; The online analysis module is used to obtain the online near-infrared spectrum of each blending component gasoline in the blending pipeline in real time, and input the online near-infrared spectrum into the pre-built intelligent inversion model, and obtain the first compound composition corresponding to each blending component gasoline in each blending component gasoline through the intelligent inversion model; The molecular prediction module is used to predict the second compound composition of the finished gasoline through linear calculation according to the first compound composition and the preset initial gasoline blending ratio; The physical property calculation module is used to calculate the macroscopic physical properties corresponding to the finished gasoline according to the second compound composition and a preset molecular-level physical property model; The blending optimization module is used to iteratively update the initial gasoline blending ratio according to the macroscopic physical properties and preset constraint indicators by solving a pre-built multi-objective optimization model with the goals of minimizing excess mass and minimizing cost, so as to obtain the optimal gasoline blending ratio.
8. A molecular-level online gasoline blending optimization system as claimed in claim 7, characterized in that: The online analysis module includes a spectral unit and an inversion unit; The spectral unit is used to obtain the initial online near-infrared spectrum of each of the blending component gasolines in real time according to a preset online near-infrared spectrometer, and perform spectral processing on the initial online near-infrared spectrum to obtain the online near-infrared spectrum; The inversion unit is used to input the online near-infrared spectra of each blending component gasoline into the intelligent inversion model respectively, and analyze and process the online near-infrared spectra through the intelligent inversion model to obtain the first compound composition corresponding to each blending component gasoline; wherein the first compound composition includes the type of compound and the concentration corresponding to each compound.
9. A molecular-level online gasoline blending optimization system as claimed in claim 7, characterized in that: The molecular prediction module includes a ratio unit and a combination unit; The proportion unit is used to determine the proportion of each blending component gasoline according to the initial gasoline blending proportion; The combination unit is used to calculate the second compound composition of the finished gasoline according to the ratio and the first compound composition by a preset weighted summation method.
10. An electronic device, characterized in that: include: a memory having a computer program stored thereon; A processor is used to execute the computer program in the memory to implement the steps of a molecular-level online gasoline blending optimization method according to any one of claims 1-6.
Citation Information
Patent Citations
Gasoline blending optimization method based on molecular composition
CN109859805A
Molecular grade gasoline blending formula determination method and equipment, storage medium and application
CN116434850A
Gasoline offline reconciling plan optimization production scheduling system and gasoline offline reconciling plan optimization production scheduling method
CN117950367A
Cited By
Molecular composition recognition and physical property prediction method and system based on atlas
CN121068532A
