Document 13134444

advertisement
2011 International Conference on Computer Communication and Management
Proc .of CSIT vol.5 (2011) © (2011) IACSIT Press, Singapore
Decentralized Controller for Constrained Nonlinear Water Quality
Control in Streams
Mohamed Fahim Hassan1, Hesham Talaat 2
1
Electrical Engineering Department , Kuwait University
Kuwait , m.fahim.hassan@ gmail.com
2
etsh00@hotmail.com
Abstract. In this paper, stream water quality control process is considered. The system is represented by a
constrained nonlinear interconnected dynamical model with time delay. By decomposing the system into a set of
subsystems, a partially closed loop decentralized controller is developed which leads to a suboptimal system
performance while satisfying system constraints. The developed procedure is applied to a typical nonlinear stream
water quality control system and the obtained results show the effectiveness of the presented approach.
Keywords: Decentralized control; optimal control theory; constrained nonlinear optimization problems.
1. Introduction
Distributed interconnected systems form an important class of problems that control engineers are faced
with. These systems are often characterized by their nonlinear dynamic behavior, large dimensionality, time
delay and system constraints on the states and/or inputs. Decomposing such systems into smaller
interconnected subsystems provides a less complex and more efficient way to deal with the overall problem.
A special type of this class of systems are those characterized by their sequential nature (e.g. traffic networks,
production lines, rivers, etc.), in which the response of the system at any section is directly affected by the
behavior of the preceding section(s).
Under the assumption that optimal control problems associated with these systems have a feasible
solution, it is obvious that controllers designed in a global sense lead to an optimal performance. However,
for geographically spread systems, the initial cost of implementing globally optimal controllers tends to be
quite high. More importantly, reduced system reliability is apparent since such types of systems are often
subject to structural perturbations.
On the other hand, although decentralized controllers lead to suboptimal system performance, they need
no transfer of information between subsystems, thus such an approach is economical, reduces
communication overhead and increases system reliability.
Although constrained linear quadratic problems (LQP) have attracted many researchers in the last decades,
few of them have tackled nonlinear constrained dynamical systems. Among the techniques developed to
solve LQP are those falling into the class of model predictive control [1-2] and references therein, anti-wind
up approach for which we quote [3] and references therein, coordinating based approach and time delayed
systems [4-6] and references therein. A number of researchers have attempted to tackle constrained nonlinear
optimization [7-8], however constraints were only applied on the input, with the states left unconstrained.
In this paper, an approach is suggested to design a suboptimal decentralized control structure for serially
interconnected nonlinear dynamical systems with time delay and system constraints on the states and/or
inputs. The main idea behind this approach is to consider time delayed coupling variables from proceeding
subsystems as known inputs. Then, after introducing the coordinating variables, a decentralized algorithm is
proposed to solve the problem at hand. This leads, at the end of convergence, to decentralized control
strategy, which although suboptimal in its global sense, it guarantees the satisfaction of system constraints.
Moreover, it allows parallel processing hence reduced computational time. The developed approach is then
used to control the concentrations of the biochemical oxygen demand (BOD) and the dissolved oxygen (DO)
in a three reach river system.
356
The rest of the paper is divided into the following. The problem is formulated in section 2. The developed
decentralized approach is presented in section 3. In section 4, the water quality control problem is
demonstrated while simulation results are given in section 5. Finally, the paper is concluded in section 6.
2. Problem Formulation
Let us consider the following nonlinear interconnected dynamical optimization problem with time delays,
which comprises N-nonlinear interconnected subsystems, and is assumed to have a feasible solution:
N
N 1 tf
2
2
(1)
min J = min ∑ Ji = ∑ ∫ xi (t) − xid + ui (t) R dt
i1
Q
2
i1
i=1
i=1 to
subject to:
xi (t ) = fi ( x, x(t − τ p ), u , t ) ; with xi (to ) = xoi
(2)
xi ≤ xi (t ) ≤ xi
(3)
u i ≤ ui (t ) ≤ u i
(4)
N
N
i =1
i =1
where: i ∈ {1, 2,...., N }, n = ∑ ni , m = ∑ mi , xi (t ) ∈ Rni , ui (t) ∈ Rmi are the state and control variables of
the i subsystem, respectively, τ p is the time delay; with p ∈{1,....,θ } and θ is a known positive integer
th
representing the number of delays in the state vector, xid ∈ R ni is the desired steady-state value of the state
vector, fi ( x, x(t − τ p ), u, t ) : Rni → Rni is a nonlinear vector function, x i , x i , u i , u i are the lower and upper
bounds of the state and control vectors (component by component) and Qi1 ≥ 0 ∈ R ni ×ni , Ri1 > 0 ∈ R mi ×mi are
the subsystem weighting matrices which are related to the original ones by the following:
Q1 = diag{Q11, Q21,...., QN1} ; R1 = diag{R11, R21,...., RN1} .
We assume in the rest of the paper that:
x(t −τ p ) = xd ∀t −τ p < 0; p ∈{1,....,θ )
Since we are dealing with the special class of serially interconnected nonlinear dynamical systems with
time delay, in this case any subsystem is coupled only with the preceding one(s). In our analysis, we consider
the interconnection with the preceding subsystems, x*j (t − τ p ) ; j ∈{1, 2,...,(i − 1)} , as known input signals.
Hence, the system will be decoupled and it is possible to control its behavior through a decentralized control
structure.
Moreover, in order to satisfy state constraints without violating the dynamics of the system and to be able
to generate a partially closed loop control strategy, we introduce the coordinating variables xiο (t ) ∈ R ni and
uio (t ) ∈ R mi . Accordingly, the above optimization problem can be rewritten in the following equivalent form:
N
N
t
2
2
2
1f
1
1
2
J = min ∑Ji = ∑ ∫ xio (t) − xid (t) + xi (t) − xio (t) + ui (t) R + ui (t) −uio (t) dt
i1
Qi1 2
Qi 2
Ri 2
2
i=1
i=1 2 t
(5)
o
subject to:
xi (t ) = Aoii xi (t ) + Bi ui (t ) + fi ( xio , x*j (t −τ p ), uio , t ) − Aoii xio (t ) − Bi uio (t )
; with: xi (to ) = xoi
(6)
xi (t ) = xio (t )
(7)
ui (t ) = uio (t )
xi ≤ xio (t ) ≤ xi
(8)
(9)
(10)
u i ≤ ui (t ) ≤ u i
Aoii =
[ ∂ f i ( xio , x *j ( t
−τ
o
p ), u i , t ) / ∂ xi ] x = x ss
u =ur
;
Bi = [∂fi ( xio , x*j (t
− τ p ), uio , t ) / ∂ui ]x = xss
u =ur
where xss , ur are, respectively, the steady state response of the system and the reference input.
357
(11)
As will be shown below, the coordinating variable xio (t ) will be obtained from a set of algebraic
equations on which we can apply the inequality (9) to satisfy the state constraints. The Lagrange multiplier
associated with (7) will force xi (t ) -resulting from the solution of the state equation (6)- to approach xio (t )
through the control signal.
3. The Developed Approach
Let us write the Hamiltonian for the i th subsystem:
Δ1
2
2
1
1
Hi ( xi , xio , ui , uio , λi , π i , βi , t ) = xio (t ) − xid
+ xi (t ) − xio (t )
+ ui (t )
Q
Q
2
2
2
i1
i2
2
Ri1
+
1
ui (t ) − uio (t )
2
2
Ri 2
+ λiT (t )
[ Aoii xi (t ) + Bi ui (t ) + fi ( xio , x*j (t − τ p ), uio , t ) − Aoii xio (t ) − Bi uio (t )] + π iT (t )[ xi (t ) − xio (t )] + βiT (t )[ui (t ) − uio (t )] (12)
where λi (t ) ∈ R ni is the co-state vector, π i (t ) ∈ R ni and βi (t ) ∈ R mi are the Lagrange multiplies associated
with the equality constraints (7) and (8) respectively. The necessary conditions of optimality lead to:
∂H
(13)
= 0 ⇒ ui (t ) =ℜι−1 [Ri 2uio (t ) − BiT λi (t ) − βi (t )] = Γi (uio , λi , βi , t )
∂ui (t )
where ℜι = Ri1 + Ri 2
However, to satisfy the constraints given by (10), we have [9]:
⎧u i
Γ i ( u io , λ i , β i , t ) < u i
if
⎪⎪
u i ( t ) = ⎨ Γ i ( u io , λ i , β i , t ) if u i ≤ Γ i ( u io , λ i , β i , t ) ≤ u i
⎪
Γ i ( u io , λ i , β i , t ) > u i
if
⎪⎩ u i
∂H
= xi (t) ⇒ xi (t) = Aoii xi (t) + Biui (t) + fi (xio , x*j (t −τ p ), uio , t) − Aoii xio (t) − Biuio (t) ; with xi (tο ) = xο i
∂λi (t)
∂H
= −λi (t) ⇒ λi (t) = −Qi2 (xi (t) − xio (t)) − Ao ii T λi (t) −πi (t) ; with λi (t f ) = 0
∂xi (t)
∂H
∂uio (t )
∂H
∂ xio (t )
= 0 ⇒ βi (t ) =
∂fiT ( xio , x*j (t − τ p ), uio , t )
∂uio (t )
d
= 0 ⇒ xio (t ) = Θ −1
i [Qi1xi + Qi 2 xi (t ) −
λi (t ) − Ri 2 (ui (t ) − uio (t )) − BiT λ (t )
θ
∑
p =1
∂ fiT ( xio , x*j (t − τ p ), uio , t )
∂xio (t )
τ 1 =0
λi (t + τ p ) − AoTii λi (t ) + π i (t )]
(14)
(15)
(16)
(17)
(18)
=Ψi ( xio , x*j (t − τ p ), uio , λi ,π i , t )
where Θi = Q i 1 + Q i 2
As before, to satisfy system constraints given by (9), the coordinating vector x o (t ) , which minimizes the
Hamiltonian, is given by:
⎧
if Ψ ( xio , x*j (t − τ p ), uio , λi ,π i , t ) < xi
xi
i
⎪⎪
o *
o
ο
x (t ) = ⎨Ψ ( xi , x j (t − τ p ), ui , λi ,π i , t ) if xi ≤ Ψ ( xio , x*j (t − τ p ), uio , λi ,π i , t ) ≤ xi
(19)
i
i
i
⎪
xi
if Ψ ( xio , x*j (t − τ p ), uio , λi ,π i , t ) > xi
⎪⎩
i
∂H
= 0 ⇒ uio (t ) = ui (t )
∂β i (t )
(20)
Finally we have:
∂H
= xi (t ) − xio (t )
∂π i (t )
This leads to the updating algorithm for π i (t ) given by:
(21)
π ik +1 (t ) = π ik (t ) + ϕik lik (t )
(22)
358
where k is the iteration number, lik (t ) can be specified according to the selected algorithm (conjugate
gradient,..etc), while ϕik has to be positive to maximization of the dual function w.r.t. the dual variable π ik (t ) .
In our procedure, and throughout this paper, we applied the gradient technique to update π ik (t ) with
lik (t ) = xik (t ) − xiok (t ) .
Let λi (t ) = Pi (t ) xi (t ) + ξi (t )
(23)
⇒ λi (t ) = Pi (t ) xi (t ) + Pi (t ) xi (t ) + ξi (t )
(24)
Substituting (13) into (15), and replacing λi (t ) with the expression given in (23) while using (24) with (16),
one gets, after simple mathematical manipulation:
P (t ) = − P (t ) A − AT P (t ) + P (t ) B ℜ −1 BT P (t ) − Q
(25)
i
i
oii
oii i
i
i
ι
i
i
i2
where Pi (t ) is solution of the dynamic Riccati equation of the i th subsystem with P (t f ) = 0 , and:
ξi (t) = (− AoTii + Pi (t)Biℜι−1 BiT )ξi (t) + Qi2 xio (t) − πi (t) − Pi (t)[Biℜι−1 Ri2uio (t) − Biℜι−1 βi (t) + fi (xio , x*j (t −τ p ), uio , t)
− Aoii xio (t ) − Bi uio (t )] ;
with ξi (t f ) = 0
(26)
Finally, by substituting for λi (t ) from (24) into (14), we get:
ui (t ) = −ℜ ι−1 BiT Pi (t ) xi (t ) + ℜ ι−1 Ri 2 uio (t ) − ℜ ι−1 BiT ξ i (t ) − ℜ ι−1 β i (t )
(27)
It can be seen that the first term of the RHS of (27) is the closed loop component of the decentralized
controller whilst the second gives the open loop part which will be used to satisfy system constraints given
by (9). The satisfaction of the input constraints given by (10), is equivalent to satisfying the following:
ν i (t ) ≤ ν i (t ) ≤ ν i (t )
(28)
where vi (t ) = −ℜi −1BiT ξi (t )
(29)
ν i (t ) = u i + ℜ ι−1 BiT Pi ( t ) xi (t ) + ℜ ι−1 β i ( t ) − ℜ ι−1 Ri 2 u io ( t )
(30)
ν i (t ) = ui + ℜι−1 BiT Pi (t ) xi (t ) + ℜι−1 βi (t ) − ℜι−1 Ri 2uio (t )
(31)
This in turn gives:
vi (t ) < vi (t )
⎧vi (t ) if
⎪
vi (t ) = ⎨ vi (t ) if vi (t ) ≤ vi (t ) ≤ vi (t )
⎪
vi (t ) > vi (t )
⎩vi (t ) if
Finally, substituting (23) into (17) and (18) gives:
∂ fiT (xio , x*j (t −τ p ),uio , t)
βi (t) =
(Pi (t)xi (t) + ξi (t)) − Ri2 (ui (t) − uio (t)) − BiT ( Pi (t ) xi (t ) + ξi (t ))
o
∂ui
xio (t) = Θ ι−1[Qi1xid + Qi2 xi (t) −
∂ fiT (xio , x*j (t −τ p ),uio , t)
∂ xio
(32)
(33)
(Pi (t)xi (t) + ξi (t)) − AoTii (Pi (t)xi (t) + ξi (t)) + πi (t)]
= Ψ i ( xio , x*j (t − τ p ),uio , Pi , xi , ξi , π i , t )
(34)
4. Water Quality Control
Water quality control in streams is usually achieved either through variable effluent flow rate with fixed
BOD concentration or through fixed effluent flow rate with variable levels of BOD concentrations. In many
practical applications, it may not be possible to get the desired water quality standards using any of the above
two methods. Therefore, we may combine the two approaches to achieve our objective. This leads to the
following nonlinear (bilinear) model for the ith reach [10]:
Q + Q Ei + ΔQEi (t )
Q + ΔQEi (t )
Q θ
(35)
zi (t ) = −(k1i + k3i ) zi (t ) + i
a j zi −1 (t − τ j ) − i
zi (t ) + Ei
(mi + Δmi (t ))
Vi j =1
Vi
Vi
∑
qi ( t ) = − k1i zi (t ) − k 2 i qi (t ) +
Qi
Vi
θ
∑
j =1
a j qi −1 (t − τ j ) −
Qi + Q Ei + Δ Q Ei (t )
k
qi ( t ) + k 2 i q s − 4 i
Vi
Ax dx
359
(36)
where , zi and qi are, respectively, the concentration of BOD (mg/l) and DO (mg/l), k1i is the rate of decay of
BOD, k2i is the re-aerations rate, k3i is the rate of loss of BOD due to settling, ( k 4 i / A x d x ) is the removal of
DO due to bottom sludge requirement and qs is the concentration of DO at saturation level. Q Ei , mi are
respectively, the nominal flow rate and the nominal concentration of BOD in effluent to be discharged,
while ΔQ Ei (t) and Δmi (t) are the deviations around these values. Qi and Qi-1 are the stream flow rates in
reaches i and i − 1 respectively, Vi is the water volume and θ is the number of delays.
Since the effluent flow rate to the river system is variable rather than constant, effluents from polluter
stations have to be stored in tanks then discharged into the stream according to the derived control policy.
This necessitates the introduction of a third state equation which describes the variation of the effluent
volume in the storage tank with time:
ηi (t ) = Fi − (Q Ei / Vi ) − (ΔQEi (t ) / Vi )
(37)
th
where η (t ) = V / V , V is the rate of change of the volume of the i tank, Fi is the inflow rate of effluent
i
Ti
i
Ti
into the tank, assumed constant, and (Q Ei + ΔQEi (t )) / Vi is the outflow rate of effluent from the tank.
Assuming that the inflow rate equals the nominal outflow rate of the effluent, i.e. Fi = Q Ei / Vi , we get:
ηi (t ) = −ΔQEi (t ) / Vi
(38)
Let Δmi (t ) = u1i(t) , ΔQEi (t ) / Vi = u2i(t), then by combining equations (35), (36) and (38), and to develop a
completely decentralized control structure, we handle the interaction with the preceding reach as a known
input signal. Therefore, the system can be described by the following state variable model for the ith reach:
xi (t ) = Aoii xi (t ) + Bi ui (t ) + fi ( xiο , uiο , t )+ϖ i (t) + di
; with, xi (t o ) = xoi ,
(39)
where i ∈ {1, 2,..., N } , N being the number
of subsystems, ui ∈ R mi is the control vector for which
uiT (t ) = [u1i (t ) u2i (t )] ; xi ∈ R ni is the state vector for which
xiT (t) =[zi (t) qi (t) ηi (t)] ;
Aoii ∈ R ni ×ni ,
Bi ∈ R ni ×mi are the linear parts of the system matrices, fi (xiο ,uiο ,t)∈Rni is the nonlinear vector function given
by
fi ( xiο , uiο , t ) = [ − x1oi (t )u2oi (t ) + u2oi (t )u1oi (t ), − x2oi (t )u2oi (t ), 0]T
Apij ∈ R
ni ×n j
are the coupling matrices associated with
is
a
constant
vector;
the jth subsystem (reach); p ∈{1,....,θ } , θ is a
known positive integer representing the number of delays in
and finally:
ϖ i (t ) =
; di ∈ R ni
the state vector of the
j th reach;
θ
∑ Ap x*j (t − τ p )
p =1
ij
with j = i − 1
(40)
To satisfy both water quality standards and community needs, we have to insure that zi (t ) ≤ zi and
qi (t ) ≥ qi , otherwise most of the aquatic life in the river body will die. Moreover, the volume of the effluent
in the tank must satisfy 0 ≤ ηi ≤ ηi where ηi is the maximum capacity of the tank. In addition, due to
economical considerations Δmi must not be less than a certain threshold Δmi ,otherwise the treatment cost of
the effluent will increase drastically. Finally, ΔQEi (t ) / Vi must not exceed the maximum capacity of the
valves used as actuators in the system and must not be less than −Q Ei / Vi , which means zero discharge of
effluent. These physical considerations add the following constraint equations to our model:
xi ≤ xi (t ) ≤ xi
(41)
u i ≤ ui (t ) ≤ u i
(42)
with x i , x i , u i , u i being the lower and upper bounds of the state and control vectors (element by element),
for the ith subsystem.
Associated with each subsystem is a performance index Ji, to be minimized w.r.t. xi and ui, of the form:
t
min J i =
xi ,ui
1 f
d
∫ ( xi (t ) − xi
2 to
2
Qi1
+ ui (t )
2
)dt
Ri1
(43)
360
5. Simulation
The above water quality control problem is simulated using the following data:
Subsystem (1):
T
T
xoT1 = [10 7 0.01 5.937], x1d = [4.053 8 0.01], d 1T = [5.35 10.9 0], x1T = [0 6 0.001], x1 = [10 open 0.049],
u 1T = [−0.14 − 0.1], u 1T = [0 0.1].
Subsystem (2):
T
T
xoT2 = [5.937 6 0.01], x1d = [5.937 6 0.01], d T2 = [4.19 1.9 0], xT2 = [0 5.6 0.001], x2 = [6.55 open 0.045]
u T2 =[−0.35 − 0.1], u T2 =[0 0.1]
Subsystem (3):
T
xoT3 = [5.707 4.5614 0.01], x3d = [5.707 4.5614 0.01], d T3 = [2.19 1.9 0], xT3 = [0 4.22 0.001],
T
x3 = [6 open 0.016] , u T3 = [−0.077 − 0.1], u T3 = [0 0.1]
For the lack of space, Figs. 1,2 show, as an example, the concentration of BOD and DO in the second reach
while Fig. 3 shows the volume of the effluent in the tank associated with this reach. The water treatment
control action as well as the effluent discharge strategy are shown in Figs. 4,5 respectively.
6. Conclusion
In this paper, we considered constrained optimization problems of nonlinear serially interconnected
dynamical systems with time delays. For this problem, a partially closed loop decentralized control structure
is proposed that yields a suboptimal performance of the system. Simulation on a three reach river system
shows the applicability and efficiency of the developed technique. It can be seen that the decentralized
controller is capable of satisfying system constraints, as well as, achieving a satisfactory response of the
system although globally suboptimal.
7. References
[1] A. Bemporad, F. Borrelli, and M. Morari, “Min-max control of constrained uncertain discrete-time linear systems”,
IEEE Trans. AC, 2003 vol.48, pp.1600-1608.
[2] A. Bemporad ,M. Morari, V . Dua, and E.N. Pistikopoulous , “The explicit linear quadratic regulator for
constrained systems”, Automatica, 2002, vol. 38, pp. 3-20.
[3] O.F. Mulder, M.V. Kothare , and M. Morari, “Multivariable anti-windup controller synthesis iterative linear
Matrix inequality”, Automatica,2001, vol.37, no.9, pp.1 407-1416.
[4] M.F. Hassan, “Solution of linear quadratic constraint problem via coordinating approach”, International Journal of
Innovative Computing, Information and Control (IJICIC),2006, vol.2, no.3.
[5] M.F. Hassan, “A developed algorithm for solving constrained linear quadratic problems with time delays”, 4th
WSEAS/IASME International Conference on : system science and simulation engineering, Tenerife, Canary Island,
Spain, 16-18 December, 2005, pp. 71-76.
[6] M.F. Hassan, “Robust Decentralized Controller for serially interconnected dynamical systems with constraints”,
WSEAS Transactions on mathematics,2006, Issue 4, volume 5, pp.348-357.
[7]
F. Dorado and C. Bordons, “Constrained nonlinear predictive control using volterra models”. 10th IEEE
Conference on Emerging Technologies and Factory Automation, 2005,Vol.2, pp.1007-1012.
[8] H. Jaddu, and E. Shimemura, “Computational algorithm based on state parameterization for constrained nonlinear
optimal control problem”. Proceedings of the 36th Conference on Decision & Control, San Diego, California USA,
pp.4908-4911, December 1997.
[9] D.E. Kirk, “Optimal Control Theory: An Introduction”, Englewood Cliffs, N.J., Prentice Hall., 1970.
[10] M.F. Hassan, “Water quality simulation
and control in streams”, Encyclopedia of environmental control
technology, vol.3, Waste Water Treatment Technology, Golf Publishing Company, pp. 77-138, 1989.
361
Fig. 1 BOD concentration in Subsystem (2)
Fig. 3 Tank Volume of Subsystem (2)
Fig. 2 DO concentration in Subsystem (2)
Fig. 4 Variable Treatment Control of Subsystem (2)
Fig. 5 Discharge Control of Subsystem (2)
362
Download