+

CN114997491A - Method, device, equipment and storage medium for optimizing gasoline octane number loss - Google Patents

Method, device, equipment and storage medium for optimizing gasoline octane number loss Download PDF

Info

Publication number
CN114997491A
CN114997491A CN202210598633.1A CN202210598633A CN114997491A CN 114997491 A CN114997491 A CN 114997491A CN 202210598633 A CN202210598633 A CN 202210598633A CN 114997491 A CN114997491 A CN 114997491A
Authority
CN
China
Prior art keywords
sample set
gasoline
octane number
prediction model
number loss
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210598633.1A
Other languages
Chinese (zh)
Inventor
陈龙
王海晖
周耀胜
黄茜
陈言璞
唐铮
蒋海洋
马澎家
杨望宇
蔡俊
黄鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Institute of Technology
Original Assignee
Wuhan Institute of Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Institute of Technology filed Critical Wuhan Institute of Technology
Priority to CN202210598633.1A priority Critical patent/CN114997491A/en
Publication of CN114997491A publication Critical patent/CN114997491A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/04Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • G06N3/084Backpropagation, e.g. using gradient descent
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/10Internal combustion engine [ICE] based vehicles
    • Y02T10/40Engine management systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Economics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Biomedical Technology (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Game Theory and Decision Science (AREA)
  • Development Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Operations Research (AREA)
  • Biophysics (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to a method, a device, equipment and a storage medium for optimizing the loss of gasoline octane number, wherein the method comprises the following steps: acquiring a gasoline refining data sample set, wherein the gasoline refining data sample set comprises an operation variable sample set and a production factor sample set; screening out a target operation variable sample set which meets a preset requirement from the operation variable sample set based on a random forest algorithm; establishing a gasoline octane number loss prediction model, and training the gasoline octane number loss prediction model according to the target operation variable sample set and the production factor sample set to obtain a target gasoline octane number loss prediction model with complete training; and setting constraint conditions, and determining the optimization conditions of the target operating variables meeting the constraint conditions based on the well-trained target gasoline octane number loss prediction model. The invention relates to a method, a device, equipment and a storage medium for optimizing the octane number loss of gasoline, which are used for screening operating variables from a sample set and improving the optimization efficiency.

Description

一种汽油辛烷值损失优化方法、装置、设备及存储介质A kind of gasoline octane loss optimization method, device, equipment and storage medium

技术领域technical field

本发明涉及汽油精制技术领域,尤其涉及一种汽油辛烷值损失优化方法、装置、设备及存储介质。The invention relates to the technical field of gasoline refining, in particular to a method, device, equipment and storage medium for optimizing the loss of gasoline octane number.

背景技术Background technique

汽油是小型车辆的主要燃料,汽油燃烧产生的尾气排放对大气环境有重要影响。为此,世界各国都制定了日益严格的汽油质量标准。汽油清洁化重点是降低汽油中的硫、烯烃含量,同时尽量保持其辛烷值。目前,国内炼油工艺设备和工艺不统一,原料组成复杂,不可控因素多,难以实现连续扩容和优化生产的目标。因此,在目前严格的国家标准下,如何降低汽油中的硫、烯烃等物质,使化工厂得到辛烷值尽可能高的汽油,成为汽油生产领域的重点和难点。Gasoline is the main fuel for small vehicles, and the exhaust emissions from gasoline combustion have an important impact on the atmospheric environment. To this end, countries around the world have developed increasingly stringent gasoline quality standards. The focus of gasoline cleaning is to reduce the sulfur and olefin content in gasoline while maintaining its octane number as much as possible. At present, domestic refining process equipment and processes are not unified, the composition of raw materials is complex, and there are many uncontrollable factors, making it difficult to achieve the goal of continuous capacity expansion and optimized production. Therefore, under the current strict national standards, how to reduce sulfur, olefins and other substances in gasoline so that chemical plants can obtain gasoline with the highest octane number as possible has become the focus and difficulty in the field of gasoline production.

汽油清洁化的重点是降低汽油中的硫、烯烃含量,同时尽量保持其辛烷值。然而现有技术中的化工过程的建模一般是通过数据关联或机理建模的方法来实现的,它们操作变量之间呈线性关系。The focus of gasoline cleaning is to reduce the sulfur and olefin content in gasoline while maintaining its octane number as much as possible. However, the modeling of chemical processes in the prior art is generally realized by means of data association or mechanism modeling, and there is a linear relationship between their operating variables.

传统的数据关联模型中变量相对较少、机理建模对原料的分析要求较高,对过程优化的响应不及时,所以效果并不理想。因此,如何建立汽油精制过程中的辛烷值损失模型并进行操作优化是目前亟待解决的问题。The traditional data association model has relatively few variables, and the mechanism modeling requires high analysis of raw materials, and the response to process optimization is not timely, so the effect is not ideal. Therefore, how to establish an octane loss model in the gasoline refining process and optimize the operation is an urgent problem to be solved.

发明内容SUMMARY OF THE INVENTION

有鉴于此,有必要提供一种汽油辛烷值损失优化方法、装置、设备及存储介质,用以解决现有技术中汽油辛烷值损失优化时关联变量少,优化效果差的问题。In view of this, it is necessary to provide a method, device, equipment and storage medium for optimizing gasoline octane number loss, so as to solve the problems of less related variables and poor optimization effect in the prior art when optimizing gasoline octane number loss.

为达到上述技术目的,本发明采取了以下技术方案:In order to achieve the above-mentioned technical purpose, the present invention has adopted the following technical solutions:

第一方面,本发明提供了一种汽油辛烷值损失优化方法,包括:In a first aspect, the present invention provides a method for optimizing gasoline octane number loss, comprising:

获取汽油精制数据样本集,汽油精制数据样本集包括操作变量样本集以及生产因素样本集;Obtain a gasoline refining data sample set, which includes an operational variable sample set and a production factor sample set;

基于随机森林算法,从操作变量样本集筛选出满足预设要求的目标操作变量样本集;Based on the random forest algorithm, select the target operating variable sample set that meets the preset requirements from the operating variable sample set;

建立汽油辛烷值损失预测模型,根据目标操作变量样本集以及生产因素样本集,对汽油辛烷值损失预测模型进行训练,得到训练完备的目标汽油辛烷值损失预测模型;Establish a gasoline octane loss prediction model, train the gasoline octane loss prediction model according to the target operating variable sample set and the production factor sample set, and obtain a fully trained target gasoline octane loss prediction model;

设置约束条件,基于训练完备的目标汽油辛烷值损失预测模型,确定满足约束条件的目标操作变量的优化条件。Constraints are set, and based on the well-trained target gasoline octane loss prediction model, the optimization conditions of the target operating variables that satisfy the constraints are determined.

优选的,基于随机森林算法,从操作变量样本集筛选出满足预设要求的目标操作变量样本集,包括:Preferably, based on the random forest algorithm, the target operating variable sample set that meets the preset requirements is screened from the operating variable sample set, including:

对汽油精制数据样本集进行预处理,得到可靠汽油精制数据样本集;Preprocess the gasoline refining data sample set to obtain a reliable gasoline refining data sample set;

构建多颗决策树,通过OOB方式计算每颗决策树的可靠汽油精制数据样本集误差,得到OOB误差;Build multiple decision trees, calculate the reliable gasoline refined data sample set error of each decision tree by OOB method, and obtain the OOB error;

将操作变量进行重新排序,再次计算操作变量的误差,得到重序误差;Reorder the manipulated variables, calculate the error of the manipulated variables again, and get the reordering error;

根据OOB误差和重序误差,计算每个操作变量的重要性;Calculate the importance of each manipulated variable based on the OOB error and the reordering error;

根据操作变量的重要性,筛选出满足预设要求的操作变量,得到目标操作变量样本集。According to the importance of the manipulated variables, the manipulated variables that meet the preset requirements are screened out, and the target manipulated variable sample set is obtained.

优选的,建立汽油辛烷值损失预测模型,根据目标操作变量样本集以及生产因素样本集,对汽油辛烷值损失预测模型进行训练,得到训练完备的目标汽油辛烷值损失预测模型,包括:Preferably, a gasoline octane loss prediction model is established, and the gasoline octane loss prediction model is trained according to the target operating variable sample set and the production factor sample set to obtain a fully trained target gasoline octane loss prediction model, including:

将目标操作变量样本集以及生产因素样本集进行贝叶斯归一化;Perform Bayesian normalization on the target operating variable sample set and the production factor sample set;

建立汽油辛烷值损失预测模型,设置汽油辛烷值损失预测模型的参数;Establish a gasoline octane loss prediction model, and set the parameters of the gasoline octane loss prediction model;

将归一化后的目标操作变量样本集以及生产因素样本集输入至汽油辛烷值损失预测模型,以辛烷值损失为输出,对汽油辛烷值损失预测模型进行训练,得到训练完备的目标汽油辛烷值损失预测模型。Input the normalized target operating variable sample set and production factor sample set into the gasoline octane loss prediction model, and use the octane loss as the output to train the gasoline octane loss prediction model to obtain a fully trained target. Gasoline octane loss prediction model.

优选的,建立汽油辛烷值损失预测模型,设置汽油辛烷值损失预测模型的参数,包括:Preferably, a gasoline octane loss prediction model is established, and parameters of the gasoline octane loss prediction model are set, including:

设置汽油辛烷值损失预测模型的激励函数、网络训练函数以及网络性能函数类型;Set the excitation function, network training function and network performance function type of the gasoline octane loss prediction model;

设置汽油辛烷值损失预测模型隐含层的神经元数;Set the number of neurons in the hidden layer of the gasoline octane loss prediction model;

设置汽油辛烷值损失预测模型的网络参数。Set the network parameters of the gasoline octane loss prediction model.

优选的,设置约束条件,基于训练完备的目标汽油辛烷值损失预测模型,确定满足约束条件的目标操作变量的优化条件,包括:Preferably, constraints are set, and based on the well-trained target gasoline octane loss prediction model, the optimization conditions of the target operating variables that satisfy the constraints are determined, including:

建立关联神经网络模型,设置约束条件;Establish an associative neural network model and set constraints;

根据关联神经网络模型,建立辛烷值损失量和操作变量的函数关系f(net1),以及汽油硫含量和操作变量的函数关系f(net2);According to the correlation neural network model, establish the functional relationship f(net1) between octane loss and operating variables, and the functional relationship f(net2) between gasoline sulfur content and operating variables;

根据函数关系f(net1)和函数关系f(net2),确定满足约束条件的最优操作变量的优化条件。According to the functional relationship f(net1) and the functional relationship f(net2), the optimization conditions of the optimal operating variables satisfying the constraints are determined.

优选的,根据函数关系f(net1)和函数关系f(net2),确定满足约束条件的目标操作变量的优化条件,包括:Preferably, according to the functional relationship f(net1) and the functional relationship f(net2), the optimization conditions of the target operating variables that satisfy the constraints are determined, including:

根据函数关系f(net1)和函数关系f(net2),确定每一操作变量对应的辛烷值损失量和硫含量;According to the functional relationship f(net1) and the functional relationship f(net2), determine the octane number loss and sulfur content corresponding to each operating variable;

根据操作变量对应的辛烷值损失量和硫含量,并记录目标操作变量对应的优化条件;According to the octane number loss and sulfur content corresponding to the operating variables, and record the optimization conditions corresponding to the target operating variables;

重复上述操作直至确定所有目标操作变量对应的优化条件。The above operations are repeated until the optimization conditions corresponding to all target operating variables are determined.

优选的,对汽油精制数据样本集进行预处理,得到可靠汽油精制数据样本集,包括:Preferably, the gasoline refining data sample set is preprocessed to obtain a reliable gasoline refining data sample set, including:

判断汽油精制数据样本集中是否存在残缺数据;Determine whether there is incomplete data in the gasoline refining data sample set;

将达到残缺阈值的残缺数据删除,未达到残缺阈值的残缺数据进行替换;Delete the incomplete data that reaches the incomplete threshold, and replace the incomplete data that does not reach the incomplete threshold;

判断汽油精制数据样本集中是否存在异常数据;Determine whether there is abnormal data in the gasoline refining data sample set;

根据预设准则,将异常数据进行剔除,得到可靠汽油精制数据样本集。According to the preset criteria, the abnormal data is eliminated to obtain a reliable gasoline refining data sample set.

第二方面,本发明还提供了一种汽油辛烷值损失优化装置,包括:In a second aspect, the present invention also provides a gasoline octane number loss optimization device, comprising:

数据获取模块,用于获取汽油精制数据样本集,汽油精制数据样本集包括操作变量样本集以及生产因素样本集;The data acquisition module is used to acquire the gasoline refining data sample set, and the gasoline refining data sample set includes the operation variable sample set and the production factor sample set;

筛选模块,用于基于随机森林算法,从操作变量样本集筛选出满足预设要求的目标操作变量样本集;The screening module is used to screen out the target operating variable sample set that meets the preset requirements from the operating variable sample set based on the random forest algorithm;

建模模块,用于建立汽油辛烷值损失预测模型,根据目标操作变量样本集以及生产因素样本集,对汽油辛烷值损失预测模型进行训练,得到训练完备的目标汽油辛烷值损失预测模型;The modeling module is used to establish a gasoline octane loss prediction model, and train the gasoline octane loss prediction model according to the target operating variable sample set and the production factor sample set, and obtain a fully trained target gasoline octane loss prediction model ;

优化模块,用于设置约束条件,基于训练完备的目标汽油辛烷值损失预测模型,确定满足约束条件的目标操作变量的优化条件。The optimization module is used to set constraints, and based on the well-trained target gasoline octane loss prediction model, determine the optimization conditions of the target operating variables that satisfy the constraints.

第三方面,本发明还提供了一种电子设备,包括存储器和处理器,其中,In a third aspect, the present invention also provides an electronic device including a memory and a processor, wherein,

存储器,用于存储程序;memory for storing programs;

处理器,与存储器耦合,用于执行存储器中存储的程序,以实现上述任一种实现方式中的汽油辛烷值损失优化方法中的步骤。A processor, coupled with the memory, is configured to execute the program stored in the memory, so as to implement the steps in the method for optimizing gasoline octane number loss in any one of the above implementation manners.

第四方面,本发明还提供了一种计算机可读存储介质,用于存储计算机可读取的程序或指令,程序或指令被处理器执行时,能够实现上述任一种实现方式中的汽油辛烷值损失优化方法中的步骤。In a fourth aspect, the present invention also provides a computer-readable storage medium for storing computer-readable programs or instructions. When the programs or instructions are executed by a processor, the gasoline-integrated storage medium in any of the above-mentioned implementations can be implemented. Steps in the Alkane Loss Optimization Method.

采用上述实施例的有益效果是:本发明提供的一种汽油辛烷值损失优化方法、装置、设备及存储介质,获取汽油精制数据样本集,汽油精制数据样本集具有多组数据,增加了汽油辛烷值损失优化时的关联变量,并从中筛选出降低汽油辛烷值损失的关键操作变量,并通过训练完备的目标汽油辛烷值损失预测模型,在设定约束条件下确定最佳的目标操作变量的优化条件,提高了在特定约束条件下的汽油辛烷值损失优化的效果。The beneficial effects of adopting the above embodiments are: a gasoline octane loss optimization method, device, equipment and storage medium provided by the present invention can obtain a gasoline refining data sample set, and the gasoline refining data sample set has multiple sets of data, which increases gasoline The relevant variables in the octane loss optimization, and screen out the key operating variables to reduce the gasoline octane loss, and determine the optimal target under the set constraints by training a complete target gasoline octane loss prediction model The optimization conditions of operating variables improve the effect of gasoline octane loss optimization under certain constraints.

附图说明Description of drawings

图1为本发明提供的汽油辛烷值损失优化方法的一实施例的流程示意图;Fig. 1 is the schematic flow sheet of an embodiment of the gasoline octane number loss optimization method provided by the invention;

图2为本发明提供的筛选操作变量的一实施例的流程示意图;2 is a schematic flowchart of an embodiment of screening operational variables provided by the present invention;

图3为本发明提供的操作变量排序的一实施例的重要程度图;Fig. 3 is the importance degree diagram of an embodiment of the operation variable sorting provided by the present invention;

图4为本发明提供的汽油辛烷值损失优化装置的一实施例的结构示意图;4 is a schematic structural diagram of an embodiment of a gasoline octane number loss optimization device provided by the present invention;

图5为本发明实施例提供的电子设备的结构示意图。FIG. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面结合附图来具体描述本发明的优选实施例,其中,附图构成本申请一部分,并与本发明的实施例一起用于阐释本发明的原理,并非用于限定本发明的范围。The preferred embodiments of the present invention are specifically described below with reference to the accompanying drawings, wherein the accompanying drawings constitute a part of the present application, and together with the embodiments of the present invention, are used to explain the principles of the present invention, but are not used to limit the scope of the present invention.

在本申请的描述中,“多个”的含义是两个或两个以上,除非另有明确具体的限定。In the description of the present application, "plurality" means two or more, unless otherwise expressly and specifically defined.

在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor a separate or alternative embodiment that is mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

本发明提供了一种汽油辛烷值损失优化方法、装置、设备及存储介质,以下分别进行说明。The present invention provides a method, device, equipment and storage medium for optimizing the loss of gasoline octane number, which will be described separately below.

请参阅图1,图1为本发明提供的汽油辛烷值损失优化方法的一实施例的流程示意图,本发明的一个具体实施例,公开了一种汽油辛烷值损失优化方法,包括:Please refer to FIG. 1. FIG. 1 is a schematic flowchart of an embodiment of a gasoline octane number loss optimization method provided by the present invention. A specific embodiment of the present invention discloses a gasoline octane number loss optimization method, including:

S101、获取汽油精制数据样本集,汽油精制数据样本集包括操作变量样本集以及生产因素样本集;S101. Obtain a gasoline refining data sample set, where the gasoline refining data sample set includes an operational variable sample set and a production factor sample set;

S102、基于随机森林算法,从操作变量样本集筛选出满足预设要求的目标操作变量样本集;S102. Based on the random forest algorithm, select a target operating variable sample set that meets preset requirements from the operating variable sample set;

S103、建立汽油辛烷值损失预测模型,根据目标操作变量样本集以及生产因素样本集,对汽油辛烷值损失预测模型进行训练,得到训练完备的目标汽油辛烷值损失预测模型;S103, establishing a gasoline octane number loss prediction model, and training the gasoline octane number loss prediction model according to the target operation variable sample set and the production factor sample set, to obtain a target gasoline octane number loss prediction model with complete training;

S104、设置约束条件,基于训练完备的目标汽油辛烷值损失预测模型,确定满足约束条件的目标操作变量的优化条件。S104 , setting constraints, and determining optimization conditions of target operating variables that satisfy the constraints based on the well-trained target gasoline octane loss prediction model.

在本发明具体的实施例中,步骤S101参考近4年的工业数据的预处理结果,从7个原料性质、2个待生吸附剂性质、2个再生吸附剂性质、2个产品性质等变量以及另外354个操作变量(共计367个变量)的角度来分别分析了它们对汽油辛烷值损失值的影响,以近4年的工业数据的预处理结果构建汽油精制数据样本集。In a specific embodiment of the present invention, step S101 refers to the preprocessing results of industrial data in the past 4 years, and selects variables such as 7 raw material properties, 2 raw adsorbent properties, 2 regenerated adsorbent properties, and 2 product properties. and another 354 operating variables (total 367 variables) to analyze their effects on gasoline octane loss value, and construct gasoline refining data sample set based on the preprocessing results of industrial data in the past 4 years.

在本发明具体的实施例中,步骤S102通过随机森林算法,计算近4年的工业数据中的各个操作变量的重要性,预设要求为重要性由高到低排列,最高的30个操作变量。筛选出来的目标操作变量样本集,对汽油辛烷值损失优化的效果更为明显。In a specific embodiment of the present invention, step S102 calculates the importance of each operational variable in the industrial data in the past 4 years through the random forest algorithm, and the preset requirement is to arrange the importance from high to low, and the highest 30 operational variables . The selected sample set of target operating variables has a more obvious effect on the optimization of gasoline octane loss.

在本发明具体的实施例中,步骤S103建立的汽油辛烷值损失预测模型为BP神经网络模型,将标操作变量样本集以及生产因素样本集作为BP神经网络模型的输入,将汽油辛烷值作为输出,对BP神经网络模型进行训练,得到训练完备的目标汽油辛烷值损失预测模型,即满足汽油辛烷值损失预测精度的模型。In a specific embodiment of the present invention, the gasoline octane loss prediction model established in step S103 is a BP neural network model, the standard operation variable sample set and the production factor sample set are used as the input of the BP neural network model, and the gasoline octane number is used as the input of the BP neural network model. As the output, the BP neural network model is trained to obtain a fully trained target gasoline octane loss prediction model, that is, a model that meets the prediction accuracy of gasoline octane loss.

在本发明具体的实施例中,步骤S104在约束条件下,通过训练完备的目标汽油辛烷值损失预测模型,对30个目标操作变量进行调整,并记录其对汽油辛烷值损失的影响,找到每个操作变量最优的优化条件,并记录下来,确定所有的操作变量最优的优化条件。根据约束条件,确定在约束条件下的最优的目标操作变量的优化条件,提高了在特定约束条件下的汽油辛烷值损失优化的效果。In a specific embodiment of the present invention, step S104 adjusts 30 target operating variables by training a complete target gasoline octane loss prediction model under constraints, and records their influence on gasoline octane loss, Find the optimal optimization conditions for each operating variable, record them, and determine the optimal optimization conditions for all operating variables. According to the constraints, the optimization conditions of the optimal target operating variables under the constraints are determined, which improves the optimization effect of the gasoline octane loss under the specific constraints.

与现有技术相比,本实施例提供的一种汽油辛烷值损失优化方法,获取汽油精制数据样本集,汽油精制数据样本集具有多组数据,增加了汽油辛烷值损失优化时的关联变量,并从中筛选出降低汽油辛烷值损失的关键操作变量,并通过训练完备的目标汽油辛烷值损失预测模型,在设定约束条件下确定最佳的目标操作变量的优化条件,提高了在特定约束条件下的汽油辛烷值损失优化的效果。Compared with the prior art, the present embodiment provides a gasoline octane loss optimization method, which obtains a gasoline refining data sample set, and the gasoline refining data sample set has multiple sets of data, which increases the correlation when optimizing gasoline octane loss. variable, and screen out the key operating variables to reduce gasoline octane loss, and by training a complete target gasoline octane loss prediction model to determine the optimal optimization conditions of the target operating variables under the set constraints, improve the The effect of gasoline octane loss optimization under specific constraints.

请参阅图2,图2为本发明提供的筛选操作变量的一实施例的流程示意图,在本发明的一些实施例中,基于随机森林算法,从操作变量样本集筛选出满足预设要求的目标操作变量样本集,包括:Please refer to FIG. 2. FIG. 2 is a schematic flowchart of an embodiment of screening operating variables provided by the present invention. In some embodiments of the present invention, based on a random forest algorithm, targets that meet preset requirements are screened from a sample set of operating variables. A sample set of manipulated variables, including:

S201、对汽油精制数据样本集进行预处理,得到可靠汽油精制数据样本集;S201. Preprocess the gasoline refining data sample set to obtain a reliable gasoline refining data sample set;

S202、构建多颗决策树,通过OOB方式计算每颗决策树的可靠汽油精制数据样本集误差,得到OOB误差;S202, constructing multiple decision trees, and calculating the error of the reliable gasoline refined data sample set of each decision tree by the OOB method, and obtaining the OOB error;

S203、将操作变量进行重新排序,再次计算操作变量的误差,得到重序误差;S203, reordering the operating variables, and calculating the error of the operating variables again to obtain the reordering error;

S204、根据OOB误差和重序误差,计算每个操作变量的重要性;S204, calculate the importance of each operating variable according to the OOB error and the reordering error;

S205、根据操作变量的重要性,筛选出满足预设要求的操作变量,得到目标操作变量样本集。S205 , according to the importance of the operating variables, screen out the operating variables that meet the preset requirements, and obtain a target operating variable sample set.

在本发明具体的实施例中,步骤S201汽油精制数据样本集包含了近4年的工业数据的预处理结果,数据比较庞大,且有些数据会出现缺陷甚至错误,如果直接使用汽油精制数据样本集,会对最终的优化结果产生严重误差,因此,通过预处理的方式,得到可靠汽油精制数据样本集。In a specific embodiment of the present invention, the gasoline refining data sample set in step S201 includes the preprocessing results of industrial data in the past four years. The data is relatively large, and some data may have defects or even errors. If the gasoline refining data sample set is directly used , which will cause serious errors in the final optimization results. Therefore, a reliable gasoline refining data sample set is obtained through preprocessing.

在本发明具体的实施例中,步骤S202随机森林算法实际上依靠构建的多颗决策树得到预测结果。随机森林可以对特征的重要性进行计算,并将其进行排序。本文将采用OOB(Out-Of-Bag)的方式计算误差值,得到OOB误差,分别记为Erroob1,Erroob2,…,Erroobk。In a specific embodiment of the present invention, the random forest algorithm in step S202 actually obtains the prediction result by relying on the constructed multiple decision trees. Random forest can calculate the importance of features and rank them. In this paper, the OOB (Out-Of-Bag) method will be used to calculate the error value, and the OOB error will be obtained, which are respectively recorded as Err oob 1, Err oob 2,..., Err oob k.

在本发明具体的实施例中,步骤S203并对30种操作变量的367个数据进行重新排序,并计算重新排序后操作变量的误差,得到重序误差,分别记为Erri1,Erri2,…,Errik。需要说明的是,同一操作变量的重序误差和OOB误差是对应的。In a specific embodiment of the present invention, step S203 reorders 367 data of 30 kinds of operating variables, and calculates the errors of the operating variables after the reordering, and obtains the reordering errors, which are respectively denoted as Err i 1 and Err i 2 ,…,Err i k. It should be noted that the reordering error and OOB error of the same manipulated variable are corresponding.

在本发明具体的实施例中,步骤S204根据公式

Figure BDA0003669071860000081
Figure BDA0003669071860000082
计算每个操作变量的重要性,其中,I为操作变量的重要性,k为误差的总数。In a specific embodiment of the present invention, step S204 is based on the formula
Figure BDA0003669071860000081
Figure BDA0003669071860000082
Calculate the importance of each manipulated variable, where I is the importance of the manipulated variable and k is the total number of errors.

在本发明具体的实施例中,步骤S205将计算的每个操作变量的重要性进行排序,选出前30个最优特征作为主要特征,即目标操作变量。需要说明的是,从操作变量样本集中找到筛选出来的对应的30个目标操作变量的样本集,即为目标操作变量样本集。请参阅图3,图3为本发明提供的操作变量排序的一实施例的重要程度图。In a specific embodiment of the present invention, step S205 sorts the calculated importance of each operating variable, and selects the top 30 optimal features as main features, that is, target operating variables. It should be noted that a sample set of 30 corresponding target manipulated variables that are screened out from the manipulated variable sample set is the target manipulated variable sample set. Please refer to FIG. 3 . FIG. 3 is an importance level diagram of an embodiment of the operation variable sorting provided by the present invention.

在本发明的一些实施例中,建立汽油辛烷值损失预测模型,根据目标操作变量样本集以及生产因素样本集,对汽油辛烷值损失预测模型进行训练,得到训练完备的目标汽油辛烷值损失预测模型,包括:In some embodiments of the present invention, a gasoline octane loss prediction model is established, and the gasoline octane loss prediction model is trained according to the target operating variable sample set and the production factor sample set to obtain a fully trained target gasoline octane number Loss prediction models, including:

将目标操作变量样本集以及生产因素样本集进行贝叶斯归一化;Perform Bayesian normalization on the target operating variable sample set and the production factor sample set;

建立汽油辛烷值损失预测模型,设置汽油辛烷值损失预测模型的参数;Establish a gasoline octane loss prediction model, and set the parameters of the gasoline octane loss prediction model;

将归一化后的目标操作变量样本集以及生产因素样本集输入至汽油辛烷值损失预测模型,以辛烷值损失为输出,对汽油辛烷值损失预测模型进行训练,得到训练完备的目标汽油辛烷值损失预测模型。Input the normalized target operating variable sample set and production factor sample set into the gasoline octane loss prediction model, and use the octane loss as the output to train the gasoline octane loss prediction model to obtain a fully trained target. Gasoline octane loss prediction model.

在上述实施例中,根据神经网络的结构而言,如果有一个隐含层的神经网络,只要它的隐含节点足够多的话,就可以以任意精度的无限逼近一个非线性函数。因此,本发明的数学模型的预测采用的是含有一个隐含层的三层多输入单输出的BP神经网络建立的预测模型。本数学模型的神经网络预测,在选取隐层神经元个数的这个问题上参照了以下的经验公式:

Figure BDA0003669071860000091
其中,n为输入层神经元个数,m为输出层神经元个数,a为[1,10]之间的常数。将目标操作变量样本集以及生产因素样本集进行贝叶斯归一化到[-1,1]范围内,设输入层的节点数为30,输出层的节点数为1,建立汽油辛烷值损失预测模型。In the above embodiment, according to the structure of the neural network, if there is a neural network with a hidden layer, as long as it has enough hidden nodes, a nonlinear function can be infinitely approximated with arbitrary precision. Therefore, the prediction of the mathematical model of the present invention adopts a prediction model established by a three-layer multi-input single-output BP neural network including one hidden layer. The neural network prediction of this mathematical model refers to the following empirical formula for selecting the number of neurons in the hidden layer:
Figure BDA0003669071860000091
Among them, n is the number of neurons in the input layer, m is the number of neurons in the output layer, and a is a constant between [1, 10]. The target operating variable sample set and the production factor sample set are Bayesian normalized to the range of [-1, 1], the number of nodes in the input layer is 30, and the number of nodes in the output layer is 1, and the gasoline octane number is established. loss prediction model.

并将归一化后的目标操作变量样本集以及生产因素样本对汽油辛烷值损失预测模型,达到预测要求的汽油辛烷值损失预测模型即为训练完备的目标汽油辛烷值损失预测模型。The normalized target operating variable sample set and production factor samples are used to predict the gasoline octane loss prediction model, and the gasoline octane loss prediction model that meets the prediction requirements is the well-trained target gasoline octane loss prediction model.

在本发明的一些实施例中,建立汽油辛烷值损失预测模型,设置汽油辛烷值损失预测模型的参数,包括:In some embodiments of the present invention, a gasoline octane loss prediction model is established, and parameters of the gasoline octane loss prediction model are set, including:

设置汽油辛烷值损失预测模型的激励函数、网络训练函数以及网络性能函数类型;Set the excitation function, network training function and network performance function type of the gasoline octane loss prediction model;

设置汽油辛烷值损失预测模型隐含层的神经元数;Set the number of neurons in the hidden layer of the gasoline octane loss prediction model;

设置汽油辛烷值损失预测模型的网络参数。Set the network parameters of the gasoline octane loss prediction model.

在上述实施例中,BP神经网络,通常采用Sigmoid可微函数和线性函数作为网络的激励函数。本问题采用的模型是选择S型正切函数tansig作为隐层神经元的激励函数,设定网络的输出归一到[-1,1]范围内,因此预测模型选取S型对数函数tansig作为输出层神经元的激励函数。In the above-mentioned embodiment, the BP neural network usually adopts the sigmoid differentiable function and the linear function as the excitation function of the network. The model used in this problem is to select the sigmoid tangent function tansig as the excitation function of the hidden layer neurons, and set the output of the network to be normalized to the range of [-1, 1]. Therefore, the prediction model selects the sigmoid logarithmic function tansig as the output. The activation function of the layer neurons.

Sigmoid激活函数公式如下:

Figure BDA0003669071860000101
The sigmoid activation function formula is as follows:
Figure BDA0003669071860000101

tansig激活函数公式如下:

Figure BDA0003669071860000102
The tansig activation function formula is as follows:
Figure BDA0003669071860000102

logsig激活函数公式如下:

Figure BDA0003669071860000103
The formula of the logsig activation function is as follows:
Figure BDA0003669071860000103

设定神经网络的隐层和输出层的激励函数分别为tansig和logsig函数,网络训练函数为traingdx,网络性能函数为mse,再设定隐含层的神经元数初步设为10,可以根据实际情况进行合适的调整,然后再设定网络参数,网络迭代次数epochs为244次,期望误差goal为0.00000001,学习速率lr为0.01。设定完参数后,开始训练神经网络,这个过程等待的时间可能比较长。Set the excitation functions of the hidden layer and output layer of the neural network as tansig and logsig functions respectively, the network training function as trainingdx, and the network performance function as mse, and then set the number of neurons in the hidden layer to 10 initially. Adjust the situation appropriately, and then set the network parameters. The number of network iterations epochs is 244, the expected error goal is 0.00000001, and the learning rate lr is 0.01. After setting the parameters, start training the neural network, which may take a long time to wait.

在本发明的一些实施例中,设置约束条件,基于训练完备的目标汽油辛烷值损失预测模型,确定满足约束条件的目标操作变量的优化条件,包括:In some embodiments of the present invention, constraints are set, and based on a well-trained target gasoline octane loss prediction model, the optimization conditions of target operating variables that satisfy the constraints are determined, including:

建立关联神经网络模型,设置约束条件;Establish an associative neural network model and set constraints;

根据关联神经网络模型,建立辛烷值损失量和操作变量的函数关系f(net1),以及汽油硫含量和操作变量的函数关系f(net2);According to the correlation neural network model, establish the functional relationship f(net1) between octane loss and operating variables, and the functional relationship f(net2) between gasoline sulfur content and operating variables;

根据函数关系f(net1)和函数关系f(net2),确定满足约束条件的最优操作变量的优化条件。According to the functional relationship f(net1) and the functional relationship f(net2), the optimization conditions of the optimal operating variables satisfying the constraints are determined.

在上述实施例中,硫含量对汽油有许多不利影响,本发明的实施例中,约束条件为硫含量不大于5ug/g。建立关联神经网络模型,利用它建立辛烷值(RON)损失量和筛选之后的30个主要操作变量建立函数关系,记做f(net1)。然后,利用神经网络建立产品硫含量(不是原料硫含量)与30个变量之间的函数关系,记做f(net2),辛烷值(RON)为未调整之前的辛烷值损失。并根据函数关系f(net1)和函数关系f(net2),进一步确定满足约束条件的最优操作变量的优化条件。In the above embodiments, the sulfur content has many adverse effects on gasoline, and in the embodiment of the present invention, the constraint is that the sulfur content is not greater than 5ug/g. Establish a correlation neural network model, and use it to establish a functional relationship between the loss of octane number (RON) and the 30 main operating variables after screening, denoted as f(net1). Then, a neural network is used to establish the functional relationship between the product sulfur content (not the raw material sulfur content) and 30 variables, denoted as f(net2), and the octane number (RON) is the loss of octane number before adjustment. And according to the functional relationship f(net1) and the functional relationship f(net2), the optimization conditions of the optimal operating variables that satisfy the constraints are further determined.

在本发明的一些实施例中,根据函数关系f(net1)和函数关系f(net2),确定满足约束条件的目标操作变量的优化条件,包括:In some embodiments of the present invention, according to the functional relationship f(net1) and the functional relationship f(net2), determining the optimization condition of the target operating variable that satisfies the constraint condition, including:

根据函数关系f(net1)和函数关系f(net2),确定每一操作变量对应的辛烷值损失量和硫含量;According to the functional relationship f(net1) and the functional relationship f(net2), determine the octane number loss and sulfur content corresponding to each operating variable;

根据操作变量对应的辛烷值损失量和硫含量,并记录目标操作变量对应的优化条件;According to the octane number loss and sulfur content corresponding to the operating variables, and record the optimization conditions corresponding to the target operating variables;

重复上述操作直至确定所有目标操作变量对应的优化条件。The above operations are repeated until the optimization conditions corresponding to all target operating variables are determined.

在上述实施例中,定义目标规划1为f(net1)<0.7*RON,定义目标规划2为f(net2)<=5,根据训练完备的目标汽油辛烷值损失预测模型,不断的计算每一操作变量对应的辛烷值损失量和硫含量,以及接受概率,并记录目标操作变量对应的优化条件。可以理解的是,本发明中的函数关系f(net1)和函数关系f(net2),也可以根据实际情况进行调整。In the above embodiment, the target plan 1 is defined as f(net1)<0.7*RON, and the target plan 2 is defined as f(net2)<=5. According to the well-trained target gasoline octane loss prediction model, the calculation of each The octane loss and sulfur content corresponding to an operating variable, as well as the acceptance probability, and record the optimization conditions corresponding to the target operating variable. It can be understood that, the functional relationship f(net1) and the functional relationship f(net2) in the present invention can also be adjusted according to the actual situation.

在本发明的一些实施例中,对汽油精制数据样本集进行预处理,得到可靠汽油精制数据样本集,包括:In some embodiments of the present invention, the gasoline refining data sample set is preprocessed to obtain a reliable gasoline refining data sample set, including:

判断汽油精制数据样本集中是否存在残缺数据;Determine whether there is incomplete data in the gasoline refining data sample set;

将达到残缺阈值的残缺数据删除,未达到残缺阈值的残缺数据进行替换;Delete the incomplete data that reaches the incomplete threshold, and replace the incomplete data that does not reach the incomplete threshold;

判断汽油精制数据样本集中是否存在异常数据;Determine whether there is abnormal data in the gasoline refining data sample set;

根据预设准则,将异常数据进行剔除,得到可靠汽油精制数据样本集。According to the preset criteria, the abnormal data is eliminated to obtain a reliable gasoline refining data sample set.

在上述实施例中,对于只含有部分时间点的位点,假如残缺的数据较多,也不能补充,那么可以将此类位点删除;对于数据全部为空值的位点,可以将此类点删除;对于部分数据为空值的位点,可以用前后两个小时的数据平均值替换;通过对催化裂化汽油精致的总结,可以归纳出原始数据变量的操作范围,然后再剔除一部分不在这个操作范围的样本的位点;预设准则为拉依达准则(3σ准则),通过拉依达准则去除异常值。In the above embodiment, for sites that only contain part of the time points, if there are too many incomplete data and cannot be supplemented, such sites can be deleted; for sites with all data empty, such sites can be deleted Point deletion; for some sites with empty data, you can replace them with the average data of the two hours before and after; by summarizing the FCC gasoline, you can summarize the operating range of the original data variables, and then remove a part that is not here. The location of the sample in the operating range; the default criterion is the Laida criterion (3σ criterion), and outliers are removed by the Laida criterion.

拉依达准则具体为:The Laida Criterion is specifically:

首先,设对被估测操作变量进行相等精度的测量,得到x1,x2,……,xn,算出其算术平均值x及剩余误差vi=xi-x(i=1,2,3,…,n),并按照贝塞尔公式来计算出标准误差σ,如果某一个估测变量值xb的剩余误差vb(1<=b<=n),满足|vb|=|xb-x|>3σ,则认为xb是含有粗大误差值的坏值,应予剔除。贝塞尔公式如下:

Figure BDA0003669071860000121
Figure BDA0003669071860000122
First, it is assumed that the estimated manipulated variables are measured with equal precision to obtain x 1 , x 2 , ..., x n , and the arithmetic mean x and residual error vi = x i -x ( i =1,2 , 3,...,n), and calculate the standard error σ according to the Bessel formula, if the residual error v b (1<=b<=n) of an estimated variable value x b satisfies |v b | =|x b -x|>3σ, then it is considered that x b is a bad value with a gross error value and should be eliminated. The Bessel formula is as follows:
Figure BDA0003669071860000121
Figure BDA0003669071860000122

其中,n为操作变量的总数,v为误差,x为操作变量。where n is the total number of manipulated variables, v is the error, and x is the manipulated variable.

为了更好实施本发明实施例中的汽油辛烷值损失优化方法,在汽油辛烷值损失优化方法基础之上,对应的,请参阅图4,图4为本发明提供的汽油辛烷值损失优化装置的一实施例的结构示意图,本发明实施例提供了一种汽油辛烷值损失优化装置400,包括:In order to better implement the method for optimizing the loss of gasoline octane number in the embodiment of the present invention, on the basis of the method for optimizing the loss of gasoline octane number, correspondingly, please refer to FIG. 4 , which is the loss of gasoline octane number provided by the present invention. A schematic structural diagram of an embodiment of an optimization device, an embodiment of the present invention provides a gasoline octane loss optimization device 400, including:

数据获取模块401,用于获取汽油精制数据样本集,汽油精制数据样本集包括操作变量样本集以及生产因素样本集;The data acquisition module 401 is used to acquire a gasoline refining data sample set, and the gasoline refining data sample set includes an operation variable sample set and a production factor sample set;

筛选模块402,用于基于随机森林算法,从操作变量样本集筛选出满足预设要求的目标操作变量样本集;The screening module 402 is configured to, based on the random forest algorithm, screen out the target operating variable sample set that meets the preset requirements from the operating variable sample set;

建模模块403,用于建立汽油辛烷值损失预测模型,根据目标操作变量样本集以及生产因素样本集,对汽油辛烷值损失预测模型进行训练,得到训练完备的目标汽油辛烷值损失预测模型;The modeling module 403 is used for establishing a gasoline octane loss prediction model, and according to the target operating variable sample set and the production factor sample set, the gasoline octane loss prediction model is trained to obtain a fully trained target gasoline octane loss prediction Model;

优化模块404,用于设置约束条件,基于训练完备的目标汽油辛烷值损失预测模型,确定满足约束条件的目标操作变量的优化条件。The optimization module 404 is configured to set constraints, and based on the well-trained target gasoline octane loss prediction model, determine the optimization conditions of the target operating variables that satisfy the constraints.

这里需要说明的是:上述实施例提供的装置400可实现上述各方法实施例中描述的技术方案,上述各模块或单元具体实现的原理可参见上述方法实施例中的相应内容,此处不再赘述。It should be noted here that the apparatus 400 provided in the above embodiments can implement the technical solutions described in the above method embodiments, and the specific implementation principles of the above modules or units can refer to the corresponding content in the above method embodiments, which are not repeated here. Repeat.

请参阅图5,图5为本发明实施例提供的电子设备的结构示意图。基于上述汽油辛烷值损失优化方法,本发明还相应提供了一种汽油辛烷值损失优化设备,汽油辛烷值损失优化设备可以是移动终端、桌上型计算机、笔记本、掌上电脑及服务器等计算设备。该汽油辛烷值损失优化设备包括处理器510、存储器520及显示器530。图5仅示出了电子设备的部分组件,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。Please refer to FIG. 5 , which is a schematic structural diagram of an electronic device according to an embodiment of the present invention. Based on the above-mentioned method for optimizing the loss of gasoline octane number, the present invention also provides a device for optimizing the loss of gasoline octane number, which can be a mobile terminal, a desktop computer, a notebook, a palmtop computer, a server, etc. computing equipment. The gasoline octane loss optimization apparatus includes a processor 510 , a memory 520 and a display 530 . FIG. 5 shows only some components of the electronic device, but it should be understood that implementation of all of the illustrated components is not required, and more or fewer components may be implemented instead.

存储器520在一些实施例中可以是汽油辛烷值损失优化设备的内部存储单元,例如汽油辛烷值损失优化设备的硬盘或内存。存储器520在另一些实施例中也可以是汽油辛烷值损失优化设备的外部存储设备,例如汽油辛烷值损失优化设备上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(FlashCard)等。进一步地,存储器520还可以既包括汽油辛烷值损失优化设备的内部存储单元也包括外部存储设备。存储器520用于存储安装于汽油辛烷值损失优化设备的应用软件及各类数据,例如安装汽油辛烷值损失优化设备的程序代码等。存储器520还可以用于暂时地存储已经输出或者将要输出的数据。在一实施例中,存储器520上存储有汽油辛烷值损失优化程序540,该汽油辛烷值损失优化程序540可被处理器510所执行,从而实现本申请各实施例的汽油辛烷值损失优化方法。The memory 520 may in some embodiments be an internal storage unit of the gasoline octane loss optimization device, such as a hard disk or memory of the gasoline octane loss optimization device. In other embodiments, the memory 520 may also be an external storage device of the gasoline octane loss optimization device, such as a plug-in hard disk equipped on the gasoline octane loss optimization device, a smart memory card (Smart Media Card, SMC), Secure digital (Secure Digital, SD) card, flash memory card (FlashCard) and so on. Further, the memory 520 may also include both an internal storage unit of the gasoline octane loss optimization device and an external storage device. The memory 520 is used to store application software and various data installed in the gasoline octane loss optimization device, such as program codes installed in the gasoline octane loss optimization device. The memory 520 may also be used to temporarily store data that has been output or is to be output. In one embodiment, the memory 520 stores a gasoline octane loss optimization program 540, and the gasoline octane loss optimization program 540 can be executed by the processor 510, so as to realize the gasoline octane loss in various embodiments of the present application. Optimization.

处理器510在一些实施例中可以是一中央处理器(Central Processing Unit,CPU),微处理器或其他数据处理芯片,用于运行存储器520中存储的程序代码或处理数据,例如执行汽油辛烷值损失优化方法等。The processor 510 may be a central processing unit (CPU), a microprocessor or other data processing chips in some embodiments, and is used to execute program codes or process data stored in the memory 520, such as executing gasoline octane Value loss optimization methods, etc.

显示器530在一些实施例中可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED(Organic Light-Emitting Diode,有机发光二极管)触摸器等。显示器530用于显示在汽油辛烷值损失优化设备的信息以及用于显示可视化的用户界面。汽油辛烷值损失优化设备的部件510-530通过系统总线相互通信。In some embodiments, the display 530 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode, organic light-emitting diode) touch device, and the like. Display 530 is used to display information at the gasoline octane loss optimization device and to display a user interface for visualization. The components 510-530 of the gasoline octane loss optimization apparatus communicate with each other via the system bus.

在一实施例中,当处理器510执行存储器520中汽油辛烷值损失优化程序540时实现如上的汽油辛烷值损失优化方法中的步骤。In one embodiment, the steps in the above gasoline octane loss optimization method are implemented when the processor 510 executes the gasoline octane loss optimization program 540 in the memory 520 .

本实施例还提供了一种计算机可读存储介质,其上存储有汽油辛烷值损失优化程序,该汽油辛烷值损失优化程序被处理器执行时实现以下步骤:The present embodiment also provides a computer-readable storage medium on which a gasoline octane loss optimization program is stored, and when the gasoline octane loss optimization program is executed by a processor, the following steps are implemented:

获取汽油精制数据样本集,汽油精制数据样本集包括操作变量样本集以及生产因素样本集;Obtain a gasoline refining data sample set, which includes an operational variable sample set and a production factor sample set;

基于随机森林算法,从操作变量样本集筛选出满足预设要求的目标操作变量样本集;Based on the random forest algorithm, select the target operating variable sample set that meets the preset requirements from the operating variable sample set;

建立汽油辛烷值损失预测模型,根据目标操作变量样本集以及生产因素样本集,对汽油辛烷值损失预测模型进行训练,得到训练完备的目标汽油辛烷值损失预测模型;Establish a gasoline octane loss prediction model, train the gasoline octane loss prediction model according to the target operating variable sample set and the production factor sample set, and obtain a fully trained target gasoline octane loss prediction model;

设置约束条件,基于训练完备的目标汽油辛烷值损失预测模型,确定满足约束条件的目标操作变量的优化条件。Constraints are set, and based on the well-trained target gasoline octane loss prediction model, the optimization conditions of the target operating variables that satisfy the constraints are determined.

综上,本实施例提供的一种汽油辛烷值损失优化方法、装置、设备及存储介质,获取汽油精制数据样本集,汽油精制数据样本集具有多组数据,增加了汽油辛烷值损失优化时的关联变量,并从中筛选出降低汽油辛烷值损失的关键操作变量,并通过训练完备的目标汽油辛烷值损失预测模型,在设定约束条件下确定最佳的目标操作变量的优化条件,提高了在特定约束条件下的汽油辛烷值损失优化的效果。To sum up, the present embodiment provides a method, device, equipment and storage medium for optimizing gasoline octane number loss, and obtains a gasoline refining data sample set. The gasoline refining data sample set has multiple sets of data, which increases the optimization of gasoline octane number loss. The key operating variables that reduce the gasoline octane loss are screened out, and the optimal target operating variable optimization conditions are determined under the set constraints by training a complete target gasoline octane loss prediction model. , which improves the effect of gasoline octane loss optimization under certain constraints.

以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。The above description is only a preferred embodiment of the present invention, but the protection scope of the present invention is not limited to this. Substitutions should be covered within the protection scope of the present invention.

Claims (10)

1. A method for optimizing octane number loss of gasoline, comprising:
acquiring a gasoline refining data sample set, wherein the gasoline refining data sample set comprises an operation variable sample set and a production factor sample set;
screening out a target operation variable sample set which meets a preset requirement from the operation variable sample set based on a random forest algorithm;
establishing a gasoline octane number loss prediction model, and training the gasoline octane number loss prediction model according to the target operation variable sample set and the production factor sample set to obtain a target gasoline octane number loss prediction model with complete training;
and setting constraint conditions, and determining the optimization conditions of the target operating variables meeting the constraint conditions based on the well-trained target gasoline octane number loss prediction model.
2. The gasoline octane number loss optimization method according to claim 1, wherein the screening out a target operational variable sample set from the operational variable sample set based on a random forest algorithm, which meets preset requirements, comprises:
preprocessing the gasoline refining data sample set to obtain a reliable gasoline refining data sample set;
constructing a plurality of decision trees, and calculating the error of the reliable gasoline refining data sample set of each decision tree in an OOB (object-oriented object) mode to obtain an OOB error;
reordering the operation variables, and calculating the error of the operation variables again to obtain a reordering error;
calculating the importance of each operation variable according to the OOB error and the reordering error;
and screening out the operation variables meeting the preset requirements according to the importance of the operation variables to obtain a target operation variable sample set.
3. The method of claim 1, wherein the establishing a gasoline octane number loss prediction model, and training the gasoline octane number loss prediction model according to the target operating variable sample set and the production factor sample set to obtain a well-trained target gasoline octane number loss prediction model comprises:
carrying out Bayesian normalization on the target operation variable sample set and the production factor sample set;
establishing a gasoline octane number loss prediction model, and setting parameters of the gasoline octane number loss prediction model;
and inputting the normalized target operation variable sample set and the normalized production factor sample set into the gasoline octane number loss prediction model, and training the gasoline octane number loss prediction model by taking octane number loss as output to obtain a target gasoline octane number loss prediction model with complete training.
4. The method of claim 3, wherein the establishing a gasoline octane number loss prediction model, setting parameters of the gasoline octane number loss prediction model, comprises:
setting an excitation function, a network training function and a network performance function type of the gasoline octane number loss prediction model;
setting the neuron number of the hidden layer of the gasoline octane number loss prediction model;
and setting network parameters of the gasoline octane number loss prediction model.
5. The gasoline octane number loss optimization method of claim 3, wherein the setting of the constraint condition and the determination of the optimization condition of the target operating variable satisfying the constraint condition based on the well-trained target gasoline octane number loss prediction model comprise:
establishing a relevant neural network model and setting constraint conditions;
establishing a functional relation f (net1) between octane number loss and the operation variable and a functional relation f (net2) between gasoline sulfur content and the operation variable according to the associated neural network model;
and determining the optimization condition of the optimal operating variable meeting the constraint condition according to the functional relation f (net1) and the functional relation f (net 2).
6. The method for optimizing gasoline octane number loss according to claim 5, wherein said determining, according to said functional relationship f (net1) and said functional relationship f (net2), the optimization conditions of the target operating variables that satisfy said constraints comprises:
determining the octane number loss amount and the sulfur content corresponding to each operation variable according to the functional relation f (net1) and the functional relation f (net 2);
according to the octane value loss and the sulfur content corresponding to the operation variables, recording optimization conditions corresponding to target operation variables;
and repeating the operation until the optimization conditions corresponding to all the target operation variables are determined.
7. The method of claim 2, wherein the preprocessing the sample set of gasoline refinery data to obtain a sample set of reliable gasoline refinery data comprises:
judging whether incomplete data exist in the gasoline refining data sample set or not;
deleting the incomplete data reaching the incomplete threshold value, and replacing the incomplete data not reaching the incomplete threshold value;
judging whether abnormal data exist in the gasoline refining data sample set or not;
and according to a preset criterion, removing the abnormal data to obtain a reliable gasoline refining data sample set.
8. A gasoline octane number loss optimization device, comprising:
the system comprises a data acquisition module, a data processing module and a data processing module, wherein the data acquisition module is used for acquiring a gasoline refining data sample set, and the gasoline refining data sample set comprises an operation variable sample set and a production factor sample set;
the screening module is used for screening out a target operation variable sample set meeting preset requirements from the operation variable sample set based on a random forest algorithm;
the modeling module is used for establishing a gasoline octane number loss prediction model, and training the gasoline octane number loss prediction model according to the target operating variable sample set and the production factor sample set to obtain a target gasoline octane number loss prediction model with complete training;
and the optimization module is used for setting constraint conditions and determining the optimization conditions of the target operating variables meeting the constraint conditions based on the target gasoline octane number loss prediction model which is trained completely.
9. An electronic device comprising a memory and a processor, wherein,
the memory is used for storing programs;
the processor, coupled to the memory, is configured to execute the program stored in the memory to implement the steps in the method for optimizing gasoline octane number loss according to any one of the preceding claims 1 to 7.
10. A computer-readable storage medium storing a computer-readable program or instructions, which when executed by a processor, is capable of performing the steps of the method for optimizing the octane number loss of gasoline according to any one of claims 1 to 7.
CN202210598633.1A 2022-05-30 2022-05-30 Method, device, equipment and storage medium for optimizing gasoline octane number loss Pending CN114997491A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210598633.1A CN114997491A (en) 2022-05-30 2022-05-30 Method, device, equipment and storage medium for optimizing gasoline octane number loss

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210598633.1A CN114997491A (en) 2022-05-30 2022-05-30 Method, device, equipment and storage medium for optimizing gasoline octane number loss

Publications (1)

Publication Number Publication Date
CN114997491A true CN114997491A (en) 2022-09-02

Family

ID=83029425

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210598633.1A Pending CN114997491A (en) 2022-05-30 2022-05-30 Method, device, equipment and storage medium for optimizing gasoline octane number loss

Country Status (1)

Country Link
CN (1) CN114997491A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021007812A1 (en) * 2019-07-17 2021-01-21 深圳大学 Deep neural network hyperparameter optimization method, electronic device and storage medium
CN112307001A (en) * 2020-11-02 2021-02-02 中南大学 DA (digital-analog) optimization-based octane number loss prediction method and system in gasoline refining process
CN113408187A (en) * 2021-05-15 2021-09-17 西安石油大学 Optimization method for reducing gasoline octane number loss based on random forest
CN113887827A (en) * 2021-10-25 2022-01-04 国网安徽省电力有限公司电力科学研究院 An optimal decision-making method for blending coal blending based on real-time carbon emission monitoring of thermal power units

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021007812A1 (en) * 2019-07-17 2021-01-21 深圳大学 Deep neural network hyperparameter optimization method, electronic device and storage medium
CN112307001A (en) * 2020-11-02 2021-02-02 中南大学 DA (digital-analog) optimization-based octane number loss prediction method and system in gasoline refining process
CN113408187A (en) * 2021-05-15 2021-09-17 西安石油大学 Optimization method for reducing gasoline octane number loss based on random forest
CN113887827A (en) * 2021-10-25 2022-01-04 国网安徽省电力有限公司电力科学研究院 An optimal decision-making method for blending coal blending based on real-time carbon emission monitoring of thermal power units

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
SHAOZE CUI ET AL.: "Two-stage stacking heterogeneous ensemble learning method for gasoline octane number loss prediction", 《APPLIED SOFT COMPUTING》, vol. 113, 12 October 2021 (2021-10-12), pages 1 - 15 *
高世博;张运陶;刘金迪;白春艳;郑伟;: "微粒群算法优化样本集在汽油调合设计中的应用", 计算机与应用化学, no. 10, 28 October 2007 (2007-10-28) *

Similar Documents

Publication Publication Date Title
CN115394358B (en) Single-cell sequencing gene expression data interpolation method and system based on deep learning
CN107229693B (en) The method and system of big data system configuration parameter tuning based on deep learning
CN112687349A (en) Construction method of model for reducing octane number loss
CN111008726B (en) A method for image-like conversion in power load forecasting
CN118017503B (en) User electricity load data prediction method, system, terminal and storage medium
CN119938335A (en) Service proxy method and system based on Doris front-end node
CN117764631A (en) Data governance optimization method and system based on source-side static data modeling
CN112948356A (en) Method for constructing time sequence database availability enhancement mechanism based on resource perception
CN119127092B (en) Data compression and block storage processing method based on deep learning
CN116401363A (en) Weakly supervised continuous text classification method and device for open environment
CN114997491A (en) Method, device, equipment and storage medium for optimizing gasoline octane number loss
CN118897779A (en) Recommended method, device, terminal device and storage medium for data cleaning rules
CN118246601A (en) Crop growth related trend prediction method, device, electronic device and storage medium
CN118210775A (en) Database parameter tuning method, device, equipment and medium
CN117973438A (en) Intelligent cabin system performance optimization method and device and vehicle
CN111494988A (en) Deep learning-based crude oil storage tank water cutting method and equipment and storage medium
CN116228009A (en) Coke quality prediction method, system, apparatus and medium
CN112000955B (en) Method for determining log characteristic sequence, vulnerability analysis method, system and equipment
CN115904238A (en) Storage method and device based on data integration, computer equipment and storage medium
CN115982634A (en) Application program classification method and device, electronic equipment and computer program product
CN115185805B (en) Performance prediction method, system, equipment and storage medium of storage system
CN117467464A (en) Catalytic regeneration flue gas sulfur dioxide emission concentration prediction method, device and equipment
CN118279696A (en) Cross-validation data set cutting and evaluating method based on data balance
CN117970789A (en) Online multi-objective optimization method, system, equipment and medium for atmospheric and vacuum distillation device
CN120067342A (en) Event context information generation method and related equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载