Vous êtes sur la page 1sur 6

OPTIMAL AERATION CONTROL

FOR WASTEWATER TREATMENT

S. Marsili-Libellil
System Science Group, Technical University of Florence,
Via S. Marta 3, 50139 Ft'renze, Italy

Abstract. Dissolved Oxygen (DO) control is of paramount importance in biologi-


cal wastewater treatment processes . This paper proposes a control algorithm to
solve the DO control problem making use of linear quadratic theory and the no-
tion of integral state feedback. An interactive computer aided design (CAD)
package is presented to solve and implement the regulator. Broad applicability
of this package is stressed beyond the present control problem and simulations
are presented to assess the validity of the solution obtained.

Keywords. Activated sludge process; Computer aided design; Direct digital


control; Computer control; Microprocessors; Optimal control; Process control.

INTRODUCTION creased and a flocculant sludge is formed by


the growing biomass which can be easily sepa-
The increasing concern for improved water rated from the water by sedimentation. As a
quality is imposing more demanding wastewater resul~water with little organic pollution
treatment standards and stimulating the de- is released. A schematic diagram of the acti -
sign of advanced process control policies to vated sludge process is depicted in Fig . 1 .
get the best out of treatment units . Tradi- Proper aeration is crucial for process effi-
tionally, steady- state analysis has been used ciency, since a too low DO level would seve-
to deal both with design and operational pro- rely impair the oxidation process and event-
blems of biological wastewater treatment ually lead to biomass starvation, whereas a
plants, whereas a closer analysis shows that too high DO may cause "bulking", i . e . sludg. ,
typically hardly any plant ever operates at with poor settling properties. Eccessive
steady-state for the reason that both inflow aeration is also undesiderable from an econo-
rate and pollutant concentration have such mic point of view , implying undue energy con-
wide variations on a daily and even hourly sumption.
basis that the process is never stationary.
The steady- state assumption is therefore The importance of proper DO level in activa-
responsible for the many failures that all ted sludge was underlined by Olsson (1975)
too frequently occurr in plant operation and in deriving a mathematical model for the pro-
even when they do not attain macroscopic evi- cess, showing how the oxygen consumption was
dence, still the treatment efficiency may be due to the various bioactivities and how a
severely impaired if short term loading continuous air supply should be provided in
fluctuations are not timely countermeasured . order to make up for the oxygen consumption,
The weakness of the steady-state assumption thus securing a biologically sufficient DO
is particularly evident in the activated level at all times . More recently, Andrews
sludge process, widely used for domestic and and Olsson (1977) advocated DO level control
sewage wastewater treatment . Activated sludge to a constant value, within the framework of
is a blend of several microorganism species multiple loop process control, demonstrating
which under proper environmental conditions how, under constant DO, the quantity of air
act as tiny reactors degrading organic matter supplied could provide an indication of the
and producing in turn carbon dioxide, water bioactivities in the aerator. Yet, the pro-
and energy by means of successive oxidations . blem of designing such a controller remains
Whenever biodegradable pollutant is present fairly open .
and an appropriate amount of oxygen is sup-
plied to sustain the oxidation process, the This paper will try to provide an answer to
bacteria receive enough energy from the oxi - this challenging problem along the following
dation to increase their biomass transforming steps. First, a mathematical description of
biodegradable matter into protoplasm . In this the DO dynamics is derived, based on a low-
way the organic content of wastewater is de- order model for the aerator bioactivities,
then an optimal control problem is formulated
i~ terms of Linear Quadratic Integral (LQI)
lThe author is a member of the Italian cost functional and solved with respect to
Research Group for Environmental Analysis the model just derived . Lastly, the implemen-
and Hanagement (GRAGSA). tation of the algorithm as a CAD package is

511
512 S. Marsili-Libelli

presented in details together with simula- System input is represented by airflow


tion results. uair [Nm 3/hr], whereas coefficients a and 6
are used to express the biomass concentration
in terms of its oxygen equivalent.
DISSOLVED OXYGEN DYNAMICS
In order to carry out optimal control design
Oxygen consumption is due to biomass synthesis using linear theory results (Kwakernaak and
and to endogenous respiration. The former Sivan, 1972), model (1-3) is linearized about
process is a complex oxidation reaction where an equilibrium point pO={S~ C~ O~ C;,r~ S~UO}
by organic pollutant is converted into new - selected in the mid-range of possible opera-
viable matter, whereas the latter occurrs ting conditions. Expanding eqs. (1-3) about
when insufficient external nutrient is avai- pO and retaining the linear term, yields the
lable and bacteria oxidize their own cellu- linear approximation
lar material. Therefore, the DO dynamics de-
pends on both pollutant disappearance and
biomass growth rates. Detailed, high-order dt;
A t; + B 1'1
models are available to describe these pro- dt
(4 )
cesses (Olsson, 1975; Andrews, 1977), however
their high dimensionality prevented their use 1; C t;
for regulator design. On the other hand, a
completely "black box" approach has been fol- with t; = col(S CO), 1'1 = col(Si r 0i uair)'
lowed in designing simple proportional-inte-
1;= 0 representing the state, input and out-
gral controllers, assuming that the DO dyna-
put vectors displacements from the steady-state
mics could be modelled by a first order lag
values pO. Taking partial derivatives yields
plus dead time (Aarinen and colleagues,1978).
the following expressions
An intermediate way of attack is pursued here,
availing of the following reduced-order model
-klSO o
for the pollutant-biomass interaction (Marsi-
li-Libelli and colleagues, 1978; Marsili-Li-
A= k2so-2k3~ -~(l+ro) o
belli ; 1979) ° CO
-ak 2 S -26k S"
3
d S
dt -klSC - S(l+r)S + SSi (1)
(5 )
2
d C C
k 2 SC - k3:3 - S(l+r)C + SrC (2 )
d t r SO _s'S0 0 0
B= 0 SO(C;-Co) 0 0 (6 )
where S Pollutant concentration in the
aerator [mg/l]. 0 -SoOo SO ~a (Os-0°)
C Biomass concentration in the
aerator [mg / l].
C= [0 0 1] (7)
S.=
~
Input pollutant concentration
[mg / l].
By inspection it can be seen that assuming
Cr = Recycle biomass concentration
uair as the control variable, DO is the only
[mg / l].
state component that can be controlled, where-
r = recycle flowrate ratio.
as the whole state vector can be reconstructed
Q input flowrate [m 3 / hr].
from DO observations. This is consistent with
V aerator tank volume [m 3 ].
the biophysics of the process, since the oxi-
S Q/ V = diluition rate [hr- I ].
dation reactions are largely independent of DO
kl , k 2 , k3 = numerical constants. beyond a certain lower bound. Conversely, the
oxygen consumption, as a consequence of the
bioactivities in the aerator, allows complete
A DO dynamics may be derived from model (1-2)
state inference. Considering the following
taking into account that the synthesis and
numerical values for pO and the constants,
endogenous respiration terms are proportio-
nal to k2SC and k3C 2/ S respectively. Consider SO = 21 [mg / l] CO 287l[mg / l] 0° 2[mg / l]
ing also mass transfer and artificial aeration S~ CO
=350[mg / ljr 10 4 [mg / l] O~ l[mg / lj
terms, yields ~ ~

UO =1 2000[Nm 3 / hr] r O = 50/, SO .14[hr- 1 ]


d 0 kl 7.4 x lO- 4 [mg- 1lhr- 1 j
IC a(O s -0) u a~r
.
dt -L
1. 48 10- 3 [mg- 1lhr-1j
k2
(3) k3 5.2 10- 4 [mg-1lhr-lj
S(l+r)O + SOi
Substituting these values into expressions
(5-6) the linear approximation (4) is numeri-
where K~a
is the artificial aeration transfer
cally specified as follows, Bu denoting the
coeffic~ent, Os the oxygen saturation level
column of matrix B pertaining to uair input,
and 0i the DO content of inflowing sewage.
which is of interest for regulator design.
Natural reaeration is considered negligible.
Optimal Aeration Control for Wastewater Treatment 513

(17)
-2.3347 -0.0155 0
A 13 .983 -0. 3212 0 (8 )
-3 with Q = identity matrixof appropriate dimen-
-0.41 84 -7.86 x10 -2.954
sions. If the system is both stabilizable and
detectable, the solution of eqs. (16-17)
Bu = col(O 0 1.52 x 10- 3) (9) converges to a non-negative-definite sequence
of matrices P as T~ for any terminal condi-
tion PT~O , thus yielding a steady-state con-
trol law in the form of eq. (15). The overall
OPTIMAL CONTROL ALGORITHM closed loop system is depicted in Fig. 2a
showing how the implementation of the control
An optimal control strategy should not only scheme implies the availability of the whole
take into account DO infLence on process per- state vector. Conversely, it would be desira-
formance, and therefore accuracy of control ble to synthetize the control signal availing
action, but should also consider the economic only of process output informations. Under
side, in this case represented by the energy the assumption of detectability, this can be
expenditure caused by the blowers. It is there done converting the state feedback control
fore advisable to associate a cost functional- scheme of Fig. 2a into the equivalent input-
to DO control scheme which allows a balance output representation from which to extract
between precision of control and related a dynamical output controller, as shown in
energy consuption. As to the control structure, Fig. 2b. The regulator transfer function is
regulator performance would benefit from the related to the overall transfer function GE
introduction of "integral state" feedback by the following
(Kwakernaak and Sivan, 1972) providing insensi
tivity to constant disturbances of the control
G (18)
led variable, e . g . biased sensors, and reduc-- regulator (l-G ) G
E process
ing sens~t~vity to parameter variations. This
latter feature is particularly appropriate
with G being in the form
since the design is based on a linear approxi- regulator
mation of the actual process dynamics, thus it -1 -n
a z + ... +anz
is important to select a control structure l
G (19)
which is least sensitive to possible departu- regulator -1 -n
l+blz + ... +bnz
re of system parameters from their nominal
design values, thus broadening the validity
-1 .
of the linear approximation. Let with z represent~ng the backward shift ope-
rator and
+ (10 )
n = l+degr. (Num.G, )+degr. (Den.G
" pro cess
)
(11)

be the internal description of a linear


SOFTWARE ORGANIZATION FOR
discrete-time process. In addition define the
"inte gral state" as COMPUTER AIDED DESIGN

The design procedure outlined in the previous


(12)
section consists of two main blocks: the
computation of output controll e r (19) and its
Then, the augmented system with state (xt,qt)
implementation on an on-line c omputer. The
is represented by the matrices
former haq been organized as an interactive
package accepting the continuous-time proce ss
C = IG 01 (13) description and the sampling interval to yield
regulator (19), wherres the latter consists of
a control program runnin g on a mi c r oc omputer.
It is now required to determine a control law The features of this tw o-step comp uter-aided
so as to minimize the cost functional procedure are now described in details.
T
Computer Aided Design of LQI Contr ol Law.
J = L (14)
a =o
An interactive package has been imp l ement e d
to be run off-line for the computation o f
The Linear Quadratic Integral (LQI) problem
regulator (19). Its block dia gram is sh own
has now been formulated. Its solution yields
in Fig. 3 and the functi on of ea ch bl ock is
the linear state feedback control law
now described.
+ (15 )
MICROCONTROL . As the program is e nt e red, this
interactive module has control and promp ts
where F = (F ,f ) is the solution of the back- the user to enter the continuou-ti me pro cess
l 2
ward recursive algorithm state description and the samplin g inte r val.
It also acts as a supervisor for all th e rest
of the package.
514 S. Marsili-Libelli

DISCRETD. Computes the equivalent discrete-


(28)
time state description of the or i ginal process
as follows, with 6 representing th e sampling
interval, with t he doublecheck

exp(M) (20) R = I . a 1
n ' n

RI CTD. solves the optimal control problem for


J~XP(AO)B do (21) the augmented system (13) iterating eqs . (16-
17), after the user has entered the appropri -
o
ate weighting matrix Q and p appearing in the
cost functional (14) and other run-time pa-
The ma tri x exponential is evaluated using the rameters controlling the iterative computa-
Cayley-Hamilton theorem as follows . Let f(A) tion involved . As a result the optimal
be a polinomial function of the ma tri x A. Di- asymptotic gains Fl and f2 are obtained .
vid ing by the characteristic polynomial yields
DYNAMIC . Performs the extraction of the out-
put dynamic controller according to the
f(9) Q(9)P(9) + R(9) (22 )
scheme of Fig. 2b, eq. (19) , making use of
Leverrier algorithm. The output of this p r o-
whe r e P is the characteristic polynomial of gram segment are the coefficients a ' s and b's
A and R is a polynomial of degree n-l if n is that implement the optimal LQI control law
the dimension of A. Substituting in (22) A on the given c ontinuous-time process sampled
in place of the dummy variable 9 and making 6 time units apart .
use of the Cayley- Hamilton theorem yields
On-l ine Regulator Implementation.
2 n-l
f(A)=R(A)= r +r A+r A + .. +r _lA
o l 2 n (23) Once the regulator transfer function (19) is
numerically specified, a simple microproces -
sor will suffice for control law implementa-
The problem of computing the coefficients tion. Practical laboratory experimen ts have
r o ' ... , rn-l is solved by forming a system been carried out as a conclusion of this two
step design procedure using an analog process
substituting in (23) the eigenvalues of A.
simulator and a microcomputer with analog/
In this case
digital interfaces as a controller. The hard-
ware details and the experimental results are
reported elsewhere (Marsili - Libelli and Tosi,
1978). ImplemerUtion of the control scheme to
(24)
the problem of aeration control is presen tl y
being afforded on a pilot plant.

where { Al" .. , An } are the eigenvalues of ma- snruLATION RESULTS


trix A. Eqs. (24) can now be solved for
r o ,· .. ,r n _ l · To assess the validity of this CAD approach ,
the continuous - discrete system comprising the
B6 is computed by numerical integration, using non-linear continuous - time process (1- 3) and
Simpson algorithm . the linear discre te - time controller (19) has
been simulated on a digital computer.
LEVERRI ER. Evaluates the input- output transfer
function coefficients from a given realization An input s e quence for the organic pollutant
(A , B, C) as Si was synthetized availing of experimental
time series, exhibiting two daily peaks, as
shown in Fig. 4a . It may be considered as a
G(s) = C(sI - A) - l B (25 )
rather severe input l oad, with large fluctua -
tions.
The Leverrier algorithm is conceived as
The no l evel in the ae rat or related to the
input of Fi g . 4a is sh own in Fig . 4b for the
G(s) (26 )
two arrangeme nts : with feedback control (so-
lid line) and with no control, i.e . constant
aeration (dotted line). It should be pointed
where pes) is the chacteristic polynomial of out that if constant ae r a tion is used , the
A and the R's can be computed by the follow- air supply is in ca pab l e t o secure an adequate
ing recursive scheme DO level, which r e duces to zero during the
peack loading hours . This situation would
lead in practice to p oor treatment efficien~
1
k trace (A Rn - k + l ) (27) and ultimately t o permanent plant failure if
prolonged oxygen shortage occurrs . Actually,
biological oxidation is known to be severely
with k 1, ... ,n impaired by a DO level somewhat below half
Optimal Aeration Control for Wastewater Treatment 515

milligram per litre. An all too obvious solu-


tion would be to set a higher value for REFERENCES
constant airflow, so as to avoid oxygen
depletion, but this solution would lead to Aarinen, R., J. Tirkkonen and A. Halme (1978).
undue energy expenditure and produce a too Experiences on Instrumentation and Control
high DO level in the intervals when the load of Activated Sludge Plants - a Microprocess
is milder, thus causing the sludge to bulk. or Application. Proc. 7th IFAC World -
Congress, Helsinki, June 12-16, 1978,
Instead, the closed loop control arrangement pp. 255- 262 .
secures a DO level fluctuating about the set-
Andrews, J.F. (1977). Dynamic Models and
point value, which was chosen of 2 mg/l. Even
Control Steategies for Wastewater
during the peack load, DO level never falls
Treatment Plants - an Overview. Proc.
below 1.8 mg/l (at 4.5 hrs) nor exceeds 2 . 25
mg/l (at 20 hrs). The level of 2 mg/l was IFAC Symposium on Environmental systems
Planning, Design and Control, H. Akashi
considered high enough to support nitrifica-
tion and yet economically feasible and the (Ed .), Pergamon Press, 1977.
fluctuations occurring as the pe ack load Andrews, J.F. and G. Olsson (1977). Estima-
enters the plant are redu ced well within to- tion and Control of Biological Activity
lerable limits, thus sho~hin that the design in the Activated Sludge Process Using
basec on linear approximation (4-9) is suf- Dissolved Oxygen Measurements . Proc.
ficiently accurate over the oparating range. IFAC Symposium on EnvironmentalSyStems
Planning, Design and Control, H. Akashi
As to the relative weight p appearing in (14), (Ed . ), Pergamon Press, 1977. pp.745-756.
a value of lxlO- 6 was selected after that si -
Kwakernaak, H. and R. Sivan (1972). Linear
mulation with greater and smaller values
Optimal Control Systems, J. Wiley, New
have shown a weaker control performance or
York .
a too large energy expenditure respectively.
Marsili-Libelli, S. (1979). Reduced-Order
Fig. 4c shows how the air flow is readjusted Modelling for Activated Sludge Tre~tment
at each control interval (15 minutes) to Process. Submitted to Ecological
yield the staircase depicted. Notice also Modelling Journal.
that the airflow signal reprodu ces fairly
Marsili-Libelli, S., G. Fois and D. Morneschi
closely the input load , thus providing an
(1978). 110delling and Control of Activa-
information otherwise unattainable by
ted Sludge Process . In G.C . Vansteenkiste
direct means .
(Ed.) Modelling, Identification and
Control in Environmental Systems. North
As a final comment to the simulation experi-
Holland Publishing Co ., Amsterdam 1978.
ments, it should be stressed how the only
pp. 805 - 812 .
observec variable is DO level, a quantity
that can be measured quite accurately and Marsili-Libelli, S. and S. Tosi (1978).
inexpensively. Optimal Control Using Microprocessors .
Proc. MECO 78 Congress, Athens, June 23-
26, 1978. In press.
CONCLUSION Olsson, G. (1975). Activated Sludge Dynamics
I: Biological Models. Report 7511(C),
The problem of providing constant oxygen Lund Institute of Technology, Dept. of
level within the aeration unit of an activated Automatic Control.
sludge wastewater treatment plant has been
solved using a CAD approach . A controller
which is optimal in the LQI sense has been
proposed and reduced into an easily implement ILLUSTRATIONS
able form using an interactive CAD package -
with broader applicability than the particu-
lar applicati on des c ribed in this pa pe r.

Simulation results lead to a positive conclu-


sion about the regulator feasibility and
implementability and pilot-plant scale
experiments are now under way.

ACKNOWLEDGEHENT

The author is indebted to the Local


Administrations of Florence and Modena for
allowing to carry out sampling and experiments
on their municipal wastewater treatment plants. Fig. 1. Activated Sludge
Also , Hoffman Industries ou ~ht to be thanked Treatment Plant.
for supplying valuable literature on air
blowers.
516 S. Marsili-Libelli

',"'1")
\
I
I
I
.--......o---f---'.

-
I
L
,-
I
I
\
\
\

\
I I
I 2
L _ _____ ______ ____ ___ .--J
regulator

Fig. 2a. Solution of the LQI Fig. 4a. Input organic load
control problem. used in the simulation.

.11'111111
- ---- _1.1 IIrIIIII
- - cHlnI... IIrIIIII
't /
I
I
/

2 - " ,
\
"
,,
,, I

,
,
,
\

\,
:
Fig. 2b. Equivalent output \ I
:
\ I
dynamical re gulator. \
O -r---~-
0

-
-. - -
'2 16 20

Fig. 4b. DO level in the


aerator.

- - ....... onlllo

5000

1_
O~O--'-----1~2--'~'--~
TIlE t_,)
~--2~'--2~~-~~~

Fi g . 3. Bl ock dia g ram structure Fig. 4c. Air f low input signal.
of CAD pa ckage .

Vous aimerez peut-être aussi