Data-knowledge driven optimal control method for municipal wastewater treatment process
20210395120 · 2021-12-23
Inventors
Cpc classification
G05B13/041
PHYSICS
International classification
Abstract
A data-knowledge driven multi-objective optimal control method for municipal wastewater treatment process belongs to the field of wastewater treatment. To balance the energy consumption and effluent quality, a data driven multi-objective optimization model, including energy consumption model and effluent quality model are established to obtain the nonlinear relationship along energy consumption, effluent quality and manipulated variables. Meanwhile, a multi-objective particle swarm optimization algorithm, based on evolutionary knowledge, is proposed to optimize the set-points of nitrate nitrogen and dissolved oxygen. Moreover, the proportional integral differential (PID) controller is designed to track the set-points. Then the effluent quality can be improved and the energy consumption can be reduced.
Claims
1. A data-knowledge driven optimal control method of municipal wastewater treatment process, comprising obtaining optimal set-points of manipulated variables and tracking the manipulated variables to improve effluent quality and reduce energy consumption, the method comprising the following technical scheme and implementation steps: (1) establish data-driven multi-objective optimization model: I. taking energy consumption and effluent quality as objectives, a multi-objective optimization model is established for municipal wastewater treatment process.
min F(t)=[ƒ.sub.1(t),ƒ.sub.2(t)] (1) where F(t) is the multi-objective optimization model of municipal wastewater treatment process at time t, ƒ.sub.1(t) is energy consumption at time t, ƒ.sub.2(t) is effluent quality at time t; II. data-driven energy consumption and effluent quality models are established as
p.sub.n(1)=x.sub.n(1) (6) where p.sub.n(1) is the personal best position of nth particle in a first iteration, x.sub.n(1)=[x.sub.n,1(1), x.sub.n,2(1)] is a position of the nth particle in the first iteration, x.sub.n,1(1) is a first dimensional position of the nth particle in the first iteration, x.sub.n,1(1)∈[0.2 mg/L, 2 mg/L], x.sub.n,2(1) is a second dimensional position of the nth particle in the first iteration, x.sub.n,2(1)∈[0.4 mg/L, 3 mg/L]; establish archive A(1): an archive is obtained by comparing objectives between particles; when both objectives of a particle are less than or equal to corresponding objectives of other particles, and at least one objective is smaller than the corresponding objective of other particles, then this particle is called a non-dominated solution; by comparing the objectives of particle, the non-dominated solutions are stored in the archive; a diversity distribution is calculated by
v.sub.n,d(k+1)=ωv.sub.n,d(k)+c.sub.1r.sub.1(p.sub.n,d(k)−x.sub.n,d(k))+c.sub.2r.sub.2(g.sub.d(k)−x.sub.i,d(k)) (14)
x.sub.n,d(k+1)=x.sub.n,d(k)+v.sub.n,d(k+1) (15) where ω is inertia weight selected in [0.5, 0.9] randomly, v.sub.n,d(k) is d-dimensional velocity of the nth particle in the kth iteration, x.sub.n,d(k) is d-dimensional position of the nth particle in the kth iteration, p.sub.n,d(k) is d-dimensional personal best position of the nth particle in the kth iteration, g.sub.d(k) is d-dimensional position of the population in the kth iteration, r.sub.1 and r.sub.2 are a random value distributed in [0, 1], c.sub.1 is an acceleration factor of personal best solution, selected in [1.5, 2.5] randomly, c.sub.2 is an acceleration factor of global best solution, selected in [1.5, 2.5] randomly; Case 2: when PC(k)<PC(k−1) and PD(k)>PD(k−1), the velocity and position of particle are updated by
v.sub.n,d(k+1)=ωv.sub.n,d(k)+c.sub.1r.sub.1(p.sub.n,d(k)−x.sub.n,d(k))+c.sub.2r.sub.2(g.sub.d(k)−x.sub.i,d(k))+c.sub.3r.sub.3C.sub.d(k) (16)
x.sub.n,d(k+1)=x.sub.n,d(k)+v.sub.n,d(k+1) (17) where r.sub.3 is a random value distributed in [0, 1], c.sub.3 is an acceleration factor related to convergence direction, selected in [0.3, 0.5] randomly, C.sub.d(k) is d-dimensional flight direction of particles with maximum convergence in the population; Case 3: when PC(k)>PC(k−1) and PD(k)<PD(k−1), the velocity and position of particle are updated by
v.sub.n,d(k+1)=ωv.sub.n,d(k)+c.sub.1r.sub.1(p.sub.n,d(k)−x.sub.n,d(k))+c.sub.2r.sub.2(g.sub.d(k)−x.sub.i,d(k))+c.sub.4r.sub.4D.sub.d(k) (18)
x.sub.n,d(k+1)=x.sub.n,d(k)+v.sub.n,d(k+1) (19) where r.sub.4 is a random value distributed in [0, 1], c.sub.4 is an acceleration factor related to diversity direction, selected in [0.3, 0.5] randomly, D.sub.d(k) is d-dimensional flight direction of particles with maximum diversity in the population; Case 4: when PC(k)<PC(k−1) and PD(k)<PD(k−1), the velocity and position of particle are updated by
v.sub.n,d(k+1)=ωv.sub.n,d(k)+c.sub.1r.sub.1(p.sub.n,d(k)−x.sub.n,d(k))+c.sub.2r.sub.2(g.sub.d(k)−x.sub.i,d(k))+½(c.sub.3r.sub.3C.sub.d(k)+c.sub.4r.sub.4D.sub.d(k)) (20)
x.sub.n,d(k+1)=x.sub.n,d(k)+v.sub.n,d(k+1) (21) Case 5: when PC(k)=PC(k−1) or PD(k)=PD(k−1), the velocity and position of particle are updated by
Description
DESCRIPTION OF DRAWINGS
[0033]
[0034]
[0035]
[0036]
[0037]
DETAILED DESCRIPTION OF THE INVENTION
[0038] A data-knowledge driven optimal control method is designed for municipal wastewater treatment process in this patent. Its characteristic lies in obtaining the optimal set-points of manipulated variables and tracking these variables to improve effluent quality and reduce energy consumption. This patent adopts the following technical scheme and implementation steps: [0039] (1) Establish data-driven multi-objective optimization model:
[0040] I. Taking energy consumption and effluent quality as objectives, a multi-objective optimization model is established for municipal wastewater treatment process.
min F(t)=[ƒ.sub.1(t),ƒ.sub.2(t)] (1)
where F(t) is the multi-objective optimization model of municipal wastewater treatment process at time t, ƒ.sub.1(t) is the energy consumption at time t, ƒ.sub.2(t) is the effluent quality at time t;
[0041] II. The data-driven energy consumption and effluent quality models are established as
where I.sub.1=10 is the number of radial basis kernel functions of energy consumption model, I.sub.2=10 is the number of radial basis kernel functions of effluent quality model, W.sub.10(t)=−1.20 is the output offset of energy consumption model, W.sub.10(0)=−1.20, W.sub.20(t) is the output offset of effluent quality model, W.sub.20(0)=0.34, W.sub.1i(t) is the weight of the ith radial basis kernel function in energy consumption model, W.sub.1i(0)=−0.78, W.sub.2i(t) is the weight of the ith radial basis kernel function in effluent quality model, W.sub.2i(0)=1.62, B.sub.1i(t) is the ith radial basis kernel function related to energy consumption model, B.sub.2i(t) is the ith radial basis kernel function related to effluent quality model.
where s(t)=[S.sub.NO(t), S.sub.O(t), MLSS(t), S.sub.NH(t)] is the input vector, s(0)=[1, 1.5, 15, 2.3], S.sub.NO(t) is the concentration of nitrate nitrogen in anaerobic final stage at time t, S.sub.NO(t)∈[0.2 mg/L, 2 mg/L], S.sub.O(t) is the concentration of dissolved oxygen in aerobic end stage at time t, S.sub.O(t)∈[0.4 mg/L, 3 mg/L], MLSS(t) is the effluent concentration of mixed liquor suspended solids at time t, MLSS(t)∈[0 mg/L, 100 mg/L], S.sub.NH(t) is the effluent concentration of ammonia nitrogen at time t, S.sub.NH(t)∈[0 mg/L, 4 mg/L], c.sub.1i(t) is the center of the ith radial basis function in energy consumption model, c.sub.1i(0)=[0.76, 0.45, 0.21, −0.33], c.sub.2i(t) is the center of the ith radial basis function in effluent quality model, c.sub.2i(0)=[0.82, 0.67, −0.29, 0.85], σ.sub.1i(t) is the width of the ith radial basis function in the energy consumption model, σ.sub.2i(0)=0.62, σ.sub.2i(t) is the width of the ith radial basis function in the effluent quality model, σ.sub.2i(0)=1.72;
[0042] (2) Design multi-objective particle swarm optimization based on evolutionary knowledge:
[0043] 1) The controllable variables S.sub.NO and S.sub.O of municipal wastewater treatment process are used as the position variables of multi-objective particle swarm optimization. The population size of multi-objective particle swarm optimization is set to N, N=20. The maximum iteration time of multi-objective particle swarm optimization is set to K, K=100. The iteration time of population is set to k, k∈[1, K]. The number of iterations of particle information is set to k.sub.0=4;
[0044] 2) Initialize the population: the population with N particles is randomly generated. The objective values are obtained by formula (1). The personal best position is
p.sub.n(1)=x.sub.n(1) (6)
where p.sub.n(1) is the personal best position of the nth particle in the first iteration, x.sub.n(1)=[x.sub.n,1(1), x.sub.n,2(1)] is the position of the nth particle in the first iteration, x.sub.n,1(1) is the first dimensional position of the nth particle in the first iteration, x.sub.n,1(1)∈[0.2 mg/L, 2 mg/L], x.sub.n,2(1) is the second dimensional position of the nth particle in the first iteration, x.sub.n,2(1)∈[0.4 mg/L, 3 mg/L];
[0045] Establish the archive A(1): the archive is obtained by comparing the objectives between particles. When both objectives of a particle are less than or equal to the corresponding objectives of other particles, and at least one objective is smaller than the corresponding objective of other particles, then this particle is called the non-dominated solution. By comparing the objectives of particle, the non-dominated solutions are stored in the archive;
[0046] The diversity distribution is calculated by
where DS.sub.n(1) is the diversity distribution of the nth particle in the first iteration, ƒ.sub.n,m(1) is the mth objective value of the nth particle in the first iteration, |⋅| represents absolute value;
[0047] 3) The evolutionary process of population
[0048] I. Enter the next iteration, that is, increase the number of iterations by 1. The convergence distribution and diversity distribution of each particle are recorded in the evolutionary process:
where CS.sub.n(k) is the convergence distribution of the nth particle in the kth iteration, ƒ.sub.n,m(k) is the mth objective value of the nth particle in the kth iteration, m∈[1, M], M=2, x.sub.n(k) is the position vector of the nth particle, DS.sub.n(k) is the diversity distribution of the nth particle in the kth iteration, |⋅| represents absolute value;
[0049] II. The convergence and diversity indexes of individual and population are established by using distribution knowledge, in which the distribution knowledge consists of historical distributions of particles.
where IC.sub.n(k) is the individual convergence of the nth particle in the kth iteration, PC(k) is the population convergence in the kth iteration, ID.sub.n(k) is the individual diversity of the nth particle in the kth iteration, PD(k) is the population diversity in the kth iteration, u∈[k−k.sub.0, k] is the iteration times;
[0050] III. Select the evolutionary strategy of population:
[0051] Case 1: When PC(k)>PC(k−1) and PD(k)>PD(k−1), the velocity and position of particle are updated by
v.sub.n,d(k+1)=ωv.sub.n,d(k)+c.sub.1r.sub.1(p.sub.n,d(k)−x.sub.n,d(k))+c.sub.2r.sub.2(g.sub.d(k)−(k)) (14)
x.sub.n,d(k+1)=x.sub.n,d(k)+v.sub.n,d(k+1) (15)
where ω is the inertia weight selected in [0.5, 0.9] randomly, v.sub.n,d(k) is the d-dimensional velocity of the nth particle in the kth iteration, x.sub.n,d(k) is the d-dimensional position of the nth particle in the kth iteration, p.sub.n,d(k) is the d-dimensional personal best position of the nth particle in the kth iteration, g.sub.d(k) is the d-dimensional position of the population in the kth iteration, r.sub.1 and r.sub.2 are the random value distributed in [0, 1], c.sub.1 is the acceleration factor of personal best solution, selected in [1.5, 2.5] randomly, c.sub.2 is the acceleration factor of global best solution, selected in [1.5, 2.5] randomly.
[0052] Case 2: When PC(k)<PC(k−1) and PD(k)>PD(k−1), the velocity and position of particle are updated by
v.sub.n,d(k+1)=ωv.sub.n,d(k)+c.sub.1r.sub.1(p.sub.n,d(k)−x.sub.n,d(k))+c.sub.2r.sub.2(g.sub.d(k)−x.sub.i,d(k))+c.sub.3r.sub.3C.sub.d(k) (16)
x.sub.n,d(k+1)=x.sub.n,d(k)+v.sub.n,d(k+1) (17)
where r.sub.3 is the random value distributed in [0, 1], c.sub.3 is the acceleration factor related to convergence direction, selected in [0.3, 0.5] randomly, C.sub.d(k) is the d-dimensional flight direction of particles with maximum convergence in the population.
[0053] Case 3: When PC(k)>PC(k−1) and PD(k)<PD(k−1), the velocity and position of particle are updated by
v.sub.n,d(k+1)=ωv.sub.n,d(k)+c.sub.1r.sub.1(p.sub.n,d(k)−x.sub.n,d(k))+c.sub.2r.sub.2(g.sub.d(k)−x.sub.i,d(k))+c.sub.4r.sub.4D.sub.d(k) (18)
x.sub.n,d(k+1)=x.sub.n,d(k)+v.sub.n,d(k+1) (19)
where r.sub.4 is the random value distributed in [0, 1], c.sub.4 is the acceleration factor related to diversity direction, selected in [0.3, 0.5] randomly, Da(k) is the d-dimensional flight direction of particles with maximum diversity in the population.
[0054] Case 4: When PC(k)<PC(k−1) and PD(k)<PD(k−1), the velocity and position of particle are updated by
v.sub.n,d(k+1)=ωv.sub.n,d(k)+c.sub.1r.sub.1(p.sub.n,d(k)−x.sub.n,d(k))+c.sub.2r.sub.2(g.sub.d(k)−x.sub.i,d(k))+½(c.sub.3r.sub.3C.sub.d(k)+c.sub.4r.sub.dD.sub.d(k)) (20)
x.sub.n,d(k+1)=x.sub.n,d(k)+v.sub.n,d(k+1) (21)
[0055] Case 5: When PC(k)=PC(k−1) or PD(k)=PD(k−1), the velocity and position of particle are updated by
where U(0, 1) is a random value between 0 and 1 which obeys uniform distribution, x.sub.d,min is the minimum boundary value of d-dimensional position, x.sub.d,max is the maximum boundary value of d-dimensional position. When d=1, x.sub.1,min=0.2 mg/L, x.sub.1,max=2 mg/L. When d=2, x.sub.2,min=0.4 mg/L, x.sub.2,max=3 mg/L. r.sub.5 is the random value distributed in [0, 1], p.sub.b is the mutation probability, which is described as
[0056] IV. The population in the kth iteration is combined with the archive A(k−1) to obtain J(k), and then the non-dominated solutions are selected from J(k) to establish A(k);
[0057] V. If k is greater than or equal to K, go to step VI. If k is less than K, go to step I;
[0058] VI. In the archive A(K), a non-dominated solution is randomly selected as the optimal set-point a*(t)=ab(K), ab(K)=[S.sub.NO*(K), S o*(K)], where S.sub.NO*(K) is the optimal set-point of S.sub.NO, S.sub.O*(K) is the optimal set-point of S.sub.O. Then, the optimal set-points are saved;
[0059] (3) Track the optimal set-points S.sub.NO*(K) and S.sub.O*(K):
[0060] PID controller is designed to track the optimal set-points S.sub.NO*(K) and S.sub.O*(K). The expression of PID controller is
where Δz(t)=[ΔQ.sub.a(t), ΔK.sub.La5(t)].sup.T is the manipulated variable matrix, ΔQ.sub.a(t) is the change of internal circulation flow in wastewater treatment process, ΔK.sub.La5(t) is the change of oxygen transfer coefficient in the fifth zone of biochemical reactor, K.sub.p is the proportional coefficient matrix, H.sub.l is the integral coefficient matrix, and Ha is the differential coefficient matrix. e(t)=y*(t).sup.T−y(t).sup.T is the control error, y*(t)=[S.sub.NO*(t), S.sub.O*(t)] is the optimal set-point matrix at time t, y(t)=[S.sub.NO(t), S.sub.O(t)] is the actual output matrix.
[0061] (4) The inputs of data-knowledge driven optimal control system of municipal wastewater treatment process are the change of internal circulation flow ΔQ.sub.a(t) and the change of oxygen transfer coefficient in the fifth zone of biochemical reactor ΔK.sub.La5(t). The optimal set-points of S.sub.NO and S.sub.O in municipal wastewater treatment process are tracked and controlled.
[0062] The framework of data-knowledge driven optimal control method is shown in