CN103809557B - A kind of sewage disposal process optimal control method based on neutral net - Google Patents
A kind of sewage disposal process optimal control method based on neutral net Download PDFInfo
- Publication number
- CN103809557B CN103809557B CN201310745867.5A CN201310745867A CN103809557B CN 103809557 B CN103809557 B CN 103809557B CN 201310745867 A CN201310745867 A CN 201310745867A CN 103809557 B CN103809557 B CN 103809557B
- Authority
- CN
- China
- Prior art keywords
- esn
- moment
- output
- value
- reserve pool
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 45
- 230000008569 process Effects 0.000 title claims abstract description 33
- 239000010865 sewage Substances 0.000 title claims abstract description 33
- 230000007935 neutral effect Effects 0.000 title claims 2
- 238000005457 optimization Methods 0.000 claims abstract description 37
- QVGXLLKOCUKJST-UHFFFAOYSA-N atomic oxygen Chemical compound [O] QVGXLLKOCUKJST-UHFFFAOYSA-N 0.000 claims abstract description 27
- 229910052760 oxygen Inorganic materials 0.000 claims abstract description 27
- 239000001301 oxygen Substances 0.000 claims abstract description 27
- 238000005265 energy consumption Methods 0.000 claims abstract description 22
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 claims abstract description 20
- 238000013528 artificial neural network Methods 0.000 claims abstract description 19
- 230000006870 function Effects 0.000 claims description 21
- 239000011159 matrix material Substances 0.000 claims description 16
- 210000002569 neuron Anatomy 0.000 claims description 15
- 229910052757 nitrogen Inorganic materials 0.000 claims description 8
- QGZKDVFQNNGYKY-UHFFFAOYSA-N Ammonia Chemical compound N QGZKDVFQNNGYKY-UHFFFAOYSA-N 0.000 claims description 6
- 238000006243 chemical reaction Methods 0.000 claims description 6
- 125000001477 organic nitrogen group Chemical group 0.000 claims description 6
- 238000005273 aeration Methods 0.000 claims description 5
- 238000005086 pumping Methods 0.000 claims description 5
- 238000012886 linear function Methods 0.000 claims description 4
- 239000010802 sludge Substances 0.000 claims description 4
- 229910021529 ammonia Inorganic materials 0.000 claims description 3
- 230000003595 spectral effect Effects 0.000 claims description 3
- 230000004913 activation Effects 0.000 claims description 2
- 238000012549 training Methods 0.000 claims description 2
- 229910002651 NO3 Inorganic materials 0.000 claims 6
- NHNBFGGVMKEFGY-UHFFFAOYSA-N Nitrate Chemical compound [O-][N+]([O-])=O NHNBFGGVMKEFGY-UHFFFAOYSA-N 0.000 claims 6
- 230000005540 biological transmission Effects 0.000 claims 1
- 210000005036 nerve Anatomy 0.000 claims 1
- 238000010992 reflux Methods 0.000 claims 1
- 229920006395 saturated elastomer Polymers 0.000 claims 1
- 238000005303 weighing Methods 0.000 claims 1
- MMDJDBSEMBIJBB-UHFFFAOYSA-N [O-][N+]([O-])=O.[O-][N+]([O-])=O.[O-][N+]([O-])=O.[NH6+3] Chemical compound [O-][N+]([O-])=O.[O-][N+]([O-])=O.[O-][N+]([O-])=O.[NH6+3] MMDJDBSEMBIJBB-UHFFFAOYSA-N 0.000 abstract description 17
- 230000000694 effects Effects 0.000 description 9
- IJGRMHOSHXDMSA-UHFFFAOYSA-N Atomic nitrogen Chemical compound N#N IJGRMHOSHXDMSA-UHFFFAOYSA-N 0.000 description 4
- FDWIKIIKBRJSHK-UHFFFAOYSA-N 2-(2-methyl-4-oxochromen-5-yl)acetic acid Chemical compound C1=CC=C2OC(C)=CC(=O)C2=C1CC(O)=O FDWIKIIKBRJSHK-UHFFFAOYSA-N 0.000 description 3
- 230000008859 change Effects 0.000 description 3
- 230000009467 reduction Effects 0.000 description 3
- 238000001228 spectrum Methods 0.000 description 3
- XKMRRTOUMJRJIA-UHFFFAOYSA-N ammonia nh3 Chemical compound N.N XKMRRTOUMJRJIA-UHFFFAOYSA-N 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000010168 coupling process Methods 0.000 description 2
- 238000005859 coupling reaction Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000007613 environmental effect Effects 0.000 description 2
- 230000002068 genetic effect Effects 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 239000002245 particle Substances 0.000 description 2
- 238000011160 research Methods 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000003044 adaptive effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000003344 environmental pollutant Substances 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 238000013178 mathematical model Methods 0.000 description 1
- 229910052698 phosphorus Inorganic materials 0.000 description 1
- 231100000719 pollutant Toxicity 0.000 description 1
- 238000010845 search algorithm Methods 0.000 description 1
- 229910052717 sulfur Inorganic materials 0.000 description 1
- 238000004065 wastewater treatment Methods 0.000 description 1
Classifications
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Feedback Control In General (AREA)
- Purification Treatments By Anaerobic Or Anaerobic And Aerobic Bacteria Or Animals (AREA)
Abstract
污水处理过程是一个高度非线性、时变性及复杂性的过程,实现出水水水质达标的前提下降低运行能耗是非常具有挑战性的。本发明针对污水处理过程能耗过高的问题,提出了一种基于神经网络的优化控制方法,该方法主要包括两个神经网络,其中一个神经网络用来建立污水处理过程的预测模型,实现性能指标的预测;另外一个神经网络根据系统状态以及预测的性能指标,对控制变量的设定值进行实时优化。最后,对溶解氧浓度和硝态氮浓度实现了优化控制,不但能够满足出水水质的要求,而且能够有效降低污水处理过程的运行成本。
The sewage treatment process is a highly nonlinear, time-varying and complex process. It is very challenging to reduce the energy consumption of the operation under the premise of meeting the effluent water quality. Aiming at the problem of high energy consumption in the process of sewage treatment, the present invention proposes a neural network-based optimization control method, which mainly includes two neural networks, one of which is used to establish a prediction model for the process of sewage treatment to achieve performance Index prediction; Another neural network optimizes the set value of the control variable in real time according to the system state and the predicted performance index. Finally, the optimized control of dissolved oxygen concentration and nitrate nitrogen concentration can not only meet the requirements of effluent water quality, but also effectively reduce the operating cost of the sewage treatment process.
Description
技术领域technical field
本发明针对污水处理过程能耗过高的问题,在BSM1中利用神经网络对污水处理过程中的溶解氧浓度和硝态氮浓度进行了优化控制。神经网络是智能控制技术的主要分支之一,基于神经网络的污水处理过程优化控制不但属于水处理领域,还属于智能优化控制领域。Aiming at the problem of high energy consumption in the sewage treatment process, the invention utilizes the neural network to optimize the control of the dissolved oxygen concentration and the nitrate nitrogen concentration in the sewage treatment process in the BSM1. Neural network is one of the main branches of intelligent control technology. The optimal control of sewage treatment process based on neural network belongs not only to the field of water treatment, but also to the field of intelligent optimal control.
背景技术Background technique
随着城市化、工业化的不断提速,我国水环境已遭到严重破坏并有继续恶化的趋势。污水排放不但严重影响着居民的日常生活,而且破坏了大自然的生态平衡。为了降低污水的排放量,全国各地已经纷纷建立了污水处理厂,然而污水处理过程电能消耗过大、运行成本居高,导致我国污水处理厂“建得起而养不起”,研究污水处理过程优化控制实现节能降耗意义重大,是未来污水处理行业必然的发展趋势。因此,本发明的研究成果具有广阔的应用前景。With the continuous acceleration of urbanization and industrialization, my country's water environment has been severely damaged and has a tendency to continue to deteriorate. Sewage discharge not only seriously affects the daily life of residents, but also destroys the ecological balance of nature. In order to reduce the discharge of sewage, sewage treatment plants have been established all over the country. However, the excessive power consumption and high operating costs in the sewage treatment process have led to the fact that my country's sewage treatment plants are "affordable to build but unaffordable to maintain". Research on sewage treatment process Optimizing control to achieve energy saving and consumption reduction is of great significance and is an inevitable development trend of the sewage treatment industry in the future. Therefore, the research results of the present invention have broad application prospects.
在污水处理过程中,主要的控制变量是第五分区的溶解氧浓度和第二分区的硝态氮浓度,溶解氧浓度和硝态氮浓度的高低不但影响硝化过程和反硝化过程的进行,而且对污水处理过程中的曝气能耗和泵送能耗起主要作用。因此,动态调整溶解氧和硝态氮的浓度的设定值对于改善出水水质,降低能耗是非常有必要的。In the sewage treatment process, the main control variables are the dissolved oxygen concentration in the fifth zone and the nitrate nitrogen concentration in the second zone. It plays a major role in the aeration energy consumption and pumping energy consumption in the sewage treatment process. Therefore, it is very necessary to dynamically adjust the set values of the concentration of dissolved oxygen and nitrate nitrogen to improve the quality of effluent water and reduce energy consumption.
污水处理过程是一个具有高度非线性、大滞后、大时变、多变量耦合等特点的复杂系统,需要完成出水水质达标同时降低能耗的多目标优化,部分学者对其进行了研究并取得了阶段性的成果。基于模型预测控制MPC的优化控制方法,虽然能在一定程度上降低能耗,但是MPC以系统机理模型为核心,通过确定的数学手段计算最优的控制量,而由于污水处理过程的复杂性,要建立其精确的数学模型存在一定难度,而模型的准确性对控制性能影响较大,部分关键水质参数的不可在线测量也会降低控制的性能。基于遗传算法GA的优化控制方法,其计算量大,全局收敛速度较慢,同时其优化结果的精度受编码长度的控制。基于粒子群PSO算法的优化控制方案,不需要复杂的交叉变异,算法简单、参数少、易于实现。无论是遗传算法还是粒子群算法,像这种智能搜索算法在优化过程中需要大量的样本,不能够对优化信号进行实时更新,比较适用于离线优化。The sewage treatment process is a complex system with the characteristics of high nonlinearity, large lag, large time variation, and multivariable coupling. It needs to complete the multi-objective optimization of effluent water quality and reduce energy consumption. Some scholars have studied it and obtained results. staged results. Although the optimal control method based on model predictive control (MPC) can reduce energy consumption to a certain extent, MPC takes the system mechanism model as the core and calculates the optimal control quantity through certain mathematical means. Due to the complexity of the sewage treatment process, It is difficult to establish an accurate mathematical model, and the accuracy of the model has a great influence on the control performance, and the inability to measure some key water quality parameters online will also reduce the control performance. The optimization control method based on the genetic algorithm GA has a large amount of calculation and a slow global convergence speed, and the precision of the optimization result is controlled by the length of the code. The optimal control scheme based on the particle swarm PSO algorithm does not require complex cross-mutation, and the algorithm is simple, with few parameters and easy to implement. Whether it is a genetic algorithm or a particle swarm algorithm, such an intelligent search algorithm requires a large number of samples in the optimization process, and cannot update the optimization signal in real time, so it is more suitable for offline optimization.
神经网络具有非常强大的学习能力和自适应特性,能够对非线性系统进行高精度逼近。本发明提出了一种基于神经网络的污水处理过程优化控制方法,不但能否满足出水水质的要求,还能降低污水处理过程的能耗。The neural network has a very powerful learning ability and adaptive characteristics, and can approximate nonlinear systems with high precision. The invention proposes a neural network-based optimization control method for sewage treatment process, which can not only meet the requirements of effluent water quality, but also reduce energy consumption in the sewage treatment process.
发明内容Contents of the invention
基于神经网络的污水处理过程优化控制方法,主要包括三个部分:性能指标预测模型、神经网络优化层以及底层的控制器。利用性能指标预测模型预测未来时刻的性能指标函数值,根据当前的环境状态及上一时刻的控制变量的设定值,通过神经网络优化层使得性能指标预测模型预测出的性能指标函数达到最小,从而产生新的设定值传送到底层控制器,完成污水处理过程的优化控制。The optimization control method of sewage treatment process based on neural network mainly includes three parts: performance index prediction model, neural network optimization layer and the underlying controller. Use the performance index prediction model to predict the performance index function value in the future, according to the current environmental state and the set value of the control variable at the previous moment, through the neural network optimization layer, the performance index function predicted by the performance index prediction model is minimized, Thus, a new set value is generated and sent to the bottom controller to complete the optimal control of the sewage treatment process.
本发明采用了如下的技术方案及实现步骤:The present invention adopts following technical scheme and implementation steps:
基于神经网络的污水处理过程优化控制方法,其特征在于,包括以下步骤:The optimization control method of sewage treatment process based on neural network is characterized in that it comprises the following steps:
1.性能指标的建立1. Establishment of performance indicators
污水处理过程是一个具有多变量耦合、干扰严重、大滞后特性的高度非线性系统,而神经网络能够以其非常强大的非线性逼近能力,对复杂的控制系统进行建模。污水处理过程的优化问题需要综合考虑出水水质、曝气能耗以及泵送能耗等目标,是一个多目标优化问题。因此,定义优化的性能指标函数为The sewage treatment process is a highly nonlinear system with multi-variable coupling, serious interference, and large hysteresis characteristics, and the neural network can model the complex control system with its very powerful nonlinear approximation ability. The optimization problem of the sewage treatment process needs to comprehensively consider the goals of effluent water quality, aeration energy consumption and pumping energy consumption, which is a multi-objective optimization problem. Therefore, the optimized performance index function is defined as
J(k)=α1E(k)+α2EQ(k) (1)J(k)=α 1 E(k)+α 2 E Q (k) (1)
α1、α2为衡量能耗E和出水水质EQ的权重因子,α1、α2∈[0,1],并且α1+α2=1,E为一个优化周期内的总能耗,是曝气能耗EA和泵送能耗EP之和,EQ表示一个优化周期向受纳水体排放污染物需要支付的罚款。E、EA、EP、EQ的表达式分别如(2)、(3)、(4)、(5)所示。α 1 , α 2 are weighting factors to measure energy consumption E and effluent water quality E Q , α 1 , α 2 ∈ [0,1], and α 1 + α 2 = 1, E is the total energy consumption in an optimization cycle , is the sum of aeration energy consumption E A and pumping energy consumption E P , and E Q represents the penalty that needs to be paid for discharging pollutants to the receiving water body in an optimization cycle. The expressions of E, E A , E P , and E Q are shown in (2), (3), (4), and (5) respectively.
E(k)=EA(k)+EP(k) (2)E(k)=E A (k)+E P (k) (2)
k为时刻,T为优化周期,So,sat为溶解氧的饱和浓度,SO,sat=8mg/L,Vi、KLai(i=1,2,3,4,5)分别为第一个到第五个反应池的体积和氧气传递系数,其中,V1=V2=1000m3,V3=V4=V5=1333m3,KLa1=KLa2=0,KLa3=KLa4=240d-1,KLa5和Qa分别为控制第五个反应池中溶解氧浓度和第二个反应池中硝态氮浓度的操作变量,为控制器的输出,是两个变量,KLa5变化范围为0~240d-1,Qa变化范围为0~5Q0,Q0为进水流量,Qr为污泥回流量,Qw为污泥排放量,BSS、BCOD、BNO、BNKj、BBOD5为出水SSe、CODe、SNO,e、SNKj,e、BODe对出水水质EQ影响的权重因子,BSS=2,BCOD=1,BNO=10,BNKj=30,BBOD5=2。k is the moment, T is the optimization period, S o,sat is the saturation concentration of dissolved oxygen, S O,sat =8mg/L, V i , K L a i (i=1,2,3,4,5) respectively is the volume and oxygen transfer coefficient of the first to fifth reaction tanks, where, V 1 =V 2 =1000m 3 , V 3 =V 4 =V 5 =1333m 3 , K L a 1 =K L a 2 = 0, K L a 3 =K L a 4 =240d -1 , K L a 5 and Q a are operating variables for controlling the dissolved oxygen concentration in the fifth reaction tank and the nitrate nitrogen concentration in the second reaction tank respectively, The output of the controller is two variables, K L a 5 ranges from 0 to 240d -1 , Q a ranges from 0 to 5Q 0 , Q 0 is the influent flow, Q r is the sludge return flow, Q w is the sludge discharge, B SS , B COD , B NO , B NKj , B BOD5 are the weight factors of the influence of effluent SS e , COD e , S NO,e , S NKj,e , and BOD e on the effluent quality E Q , B SS =2, B COD =1, B NO =10, B NKj =30, B BOD5 =2.
2.k时刻,溶解氧浓度和硝态氮浓度的预测优化控制2. Predictive optimization control of dissolved oxygen concentration and nitrate nitrogen concentration at time k
2.1首先建立性能指标的预测模型,预测k时刻的性能指标值J'(k),采用回声状态网络ESN构建预测模型,预测ESN的输入层、输出层、动态储备池DR分别包含K、L、N个神经元,WP in为预测ESN输入层到内部状态储备池的连接权值矩阵,WP为预测ESN动态储备池内部的权值矩阵,其神经元之间为稀疏连接,定义稀疏度SD为动态储备池内相互连接的神经元个数与总神经元个数之比,SD一般取值2%~5%,以保证动态储备池丰富动态特性,WP back为预测ESN输出层到内部状态储备池的连接权值矩阵,WP in、WP、WP back维数分别为N×K、N×N、N×L,初始值均为随机产生,一经产生,就不再变化,预测ESN的权谱半径小于1,以保证网络的稳定性。预测ESN的输入是k时刻溶解氧浓度r1(k)和硝态氮浓度r2(k)的设定值,输出是预测的性能指标值,预测ESN的输入为:2.1 Firstly, establish the prediction model of the performance index, predict the performance index value J'(k) at time k, use the echo state network ESN to construct the prediction model, and predict that the input layer, output layer, and dynamic reserve pool DR of the ESN include K, L, N neurons, W P in is to predict the connection weight matrix from the input layer of ESN to the internal state reserve pool, W P is to predict the weight matrix inside the dynamic reserve pool of ESN, the neurons are sparsely connected, and the sparsity is defined SD is the ratio of the number of interconnected neurons to the total number of neurons in the dynamic reserve pool. SD generally takes a value of 2% to 5% to ensure the rich dynamic characteristics of the dynamic reserve pool. W P back is the prediction of the ESN output layer to the internal The connection weight matrix of the state reserve pool, the dimensions of W P in , W P , and W P back are N×K, N×N, and N×L respectively, and the initial values are randomly generated. Once generated, they will not change again. It is predicted that the weight spectrum radius of ESN is less than 1 to ensure the stability of the network. The input of predicting ESN is the set value of dissolved oxygen concentration r 1 (k) and nitrate nitrogen concentration r 2 (k) at time k, and the output is the predicted performance index value. The input of predicting ESN is:
R(k)=[r1(k) r2(k)]T (6)R(k)=[r 1 (k) r 2 (k)] T (6)
动态储备池的输出为:The output of the dynamic reserve pool is:
J'(k-1)为上一时刻预测ESN的输出,f为内部神经元激活函数,取为Sigmoid函数。J'(k-1) is the output of predicted ESN at the previous moment, and f is the internal neuron activation function, which is taken as the Sigmoid function.
ESN的输出为性能指标函数:The output of ESN is the performance index function:
式中,WP out为预测ESN内部状态储备池到输出的连接权值矩阵,维数为L×N,是网络训练过程中唯一需要进行调整的权值,fout为输出层传递函数,取为线性函数,输出J'(k)为k时刻的性能指标函数值。In the formula, W P out is the connection weight matrix for predicting the ESN internal state reserve pool to the output, the dimension is L×N, which is the only weight that needs to be adjusted during the network training process, and f out is the transfer function of the output layer, which is taken as is a linear function, and the output J'(k) is the performance index function value at time k.
2.2将k时刻溶解氧浓度r1(k)和硝态氮浓度r2(k)的设定值作为污水处理过程的输入,得到在k时刻的实际性能指标函数值J(k)。修正预测模型网络权值的指标函数为:2.2 Take the set values of dissolved oxygen concentration r 1 (k) and nitrate nitrogen concentration r 2 (k) at time k as the input of the sewage treatment process to obtain the actual performance index function value J(k) at time k. The index function for modifying the network weights of the prediction model is:
权值调整公示为:The weight adjustment is announced as:
其中,ηP为学习速率。Among them, η P is the learning rate.
2.3优化神经网络同样采用ESN,优化的输入层、输出层、动态储备池DR分别包含K′、L′、N′个神经元,Wo in为优化ESN输入层到内部状态储备池的连接权值矩阵,Wo为优化ESN动态储备池内部的权值矩阵,其神经元之间为稀疏连接,稀疏度同样保持2%~5%,保证网络具有丰富的动态特性,Wo back为优化ESN输出层到内部状态储备池的连接权值矩阵,Wo in、Wo、Wo back维数分别为N′×K′、N′×N′、N′×L′,初始值均为随机产生,一经产生,就不再变化,优化ESN的权谱半径同样应小于1,以保证网络的稳定性,f取为Sigmoid函数。2.3 Optimizing the neural network also uses ESN. The optimized input layer, output layer, and dynamic reserve pool DR respectively contain K′, L′, and N′ neurons, and W o in is the connection weight of the optimized ESN input layer to the internal state reserve pool. Value matrix, W o is to optimize the weight matrix inside the ESN dynamic reserve pool, the neurons are sparsely connected, and the sparsity is also maintained at 2% to 5%, ensuring that the network has rich dynamic characteristics, and W o back is to optimize ESN The connection weight matrix from the output layer to the internal state reserve pool, the dimensions of W o in , W o , and W o back are N′×K′, N′×N′, N′×L′ respectively, and the initial values are all random Once generated, it will no longer change. The weight spectrum radius of the optimized ESN should also be less than 1 to ensure the stability of the network, and f is taken as the Sigmoid function.
其输入为Its input is
h(k+1)=[RT(k-1),S(k)]T (11)h(k+1)=[RT(k-1),S(k)] T ( 11)
RT(k-1)为k-1时刻溶解氧浓度和硝态氮浓度的设定值,S(k)为k时刻的环境状态,可表示为:R T (k-1) is the set value of dissolved oxygen concentration and nitrate nitrogen concentration at time k-1, and S(k) is the environmental state at time k, which can be expressed as:
S(k)=[SO(k),SNO(k),SNH(k),SND(k),XND(k),Q0(k)] (12)S(k)=[S O (k), S NO (k), S NH (k), S ND (k), X ND (k), Q 0 (k)] (12)
SO(k)为k时刻进水溶解氧浓度、SNO(k)为k时刻进水硝态氮浓度、SNH(k)为k时刻进水氨浓度、SND(k)为k时刻进水可溶性有机氮、XND(k)为k时刻进水不可溶性有机氮、Q0(k)为k时刻进水流量。S O (k) is the influent dissolved oxygen concentration at time k, S NO (k) is the influent nitrate nitrogen concentration at k time, S NH (k) is the influent ammonia concentration at k time, S ND (k) is the Influent soluble organic nitrogen, X ND (k) is insoluble organic nitrogen at time k, Q 0 (k) is influent flow at time k.
优化ESN的动态储备池输出为:The dynamic reserve pool output of optimized ESN is:
ESN的输出为设定值:The output of the ESN is the setpoint:
Wo out为优化ESN内部状态储备池到输出层的连接权值矩阵,维数为L′×N′,在学习过程中需要进行调整,fout取为线性函数。W o out is to optimize the connection weight matrix from the ESN internal state reserve pool to the output layer, the dimension is L′×N′, which needs to be adjusted during the learning process, and f out is taken as a linear function.
2.4将R(k+1)输入到性能指标预测模型中,得到预测ESN新的动态储备池输出为:2.4 Input R(k+1) into the performance index prediction model, and the output of the new dynamic reserve pool for predicting ESN is:
则k+1时的性能指标预测值为:Then the predicted value of the performance index at k+1 is:
2.5对优化ESN进行权值调整公式如下:2.5 The weight adjustment formula for the optimized ESN is as follows:
2.6将优化后新产生的设定值作为k+1时刻的值输入到PID控制器中,得到污水处理过程k+1时刻实际输出J(k+1),对性能指标预测模型权值重新调整,权值调整的指标函数为:2.6 Input the newly generated set value after optimization into the PID controller as the value at time k+1 to obtain the actual output J(k+1) of the sewage treatment process at time k+1, and readjust the weight of the performance index prediction model , the indicator function for weight adjustment is:
3.将步骤2.1至步骤2.6中的k加n,变为k+n,重复步骤2.1至步骤2.6,n=1,2,3,4…,进行循环,直到不再有进水数据。3. Add n to k in step 2.1 to step 2.6 to become k+n, repeat step 2.1 to step 2.6, n=1, 2, 3, 4..., and cycle until there is no more water inflow data.
本发明的创造性主要体现在:The inventiveness of the present invention is mainly reflected in:
本发明设计了污水处理过程上层的优化方法,该方法能够根据环境状态实时优化控制变量的设定值。其一,利用ESN建立了设定值R(k)与性能指标J(k)间的关系,即性能指标智能预测模型,通过预测模型能够得到未来时刻的性能指标值;其二,同样利用ESN对预测的性能指标进行优化,使其达到最小,进而获得性能指标值最小时的控制变量设定值。以上两部分够成的预测优化方法,属于本发明的保护范围。The invention designs an optimization method for the upper layer of the sewage treatment process, which can optimize the set value of the control variable in real time according to the environment state. First, the relationship between the set value R(k) and the performance index J(k) is established by using ESN, that is, the intelligent prediction model of the performance index, and the performance index value at the future time can be obtained through the prediction model; Optimize the predicted performance index to make it the minimum, and then obtain the set value of the control variable when the performance index value is the minimum. The prediction and optimization method completed by the above two parts belongs to the protection scope of the present invention.
本发明提出的基于ESN的污水处理过程优化控制方法,解决了模型预测控制中建立的机理模型不精确问题,克服了智能优化算法计算复杂度大、不能实时更新优化控制信号的缺点。The ESN-based sewage treatment process optimization control method proposed by the present invention solves the problem of inaccurate mechanism models established in model predictive control, and overcomes the shortcomings of intelligent optimization algorithms with high computational complexity and inability to update optimization control signals in real time.
附图说明Description of drawings
图1.污水处理过程基准模型Figure 1. Benchmark model of wastewater treatment process
图2.ESN网络拓扑结构图Figure 2. ESN network topology diagram
图3.预测优化控制结构图Figure 3. Predictive optimization control structure diagram
图4.溶解氧优化效果Figure 4. Dissolved oxygen optimization effect
图5.硝态氮优化效果Figure 5. Optimization effect of nitrate nitrogen
图6.出水BOD的效果比较Figure 6. Effect comparison of effluent BOD
图7.出水COD的效果比较Figure 7. Effect comparison of effluent COD
图8.出水TSS的效果比较Figure 8. Comparison of the effect of TSS in effluent
图9.出水氨氮的效果比较Figure 9. Effect comparison of effluent ammonia nitrogen
图10.出水总氮的效果比较Figure 10. Effect comparison of effluent total nitrogen
具体实施方式detailed description
文中的实验是基于BSM1模型晴朗天气下的数据进行的,具体步骤如下:The experiment in this paper is based on the data of the BSM1 model under sunny weather. The specific steps are as follows:
1.建立性能指标预测模型1. Establish performance index prediction model
在建立的性能指标中,α1、α2分别取为0.8、0.2,预测模型的输入是溶解氧浓度和硝态氮浓度的设定值,输出为性能指标值,内部神经元个数为45个,即预测模型的结构为2-45-1,初始化网络的权值,输入到内部状态的权值WP in的维数为45×2,内部状态之间的连接权值WP的维数为45×45,内部状态到输出的权值WP out的维数为1×45,输出到内部状态的权值WP back的维数为45×1,稀疏度SD为5%,权谱半径为0.48。In the established performance index, α 1 and α 2 are taken as 0.8 and 0.2 respectively, the input of the prediction model is the set value of dissolved oxygen concentration and nitrate nitrogen concentration, the output is the performance index value, and the number of internal neurons is 45 One, that is, the structure of the prediction model is 2-45-1, the weight of the network is initialized, the dimension of the weight W P in input to the internal state is 45×2, and the dimension of the connection weight W P between the internal states The number is 45×45, the dimension of the weight value W P out from the internal state to the output is 1×45, the dimension of the weight value W P back from the output to the internal state is 45×1, the sparsity SD is 5%, and the weight The spectral radius is 0.48.
2.神经网络优化层的建立2. Establishment of neural network optimization layer
优化神经网络的输入为上一时刻的设定值以及当前时刻的状态,包括:进水溶解氧浓度SO、进水硝态氮浓度SNO、进水氨浓度SNH、进水可溶性有机氮SND、进水不可溶性有机氮XND和进水流量Q0,输出为设定值,内部神经元个数同样为45,优化神经网络的结构为8-45-2,初始化网络的权值,输入到内部状态的权值Wo in的维数为45×8,内部状态之间的连接权值Wo的维数为45×45,内部状态到输出的权值Wo out的维数为2×45,输出到内部状态的权值Wo back的维数为45×2,稀疏度SD为5%,权谱半径为0.57。The input of the optimized neural network is the set value at the previous moment and the state at the current moment, including: influent dissolved oxygen concentration S O , influent nitrate nitrogen concentration S NO , influent ammonia concentration S NH , influent soluble organic nitrogen S ND , water insoluble organic nitrogen X ND and water flow Q 0 , the output is the set value, the number of internal neurons is also 45, the structure of the optimized neural network is 8-45-2, and the weight of the network is initialized , the dimension of the weight W o in input to the internal state is 45×8, the dimension of the connection weight W o between the internal states is 45×45, and the dimension of the weight W o out from the internal state to the output is 2×45, the dimension of the weight W o back output to the internal state is 45×2, the sparsity SD is 5%, and the weight spectrum radius is 0.57.
3.底层控制器3. Bottom Controller
底层控制为PID控制器,其参数分别取为:KPO=200,KIO=150,KDO=5,KPNO=80000,KINO=7000,KDNO=400。The underlying control is a PID controller, and its parameters are respectively taken as: KP O =200, KIO =150, KD O = 5, KP NO =80000, KI NO =7000, KD NO =400.
4.通过迭代优化,可以得到溶解氧浓度和硝态氮浓度的优化结果如图3和图4中的红色线所示,可以看出,控制变量的设定值随着入水流量和入水组分(即系统的状态)实时地变化,蓝色的线为控制变量的PID控制效果。将神经网络优化控制与BSM1中缺省的PID闭环控制(溶解氧浓度和硝态氮的设定值为固定值,分别为2mg/L和1mg/L)相比较,出水BOD、出水COD、出水TSS、出水氨氮以及出水总氮的对比分别如图6、7、8、9、10所示,由图可知,出水BOD、出水COD及出水TSS在两种控制情况下前后变化不大,而随着对溶解氧浓度和硝态氮浓度的实时优化,溶解氧浓度的平均设定值与固定设定值2mg/L相比降低了,硝态氮浓度的平均设定值与固定设定值1mg/L相比升高了。优化控制与PID闭环控制相比,虽然EQ增大了0.881%,但是出水水质仍然满足国家排放标准,优化控制比PID闭环控制的泵送能耗PE增加了12.77%,曝气能耗AE减少了4.958%,致使总能耗(AE与PE之和)减少3.906%,达到了较好的节能降耗效果。4. Through iterative optimization, the optimization results of dissolved oxygen concentration and nitrate nitrogen concentration can be obtained, as shown in the red lines in Figure 3 and Figure 4. It can be seen that the set value of the control variable varies with the influent flow rate and influent water composition. (that is, the state of the system) changes in real time, and the blue line is the PID control effect of the control variable. Comparing the neural network optimal control with the default PID closed-loop control in BSM1 (the set values of dissolved oxygen concentration and nitrate nitrogen are fixed values, respectively 2mg/L and 1mg/L), the effluent BOD, effluent COD, effluent The comparisons of TSS, effluent ammonia nitrogen, and effluent total nitrogen are shown in Figures 6, 7, 8, 9, and 10, respectively. It can be seen from the figure that the effluent BOD, effluent COD, and effluent TSS did not change much under the two control conditions. With the real-time optimization of dissolved oxygen concentration and nitrate nitrogen concentration, the average set value of dissolved oxygen concentration is reduced compared with the fixed set value of 2mg/L, and the average set value of nitrate nitrogen concentration is compared with the fixed set value of 1mg /L compared to increased. Compared with the PID closed-loop control, the optimal control has increased the EQ by 0.881%, but the effluent water quality still meets the national discharge standards. Compared with the PID closed-loop control, the pumping energy consumption PE of the optimal control has increased by 12.77%, and the aeration energy consumption AE has decreased. 4.958%, resulting in a reduction of 3.906% in total energy consumption (the sum of AE and PE), achieving a better effect of energy saving and consumption reduction.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310745867.5A CN103809557B (en) | 2013-12-30 | 2013-12-30 | A kind of sewage disposal process optimal control method based on neutral net |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310745867.5A CN103809557B (en) | 2013-12-30 | 2013-12-30 | A kind of sewage disposal process optimal control method based on neutral net |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103809557A CN103809557A (en) | 2014-05-21 |
CN103809557B true CN103809557B (en) | 2016-08-17 |
Family
ID=50706493
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310745867.5A Active CN103809557B (en) | 2013-12-30 | 2013-12-30 | A kind of sewage disposal process optimal control method based on neutral net |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103809557B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106485326A (en) * | 2016-10-17 | 2017-03-08 | 鞍钢集团矿业有限公司 | A kind of hardness detection method in ore reduction production process |
Families Citing this family (23)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104360597B (en) * | 2014-11-02 | 2017-02-15 | 北京工业大学 | Sewage treatment process optimization control method based on multiple gradient descent |
CN105404151B (en) * | 2015-12-12 | 2017-11-24 | 北京工业大学 | Sewage disposal process dynamic multi-objective optimization control method |
CN105549388B (en) * | 2015-12-12 | 2018-03-13 | 北京工业大学 | A kind of sewage disposal process energy consumption Forecasting Methodology based on adaptive recurrence kernel function |
CN105976028A (en) * | 2016-05-11 | 2016-09-28 | 深圳市开天源自动化工程有限公司 | Method for predicting effluent COD concentration in A2O sewage treatment process |
CN106054951B (en) * | 2016-06-22 | 2019-10-11 | 佛山科学技术学院 | A method and system for controlling dissolved oxygen concentration |
CN106354019B (en) * | 2016-11-21 | 2019-01-22 | 北京工业大学 | A Precise Control Method of Dissolved Oxygen Based on RBF Neural Network |
CN106698642B (en) * | 2016-12-29 | 2020-02-11 | 北京工业大学 | Multi-target real-time optimization control method in sewage treatment process |
CN107180279B (en) * | 2017-06-14 | 2020-08-25 | 重庆科技学院 | Optimal control method of reaction regeneration system based on QPSO-DMPC |
CN108304654B (en) * | 2018-02-01 | 2021-07-27 | 交通运输部天津水运工程科学研究所 | Sewage deep sea optimized discharge method based on tidal current change |
CN108280791B (en) * | 2018-02-01 | 2021-07-27 | 交通运输部天津水运工程科学研究所 | Sewage deep sea optimized discharge response relation determination method based on tidal current change |
CN108445757B (en) * | 2018-03-12 | 2021-10-01 | 北京工业大学 | An optimal control method for sewage treatment process based on dynamic multi-objective particle swarm optimization |
CN108762082B (en) * | 2018-06-07 | 2022-07-22 | 北京工业大学 | Sewage treatment process collaborative optimization control system |
CN108693770A (en) * | 2018-06-14 | 2018-10-23 | 佛山科学技术学院 | Sewage disposal optimal control method based on stuff and other stuff longicorn intelligent algorithm |
CN109165794A (en) * | 2018-09-30 | 2019-01-08 | 中冶华天工程技术有限公司 | The sewage treatment target component prediction technique that the polymerization of multi-mode multiple features returns |
CN109214513B (en) * | 2018-10-23 | 2021-08-13 | 江南大学 | An intelligent coupling treatment method for solid-liquid waste based on adaptive deep belief network |
CN109506450B (en) * | 2018-10-24 | 2020-06-02 | 浙江工业大学 | A neural network predictive control method for humidity in the automatic drying process of Chinese herbal decoction pieces |
CN109534486B (en) * | 2018-12-21 | 2023-07-25 | 哈尔滨工程大学 | Ship sewage treatment control prediction system and prediction method based on random recursion wavelet neural network |
CN111766210B (en) * | 2020-07-09 | 2023-03-14 | 中国科学院烟台海岸带研究所 | Near-shore complex seawater nitrate nitrogen multispectral measurement method |
CN112250173B (en) * | 2020-09-09 | 2023-09-22 | 长江大学 | OIC denitrification sewage treatment device and method |
CN112794550B (en) * | 2020-12-08 | 2022-11-18 | 翰克偲诺水务集团有限公司 | Method and system for solving COD standard exceeding of effluent of sewage treatment plant based on artificial intelligence |
CN113267560B (en) * | 2021-07-15 | 2021-09-24 | 南京思飞捷软件科技有限公司 | Improved ESN-based vehicle body weld joint detection method |
CN113419432B (en) * | 2021-07-23 | 2022-04-08 | 珠海捷创华自科技有限公司 | Sewage treatment system accurate dosing method based on dynamic matrix control algorithm |
CN113947202A (en) * | 2021-09-18 | 2022-01-18 | 北京化工大学 | A design method of multi-state aware predictive controller for industrial process |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004000986A (en) * | 1996-05-31 | 2004-01-08 | Mitsubishi Electric Corp | Method for controlling biological water treatment apparatus |
CN102122134A (en) * | 2011-02-14 | 2011-07-13 | 华南理工大学 | Method and system for wastewater treatment of dissolved oxygen control based on fuzzy neural network |
CN102681498A (en) * | 2011-03-15 | 2012-09-19 | 中国科学院沈阳自动化研究所 | Sewage treatment process optimizing operation method |
KR20130118682A (en) * | 2012-04-20 | 2013-10-30 | 경북대학교 산학협력단 | Optimized coagulant feeding devices based on the prediction of phosphorus concentrations |
-
2013
- 2013-12-30 CN CN201310745867.5A patent/CN103809557B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004000986A (en) * | 1996-05-31 | 2004-01-08 | Mitsubishi Electric Corp | Method for controlling biological water treatment apparatus |
CN102122134A (en) * | 2011-02-14 | 2011-07-13 | 华南理工大学 | Method and system for wastewater treatment of dissolved oxygen control based on fuzzy neural network |
CN102681498A (en) * | 2011-03-15 | 2012-09-19 | 中国科学院沈阳自动化研究所 | Sewage treatment process optimizing operation method |
KR20130118682A (en) * | 2012-04-20 | 2013-10-30 | 경북대학교 산학협력단 | Optimized coagulant feeding devices based on the prediction of phosphorus concentrations |
Non-Patent Citations (3)
Title |
---|
基于ESN的多指标DHP控制策略在污水处理过程中的应用;乔俊飞等;《自动化学报》;20130731;第39卷(第7期);第1146-1151页 * |
基于改进粒子群算法的污水处理过程神经网络优化控制;乔俊飞等;《智能系统学报》;20121031;第7卷(第5期);第429-436页 * |
污水处理过程的智能优化控制方法研究;史雄伟;《中国优秀硕士学位论文全文数据库(电子期刊)工程科技I辑》;20110930(第9期);第B027-308页 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106485326A (en) * | 2016-10-17 | 2017-03-08 | 鞍钢集团矿业有限公司 | A kind of hardness detection method in ore reduction production process |
CN106485326B (en) * | 2016-10-17 | 2019-02-05 | 鞍钢集团矿业有限公司 | A kind of hardness detection method in ore reduction production process |
Also Published As
Publication number | Publication date |
---|---|
CN103809557A (en) | 2014-05-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103809557B (en) | A kind of sewage disposal process optimal control method based on neutral net | |
Chen et al. | A novel hybrid BPNN model based on adaptive evolutionary Artificial Bee Colony Algorithm for water quality index prediction | |
CN105404151B (en) | Sewage disposal process dynamic multi-objective optimization control method | |
Qiao et al. | Adaptive optimal control for a wastewater treatment plant based on a data-driven method | |
CN109669352B (en) | Oily sewage treatment process optimization control method based on self-adaptive multi-target particle swarm | |
CN110647037B (en) | A collaborative control method for sewage treatment process based on type II fuzzy neural network | |
CN111650834B (en) | Sewage treatment process prediction control method based on extreme learning machine | |
CN102411308B (en) | Adaptive control method of dissolved oxygen (DO) based on recurrent neural network (RNN) model | |
CN105843036A (en) | Sewage treatment process control method based on neural network | |
Xiao et al. | The dissolved oxygen prediction method based on neural network | |
CN101763036A (en) | Lysine fermentation process feeding prediction control system and method based on fuzzy neural network | |
CN103197544A (en) | Sewage disposal process multi-purpose control method based on nonlinear model prediction | |
CN113589687B (en) | Multi-time scale model predictive control method for urban sewage treatment process | |
CN110716432B (en) | Multi-objective optimization control method for urban sewage treatment process based on self-adaptive selection strategy | |
CN109711070A (en) | A Dissolved Oxygen Concentration Optimization Method Based on Activated Sludge Water Treatment | |
CN114314823A (en) | Dissolved oxygen control system and method in aeration link | |
CN103886395A (en) | Reservoir optimal operation method based on neural network model | |
CN116360366A (en) | Sewage treatment process optimization control method | |
CN106354014A (en) | Sewage disposal optimal control method based on multi-objective differential evolution algorithm | |
CN108536106A (en) | A kind of aerating system dissolved oxygen based on Kalman filtering-extreme learning machine regulates and controls method online | |
CN112000004A (en) | A Concentration Control Method for Sewage Treatment Using Iterative Quadratic Heuristic Programming | |
CN116822346A (en) | A Q-learning based nitrate nitrogen concentration control method for sewage treatment | |
CN106354019B (en) | A Precise Control Method of Dissolved Oxygen Based on RBF Neural Network | |
CN112012875A (en) | An optimization method for PID control parameters of hydraulic turbine regulating system | |
CN114527656A (en) | Nitrate nitrogen concentration control method based on time-lag compensation strategy |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |