On Line Estimation and Adaptive Control
On Line Estimation and Adaptive Control
On-line Estimation
and Adaptive
Control of Bioreactors
ELSEVIER
Amsterdam — Oxford — New York — Tokyo 1990
ELSEVIER SCIENCE PUBLISHERS B.V.
Sara Burgerhartstraat 25
P.O. Box 2 1 1 , 1000 AE Amsterdam, The Netherlands
ISBN 0444884300
All rights reserved. No part of this publication may be reproduced, stored in a retrieval system or
transmitted in any form or by any means, electronic, mechanical, photocopying, recording or
otherwise, without the prior written permission of the publisher, Elsevier Science Publishers B.V./
Physical Sciences & Engineering Division, P.O. Box 330, 1000 AH Amsterdam, The Netherlands.
Special regulations for readers in the USA This publication has been registered with the Copyright
Clearance Center Inc. (CCC), Salem, Massachusetts. Information can be obtained from the CCC
about conditions under which photocopies of parts of this publication may be made in the USA. All
other copyright questions, including photocopying outside of the USA, should be referred to the
publisher.
No responsibility is assumed by the Publisher for any injury and/or damage to persons or property
as a matter of products liability, negligence or otherwise, or from any use or operation of any meth
ods, products, instructions or ideas contained in the material herein.
First, since bioprocesses involve living organisms, their dynamics are often
poorly understood, strongly nonlinear and nonstationary. The reproducibility
of experiments is uncertain. The model parameters do not remain constant
over long periods, due to metabolic variations and physiological modifications.
Another essential difficulty lies in the absence, in most cases, of cheap and
reliable instrumentation suited to real time monitoring. To date, the market
offers very few sensors capable of providing reliable, direct, online
measurements of the biological variables (such as biomass or metabolite
concentration) required to implement high performance control strategies.
One of our objectives is also to acquaint the reader with the application of
mathematical modelling techniques and dynamical systems analysis in the
solution of engineering problems in bioreactors. The methodology is
abundantly illuminated and illustrated by a variety of practical examples drawn
via PPE^
The book is the result of an intensive joint research effort by the authors during
the last decade. (The authors' names therefore appear in a purely alphabetical
order.) It is intended as a graduate level text for students of bioengineering as
well as a reference text for scientists and engineers involved in the design and
optimisation of bioprocesses.
In the first chapter the mathematical framework necessary for the analysis of
bioreactor dynamics is established. In particular, it is shown how a general
dynamical model of a biotechnological process may be derived from the
reaction network. The main mathematical properties of this general dynamical
model are also analysed.
The writing of this book would not have been possible without the support of
the Biotechnology Action Programme of the European Communities which is
gratefully aknowledged. In particular, we would like to thank Dr Economidis
for his constant interest in our work. We are also indebted to G. Corrieu, C.
Beal, P. Louvet and E. Spinnler from the Institut National de Recherche
Agronomique (France), C. Sola and M. Poch from the Universitat Autonoma de
Barcelona (Spain), A. Cheruy, M.P. Bernier, J.F. Beteau, R. Montellano and C.
Vialas from the Institut National Polytechnique de Grenoble (France), J.C.
PREFACE
During the writing of this book we also had the pleasure of interacting with
many people, who helped us to penetrate the mysteries of biology and of
adaptive systems and gave us useful hints, insights, advice and criticism. We
would particularly like to thank M.Y. Andersen, G. Andre, J.P. Axelsson, J.P.
Babary, B. Bitmead, G. Campion, G. Chamilothoris, C. Chavarie, L. Chen, B.
Coupal, B. Dahou, S. Dasgupta, P. De Larminat, M. Dewan, L. Dugard, Y.
Goma, R. Gorez, A.M. Guillaume, M. Haest, L Joassin, S.B. Jorgensen, J.
Levine, I. Mareels, A.J. Morris, P. Peringer, Y. Pomerleau, L. Praly, Y. Prigent,
Y. Sevely, E. Sinvitu, V. Wertz.
Part of the book has been written during the stays of D. Dochain at the Ecole
Polytechnique de Montreal (Canada) in 198788 and at the LAAS (Laboratoire
d' Automatique et d'Analyse des Systemes) of the CNRS in Toulouse (France)
during the spring of 1989 : these institutions are gratefully acknowledged.
Several people have read the manuscript in its various versions and have
given us many valuable comments. Many thanks are due to A. Cheruy, M.
Gevers, D. Johnson, A. Pauss, M. Perrier and V. Van Breusegem.
The typing of the many successive versions of the manuscript was patiently
and impeccably carried out by M. Termolle. Without her constant good
humour, even when our whims were excessive, the book would never have
been completed. We also want to thank V. Vermeulen and G. Donders for
χ
CHAPTER 1
1.0 Introduction
Associated with cell growth, but often proceeding at a different rate, are the
enzyme catalysed reactions in which some reactants are transformed into
products (sometimes called metabolites) through the catalytic action of
intracellular or extracellular enzymes.
ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
Once a bioreactor has been designed, one of the main challenges of the
bioengineer is the implementation of efficient strategies for online monitoring
and control of the process. Our main concern in this book will be to present
(and to illustrate with practical applications) a general methodology, based on
mathematical modelling and dynamical systems analysis, for the solution of
such engineering problems.
In the first three sections we follow the conventional route for the description of
dynamical models of stirred tank bioreactors. The basic model of the growth of
a single microorganism population on a single substrate is presented in
Section 1.1. This model is shown to be valid for different operating modes :
batch, fedbatch, continuous operations. The way in which the basic model
may be extended for complex cultures is outlined in Section 1.2, using the
example of product synthesis and that of oxygen consumption in aerobic
fermentations. The most commonly used kinetic models of the specific growth
rate, which is a key parameter for bioreactor description, are reviewed in
Section 1.3.
From Section 1.4 we move to a more general viewpoint. Our aim is to establish
a global and rigorous theoretical framework for the analysis of bioreactor
dynamics. The concept of "reaction scheme" of a biotechnological process is
introduced and illustrated with four practical examples : yeast fermentation,
anaerobic digestion, production of PHB acid, and lactic fermentation. Then, in
Section 1.5, it is shown that, once the reaction scheme of a biotechnological
process is given, the derivation of a general state space model for the process
Chap.1. DYNAMICAL MODELS OF BIOREACTORS
Sections 1.7 to 1.9 are devoted to the mathematical properties of the general
state space model introduced in Section 1.5.
A basic algebraic structural property which will be critical for both estimation
and control design is presented in Section 1.7.
The general statespace model can be fairly complex and may involve a large
number of differential equations. But there are many practical applications
where a simplified model is sufficient from an engineering viewpoint. Model
reduction can be achieved via the technique of singular perturbations : this
leads to a general rule for the reduction of bioreactor models presented in
Section 1.8.
Finally, the extension of the state space model to more general situations than
the stirred tank bioreactors (such as fixed bed reactors and recycle reactors) is
considered in Section 1.10.
d(VX)
μ ν Χ FoutX (1.1.a)
dt
d(VS)
= k1μ VX + Fi„Sin F o ^ S (1.1.b)
dt
influent flow rate, Fout the effluent flow rate, μ the specific microbial growth
rate, ki the yield coefficient of the substrate consumption by the biomass, and
V the volume of the culture medium.
In these equations the only modelling assumption is that the biomass growth
term (μ Χ ) and the substrate consumption term (Κ ι μ Χ ) are proportional to the
biomass concentration X. This assumption has been validated many times
and has become commonly accepted since Monod introduced it in 1942.
A decay term (kdVX) in the biomass growth equation (1.1.a) to account for
the natural death of microorganisms.
A maintenance term (kmVX) in the substrate consumption equation (1.1 .b) to
account for that part of the substrate used for biomass survival.
d(VX)
= (μ kd)VXFoutX (1.2.a)
dt
d(VS)
= ( k 1 μ + k J V X + Fi,SinFoutS (1.2.b)
dt
dX
:(μ 0)Χ (1.3.a)
dt
dS
:Κ ι μ Χ + 0(5|η 8) (1.3.b)
dt
dV
DVFout (1.3.C)
dt
Fin=Fo,t = 0 (1.4)
The tank is initially filled with a large amount of substrate and a small amount
of biomass (the inoculum). No substrate is introduced during the fermentation,
which is stopped when enough substrate has been consumed. The total
amount of biomass produced (and possibly of byproducts) is then harvested.
Clearly the culture volume is constant and the dynamical model is given by
(1.3.ab) with D = 0.
Fout=0 (1.5)
Chap.1. DYNAMICAL MODELS OF BIOREACTORS
The tank initially contains a small amount of both substrate and biomass and is
progressively filled with the influent substrate. The model is then given by
(1.3.a,b,c) with Fout = 0
D = ^ (1.8)
^ = O X D P Q (1.9)
dt
with Ρ being the synthesis product concentration (in the liquid phase), Q the
rate of mass outflow of the product from the reactor in gaseous form, and υ the
specific production rate.
The term υ Χ in (1.9) represents the rate of product formation : it expresses the
fact that the production is, in some way, "catalysed" by the biomass X.
0 = υ Χ (1.10)
υ = Κ 2μ (1.11)
υ = k2μ + p (1.12)
Dissolved
^ = OTROURDC (1.13)
dt
where C is the DO concentration in the reactor, OTR is the oxygen transfer rate
and OUR is the oxygen uptake rate.
The oxygen uptake rate OUR obviously depends on the growth of the biomass.
This is often expressed as follows :
OTR = k L a ( C s C ) (1.15)
where kia is the mass transfer coefficient and Cs is the oxygen saturation
concentration.
0TR = Q i Q 2 (1.16)
where Qi and Q2 are respectively the input and output oxygen flow rates (per
volume unit).
It can clearly be seen from equations (1.3.ab), (1.11) and (1.14) that the
specific growth rate μ is a key parameter for the description of biomass growth,
substrate consumption and product formation. Biochemical experiments
carried out over more than half a century on pure cultures as well as on open
cultures (with nonsterile substrates) have clearly indicated that the parameter
Chap.1. DYNAMICAL MODELS OF BIOREACTORS 11
Influence of the S
The most widespread analytical specific growth rate model is certainly the
"MichaelisMenten law", also often called the "Monod law", which expresses
the dependence of μ on the substrate concentration S as follows (Fig. 1.2) :
In fact, this expression was initially proposed by Michaelis and Menten in 1913
and physically justified by Briggs and Haldane later, in 1925, to express the
reaction rate of enzymecatalysed reactions with a single substrate. It was
12 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
!^
O
CO
Substrate Concentration S
Fig. 1.2. The Monod law
Δ * ·· »· »» iZT
• · >» >· »· / y
Clearly this equation could fit the Monod data equally well. Many different
(and more or less esoteric) formulas have been proposed since then and
these are partially listed in Appendix 1.
A drawback of the Monod or Teissier laws is that they do not allow any account
to be taken of possible substrate inhibitory effects at high concentrations
(overloading).
0.3 Η
= 6.3 h^
Φ
1 2 3 4 5
Substrate Concentration S
Fig. 1.4. The Haldane law
14 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
μ (8) = ^ — — (1.20.a)
KM + Sf S^/K,
μ ο =μ (1.20.b)
(•·^/f)
If the substrate inhibition is neglected, the Haldane law reduces to the Monod
law.
μ (Χ ) = μ *(1 a X ) (1.21)
where μ * is the maximum growth rate and a the inhibition constant. It is often
called the "logistic model" and was proposed by Verhulst in 1838. Another
model which is a function of both S and X is the following :
with Kc constant.
Chap.1. DYNAMICAL MODELS OF BIOREACTORS 15
μ * = 0.3 h"^
2 4
Biomass Concentration X
Fig. 1.5. The Contois model
This model was proposed by Contois in 1959, and is illustrated in Fig. 1.5,
which shows the inhibition dependence of μ with respect to X (for constant S).
Kp
μ (Ρ ) = (1.23)
Kp+P
with Kp constant.
16 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
Kp= 1 g/l
1 2 3 4
Product Concentration Ρ
Fig. 1.6. μ (Ρ ) = exp(Kp/P)
As we have indicated in the introduction, the biomass growth can actually take
place only if pH and temperature lie within (usually small) ranges of
admissible values.
μ (pH) = a p H ^ + b p H + c (1.26)
with a, b, c constants.
In a similar case, Jackson and Edwards suggest using the Haldane function
(1.21) in terms of hydrogen ion concentration :
Chap.1. DYNAMICAL MODELS OF BIOREACTORS 17
Η "
μ (Η +) = (1.27)
K M + H ^ + K|(H*)^
1.0 i
0.8 \ ® = 1
(y \ ^ = 14
H 0,6 \ ^ = 48
I 0.4
δ
ο
Ξ 0.2
i 0,0
5.5 6.0 6.5 7,0 7,5 8.0 8.5
pH
Fig.1.7. μ (ρ Η )
This expression shows that the specific growth rate increases continuously
with temperature up to a maximum value T2 (at which the cells die) (see
Fig. 1.8).
18 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
0.0
270 280 290 300 310 320
Temperature Τ (Κ )
Fig.1.8. μ (Τ )
So far in this chapter the standard intuitive way of presenting the modelling of
biotechnological processes has been followed. Our aim, however, is to
propose a more global and rigorous theoretical framework for the analysis of
bioreactor dynamics. In the next section we shall present a general class of
state space models which can describe a wide class of complex
biotechnological processes in stirred tank bioreactors. It will be shown that the
elaboration of these models can be made fully systematic provided a process
description in terms of reaction sctiemes is available. These reaction schemes,
which are presented in this section, are analogous (but not equivalent) to
those commonly used in classical chemical engineering.
(Section 1.4.2). The definition is then illustrated and explained with a number
of concrete situations and applications in Section 1.4.3.
Scheme of
ξ ι + ξ 2 ^ ξ 3 (129)
Σ ξ ι ^ Σ ξ ; (1.30)
Autocatalysed reactions
ξ ι ^ ξ 2 +ξ 3 (1.31)
1.4.3. Illustration
— (1.32.a)
Xd (1.32.b)
The three components are the living biomass X, the dead biomass Xd and the
limiting substrate S.
Notice that the three kinds of reactions mentioned above are present in the
scheme : simple reaction, catalysis, and autocatalysis.
φ ^
S—L>X (1.33)
This reaction will very often serve as a basic example throughout the book to
illustrate the theory, under the name of simple microbial growth process or
single biomass/single substrate process.
with S representing the substrate, Ρ the product and Ε the enzyme. It may
occur that the enzyme cannot be isolated from the microorganism with which it
is associated and that the enzymatic catalysis is possible only in the presence
of biomass growing on the same substrate. In that case, the reaction scheme is
as follows:
S—i^X + E (1.35.a)
S ^ X (1.36.a)
In the sequel we shall usually characterise the enzyme catalysed (or non
growth associated) production of a synthesis product Ρ by a reaction scheme
of the type(1.36.b).
Yeast growth
S + C —U X+P (1.37.a)
Anaerobic digestion
glucose
acidogenic
bacteria
propionate
OHPA
£ I hydrogen
1
acetate
inorganic
carbon
acetoclastic
I methanogenic
hydrogenophi
hydrogenophilic r bacteria
methanogenic
bacteria
CO. CH
<P2
S2 — C x g + S g + P i (1.38.b)
<P3
S3 U X3 + S2 + S4 + Sg (1.38.C)
Φ 4
S 4 + S 5 — C X 4 + P1 (I.SB.d)
1) Two limiting substrates are needed for the microbial growth : fructose as
carbon substrate and ammonia as nitrogen substrate.
3) Both microbial growth and product formation yield gaseous carbon dioxide.
The respiratory quotient is close to unity.
Chap.1. DYNAMICAL MODELS OF BIOREACTORS 27
S1 + S 2 + C C"x + Pi + P2 (1.39.a)
51 + C + X > X + Pi + P2 (1.39.b)
Lactic fermentation
In this anaerobic mixed culture, the influent substrate, in this case lactose, is
hydrolyzed into galactose and glucose which is in turn the unique limiting
substrate of four different biochemical reactions :
Ν = 8):
Φ ι
S >Pi + P2 (1.40.a)
Pi—4 X1 + P3 (1.40.b)
Φ 3
Pi + Xi > Xi + P3 + P4 (1.40.C)
P i — ^ X2 (1.40.d)
Φ 5
in this section we shall present a general state space model for the description
of biotechnological processes in stirred tank bioreactors. To simplify the
presentation, the same notation ξ \ will be used to denote a component or its
concentration (unit mass/unit volume) in the liquid phase of the reactor.
R3) the notation j'i means that the summation is taken on the reactions with
index j which involve the component with index i.
R4) kjj are strictly positive constant yield coefficients, without dimension (i.e.
units of mass / mass). They have a s i g n when ξ ι is a reactant (i.e. when
it appears on the left hand side of the reaction scheme) and a sign
when ξ ί is a product of the reaction (i.e. it appears on the right hand side).
R5) Qi is the rate of mass outflow of the component ξ ί from the reactor in
gaseous form.
30 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
R6) Fj is the mass feed rate in the reactor of the component ξ \ if it is an external
substrate. OthenA/ise R = 0.
Q^=[QI,....QN] (1.42.C)
^ = Κ φ (ξ .0Ο ξ Ο (ξ ) + Ρ (1.43)
The State space model (1.43) is in fact the backbone of this book because it
will serve as the basic ingredient for the derivation of a//the estimation and
control algorithms proposed throughout the subsequent chapters. It should be
stressed for the reader that, in our view, the model (1.43) is not a mathematical
oddity but has a definite physical meaning :
the first term Kφ (ξ ,t) describes the kinetics of the biochemical and
microbiological reactions which are involved in the process;
The state space model (1.43) is thus mainly a way to express, in a single
compact mathematical form, the two physical phenomena (namely kinetics
and transport dynamics) which are in intimate interaction in a bioreactor.
ξ ι =Χ ξ 2=δ ξ 3 = Xd (1.44.a)
9i = 9g 92 = 9d 93 = 9m (1.44.b)
Then, applying the rules R1 to R6 to the scheme (1.32), the dynamical model is
easily written as follows :
32 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
dξ 2
= Κ 2ΐ φ ι Κ 23φ 3Ο ξ 2 + Ρ 2 (1.45.b)
dt
= k3292 Ο ξ 3 (1.45.C)
dt
or, in matrix forrn
It is easy to check that the first two equations of the state space model (1.46)
exactly coincide with the "classical" model (1.2), provided the following change
of notation is considered (in addition to (1.44)) :
φ ΐ =φ 9 = μ Χ 92 = 9d=kdX 93 = 9m = kmX
It should also be noted that this example clearly shows that the reaction rates
φ ι , φ 2 and 93 depend on the process state.
The reaction rate φ (ξ ,t) is most often a very complex function of the operating
conditions and of the state of the process. The analytical modelling of this
function is often cumbersome and is the subject of continuing, intensive
investigation (and sometimes of controversy). For instance, in the case where
φ is proportional to the specific growth rate μ , there are several dozens of
possible models, as shown in Section 1.3 and in Appendix 1.
Chap.1. DYNAMICAL MODELS OF BIOREACTORS 33
In this book, we adopt a unifying (but not simplifying) stance for modelling φ
based on the following fact: the reaction can take place only if all the reactants
are present in the reactor. In other words, the reaction rate is necessarily zero
whenever the concentration of one of the reactants is zero. This is
represented as follows :
The notation nj means that the multiplication Π is taken over the components
with index η which are reactants in the reaction j {including the autocatalysts)
which are considered as reactants when writing (1.47.a)).
α j(ξ ,t) is called the specific reaction rate since it is the reaction rate per unit of
each reactant. It must be a bounded function for evident reasons of
mathematical consistency.
Η
diac
Λ π 4=
n~]
η ~1
ο Π ξπ ο
η 2
Ο ο .. ο
η ~Μ J
• ^ = Κ Ο (ξ )α Ο ξ Η Ρ 0(ξ ) (1.49)
dt
An important special case occurs when the specific reaction rates α are
independent of the state ξ and depend only on the temperature (e.g. according
to the Arrhenius law) :
In the particular case where the reaction rate φ (ξ ) is actually a microbial growtti
rate, an alternative representation, which has already been evoked several
times, is commonly used in bioengineering studies.
Chap.1. DYNAMICAL MODELS OF BIOREACTORS 35
Let US suppose that φ ](ξ ) denotes the growth rate of a particular biomass
population Xj. It is clear, from our preceding discussion, that the concentration
Xj necessarily appears as a factor in the mutiplication term of (1.47.a). Hence
the reaction rate φ ](ξ ) can equivalents be represented as follows :
φ )(ξ ) = μ ί (ξ )Χ | (1.51)
where μ )(ξ ) is termed the specific growth rate, since it is the growth rate per unit
of biomass.
Remark that the notation has been implicitly used many times in Sections 1.1
to 1.3, and explicitly in the example of Section 1.5.2 (namely 9g = μ Χ ).
The definitions of specific reaction rate and specific growth rate are now further
illustrated by an example.
s^Cx
for which the following dynamical model is derived from the rules R1R6 :
or a s :
36 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
Notice that, with the latter expression, the model (1.52) coincides with the
"classical" representation (1.3.ab), for k2 = 1 and F = DSin.
Suppose that the specific growth rate μ (8,Χ ) is described by the "Contois law"
(1.22):
μ (8,Χ ) = ^
„*qy
which in turn implies that the specific reaction rate a(X,8) is defined as :
In equation (1.41), Qi represents the rate of mass removal in gaseous form for
those components ξ , which are soluble in the liquid phase and gasifiable at
atmospheric pressure. According to common industrial practice, we suppose
that these compounds are freely given off from the reactor. As long as the
concentration is lower than the saturation level, if we neglect the liquidgas
transfer dynamics, it is natural to assume that the outflow rate in the gaseous
phase is simply proportional to the concentration in the liquid phase :
Chap.1. DYNAMICAL MODELS OF BIOREACTORS 37
^ = Kφ (ξ )Dξ + F B ξ (1.59)
In equation (1.41), Fj represents the feed rate (per unit of volume) of those
components ξ ί which are external substrates introduced in the reactor from the
outside. The way the reactor is fed and the nature of the substrate (liquid or
gaseous) lead to various methods of modelling the feed rates.
Liquid
There are essentially two ways of introducing a liquid substrate into the
reactor: either diluted in the influent stream (Fig.l.lO.b) or independently of the
influent stream (Fig.l.lO.a).
38 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
concentrated concentrated
substrate substrate
water water
dilution
tank
r
I do
a) b)
In the latter case (Fig.l.lO.a), there is no need for specific further modelling of
the substrate feed rate Fj. However, in the former case, when the substrate is
diluted in the water stream, the feed rate is proportional to the substrate
concentration in the influent. The proportionality coefficient is precisely the
dilution rate D (see for instance model (1.3)). In that case, each nonzero feed
rate Fj is written:
Fi=DS|,.| (1.60)
When all the external substrates are in liquid form, we can define the vector:
F = DSiin (1.62)
Gaseous substrates
It may occur that substrates are introduced into the bioreactor in gaseous form.
The archetype is the class of aerobic processes where the reactor is fed with
gaseous oxygen by aeration of the culture medium. Let us suppose that ξ η
denotes such a gaseous substrate. Then, as we have seen in Section 1.2
(e.g. expression (1.15)), the corresponding feed rate is written :
Fn=kLa(Fg) ( ξ η ε ξ η )
It is worth noting that in this particular case the feed rate Fn is itself a function of
the process state ξ η
In each reaction, let us choose, one component ξ η which is called the nominal
component of the reaction. It can easily be seen that the fraction kjj/kjn
represents the yield of consumption or production of the component ξ ί per unit
of consumption or production of the nominal component ξ η . It is then obvious
that the coefficient knj can be arbitrarily fixed to 1 without any loss of generality
in the general dynamical model (1.43). This method of scaling the yield
coefficients will be used repeteadly throughout the book and, in particular, in
the examples of models presented in the next section.
40 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
In this section the state space models (1.43) and (1.49) are established for the
examples of Section 1.4.3.
The external influent substrates are glucose and oxygen. The application of
rules R1R6 to the scheme (1.37) leads to the following definitions :
Q'''=[0 0 0 0 Q I ] (1.64.C)
1 kg k4 0 kj
1 0 k s k g kg
(1.64.e)
(1.64. f)
α (ξ )= sex 0 0 (1.64.g)
0 SX 0
0 0 ECX
FT=[OFi=DSinOOOOOOOO] (1.65.C)
(1.65.e)
α (ξ ) = ["8ι Χ ι 0 0 0 (1.65.g)
0 S2X2 0 0
0 0 S3X3 0
0 0 0 S4S5X5
Q"^=[0 0 0 0 0 Q I ] (1.66.b)
(1.66.e)
= [α ϊ og] (1.66.0
0(ξ ) = S i S j C X Ο (1.66.g)
Ο SiCX
%^=[S X 1 X 2 P 1 P 2 P 3 P 4 P 5 ] (1.67.a)
Q^ = [OOOOOQi 0 0] (1.67.b)
ki 0 0 1 kg 0 0 0 (1.67.d)
0 1 0 k g 0 ky 0 0
0 0 0 k 3 0 kg kg 0
0 0 1 k4 0 0 0 0
0 0 0 kg 0 0 0 kioJ
(1.67.e)
0(ξ ) = S 0 0 0 0 (1.67.g)
0 P1X1 0 0 0
0 0 P1X1 0 0
0 0 0 PgXg 0
0 0 0 0 P2X2J
ρ = rank (K);
Ka a (pxM) full rank arbitrary submatrix of K;
Kb the remaining submatrix of K;
(ξ β , ξ ό ). (Qa, Qb) and (Fa, Fb) the partitions of ξ , Q and F induced by
(Ka.Kb).
dt = + (168)
dt = Κ 6 φ ( ξ 3 . ξ 6 ) 0 ξ 6 α 6 + Ρ 6 (169)
Ζ =Α ο ξ 3+ξ 6 (170)
AoKa + Kb = 0 (1.71)
dξ _a
= Κ 3φ (ξ 3ξ 6)0ξ ,α β +Ρ 3 (1.72)
dt
^ = D Z + Ao(F3Q3) + ( F b Q b ) (1.73)
Chap.1. DYNAMICAL MODB.S OF BIOREACTORS 45
When (Fa Qa) is identically zero, the partition (ξ a.ξ b) is said to be nice
(because the dynamics of Ζ are independent of both Κ and φ ).
X ξ 6 = S2
Si Pl
c
Pa.
Consider the state space model (1.66) for the intracellular production of PHB.
If we choose the partition :
X ξ 6 = S2
LSiJ Pi
c
LP2.
Ka = 1 0 Kk = k 2 0•
Lki ksj kg 1
k4 ke
Lk7 kg.
Clearly the matrix Ka is full rank and the partition is admissible. Hence, from
(1.71):
1 .
kgkg 0 •
kgks+ki 1
+k4k5—k^kg —kg
—ksky+k^kg kg
46 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
z = "Ζ Γ + S2
Z2 (k3+ki/k5)X +Si/kg + Pi
Z3 (k4 + ki kg/kg) X keSi/kg + C
.Z4. (ky kikg/kg) X + k8Si/k5+ P2.
ξ 3= ξ 6 = Si"
u
c
LP2.
dXj
dt ^ = μ Χ τ ϋ Χ γ (1.74.a)
dS
= Κ ι μ Χ τ ε 05 + Ρ , (1.74.b)
^ dt
where X j is the total amount of biomass in the reactor (i.e. not the
concentration ), S is the substrate concentration, ε = V is the reactor volume,
and Fr is the substrate feed rate.
Notice that equations (1.74.ab) are true mass balance equations, expressed
in terms of total quantities and not in terms of concentrations.
Clearly, for any ε > 0, the system (1.74) consists of two differential equations.
However, if ε = 0, the system consists of one differential equation and one
algebraic equation, because (1.74.b) reduces to :
Κ ιμ Χ τ = Ρ Γ (1.75)
dXj 1
^ = DX,+ ^ F , (1.76)
48 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
^ = a(X,S)XS DX (1.77.a)
dt
S >P
where Ρ is a volatile product which can be given off in gaseous form and has
low solubility in the liquid phase. According to the rules of Section 1.5.1, the
dynamical model is as follows :
4^ = 9 D S + P (1.78.a)
dt
^ =k9DPQ (1.78.b)
dt
P = nPsat 0<n(t)<1
^ = 9 D S + F (1.79.a)
dt
e ^ =k9eDnQ (1.79.b)
dt
Q = k9 (1.80)
The above examples show that the rule for model simplification is actually very
simple and that an explicit singular perturbation analysis is not really needed.
Consider that, for some i, the dynamics of the component ξ ί are to be
neglected. The dynamics of ξ \ are described by equation (1.41) :
^ = Χ (±)Κ ί φ ί Ο ξ ί α ί + Ρ ί (1.41)
j~l
5^(±)k|j9j= Q i F | (1.81)
50 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
We shall now show how these rules for order reduction can be applied to
derive a simplified model of the anaerobic digestion process. The third
reaction (decomposition of propionate by the OHPA) and the fourth reaction
(decomposition of hydrogen) are supposed to be characterised by fast
dynamics. This is expressed by setting S3, dSa/dt, and S4, dS4/dt to zero in
the dynamical model (1.65). We derive the following algebraic equations :
93 = F ^ 9 i (1.82)
^63
Q, = ko*k04^:^i^^^, (1.84)
K63K84
By using the above approximations (1.82), (1.83), (1.84), we finally obtain the
classical twostep (acidogenesismethanisation) dynamical representation of
anaerobic digestion processes :
dXi
dt = Φ ι DXi (1.85.a)
dS
1 = | < , φ ^ D S i + DSin (1.85.b)
dt
dXg
= 92DX2 (1.85.C)
"df
Chap.1. DYNAMICAL MODELS OF BIOREACTORS 51
dSg
= Ι <3 9i k292 DS2 (1.85.d)
"df
dPg
= K49I+ K592DP2Q2 (1.85.e)
"dT
Q i = k 6 9 2 + k79i (1.85.f)
with :
^61^43
KI = K^ I, K2 K42, K3 — K4| +
^63
^63^81 +K6IK83
= K92, KG = KO2I KY = KO4
^63^84
P2=S5
Si — 4 S 2 + Pi + P2 (1.86.a)
S2 ^ X 2 + P i +P2 (1.86.b)
Comment
In some instances (e.g. when the influent substrate is not composed mainly of
glucose) the presence, formation and decomposition of hydrogen are
negligible. The formation of methane is then assumed to result almost
exclusively from the decomposition of acetate (i.e. K4 = KY = 0), and the
reaction scheme simplifies as follows :
52 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
Φ ι
S i — C x i + S 2 + P2 (1.87.a)
S 2 — ^ X 2 + Pi+P2 (1.87.b)
Qi=k692 (1.88)
In this section, we analyse the stability of the state space dynamical model. In
Section 1.9.1, we shall prove the global Bounded Input Bounded State (BIBS)
stability of the system (in accordance with the physical reality). In Section
1.9.2, we introduce the concept of equilibrium state and we show that
bioprocesses generically possess several equilibrium states whose stability is
analysed in Section 1.9.3.
0<D^in^D(t) Vt (1.89)
A3. Each reaction involves at least one reactant which is neither a catalyst nor
an autocatalyst.
Theorem 1.1 : Under Assumptions AI to A3, the state variables of the general
dynamical model (1.59) are positive and bounded for all t.
Proof : The proof of the theorem will be divided into two parts. We shall first
show that the state variables are positive, and then that they have upper
bounds.
Suppose that ξ i(t) = 0 for some i. Then, from (1.47) and (1.59), the dynamical
equation reduces to :
^ = I ( + ) k j j 9 j + F|>0 (1.91)
where the summation is taken only over those reactions with index j which
involve ξ ι as a product but neither as a substrate nor as an autocatalyst.
Hence, the right hand side of (1.91) is necessarily nonnegative and, since ξ ΐ (0)
>0,ξ i(t)>Oforallt.
Let us select one reactant of the process which is, at least in one reaction,
neither a catalyst nor an autocatalyst. This reactant (which necessarily exists
by Assumption A3) is denoted ξ η (η e [1, Ν ]).
z, = a , ξ , + Σ ξ i (1.93)
with
Σ kij
an = m a x — >0 (1.94)
knj
dzn
< D z , + (an+q)F^3, (1.96)
dt
At this point, there are two possibilities depending on the initial value of zn.
(an + q)Fmax
a) Zn(0) >
It is clear from Assumption AI and (1.96) that the time derivative of Zn(0) is
negative and hence that Zn(t) < Zn(0) for all t.
Chap.1. DYNAMICAL MODELS OF BIOREACTORS 55
'^min
It then follows from (1.96) that Zn(t) is bounded as follows for all t :
, ^ ( t ) , i ! n ; ^ (1.97)
The theorem follows by repeating the same argumentation for all the reactants.
Q.E.D.
An explicit expression for the upper bound on the state variables can be
formulated by introducing the following assumption on the initial conditions :
A4. The initial values of the state variables ξ j(t) have upper bounds as follows :
Corollary 1.2 : Under Assumptions AI to A4, the state variables ξ i(t) of the
general dynamical model (1.59) are nonnegative and bounded as follows for
all t :
Comment
Corollary 1.3 : Under Assumptions AV, A2', A3 and A4', the state variables ξ i(t)
of the general dynamical model (1.59) are positive and bounded as follows for
all t :
Proof: Straightforward from Theorem 1.1 and Corollary 1.2 by noting that
equations (1.96) and (1.97) become :
s^-Qx + p (1.107)
ξ η =8 (1.109)
1 +k2
(1.110)
it follows that the concentrations of the substrate S, the biomass X and the
product Ρ are bounded as follows, for all t :
1 +k.
0 < P(t) < Vt (1.112.C)
58 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
where Smax is the maximum substrate concentration in the influent (0 < Sin(t) <
Smax, Vt).
However, the general formulation of Theorem 1.1 and Corollaries 1.2 and 1.3
often leads in practice to rather conservative upper bounds. By taking
advantage of the structure of the reaction scheme in specific applications, less
conservative bounds may be written down. In fact, this is easily achieved in the
above example by defining two auxiliary variables (instead of one in Theorem
1.1):
Zi = T ^ S + X (1.113.a)
Z2 = 7 ^ S + P (1.113.b)
These are immediately derived from the basic structural property (Section 1.7)
by considering :
^ = DZ, + ^ D S i , (1.115.a)
dZg
= DZ2 + T ^ D S i n Q (1.115.b)
"dT ' ki
Chap.1. DYNAMICAL MODELS OF BIOREACTORS 59
dZi 1
dZp kp
_ 2 < _ D Z 2 + ^DS„,3x (1116.b)
It follows immediately that if, at the initial time, S. X and Ρ satisfy the
inequalities :
S(t)<S^ax Vt (1.118.a)
P(t)<R^S^ax vt (1.118.C)
These upper bounds are clearly less conservative than those given directly by
(1.112). They are also more realistic in the sense that they are closer to the
mass balances of the biochemical reaction : it is obvious, for instance, that,
according to (1.118.b), the maximum quantity of biomass that can be
synthesised is given by the maximum available amount of substrate divided by
the yield coefficient ki from S to X.
60 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
for given constant values D and F of the dilution rate D and the vector of feed
rates F.
Example
φ
S >Pi + P2 (1.120)
with one reactant S and two products Pi and P2. This is, for instance, a
plausible model of the hydrolysis of lactose into glucose and galactose, which
is the first step (1.40.a) of lactic fermentation.
φ =α 8 a = constant (1.121)
which corresponds to first order kinetics. The dynamical model (1.63) may
therefore be written :
= a S + DSinDS (1.122.a)
dt
dP
i = kiaSDPi (1.122.b)
dt
dPg
= k2aSDP2 (1.122.C)
"dT
a S + DSinDS=0 (1.123.a)
kiaSDPi=0 (1.123.b)
k2aSDP2 = 0 (1.123.C)
S—UX +E
92
S + E >PHE
Applying the rules of Section 1.5.1 and the feed rate modelling (1.62), the
general state space model is written :
1 0• D [ X" + 0 (1.125)
dt
k i kg ,<P2j s
ka 0 Ε 0
0 1 P. 0
92 = a(E,S)ES (1.126.b)
where μ (X,S) is the specific growth rate and a(E,S) is the specific enzymatic
production rate.
b)
k3X = E (1.128.a)
μ (Χ .8) = 0 (1.128.b)
a(S,E)ES = DP (1.128.d)
We assume that the specific growth rate μ (Χ ,5) obeys the Contois law (1.22) :
μ (Χ ,8) = 4 ^ (1.129)
KcX + S
k3X = E (1.130.a)
5κ ^Χ = (μ *5)8 (1.130.b)
aES = DP (1.130.d)
This means that, as pointed out above, the operational equilibrium states exist
only if these inequalities are satisfied. Otherwise, only the washout
equilibrium states are possible.
k3(μ * D)
Ε = ^3Χ = — S (1.132)
which implies that the equilibrium values E,X,S are proportional to one
another. Substituting (1.132) into (1.130.d) gives :
P = fMil£Is^ (1.,33)
Finally, substituting (1.133) into (1.30.c) leads to the following second degree
equation :
with A =
It appears immediately that only one of these solutions is positive, and hence
physically plausible (the one which corresponds to the sign). Then the
equilibrium state is therefore fully analytically characterised by equations
(1.132), (1.133) and (1.135).
This simple example clearly shows that the explicit calculation of equilibrium
states may rapidly become very involved when the process is a combination of
several biological reactions and when plausible analytical models are
adopted for the reaction rates.
^ = Κ φ (ξ )0ξ 4Ρ Β ξ
it can easily be shown that the washout equilibrium states are characterised
as follows :
Stability analysis
where the partial derivatives are evaluated at the equilibrium state. An explicit
calculation of the "linearized tangent model" of (1.136) readily yields :
with :
3φ
Mib,F) = (1.138.b)
Lyapunov's first method utilizes the eigenvalues of the matrix Α (ξ ,5,Ρ ) to check
on the stability of the equilibrium state. If the real parts of all the eigenvalues
are negative, the equilibrium state is stable. If any of the real parts of the
eigenvalues are positive, the equilibrium state is unstable. No conclusion may
be drawn in the case of all eigenvalues having zero real parts.
S Qx
dX
= μ Χ ~ DX (1.139.a)
dt
68 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
(1.139.b)
i i
il μ ^= 6.3 h"^
Φ
K M = 10 g/l
1
K| = 0.1 g/l
% 1
k
Ο
ο
μ (8) = (1.140)
KM + S + S^/K,
From this figure and the model (1.139), we conclude that, apart from the wash
out equilibrium state, two operational equilibrium states may exist, which are
denoted :
SinSi SinS2^
S i . X i = ^ 82, X2 — (1.141)
Chap.1. DYNAMICAL MODELS OF BIOREACTORS 69
( S i , X i ) exists for all 5 < μ * while (Sg,Xg) ex'sts only when μ (8|η )<5<μ *
(since Sg cannot be physically greater than δ |η , see (1.118)).
In this particular example, the coefficient matrix of the linearized tangent model
is written :
A(X,8,D) = 0 Ω (1.143)
Κ ι μ (8) k i Q D
with :
>2Λ
μ ο Χ KM
Κ I )
Ω = (1.144)
KM + 8 + ΐ ^
The eigenvalues of this matrix are (Κ Ω ) and (D). It is obvious that the
equilibrium state is stable if and only if:
D = 0.2 h'^
Sin = 5 g/l
k, = 2
μ ο = 6.3ί ι ^
KM = 10 g/l
K. = 0 . 1 g/l
0.40
Stable equilibrium state
So far, in this chapter, we have focused on the derivation and the analysis of
the general dynamical model (1.43) for biotechnological processes which take
place in a single, perfectly mixed bioreactor:
^ = Κ φ ( ξ ) Ο ξ + Ρ α (ξ ) (1.146)
This model may easily be extended to deal with complex processes consisting
of several interconnected tanks, possibly with special constructional features
which allow, for instance, for biomass recycling or biomass accumulation. The
extension is simply obtained by considering an appropriate matrix dilution
rate:
D = [Dij] (1.147)
in equation (1.146) instead of the single scalar dilution rate adopted so far.
This issue is illustrated with two examples (Sections 1.10.1 and 1.10.2).
Furthermore, distributed parameter extensions of the general dynamical model
can also be derived, if necessary, as is shown in Section 1.10.3 for fixed bed
reactors.
Part of the settled biomass is then fed back to the bioreactor, while the surplus
biomass is removed from the process. We suppose that the process is a
"single substrate single biomass" fermentation (1.33) and that the clarifier is
72 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
such that the whole biomass is settled (none is left in the supernatent of the
settler). The dynamics of the process are written :
F
IN
bioreactor settler 1 Fe
V Vs
It appears clearly that this model exactly fits the form of equation (1.146) but
with a matrix dilution rate. The entries of this matrix are defined as follows :
F|N+FR
Dh = bioreactor dilution rate (1.149.a)
V
FR + FW
settler dilution rate (1.149.b)
(1.149.C)
V
Chap.1. DYNAMICAL MODELS OF BIOREACTORS 73
F|N+FR
D2= .. (1.149.d)
's
D,N = ^ (1.149.e)
with the notations of Fig. 1.13, i.e. F|N is the influent flow rate, FR the recycle
flow rate, Fw the waste flow rate, V the bioreactor volume, and Vs the settler
volume.
It should be noted also that, in this extended model, the matrix Κ may contain
rows of zeros corresponding to tanks in which no reaction occurs (as in the
clarifier of the example).
Several times in this chapter (Sections 1.4.3, 1.6.2, 1.8.4) we have described
and discussed in detail the general dynamical model of the anaerobic
digestion process in a single bioreactor in which all the reactions involved take
place simultaneously. It is, however, common practice to implement the
process in a "twostage" bioreactor as depicted in Fig.1.14. Assuming that the
reduced order scheme (1.87) holds, the idea is to devote the first tank to the
first reaction (acidification) and the second tank to the second reaction
(methanization). This means that the reaction scheme (1.87) has to be
modified as follows. In the first tank, we have :
where Si is the organic substrate, Xi the acidogenic biomass, S21 the acetate
in the first tank and P21 the inorganic carbon in the first tank.
Φ 2 ^
'in
F 21
m
D
S:
in
Λ , }
dXi
(1.152.a)
"dT = 9iDiXi
dS
l = k i 9 i D i S i + DiSi, (1.152.b)
"dt
Chap.1. DYNAMICAL MODELS OF BIOREACTORS 75
dS 21
dt
=Μ ι D1S21 (1.152.C)
dXg
= 92 D2X2 (1.152.d)
dt
dS22
(1.152.e)
" d T ~ ~^2Φ 2 ~ D2S22 "t" ^2^21
d_
dt 'xr = ' 1 0 •Γ φ ι" - 0 0 0 0' • χ Γ + 0 (1.153)
Si ki 0 0 Di 0 0 0 Si DiSin
S21 k3 0 0 0 Di 0 0 S21 0
X2 0 1 0 0 0 D2 0 X2 0
S22. 0 k2. .0 0 D2 0 D2. S22. 0
In this model, Di = Fjn/Vi, D2 = Fjn/V2, and the yield coefficients k i , k2, ka have
exactly the same meaning as in (1.85).
Again, we see that equation (1.153) has exactly the same format as (1.146) but
with a gfeneraZ/seof dilution rate matrix.
influent effluent
F(S^0S/92)dz^
The mass balance for the substrate concentration S around this section is
written as follows :
f = I f M X a.,55,
^ =μ Χ (1.156)
where the hydraulic term has disappeared since the biomass is immobilised.
where Sin(t) is the influent substrate concentration, and Xo(z) and So(z) the
initial immobilised biomass and substrate concentrations.
The :
Section 1.3
Frederickson A.G. and H.M. Tsuchiya (1977), Microbial kinetics and dynamics,
in L. Lapidus and N.R. Amudson (Eds.), Chemical
PrenticeHall, Englewood Cliffs, NJ.
Verhulst R. (1838). Notice sur la loi que la population suit dans son
accroissement. Corn Math. etPhys., A. Quetelet (Ed.), t. X, 113.
The specific growth rate models including product inhibition are drawn from :
Section 1.4
The process examples presented in this section are adapted from the
following references :
Yeast growtti:
Sonnleitner B. and O. Kappeli (1986). Growth of Saccharomyces cerevisiae is
controlled by its limited respiratory capacity : formulation and verification
of a hypothesis. Biotechnol. Bioeng., 28, 927937.
Anaerobic digestion :
Mosey F.E. (1983). Mathematical modelling of the anaerobic digestion
process: regulatory mechanisms for the formation of shortchain volatile
acids from glucose. Water Sci. Technol., 15, 209232.
Sinechal X., M. Installe and E.J. Nyns (1979). Differentiation between acetate
and higher volatile acids in the modeling of the anaerobic
biomethanization process. Biotechnol. Lett., 1, 309314.
lactic fermentation:
Spinnler H.E., C. Bouillanne, M.S. Desmazeaud and G. Corrieu (1987).
Measurement of the partial pressure of dissolved C O 2 for estimating the
concentration of St. thermophilus in coculture with Lb. bulgaricus. Appl.
Microbiol. Biotechnol., 25, 464470.
80 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
Section 1.5
Reaction networl<s and some of ttieir algebraic properties tiave been studied
by:
Feinberg M. and F.J.M. Horn (1974). Dynamics of open chemical systems and
the algebraic structure of the underlying reaction network. Chem. Eng.
Sci., 29, 775787.
Bellgart K.H., W. Kuhlman and H.D. Meyer (1983). Deterministic growth model
of Saccharomyces cerevisiae. Parameter identification and simulation; In
A. Halme (Ed.), Modelling and Control of Biotechnical Processes,
Pergamon, Oxford, 6774.
Section 1.7
In this section and throughout the book we refer, when needed, to properties of
matrices and linear algebra. The following book constitutes a good
introduction and summary on the subject:
Section 1.8
Singular perturbation techniques have been used for reducing the general
dynamical model. The theory of singular perturbation is treated in :
Chap.1. DYNAMICAL MODELS OF BIOREACTORS 81
Section 1.9
The concepts and notions of stability theory of linear and nonlinear systems
are described e.g. in :
Section 1.10
Poncelet D., R. Binot, H. Naveau and E.J. Nyns (1985). Biotechnologie des lits
fluidises en reacteurs cylindriques et tronconiques. Trib. Cebedeau, 38
(494). 312; 38 (497), 3348.
Schugerl K. (1989). Biofluidization : application of the fluidization technique in
biotechnology. Can. J. Chem. Eng., 67, 178184.
Wang D.I.C., C.L Cooney, A.L Demain, P. Dunhill, A.E. Humphrey and M.D.
Lilly (1979). Fermentation and Enzyme Technology. John Wiley & Sons,
New York.
Wiseman A. (1978). Topics in Enzyme and Fermentation Biotechnology. John
Wiley & Sons, New York.
Chap.2. KINETIC MODELLING, ESTIMATION AND CONTROL 83
CHAPTER 2
2.0. Introduction
where ξ is the state vector (i.e. the set of component concentrations), Κ a yield
coefficient matrix, φ (ξ ) the vector of reaction kinetics (also called reaction
rates), D the dilution rate, F a set of feed rates and Q a set of gaseous outflow
rates.
Once equation (2.1) is written, however, the model construction is far from
being completed. Actually, the most difficult task remains to be performed,
namely the task of modelling the reaction kinetics φ (ξ ) which is discussed in
84 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
A review of the monitoring and control problems which are addressed in the
remaining chapters of the book, is then presented in Sections 2.3 and 2.4.
1) First of all, one has to select, for each particular fermentation, the biological
and physicochemical factors which are supposed to influence the kinetics
and must therefore be incorporated in the model.
2) Second, once this selection has been made, one has to choose an
appropriate analytical description for each α ](ξ ), for instance among the
(long) list of Appendix 1; this critical choice is the subject of continuing
controversy in the literature (which is probably why the list of Appendix 1 is
so long); most often these analytical expressions take the form of rational
Chap.2. KINETIC MODELLING, ESTIMATION AND CONTROL 85
functions (i.e. polynomial ratios) of both the state variables and a set of
constant kinetic coefficients.
3) Finally, once a specific structure has been chosen one faces intricate
parameter identifiability difficulties when trying to calibrate the kinetic
coefficients from experimental data; the difficulties arise mainly from a lack
of experimental reproducibility and a lack of statistical significance of the
data; this issue will be discussed further on in this section.
A typical example of kinetic modelling has been given in Section 1.4 for a
simple microbial growth process governed by the Contois law. The reaction
rate was written :
In that example, there are two kinetic coefficients : μ * and Kc. It can also be
seen that a(X,S) effectively has the form of a rational function. Another
example follows.
S—Ux (2.5.a)
with glucose S, biomass X and lactic acid P. Note that it is the standard
scheme (1.36) of microbial growth with associated enzyme catalysed
production. It can easily be shown that the dynamical model can be written :
μ ;Χ 3
9c(X,S) = (2.7)
K i + S
On the other hand, it is well known that the bacterial growth is inhibited by
lactic acid. Hence, according to Section 1.3, it is a reasonable assumption to
represent the specific growth rate by the combination of a Monod law (1.18)
and a product inhibition function of the form (1.23), as follows :
Kp
μ (8,Ρ ) = (2.8)
Kg+S K p + P
HaKpSX
(2.9)
^g^^'^'^^=(K2+S)(Kp+P)
(2.10)
while the specific reaction rates are the following rational functions :
Chap.2. KINETIC MODELLING. ESTIMATION AND CONTROL 87
Thus, with the definitions (2.11), we have adopted one plausible kinetic model
for this fermentation process. The reader should, however, easily realize that
many other models, just as plausible as (2.11), could have been chosen from
the list of Appendix 1. In fact, the choice is a priori virtually unlimited. It should,
however, be obvious that identification techniques could help to discriminate
between the models.
On the Idnetic
The reader will, however, be convinced of the relevance of the issue simply by
considering Table 2.1 and Fig.2.1 taken from Holmberg (1983). Table 2.1
summarizes the identification results of the kinetic coefficients μ * and Km of a
Monod law from batch cultivation data of B. In each experiment,
the environmental conditions were identical except for the initial substrate
concentration (So in the Table). It is clear that the different identification runs
produce a wide dispersion of the numerical values of the two parameters.
Furthermore, the confidence intervals are so large that, in some instances, the
coefficients could just as well be negative. Fig 2.1 illustrates the point in a
complementary way by showing that very different sets of kinetic coefficients
can actually provide quite similar simulation results which fit the data equally
well.
88 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
Ε
κ CONCENTRATION OF BACTERIA
• CONCENTRATION OF TOTAL SUGAR
SIMULATED ( = 1 4 . K, = 12 )
SIMULATED m m = 3 5 , K , = CO)
10 15
TIME (hoors)
To
of
φ (ξ ) = Η (ξ )ρ (ξ ) (2.13)
The idea is to insert into Η (ξ ) only the (possibly very limited) prior knowledge
which is available regarding the kinetics and then to consider ρ as a
completely unknown time varying parameter.
The form of equation (2.13) is very flexible and allows us to account for various
kinds of uncertainty and to cover a wide spectrum of practical situations.
A first situation occurs when there is no prior knowledge at all concerning the
kinetics. Minimal modelling then reduces to no i.e. the reaction
kinetics are the unknowns of the model:
ρ (ξ ) = φ (ξ ) Η (ξ ) = ΐ Μ (2.14)
90 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
Another possibility is to consider that the unknown parameters are the specific
reaction rates α (ξ ) introduced in Section 1.5.3. In that case, we have :
ρ (ξ ) = α (ξ ) Η (ξ ) = 0(ξ ) (2.15)
But many other (more or less complicated) variants are obviously possible.
This is illustrated by some examples.
s—Ux
+X >X + P
Η (ξ ) = SX 0 (2.19)
0 SX
Η (ξ ) = Γ Χ 0 (2.22)
0 SX
We may also suppose that, in the specific growth rate model (2.8), the kinetic
coefficients and K2 are known, while the product inhibition function is
unknown, and that the specific production of the enzymatic reaction has to be
treated as an unknown parameter. Hence we have (compare again with (2.7),
(2.9)):
addition, even when online sensors exist for biomass or metabolites, they are
often not robust enough for routine industrial applications.
The design of Software Sensors to cope with the lack of instrumental sensors
in bioreactors is one of the main concerns of this book. A software sensor is an
algorithm for the online estimation of the state variables and the parameters
which are not measurable in real time, on the basis of related measurements
which are more easily accessible. The General Dynamical Model of the
process (2.1) is the main ingredient for the design of a software sensor.
PRIOR KNOWLEDGE
With the definition (2.13), the general dynamical model (1.43) is rewritten :
The purpose of computer control is to keep some process state variable close
to a prespecified value (called a set point), in spite of disturbances and
variations in the process kinetics, by acting on the feed rate of an external
substrate. The task of the controller is to determine, at each instant, the best
control action (i.e. the best substrate feed rate), on the basis of the data
collected on line by the sensors and of the estimates provided by the state
observers (which then more particularly deserve the name of software
sensors).
Chap.2. KINETIC MODELLING, ESTIMATION AND CONTROL 95
Adaptive Control
Chapter 5 Sections 5.3, 5.4 with unknown kinetics and known yield
coefficients
We would also like to stress the point that, in the rest of the book, we shall be
concerned only with stirred tank bioreactors (either in batch, fedbatch or
continuous operating modes). The extension of the estimation and control
algorithms to more general biotechnological systems (such as those
mentioned in Section 1.10 : biomass recycling, biomass accumulation, fixed
and fluidised beds, distributed models) is far from straightforward and has
received little attention in the literature. Some relevant references are listed in
the next section.
Section 2.1
Tt)e problem of ctioosing one particular analytical structure for ttie specific
growtti rate is discussed in e.g. :
Chap.2. KINETIC MODELLING. ESTIMATION AND CONTROL 97
The practical identifiability of the specific growth rate models is discussed e.g.
in:
Section 2.3
Section 2.4
Section 2.5
The
:
CHAPTER 3
3.0. Introduction
In Sections 3.1, 3.2 and 3.3 we address the state estimation problem, that is
the problem of reconstructing the time evolution of the non measured state
variables from the measured ones. An algorithm designed for that purpose is
called an observer.
Two real life applications of asymptotic observers are presented : the first one
concerns biomass estimation in an anaerobic digestion process from acetic
acid and methane measurements; the second one refers to biomass and
product estimation in a PHB acid production process from oxygen
measurements. Some practical implementation aspects are also briefly
discussed.
Section 3.4 deals with the online estimation of the reaction kinetics φ (ξ ) in
bioreactors. Two different parameter estimators are proposed : the first one is
called an observerbased estimator because it is based on a variant of the
observers described before; the second one is based on the reformulation of
the process model in a linear regression form. An example of convergence
analysis is given. A case study devoted to the online estimation of microbial
specific growth rates is then carried out in depth. The use of extended Kalman
filtering for online estimation of the kinetics is also presented and compared
with the previous algorithms. Three experimental applications are described :
estimation of the specific growth rate in a fedbatch ethanolic fermentation
process, estimation of the specific reaction rates in a continuous anaerobic
digestion process, estimation of the reaction rates in a lactic fermentation
process.
Chap.3. ESTIMATION WITH KNOWN YIELD COEFFICIENTS 103
^ = Κ φ (ξ ) Ο ξ Q + F (1.43) = (3.1)
We suppose that we have a full knowledge of this model (see Chapter 2) : the
structure of the reaction kinetics φ (ξ ) is completely known; also the numerical
values of all the coefficients involved in the model (i.e. yield coefficients and
kinetic coefficients) are given.
In addition, we assume that the dilution rate D, the feed rates F and the
gaseous outflow rates Q are known online, and that a subset of the state
variables is measured online. The vector of these measurements is denoted
ξ ι and is related to the state of the system as follows :
ξ ι = ί ξ
where the qxN matrix L is an elementary matrix which selects the measured
components of ξ . On the other hand, the vector of unmeasured states is
denoted ξ 2, so that ( ξ ι , ξ ζ ) constitutes a partition of ξ .
A general class of state observers for nonlinear systems of the form (3.1) is as
follows :
104 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
^ = Κ φ (ξ ) Ο ξ Q + F + Ω (ξ )[ξ ι ξ ,] (3.2)
The observer equation (3.2) can be interpreted as a copy of the model (3.1)
with an additional driving term which is proportional to the observation error of
the measured part of the state ( ξ ι ξ ι ) , and which disappears in the case of
perfect estimation.
e=ξ ξ (3.3)
^ = Κ [φ (ξ + e) φ (ξ )] De Q(^)Le (3.4)
^ = [A(^)Q(|)L]e (3.5.a)
with :
Α (ξ ) = Κ (ξ ) ^ ^ DIN (3.5.b)
Exponential observability
The particular form (3.5.a) of the observation error dynamics indicates that we
can hope to assign an arbitrarily fast (exponential) rate of convergence of the
observation |(t) to its true value ξ (t) if we can freely fix the eigenvalues of the
matrix [Α (ξ ) Ω (ξ )1] by an appropriate choice of the matrix Ω (ξ ).
Δ
rank(0) = rank L = N Α (ξ ) = Κ DIN (3.6)
Ι Α (ξ )
.ί Α (ξ )'\
along the process trajectories. The matrix Ο is called the observability matrix.
Example 1
S—Cx
d_,—, r
ki φ DrS
dt
1 X 0
Α ( ξ ) = Γ Κ ι %0 k i 9 x '
. 9s Φ χ D.
Chap.3. ESTIMATION WITH KNOWN YIELD COEFFICIENTS 107
ξ = [ξ ι .ξ 2Γ ξ ι =8 ξ 2=Χ L = [1 0]
' L" = 1 0
.LA ki9sD ki9x
φ χ = μ +a^x^o
In the particular (but widely used) case when the specific growth rate μ is only
a function of the substrate concentration S, 3μ /9Χ = 0, we can expect the
biomass concentration X to be exponentially observed from S by using an
observation scheme such as (3.2) whenever μ (8) ^ 0.
Consider now a process similar to the previous one but with an additional
synthesis product Ρ :
Cx + i (3.7)
Α (ξ ) = ki9sD Κ ι φ χ Κ ι φ ρ •
Φ 3 Φ χ D φ ρ
k29s kgcpx k29pD
Suppose that the product concentration Ρ is the only component available for
online measurement. The matrix L is equal to :
L = [0 0 1]
0 0 0 1
k29s k2φ χ k29pD
We can then draw the following important conclusion : the above process (3.7)
is not exponentially observable if is its state
cannot be exponentially reconstructed, at an arbitrarily fast rate, with an
observation scheme of the form (3.2). This result is since it is
independent of the values of 9 5 , φ χ and φ ρ , and therefore of the structure of
the reaction rate φ .
Asymptotic observers
When the system (3.1) is not exponentially observable (i.e. when the
eigenvalues of Α (ξ ) Ω (ξ )1 cannot be freely assigned) but when the error
system (3.5.a) nevertheless has an asymptotically stable equilibrium point at e
= 0, the process can still be observed, but its dynamics will be partially
determined by the experimental conditions through Α (ξ ). Observers of this kind
are called (since one cannot freely assign their
dynamics).
Assume that the system (3.1) is exponentially observable and let us return to
the observation scheme (3.2) :
^ = Κ φ (ξ ) Ο ξ 0 + F + Ω (ξ )[ξ ι ξ ^] (3.2)
11 ο ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
The design rule for Luenberger observers is to choose the matrix Ω (ξ ) in such
a way that e = 0 is an asymptotically stable equilibrium point (see Definition
A2.1, Appendix 2) of the linear tangent error model (3.5). This is achieved by
choosing Ω (ξ ) such that :
E= Ι Ι ξ ξ Ρ ο Ι τ = f ||e(T)PdT (3.9.a)
Jo
Ω (ξ ) = Π (ξ ) J (3.9.b)
where the NxN square symmetric matrix R(|) is generated by the Riccati
equation :
Note that this yields a timevarying gain Ω , even in those cases where A is
independent of ξ .
Suppose that the reaction rate φ is governed by the "Contois law" (see (1.22)) :
where μ * and Kc are constant kinetic coefficients. Then the state space model
is written :
112 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
Α (ξ ) = k i D 1 0 (3.14.a)
as ax ΐ ξ =ξ . 0 1
1
(3.14.b)
Ψ 5 Φ χ Dj
Δ 3φ ι μ *Κ ς Χ '
with 9s = I ξ =ξ = (3.15.a)
(KcX+S)^
. Δ 3φ . μ *
φ χ =9χ ξ =ξ = (3.15.b)
(KcX+S)^
The Luenberger and Kaiman observers differ from one another by the way in
which the gain matrix Ω Τ (Χ ,8) = [ω ι (Χ ,8) co2(X,S)] is computed.
Note that the estimated value S must not be allowed to become zero in order
to avoid division by zero in (3.17.b).
In the case of the Kaiman observer, the gain Ω (χ ,8) is calculated as follows :
R = Ri R3 (3.18.a)
LR3 R2J
= R i 2Ρ ι (Κ ι φ 5 + D) 2Ρ 3ΐ <ι φ χ (3.18.b)
dt
dRo 0
= R | + 2Ρ 3φ 5 + 2Ρ 2(φ χ D) (3.18.c)
dRa
(3.18.d)
= R i R3 Ρ 3(Κ ι φ 5 φ χ + 2D) + Ρ ι φ δ Ρ 2ΐ <ι φ χ
(3.18.e)
ω ι (Χ ,8) = Ρ ι co2(X,S) = R3
Figs.3.1 and 3.2 illustrate the performances of both observers in a simulation
performed under the following conditions :
Sin (g/i)
50
40 ^
time (hours)
υ 12 24 36 48
0.4
λ ι = λ 2 = 1
S (g/i) λ ι = λ 2 0.5
0.3f
vs λ ι = λ 2 0.1
0.2 4
time (hours)
time (hours)
Fig.3.1 Shows the simulation results of the extended Luenberger observer for
three sets of eigenvalues λ ι and λ ζ
a) λ ι = λ 2 = 1
b) λ ι = λ 2 = 0.5
c) λ ι = λ 2 = 0.1
1 ^
0.2
time(hours)
I I •
time (hours)
r
In Fig.3.2, the simulation results of the extended Kaiman filter are presented
under three sets of initial conditions :
In Section 3.2 we presented the design of state observers under two very
restrictive conditions :
However there are many simple processes of practical interest which are
known not to be exponentially observable (see Example 2 in Section 3.1).
Moreover, the requirement of a full knowledge of the process kinetics is too
severe in most engineering applications, as was shown in Chapter 2. There is
therefore a clear incentive to search for a category of observers which allows
one to asymptotically reconstnjct the missing states even when the process is
not exponentially observable and the kinetics are unknown. In this section we
present a design method of such asymptotic observers under the following
conditions :
From the basic structural property of Section 1.7, we know that there exists (at
least) one partition (ξ 3, ξ b) of the state, one (Np)xp matrix AQ, and one vector Ζ
of dimension Np defined as the following linear combination of the state
variables :
Ζ = Α ο ξ 3+ ξ 6 (1.70) = (3.19)
Ζ = Α ι ξ ι +Α 2ξ 2 (3.21)
with appropriate definitions of the (Np)xq and (Np)x(Nq) matrices Ai and A2.
Si I S2 + Pi + P2 (3.22.a)
S2 —0<2 + Pi + P2 (3.22.b)
Si — C X i I S2 (3.23.a)
S2—CX2 (3.23.b)
According to the rules of Section 1.5, the state space model is as follows :
d r
Si ki 0 DTSi (3.24)
dt
Xi 1 0 ι φ 2] Xi 0
S2 ka k2 0
LX2J L 0 1 0
LX2J
(3.25)
ξ 3 = "Χ ι ' ξ 6= "sr
.X2. .S2.
(3.27)
xr ξ 2 = •sr
.Sa. .X2.
Chap.3. ESTIMATION WITH KNOWN YIELD COEFFICIENTS 119
Ζ = Α ι ξ ι +Α 2ξ 2 (3.28)
with :
ξ ι = "sr ξ 2= (3.30.a)
S2
.X2.
Asymptotic observer
ξ 2 = Α |(Ζ Α ι ξ ι ) (3.31.b)
Theorem 3.Ϊ : If the dilution rate D(t) is persistently exciting (see Appendix 3),
i.e. if there exist positive constants δ and β ι such that:
then :
The proof of this theorem is immediate when one observes that, from (3.20),
(3.21) and (3.31), the dynamics of the estimation error are as follows :
The assumption (3.32) simply implies that the dilution rate D(t) does not
remain equal to zero for excessively long periods of time. Hence, the
convergence of the observer is valid only for fedbatch and continuous
operating conditions. In batch reactors, any initial estimation error will persist
throughout the estimation procedure.
Unlike the Luenberger and Kalman observers of Section 3.1, the speed of
convergence of the estimation is completely determined by the experimental
conditions (through the value of the dilution rate). This is why this algorithm is
called an asymptotic observer. One consequence is that the accuracy of the
initial estimate may be critical when the observer is implemented for a period
of time which is not very long with respect to the residence time (i.e. the
inverse of the dilution rate).
Chap.3. ESTIMATION WITH KNOWN YIELD COEFFICIENTS 121
1) Suppose that Xi and S2 are measured online and that Si and X2 need to
be estimated.
Clearly the matrix A2 is square and nonsingular. Hence its left inverse is :
1
Ai = Ai' =
_r
1 0 (3.35)
0 ki^j
d_r^n
= D + •FI" (3.36.a)
dt
.0.
Ao = (3.37)
Lk3.
122 ONLINE ESTM
I ATO
I N AND ADAPTV
I E CONTROL OF BO
I REACTORS
1
[ k i ( Z i S i ) k 3 (ZgkgXgSg)] (3.38)
Xi =
s—Cx + p (3.40)
Chap.3. ESTIMATION WITH KNOWN YIELD COEFFICIENTS 123
The dynamics of the process are described by the state space model (3.8).
We choose the following state partition :
(3.41)
.1
dZi
^ = D Z i + DSjn (3.42.b)
dZg
= DZ, (3.42.C)
"dT
(3.43.a)
= D Z i + DSi, (3.44.a)
dt
dZg
"dT = D Z , (3.44.b)
(3.44.C)
X = ^(Z2P) (3.44.d)
The kinetics of the "tme" process are assumed to be governed by the following
growth rate model (see Appendix 1)
Kp
μ (1) = μ * (3.45)
KM + S I S ^2/1^.
/KI KpHP V PLJ
μ * = 0.23 h1, KM = 0.26 g/l, K| = 297 g/l, Kp = 7.77 g/l, PL = 85.81 g/l.
0.06
time (hours)
>• Γ ' Γ • 1
0 40 80 120 160 200
•S(g/I)
:Zi(0) = 1,Z2(0) = 80
- \ :Zi(0) = 1, Z2(0) = 110
\
90 : true value of the variables
/ ""
/
/
/
/
80 ' /
/
/
" /
/ time (hours)
70
0 40 80 120 160 200
1.4 • X (g/i)
\
0.7
^
• /
./
1 time (hours)
0.7.
0 40 80 120 160 200
13^ Ρ (g/l)
9 4
' 1 "
r 1 r ' 1
0 40 80 120 160 200
1 Zi(g/i)
\
\
\
\
\
\
/
/ time (hours)
1 /'
Γ ·
40 80 120 160 200
110 2.Z (g/l)
100 ^
/
/
1
/
90 /
/
/
/
/
time(hours)
80 —Γ 1 —
r— r • 1 · 1 200
(3 40 80 120 160
Comments
2) Besides its simplicity, the asymptotic observer does not require any
knowledge of the reaction rate structure (here the particular and quite
complex structure (3.45) has been used to simulate the process, but clearly
this structure is ignored by the observer) and, nevertheless, has a most
acceptable behaviour. The drawback, however, is that the speed of
convergence is fixed by the experimental conditions and cannot be
manipulated by the user. In the simulation, convergence is achieved after
about 40 hours.
3) Last but not least we know (see example 2, Section 3.1) that, in this
example, the process is nof exponentially observable, and therefore cannot
be observed at an arbitrary exponential rate by using e.g. extended
Luenberger or Kaiman observers. However, as illustrated by Fig.3.3, the
state is efficiently reconstructed with the simple asymptotic observer (3.44).
•Pi
S i — f S 2 + P 2 (3.45.a)
<P2
S 2 — C X 2 + P 1 + P2 (3.45.b)
The dynamics of the process are described by the model (1.85) which is
rewritten as follows :
4rx^
dt 1
^1 0• •Γ χ Ο ο ' (3.46)
Si ki0 Si Fi ο
X2 0 1 Χ 2 Ο ο
S2 S2
Ο ο
0 kg ο Qi
Pi Ρ ι
>4 k5.
ο LQ2.
LPs J P2J
Z3 Pi 0 ke
.Z4. .P2. k4 ks _
We immediately note that, for our purpose, the fourth auxiliary state Z4 is
superfluous and hence that the yield coefficients k4 and ks are not required.
dZ
= DZi+Fi (3.48.a)
dt
d i g
= D Z o (3.48.b)
"dT
dZg
= DZ3Qi (3.48.C)
dt
Z3
(3.48.d)
<6
Λ k2
S2 Z2 j ^ Z3 (3.48.e)
Experimental results
4 $2 (gCOD/i)
0 .
21
QcH4
0.08 Η
0.04 J
time (days)
Si (gCOD/l)
164
40 80 120
Xi (gCOD/l)
• X2(gC0D/l)
0.5
time (days)
0 40 80 120
Xi + X2 (gCOD/l)
8J
^ : offline analyses
4J
time (days)
—I—
40 80 120
In this pilot plant, both oxygen and carbon dioxide are available for online
measurement. However, as we shall show, only one of these two components
can be used for the implementation of the observer because the respiratory
quotient (RQ) is equal to one (RQ = 1). The RQ is defined as follows :
RQ = (3.51)
'k49i+k692
k7 = 7k4 (3.52.a)
k8 = 7k6 (3.52.b)
Suppose now that we try to estimate the state variables of the process from the
measurements of oxygen (C) and carbon dioxide (P2).
134 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
ξ 6 = (3.53)
LPIJ S2
c
LP2.
Z= (kik3k5)Xlk5Pi)Si (3.54)
"I" S2
(k4k3k6)Xhk6Pi+C
./[(k4k3k6)XHk6Pi]HP2.
A priori, we could believe that the state of the process could be reconstructed
using the asymptotic observer from the measurement of any components.
However, this is not true if the estimation is based on oxygen and carbon
dioxide data. Indeed ξ ι , %z, ^^ and A2 would be defined as follows :
C ξ 2 = X (3.55.a)
P2. Si
S2
Pi,
A2 is a square matrix but not full rank (lines 3 and 4 are proportional) and
therefore not invertible : we cannot estimate the state of the PHB process from
the measurements of O2 and C O 2 . This is simply the mathematical
Chap.3. ESTIMATION WITH KNOWN YIELD COEFFICIENTS 135
confirmation of the fact that, in view of the fact that RQ = 1, the measurements
of O2 and CO2 do not give independent information on the state of the
process. This highlights the fact that the measurements used for the state
observation need to be carefully chosen.
From the description of the process given in Section 1.4.3, it can be seen that
the two biological paths of the PHB production are mutually exclusive. The
first path (microbial growth (with a small growthassociated production) with
rate φ ι ) requires fructose and nitrogen as substrates. The second path
(enzyme catalysed production with rate 92) requires fructose but is completely
inhibited by nitrogen. The results, clearly, is that only one path is activated at
each time.
1) During the first step the process is fed with the two substrates (fnjctose and
ammonia) : this is a growth step without enzymecatalysed production.
2) During the second step the process is fed with fructose only : this is a
production step without growth.
ξ ^= [X Si S2 Pi 0 P2]
Q"^ = [0 0 0 0 0 Q I ]
G(ξ ) = S1S2CX
ξ •^=[XS1 P i C P2]
Q''' = [0 0 0 0 Q I ]
F^=[ODSijnOQjn 0] (3.57)
G(ξ ) = S1CX
In both models, the rank of matrix Κ is equal to 1, and the measurement of one
component can be used for the state observation. We decided to use the on
line measurements of oxygen in preference to those of CO2 because the
oxygen sensors were in practice more reliable and less sensitive to pH
variations.
ξ ι =0
m o d e l A . · ξ | = [ X S i S2P1 P2]
modelB : ξ ^ = [ Χ Si Pi P2]
Chap.3. ESTIMATION WITH KNOWN YIELD COEFFICIENTS 137
1 k( k3
iT
Aq (model A ) (3.58.a)
k4 k4 k4 k4
(model B) (3.58.b)
ke kg J
A2 = l (3.58.0)
Model A : Zi = X + ^ (3.59.a)
K4
kgC
Z2=S2 (3.59.b)
kaC
Z3 = P 1 Κ (3.59.C)
Model Β : Z4 = X
(3.59.d)
A. Whenever δ ο > 0 :
dt
dip kgQin
(3.60.b)
^ = _ D Z 3 H ^ (3.60.C)
dt ^ k4
X= ~ (3.60.d)
k4
§2 = Ζ 2 Η ^ (3.60.e)
K4
P l = Z 3 ^ (3.60.f)
B. When§p = 0
^ = DZ4 (3.61.8)
dt
X = Z4 (3.61.c)
Ρ ι =Ζ 5·^ (3.61.d)
Note that, since the nitrogen concentration is not accessible from online
measurement, we use the estimate S2 to switch from the first algorithm (3.60)
to the second one (3.61).
Chap.3. ESTIMATION WITH KNOWN YIELD COEFFICIENTS 139
time (hours)
. G3 tPl
The on line data are shown in Fig.3.7. (Note that Qin = Qo2.in Qo2,out) The
estimates of X, S2 and Ρ are shown in Fig.3.8. The agreement between these
estimates and offline data from chemical analysis is evident. In addition, it
can be observed that the switching from algorithm A to algorithm Β is very
efficiently driven by the estimate of the nitrogen substrate S2.
Numerical Implementation
where Τ is the sampling period and t and t+1 are time indices.
0<D(t)<Dmax Vt
then equation (3.63) will remain stable as long as the value of T/2 is smaller
than •"''ax:
I < J (3.64)
S + C—Cx
S+C+X >X + P
Let us choose a state partition (ξ a,ξ b)^ As has already been pointed out, this
choice is arbitrary. It is then usually possible, in the absence of any constraint,
to select a state partition for which the matrix Ka is (almost) diagonal with Ί " on
the diagonal and for which inversion is easy. Here, if we choose = [X P]^
and ξ b = [S C]T, then
Ka = l
Ao = ~KbK^^=Kb
144 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
Assume now that the objective is to estimate X and Ρ from the measurements
of S and C. The implementation of the asymptotic observer (3.31) requires the
inversion of A2 :
A2 =
Lk3 k4.
The computation of A2 is possible only if A2 is of full rank, i.e. if its columns (or
its rows) are linearly independent. Assume that A2 is symmetric (k2 = ka) and
that the yield coefficients k i , k2, ka and k4 are such that they can be expressed
as follows :
with a GiR and b a small positive real number. A2 will be invertible as long as
b is different from zero. However its condition number is highly dependent on
b. In fact, due to the symmetry of A2, the condition number is simply the ratio of
the maximum and minimum norm of the eigenvalues of A 2 :
max λ (Α ο )|
CN(A2) =
ί η |λ (Α 2)Ι
mm
Ι Ι Ζ Α ι ξ ι
CN(A2) = 200
and any numerical error in ^Α ^ξ ^ might propagate in with a factor equal to
200!
So far in this chapter, we have dealt with the state estimation problem in
bioreactors. In Section 3.3, this problem was considered in the case where
the reaction rates φ (ξ ) are unknown. In this section, we address the
complementary question, namely the problem of estimating the reaction rates
from online knowledge of the state variables (either from measurements or by
means of asymptotic observers).
^ = Κ φ (ξ ) Ο ξ Q + F (1.43) = (3.67)
We assume that:
φ (ξ ) = Η (ξ )ρ (ξ ) (2.13) = (3.68)
^ = Κ Η (ξ )ρ (ξ ) Ο ξ Q + F (2.24) = (3.69)
Two different solutions to this problem are presented. The first one (Section
3.4.2) is called an observer-based estimator because it is based on the use of
a variant of the state observers described in Section 3.1. The second one
(Section 3.4.3) is based on a reformulation of the process model in a linear
regression form.
The basic idea is to use a state observer, not to estimate the state (since it is
known) but to provide online information for the updating of the estimate of
Ρ (ξ ).
Observer-based estimator
^ = Κ Η (ξ )ρ (ΐ ) Ο ξ Q + F Ω (ξ ξ ) (3.70.a)
^ = [Κ Η (ξ )]ν (ξ ξ ) (3.70.b)
a) The square matrix Ω may be dependent on ξ but must be stable for all ξ (t).
b) The actual value of the state ξ is used in the right hand side of the equation
(terms Η (ξ ) and Ο ξ ).
Γ is the gain matrix of the updating law (3.70.b); it must chosen such that the
matrix Ω ^Γ + Γ Ω is negative definite.
Tuning
The matrices Ω and Γ are design parameters at the disposal of the user for the
control of the stability and the tracking properties of the algorithm. A common
choice is to take :
Analysis
β = ξ ξ ρ = ρ (ξ )ρ (3.72)
Their dynamics are easily shown to be governed by the following linear time
varying system (obtained by substracting (3.70.a) from (3.67)):
= A(ξ )Γ e + V (3.73.a)
LpJ PJ
with
dp
Α (ξ )=Γ Ω Κ Η (ξ )' ν = (3.73.b)
dt
.Η '^(ξ )Κ '^Γ Ο
Suppose that the assumptions of Section 1.9.1 hold, that Ω is constant with all
its eigenvalues having strictly real parts, and that ρ (ξ ) is a differentiable
function of ξ . Then it is a standard result of adaptive system theory that the
error system (3.73) is stable if the matrix Κ Η (ξ ) is persistently exciting, which is
easily established from Theorem A2.6 (Appendix 2) and Theorem A3.2
(Appendix 3).
Numerical implementation
= Pt + Τ [ K H ( y ] ^ Γ (ξ tξ t) (3.74.b)
In such a case, the entire theory presented in this chapter holds "mutatis
mutandis". For instance, if we denote by ξ 8 the selected part of the state and
by (Ks, Qs. Fs) the corresponding parts of (K,Q,F), the observerbased
estimator (3.70) is rewritten :
Chap.3. ESTIMATION WITH KNOWN YIELD COEFFICIENTS 151
^ = Κ 5Η (ξ )ρ α ) Ο ξ δ Qs + Fs Ω ( ξ 5 " I s ) (3.75.a)
^ = [Κ δ Η (ξ Γ Π ξ ς Ι δ ) (3.75.b)
This will be illustrated many times throughout the book, namely in the
experimental applications of Sections 3.4.8 and 3.4.9.
Model reformulation
The solution of the differential equation (3.69) which describes the process
dynamics can be shown to be written as follows :
ξ = ψ '^ρ + ψ ο + ε
^ = Ω ψ ^ + Κ Η (ξ ) (3.76.a)
dt
dvo
= Ω ψ ο (Ω + •ΐ Ν )ξ Q + F (3.76.b)
dt
^-^Wf (3.77,
Υ = ξ ψ ο (3.78)
It is then obvious that the process dynamics (3.69) are described by the
following linear regression model :
y = \\f^p + (3.79)
Note that the output y and the regressor ψ can be calculated online from the
available data (ξ , D, Q, F) with the aid of the filtering equations (3.76). The
important point is that the linear regression model (3.79) allows us to use a
standard least squares algorithm for the estimation of ρ (ξ ).
^ = Γ ψ (ξ ψ ο ψ ^ρ ) (3.81 .c)
Tuning
The matrix Ω and the forgetting factor λ are design parameters at the disposal
of the user for the control of the stability and the tracking properties of the
estimator.
Ρ = ρ (ξ ) Ρ (3.83)
Then, from (3.77) and (3.81 .c), the dynamics of the estimator are easily shown
to be governed by the following linear timevarying system :
d_
ε = Α (ξ )Γ ε +v (3.84.a)
dt
LPJ PJ
with :
Α (ξ ) = Ω Ο V= ( V lf ^ (3.84. b)
.Γ ψ Γ ψ ψ ^.
Suppose that the assumptions of Section 1.9.1 hold, that Ω is constant and
stable and that ρ (ξ ) is a differentiable function of ξ . It is a standard result of
adaptive systems theory that the system (3.84) is stable if the matrix ψ is
persistently exciting (from Theorem A2.6 (Appendix 2) and Theorem A3.1
(Appendix 3)).
Numerical implementation
Ψ ^=(ΐ Ν + Ω Τ )ψ [ + Τ Κ Η (ξ ί ) (3.85.a)
Moreover, the discretetime least squares algorithm for the linear regression
model (3.79) is written :
Chap.3. ESTIMATION WITH KNOWN YIELD COEFFICIENTS 155
Ft Γ
PM = Pt + τ η K H ( y {ξ ^ ξ ι τ [ K H ( y pt Qt Η (3.87.a)
This algorithm (3.87) is simply the recursive least squares algorithm obtained
by applying a linear regression technique to the first order Euler discretized
counterpart of the model equation (3.67).
We consider the situation in which the reaction rates φ ](ξ ) are described by the
multilinear model motivated in Section 1.5.2:
(1.47.a) = (3.88)
Here ξ η denotes the reactants involved in the reaction with index j and aj is the
"specific reaction rate".
With this definition, the state space model of the process is written (equation
(1.49)):
(1.49) = (3.89.a)
dt = Κ Ο ( ξ ) α Ο ξ + Ρ α
max
ξ i(t)<r. Vi,Vt (3.90)
A5. The experimental conditions are such that the state variables are bounded
away from zero :
We address the problem of the online estimation of parameters aj from the on
line [knowledge of D, F, Q, ξ . We note that this estimation problem is stated in
the format of Section 3.4.1 with the definitions :
Η (ξ ) = 3(ξ ) ρ (ξ ) = α (3.92)
We suppose that the linear regression estimator (3.81) is used for the
estimation of a. In this particular case, the estimator is written as follows :
dv^ τ
^ ω ψ ^ + Κ Ο (ξ ) (3.93.a)
dt
dvo
dt = ω ψ ο +(ω 0)ξ α +Ρ (3.93.b)
^ = Γ ψ (ξ ψ ο ψ '^ά ) (3.93.C)
It follows from Theorem 1.1 and Assumption A5 that the diagonal matrix 0(ξ ) is
positive definite for all t. This, in turn, implies from Assumption A7 that the
matrix 0 ( ξ ) Κ Τ Κ 0 ( ξ ) is also positive definite, and hence that Κ 6(ξ ) is
persistently exciting (see Definition A3.1, Appendix 3). Since the filter (3.93.a)
is state reachable, then ψ is persistently exciting (Theorem A.3.4, Appendix 3).
Step2\\Ne define :
ε = ξ ψ ^ά and ά =α ά (3.95)
The theorem follows immediately from step 1 (Theorem A3.1, Appendix 3).
Q.E.D
Process definition
(3.97)
1 0 (3.98)
dt
ki
Lk2j 0
where Fi is the substrate feed rate and Q is the gaseous outflow rate.
φ = μ (X,S,P)X (3.99)
The problem is the online estimation of the timevarying specific growth rate μ .
Using
^ = μ Χ DX + ω ι (Χ Χ ) (3.101 .a)
We know from Section 3.2 that only one state measurement is actually needed
to design an asymptotic observer able to reconstruct the process state.
Chap.3. ESTIMATION Wim KNOWN YIELD COEFFICIENTS 161
1 k
Zi=Xi^P Z2 = S + r^P (3.103)
dZi 1
^ = D Z i + 7 ^ Q (3.104.a)
dt k
<2o
dZo
—^ = DZ2+ F (3.104.b)
dt ^
Xo = Z^ + ^P (3.104.C)
2
. ki
So = Z 2 7 ^ P (3.104.d)
KO
The "observed" states XQ and So provided by this observer are then used, in
the algorithm (3.101), in place of the "true but unknown" states X and S.
If the substrate feed rate F or the gaseous outflow rate Q (or both) are not
accessible online, it is nevertheless possible to derive an efficient estimator of
162 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
^ = μ Χ DX + ω (Χ Χ ) (3.105.a)
^ = 7Χ (Χ Χ ) (3.105.b)
Stability analysis
The structural simplicity of the reduced order estimator (3.105) allows one to
perform a full stability analysis with a moderate mathematical effort. The
analysis will be carried out under the following assumptions :
|^|<Mi Vt (3.109)
dt
Chap.3. ESTIMATION WITH KNOWN YIELD COEFFICIENTS 163
|e(t)|<M2 Vt (3.110)
0<D(t)<D^3, Vt (3.111)
Fi = DS|n (3.112)
0<SJt)<S,3x (3.113)
ω =σ Χ ^ (3.114)
(3.116)
with
v = (Dμ σ XJε
dt
σ = ( υ ι ^υ 2) γ =υ ι υ 2 (3.117)
Assume that:
H9. The design parameters σ and γ are chosen such that A has real distinct
eigenvalues : υ 2 < υ ι <0 (i.e γ < σ ^Μ ).
Ml ,,2 SmaxM2 2β ι δ Μ 2
lim sup |x(t)| < — + Μ 2 + —Γ + (3.118)
ν σ ^4γ
,2 Smax M2 ^1
lim suplii(t)| < : J | j M i H p i M 2 + a (3.119)
Chap.3. ESTIMATION WITH KNOWN YIELD COEFFICIENTS 165
with :
Δ
••max (3.120.a)
β ι = max Dmax. μ * + σ
8 i
{^1 (3.120.b)
Ul
X , ( t ) < ^ + M2 Vt (3.121)
Moreover, since Xm(s) > η > 0 for all s (Assumption H2), the following change
of time scale :
dt = X J s ) d s (3.122)
dx
= Ax + (3.123)
dt Xm
From Assumptions H3, H4, H5, H6, H7 and (3.121), the input v/Xm of this
system is bounded. Hence, since A is a stable matrix, the state χ is also
bounded (see Theorem A2.6, Appendix 2) and the first part of the theorem
(boundedness of X and μ ) follows.
The second part of the theorem follows from the technical Lemma A2.2
(Appendix 2) with the following definitions of Bi and B2 :
Δ Mp ,
Bi=—'η 3χ |0^3Χ ,μ * + σ { (3.124.a)
k
166 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
iS
max (3.124.b)
Q.E.D.
lim|x(t)l<^ (3.125)
ΙΐΓ π Ιμ ω Ι (3.126)
t»oo Π Τ
s^ + 2Cws + w^ (3.127)
The choice of the design parameters γ and σ is thus equivalent to the choice of
ζ and w. A common engineering rule of thumb for the design of second order
systems is to fix the damping coefficient ζ close to 1. Once ζ is fixed, optimal
Chap.3. ESTIMATION WITH KNOWN YIELD COEFFICIENTS 167
values of σ and γ can be defined, both from the point of view of asymptotic
accuracy as well as transient behaviour.
Asymptotic accuracy
The optimal value of σ is defined as the value which minimises the asymptotic
upper bound (3.119) on the tracking error μ :
ν = 2ζ ^/. (3.129)
'Vl2^max
Yopt = ^ (3.130)
Transient behaviour
The ingredient for the selection of optimal design parameters is the mean
square tracking error over a given period of time :
The period of time (t2ti) may, for instance, be the duration of a standard fed
batch operation.
168 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
The optimal value of σ is defined as the value which minimises the criterion
J(a). The optimal value of γ follows as in the previous case (3.130). The
computation of these optimal values is illustrated in the next paragraph.
1 °) Figure 3.9 :
^ KM + S
D U )
ο
d
in
ο
6
t ( h )
1 I Γ >
• 1 • 1
Γ "»• •••••• • 1 1
6 4 8 12 16 2 0
ii .
iii :
i
\ \
i\
. 1\
in
.\\
ο
d
t (h)
—1 1 1 ^
12 16 2 0
(i) σ = 5, γ = 6
(ii) σ = 1, γ =0.24
_ μ * 8 _ _
KM + S + S^/K,
b) The dilution rate is constant, D = 0.05 hi, but the influent substrate
concentration, Sin(t), is a square wave signal (Fig.3.10.a).
σ = 1 , γ =0.24
Chap.3. ESTIMATION WITH KNOWN YIELD COEFFICIENTS 171
SIN<T)
ID
T (H)
The behaviour of the process and of the alogrithm are shown in Figs.3.9 and
3.10. We note the excellent performance of the estimator, which is indeed
able to track the specific growth rate, even in the presence of noisy
measurements (Fig.3.10), without any knowledge of the Monod or Haldane
structures.
σ = 2.25 γ =1.27
Design parameter σ
Numerical implementatiori
Let us now briefly analyse the stability of the discretetime versions of the two
parameter estimators (observerbased (3.74) and least squares (3.87)
algorithms) proposed in this section. For the continuoustime version, the
choice of the design parameters is quite free : for instance, with diagonal gain
matrices (see (3.71) and (3.82)), the estimators will be stable for any positive
value of ω ί and η . However, as for the asymptotic observer (see Section 3.3.5),
the stability of the discretetime version of the estimators depends on
additional constraints, in which the sampling period Τ also plays an important
role.
It should be pointed out that, basically, the values of the design parameters
must be bounded proportionally to Τ ""· and |Κ Η (ξ )|'' in order to keep the
estimators stable.
We illustrate this with the online estimation of the specific growth rate from
biomass measurements.
M,^i=iit + TYXt(XtXt)
a'
4ζ ^
Xt+1 = AJ Xt
At+iJ LAiJ
with :
+1 = AJX,
L^t+iJ L^tJ
2
0 <σ <
Τ Χ ,max
Indeed, At is bounded and the time difference of the following positive definite,
decrescent candidate Lyapunov function W t :
2) Let US now consider the linear regression estimator. The discretetime least
squares algorithm is written from (3.87) as follows :
Yt
Yt+1 =
λ +Τ ^Χ ^γ ^
Therefore, the values of the design parameters σ and γ ο must remain even
smaller as the sampling period Τ and the bounds on the regressor X, i.e. η and
Xmax, are large.
The extended Kalman filtering (EKF) technique is then used to compute the
gain matrices Ω ι and Ω 2 online.
9[Η (ξ )ρ ]
with Α (ξ ,ρ ) = Κ DIK
9ξ ΐξ =ξ
The gain matrices Ω ι and Ω 2 are computed in order to minimise the following
quadratic criterion :
^dpj
J(t) = (τ ) (f(x)).IU(x)l(x)P}dt (3.135)
dt
This criterion is a weighted sum of two terms (weighting matrix Σ ""·) : the first
term penalises rapid variations of the parameter estimate ρ while the second
term penalises excessively large deviations between the actual state value ξ
and its estimate ξ .
Chap.3. ESTIMATION WITH KNOWN YIELD COEFFICIENTS 177
Δ ^
R(t) = Rii(t) Ri2(t) (3.136)
_Rl2(t) R22(t).
where
Δ ^ Δ ^
En = IN 0 0 0 (3.137.b)
0 0 0 Σ
The EKF estimator thus consists of equations (3.133), (3.137) and (3.138). It
appears to have a similar structure to that of the observerbased estimator
(3.70). However the computational complexity is increased by the need to
solve the Riccati equation (3.137) online.
carefully initialised (Ljung, 1979). Therefore, although the EKF estimator may
often yields interesting results, there is no a priori guarantee as to its stability.
This issue is illustrated with a simple example.
Our aim is to compare the EKF estimator with the reduced order observer
based estimator (3.105) for the online estimation of microbial specific growth
rates in simple cultures. The process is assumed to be described by the
equation :
^ = μ Χ Ο Χ (3.139)
Applying the EKF technique to this model yields the following algorithm :
^ = μ Χ DX + r, 1 (XX) (3.140.a)
^=ri2(XX) (3.140.b)
dri2
" = ( i l D ) Γ Ι 2 + Χ Γ 22Γ Ι Ι Γ Ι 2 (3.140.d)
dt
^=ή ^ +α (3.140.e)
It immediately appears that this EKF algorithm is far more complex than the
reduced order estimator (3.105).
μ (h1)
: Observerbased estimator
or
time (hours)
15
8
X (g/l)
J
time (hours)
8
A simulation experiment using this algorithm has been performed with the
same process model as in Fig.3.10 and is shown in Fig.3.12. We examine the
case in which the process is in a steady state. This implies that μ is constant
180 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
Both the reduced order estimator and the EKF estimator are initialised with :
The estimation results are shown in Fig. 3.12. With the EKF estimator, the
estimate μ (Χ ) converges to a biased value equal to 22 hi (i.e. a relative error of
4400 %), while with the simple reduced order estimator ji(t) converges, as
expected, to its true constant value (μ = 0.05 h"").
S ^ X +P
We notice that this scheme is identical to (3.97). The dynamics of the process
are then given by equations (3.98). We suppose that ethanol is the only
component available for online measurement. Moreover, the feed rate F and
the dilution rate D are known while the gaseous ethanol outflow rate Q is
negligible. Therefore we can directly apply a discretetime version of the
estimation scheme (3.101) (3.103) (3.104) for the specific growth rate μ , i.e.:
Zit^,=ZitTDtZit (3.142.a)
Sot^i=Z2t^i^Pt^i (3.142.d)
I rN mMol , ^ ^ mMol ,
•^^^^^^W ^2 = 0 . 3 — (3.143)
The result of the estimation of the specific growth rate μ with the algorithm
(3.142) is shown in Fig.3.13.b. It was obtained under the following conditions :
of
dS
= k1μ X + F D S (3.145.a)
dt
^ = μ Χ ϋ Χ (3.145.b)
dt
Chap.3. ESTIMATION WITH KNOWN YIELD COEFFICIENTS 183
'Ρ (g/l)
X (NTU)
400 Η
• : offline analyses
200 φ
time (hours)
10 "20" "30" 40
=kiiiXo+FDSv (3.146.a)
dt
dXy
"dT = i i X v D X v (3.146.b)
Note that the use of XQ in (3.146.a) makes both estimations (3.146.a) and
(3.146.b) independent of one another.
The validation results are shown in Fig.3.13.cd. They exhibit a very good
agreement between the offline data of S and X and their estimates provided
through the estimated specific growth rate μ .
In Section 3.3 we have used, when available, offline data to validate the state
observation performed by the asymptotic observer. Here again, as explained
above and as will be true in the following applications, a similar experimental
validation of the parameter estimation has been carried out. However, the
validation results shown in Fig.3.13 are somewhat unfair. Actually, we used
the experimental validation as a tool for choosing appropriate values for the
design parameters. These are calibrated so as to obtain the reaction rate
estimates which give rise to the best estimates of the unmeasured
Chap.3. ESTIMATION WITO KNOWN YIELD COEFFICIENTS 185
— — : asinFig.3.13
ω ι =ω 2=7ι =Υ 2=0·
cu^.OOSekgXot.
^3 =0.000018
S(g/1)
50 •·
\
25
\
\
1
X (NTU)
600
400H
200
time (hours)
0 ^ ^ ^ ^ —T
10 lo" 30 40
components for which there exist some offline data. Fig.3.13 shows the
estimation of the specific growth rate with a good set of design parameters, i.e.
those which correctly validate the estimation of the substrate and biomass
concentrations. For comparison purposes. Fig.3.14 shows what happens
when the design parameters are not well calibrated. The estimation of the
specific growth rate is performed under the same initial conditions as in
Fig.3.13 but with a different set of design parameters : ω ι , CU2, γ ι and γ 2 are set
to zero and ω 3 and γ β are divided by a factor of 10 and 100, respectively.
ω ι = ω 2 = γ ι =γ 2 = 0, ω 3 = σ 3Κ 2Χ ο (. Y3 = 4, σ 3 = 0.0086
The values of ω β and ys are clearly too low to make the estimator capable of
tracking the rapid variations of the specific growth rate, μ does not vary quickly
enough from its initial value of 0.15 hi, and the experimental validation gives
negative values for the substrate concentration S and excessively large values
for the biomass concentration.
5^ L^Xl+S2 + l
92
S2 — C X 2 + Pl + P2
Ch^.3. ESTIMATION WITH KNOWN YIELD COEFFICIENTS 187
d
dt 1 0 φ ι D f Xi 0' " 0'
Si ki 0 Φ 2ϋ Si Fi 0
0 1 X2 0 0
S2 ks ~^2 S2 0 0
Pi 0 kfi Pi
0 Qi
.P2. >4 ksj P2
0. Q2.
We recall that:
1) the only components which are available from online measurements are
the acetate S2 and the methane P i ;
2) the biomass concentrations X i and X2 and the organic substrate
concentrations Si are given online by the asymptotic observer (3.48);
3) there are two unknown reaction rates : the acidogenesis reaction rate φ ι ,
and the methanization reaction rate 92, which can be expressed (see
Section 1.5.3) by one of the following expressions :
9i = μ ι Χ ι = a i X i S i
Δ Δ
Φ 2 ~ V^2^2 ~ ^2^2^2
ρ (ξ ) = Γ μ Γ
.«2.
As we have mentioned earlier (see the remark at the end of Section 3.4.2), the
algorithm does not necessarily need to be based on the full dynamical model
of the process. It may be sufficient to select a subset of the state equations,
provided they involve all the parameters we want to estimate. Here we have
selected the following two equations :
d_r^ I Γ
S2 D T S
dt
Pi. [0 kej 0 SaXaJL^a. LPIJ LQI
The least squares discretetime algorithm (3.87) is then written as follows for
this model (in which the methane P i is assumed, as before, to be a low
solubility product) :
with :
The estimates of ^ i , and ^2t are provided by the asymptotic observer (3.48).
The algorithm (3.152) has been implemented on the same set of data as in
Section 3.3.3 (Fig. 3.4) under the following conditions :
Chap.3. ESTIMATION WITH KNOWN YIELD COEFFICIENTS 189
0.08H
0.04J
0.04H
O.O2J
Xi + X2 ( g c o D / i )
Si
Φ : offline analyses
Λ 4
time (days)
40 80 I 1—
120
Φ Ι
S > Pi + Pg (1.40.a) = (3.157.a)
Φ 2
k i 2 = 0.5, k 2 2 = 1, k i 3 = 0.5
_d
'S " = '1 0 " >r
dt
k 2 2 .Φ 2.
P2. ki3 0
.P5. . 0 1
192 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
Assume that we wish to estimate the reaction rates φ ι and 92 from the glucose
Pi and lactic acid P5 concentrations. Let us apply for instance the observer
based estimator. We consider a reduced order estimator based on the
dynamical equations in Pi and P5 (i.e. with ^ = [ P i , P5] in (3.75)). If we
choose diagonal gain matrices Ω and Γ , the estimator is written in discrete time
(see (3.74)):
NaOH (g/l)
130.
65.
time (hours)
'^"^ 2 '4 6
1$I{G/I.H)
7i
time (hours)
6
—1 1 ·
2
6 φ 2 (g/i.h)
4^
time (hours)
As in Sections 3.4.7 and 3.4.8, the experimental validation of the reaction rate
estimation was carried out on the remaining components, i.e. lactose S and
galactose P2, i.e. :
Chap.3. ESTIMATION WITH KNOWN YIELD COEFFICIENTS 195
So = So ^2,0=^2.0
The experimental validation results are shown in Fig.3.18. Note here again
the good fit between experimental data and estimated values of S and P2.
:
196 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
Section 3.3
Section 3.4
Applications can be found in ttie above paper and in the following ones :
Flaus J.M., A. Cheruy , M.N. Pons & J.M. Engasser (1989). Estimation de
I'etat physiologique des microorganismes dans un bioprocede. Rairo, AP
11,23, 211220.
Flaus J.M., M.N. Pons, A. Cheruy and J.M. Engasser (1989). Adaptive
algorithm for estimation and control of fedbatch bioprocesses. In N.M. Fish,
R.I. Fox and N.F. Thornhill (Eds.) Computer Applications in Fermentation
Technology : hnodelling and Control of Biotechnological Processes, 349
353.
Pomerleau Y. and M. Perrier (1989). Nonlinear estimation and adaptive
control of a fedbatch fermentor. In N.M. Fish, R.I. Fox and N.F. Thornhill
(Eds)., Computer Applications in Fermentation Technology. Modelling and
Control of Biotechnological Processes, 361365.
D. Atroune, A. Cheruy, J.P. Flandrois, G. Carret (1988). Choice of the specific
growth rate formulation in biotechnological processes. IMACS 12^^ World
Congress on scientific Computation.
198 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
Flaus J.M., A. Cheruy, M.N. Pons and J.M. Engasser (1987). Multivariable
adaptative estimation applied to Baker's yeast fermentation. Proc. 4^^
1987, Elsevier, Amsterdam, 3, 139
142.
of of is
of EKF for is :
of EKF to :
Chap.3. ESTIMATION WITO KNOWN YIELD COEFFICIENTS 199
Yoo Y.J., J. Hong and R.T. Hatch (1985). Sequential estimation of states and
kinetic parameters and optimization of fermentation processes. Proc, ACC,
Boston, USA, 2, 866871.
The experiments on lactic acid production used in Section 3.4.9 are described
in detail in:
CHAPTER 4
4.0. Introduction
The approach proposed in Section 4.1 can be followed only if some of the
yield coefficients are unknown. Therefore, in Section 4.2, we examine the
situation where all the yield coefficients are unknown and we explore the
possibility of simultaneous online estimation of both specific reaction rates
202 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
and yield coefficients from full state measurement (Section 4.2.1) and partial
state measurement (Section 4.2.2).
When the yield coefficients are unknown, the simplest method may be to try to
estimate them from experimental data before going on to implement state
observers or online parameter estimators. The problem of estimating the yield
coefficients independently of the reaction rates, from full state measurement, is
therefore considered in Section 4.4.
Unknown parameters can also be hidden in the transport dynamics part of the
General Dynamical Model (1.43) (see Section 1.2), for which the estimation
methods presented in this book also apply. Two such issues are briefly
treated in Section 4.5 : estimation of specific liquidgas transfer rates (Section
4.5.1) and estimation of oxygen related parameters (Section 4.5.2).
^ = Ο ξ Κ Η (ξ )ρ (ξ ) + F Q (2.24) = (4.1)
i.e. where the reaction rate vector φ (ξ ) is expressed as the product of an Mxr
matrix Η (ξ ) of known functions of ξ and a vector ρ (ξ ) of unknown functions of ξ
(dim p(ξ ) = r ) :
Chap.4. ESTIMATION WITH UNKNOWN YIELD COEFFICIENTS 203
φ (ξ ) = Η (ξ )ρ (ξ )
In addition, we suppose now that (some of) the yield coefficients (matrix K) are
unknown.
Consider the simple microbial growth process with a single limiting substrate
(1.33):
^ = aSXDX (4.3. b)
dt
Assume that the substrate concentration S is measured online (as well as the
dilution rate D and the influent substrate concentration Sjn). Define the
parameter ρ as follows :
p = a
204 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
Z = S + kiX (4.4)
has dynamics :
dZ
^ = D Z + DSin (4.5)
dt
We know from the structural property of Section 1.7 that the dynamics (4.3.ab)
of the process are equivalently represented by equations (4.3.b) and (4.5). By
substituting S in equation (4.3.b) by its expression in (4.4) (i.e. S = Ζ kiX),
the equivalent state space model (4.3.b)(4.5) is written as follows :
^ = a(ZkiX)XDX (4.6.a)
dt
dZ
^ = DZ + DS|n (4.6.b)
dt
^ = D Z + DS|n (4.7.b)
Chap.4. ESTIMATION WITH UNKNOWN YIELD COEFFICIENTS 205
This model is now independent of the yield coefficient ki and involves the
measured state S. It is clear that, as a consequence, it can be used for online
estimation of the parameter α independently of ki. By way of example, if we
choose for instance an observerbased estimator (Section 3.4.2), the
estimation of α will be carried out as follows :
dZ
^ = D Z + DS|n + ω (S S) (4.8.a)
dt
^ = YiS(SZ)(SS) (4.8.C)
Ζ = Α ο ξ 3+ ξ 6 (1.70) = (4.9)
dZ
= DZ + Ao(Fa Qa) + (Fb Qb) (1.73) = (4.10)
dt
Assume that, in line with Section 3.3.1, the (Np) vector Ζ can be expressed as
a linear combination of the vectors ξ ι and ξ ζ of measured and non measured
variables, i.e.:
206 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
Ζ = Α ι ξ ι +Α 2ξ 2 (4.11)
^ = Κ ι Η ( ξ „ ξ 2)ρ (ξ ι , ξ 2) Ο ξ ι + F, Q, (4.12)
Κ ι Η (ξ ι .ξ 2)ρ = Φ (ξ ι ,Ζ )ρ (4.13)
Remark
S+C ^ X +Ρ (4.14)
with φ = μ Χ .
dX
= μ Χ Ο Χ (4.15.a)
dt
dS
= k1μ XDS + F (4.15.b)
dt
dC
= Ι < 2 μ Χ 0 0 + 0|η (4.15.C)
dt
dP
= Κ 3μ Χ 0Ρ α (4.15.d)
dt
208 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
We shall now study the online estimation of the specific growth rate μ (i.e. ρ =
μ ) from the measurements of one of the process components X, S, C or P,
independently of the yield coefficients k i , k2 and ka.
Consider now the estimation of μ from one of the other three components S, C
or P.
d_r,,
= D "Zi + ' F" (4.17)
dt
Qin
- "0"0
Z2 Z2
. 0 . .Q.
.Z3. .Z3.
Κ ι Η (ξ ι .ξ 2)ρ = Κ ι μ Χ (4.18)
Κ ι Η (ξ ι ,ξ 2)ρ = μ ( 8 Ζ ι ) (4.19)
i.e. withO = S Z i .
We see that we do not have to invert the matrix A2 in order to write (4.19).
dξ
1 = μ (ξ ι Ζ )0ξ ι +Ρ ι α ι (4.20)
dt
but with a different auxiliary variable Ζ and a different meaning for Fi and Q i
depending on which component is accessible for online measurement (see
Table 4.1).
ζ Fi Qi
S S + kiX F 0
C C + k2X Qin 0
Ρ PksX 0 Q
Note that equations (4.20) and (4.21) are independent of the yield coefficients
k i , k2 and ka. Condition C2 is then fulfilled and these equations can be used
to estimate the specific growth rate independently of k i , k2 and ka from any of
the component S, C or P. The observerbased estimator is, for instance,
written here as follows :
= DZ Fi Qi 4 ω (ξ ι ξ ^) (4.22.a)
dt
(1ξ
1 = μ (ξ ι Ζ ) ϋ ξ ι + Fi Qi + ω ι (ξ ι ξ ^) (4.22.b)
dt
=γ ι (ξ ι Ζ )(ξ ι ξ ι ) (4.22.C)
dt
S^Cx + P (4.23)
The only difference from the scheme (4.14) is that there is no dissolved
oxygen C because the reaction is anaerobic. It is easy to see that, in this case,
the algorithm (4.22) remains valid for estimating the specific growth rate μ
from measurements of the ethanol concentration P.
Chap.4. ESTIMATION WITH UNKNOWN YIELD COEFFICIENTS 211
30 40 50 70
Time (hours)
0.25 Η
0.15 h
0.05 h
0,05
10 20 30 40 50 60 70
Time (hours)
Ζ „ ι = Ζ ι + ω Τ (Ρ ,Ρ ,) (4.24.a)
The data of the ethanol concentration Ρ and the estimates of the specific
growth rate μ , obtained with (4.24), are shown in Figs.4.1.a and 4.1.b,
respectively. The estimation was carried out under the following conditions :
1
ZQ = 0 mmol/L, PQ = 0 mmol/L, μ ο = 0 h (4.25.a)
Χ ^ , ι = Χ , + Τ μ ,Χ , (4.26)
2> 80 h
to
ε
Ο
40 h • : Offline analyses
10 20 30 40 50 60 70
Time (hours)
Note the good fit between the few offline data of X and its estimate in Fig.4.2.
Comment
A similar application of the estimation of the specific growth rate has already
been treated in Section 3.4.5. The advantage of the estimation scheme (4.24)
compared to (3.101)(3.104) is that it does not require any knowledge of the
yield coefficients. The drawback, however, is that it does not take advantage of
data on substrate feed rate F, which are usually available online.
do not need to formulate any a priori assumption about the analytical structure
of μ . Moreover, Fig.4.3 does not mean that this dependence is a Monod law. In
fact, any equivalent mathematical expression (such as the models of
Blackman or Tessier (see Appendix 1), for instance) could as well be used to
represent it.
The purpose when carrying out such an analysis does not consist of finding
the "best" analytical relationship between the specific growth rate and the
biochemical and physicochemical variables. It is more specifically aimed at
emphasising possible correlations. In practice, this means that the above
procedure does not necessarily imply the mathematical formulation of the
correlation (with, as a consequence, the calibration of the kinetic coefficients).
In a process "modelling" context (or rather a process description context), this
has the advantage of avoiding the hazardous interpretation of uncertain
coefficients of the model (see Section 2.1).
Sugar (mmol/L)
Fig.4.3. Correlation between the estimated specific growth rate and the
glucose concentration
Chap.4. ESTIMATION WITH UNKNOWN YIELD COEFFICIENTS 215
In this example, we shall show that the existence of a nice partition is not
enough to estimate the specific reaction rates independently of the (unknown)
yield coefficients.
Consider the same example as in Section 3.3.1, i.e. the simplified scheme of
the anaerobic digestion without the two products Pi and P2 (see (3.23)) :
Φ Ι
Si — + S2 (4.27.a)
φ
So ^ X o (4.27.b)
d_
"sr = ki 0 " 'SiXi 0 • "«Γ D "SI "DSin (4.28)
dt
1 0 0 S2X2. .«2. XI 0
S2 ka —k2 S2 0
.X2. . 0 1 . . 0
.X2.
(4.29.b)
with Fi =
0
216 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
But the dynamical behaviour of ξ ι (= [Si 82]^) does not become independent
of the yield coefficients with the introduction of the above state transformation.
In fact, Κ ι Η (ξ ι , Ζ ) is equal to :
Κ ι Η (ξ ι ,Ζ ) = Si(SiZi) 0 (4.30)
^Si(ZiSi) S2is2Z2K^(SiZi)
Lki
The issue of estimating the reaction rates φ (ξ ) (or related quantities like ρ (ξ ),
α (ξ ), μ (ξ )) has been already addressed in this book. A general method was
described in Chapter 3 (Section 3.4) in the case in which the yield coefficents
(i.e. the matrix K) are known. Later on, in Section 4.1, we discussed the case
in which some of the yield coefficients are unknown but can be eliminated from
the estimation procedure by appropriate model transformations. In this
section, we shall examine the situation in which all the yield coefficients are
unknown. We explore the possibility of simultaneous online estimation of
both specific reaction rates α (ξ ) and yield coefficients (matrix K), from full state
measurement (Section 4.2.1) and partial state measurement (Section 4.2.2).
Chap.4. ESTIMATION WITH UNKNOWN YIELD COEFFICIENTS 217
^ = Κ Ο (ξ )α Ο ξ + F ~ Q (1.49) = (4.31)
We assume that:
Μ
m=^(Nj1) (4.32)
i=i
m Μ = 2^ Nj (4.33)
i=i
Now, due to its particular structure, the vector Κ 6(ξ )α may be rewritten in a
linear regression form as follows :
Κ Ο (ξ )α = Φ (ξ )θ (4.34)
e = f(a,k) (4.35)
r a l = rVe) (4.36)
k
With the definition (4.34), the process model (4.31) is rewritten as follows :
$ = Φ (ξ )θ Ο ξ Η Ρ 0 (4.37)
dt
Observer-based
Φ (ξ )θ ο ξ + ρ α Ω (ξ ξ ) (4.38.a)
dt
d§
= Φ ^(ξ )Γ (ξ ξ ) (4.38.b)
dt
ά = Γ \θ ) (4.38.C)
^ = Ω ψ Τ + Φ (ξ ) (4.39.8)
dt
= Ω ψ ο + (Ω Ο ΐ Ν )ξ 0+Ρ (4.39.b)
dt
^ = Γ ψ (ξ ψ ο ψ ^θ ) (4.39.C)
dr
= Γ ψ ψ '^Γ + λ Γ (4.39.d)
dt
ά = r\Q) (4.39.e)
R
s—JCX (4.40)
d_rwl Γ
dt
SX 0 α Dfx (4.41)
0 SX aki .SJ DSi„
We notice that we have here :
= rVe) = θ ι (4.44)
θ 2
θ ι
^ = YiSX(XX) (4.45.C)
dSj (4.45.d)
^ = Y2SX(SS)
ά =θ ι (4.45.e)
R (4.45.f)
Chap.4. ESTIMATION WITH UNKNOWN YIELD COEFFICIENTS 221
Φ Ι
s + c—Cx + i
92
S—Cx + E + P
Φ (ξ )θ = XSC XS 0 0 0 0 0 0 • 'Θ Γ
0 0 xsc XS 0 0 0 0 02
0 0 0 0 XS 0 0 0 θ 3
0 0 0 0 0 xsc 0 0 θ 4
0 0 0 0 0 0 xsc XS.
θ 5
θ 6
θ 7
.θ 8.
Θ 5 = ^5Α 2 e6 = K 6 A I 67 = Α Ϊ 08 = α 2
We assume that:
2) there exists a nice state partition (ξ β , ξ b), with an associated auxiliary state Ζ
(see sections 1.7 and 3.3.1):
Ζ = Α ο ξ 3 + ξ 6 = Α ι ξ ι Η Α 2ξ 2 (4.46)
^ = DZHFbQb (4.47)
^ = Κ ι Ο (ξ ι . A ^ ( Z Α ι ξ ι ) ) α Ο ξ ι + Fi Qi (4.48.a)
dZ
= D Z + FbQb (4.48.b)
dt
Κ ι Ο (ξ ι , A ^ ( Z Α ι ξ ι ) ) α = Φ (ξ ι , Ζ )θ (4.49)
The structures of Φ and Θ , however, are slightly different from the previous
ones. Φ (ξ ι ,Ζ ) is now a matrix of known polynomial combinations of the
measured states ξ ι and the auxiliary state Z. θ is a vector of polynomial
combinations of some of the unknown parameters kj and aj, denoted as before
in (4.35):
e = f(a,k) (4.50)
It may arise, however, that this function f is not completely invertible . Then, in
contrast with the previous case, only a few kj and aj can be recovered from Θ .
This is illustrated in the examples below.
^ = Φ (ξ ι ,Ζ )θ Ο ξ ι +Ρ ι α ι (4.51 .a)
dt
dZ
= D Z + FbQb (4.51 .b)
dt
Observer-based
^ = D2fFbQb (4.52.a)
^ = Φ (ξ ι , 2)θ Ο ξ ι + Fi Qi Ω ι (ξ ι | i ) (4.52.b)
^ = Φ Τ (ξ ι .2)Γ (ξ ι ξ ι ) (4.52.C)
S—Cx (4.53)
SX 0 α Dfx 0 (4.54)
0 SX akij S DSin
ξ ι =Χ ξ 2=δ (4.55.a)
dX Γ
zx χ 2 α DX (4.56.a)
dt
ak U
dZ
^ = D Z + DSiIN (4.56.b)
dt
That i s :
θ = =• α ' (4.57.b)
β 2.
We notice that, in this example, the parameter θ is identical to that which was
identifiable when both S and X were measured (example 1 of Section 4.2.1).
2.
Si — + S2 + Pi + P2
S 2 — C X 2 + P 1 + P2
We suppose, furthermore, that we are not interested in the products P i and P2,
so that we can omit them in the analysis. Then the state space model is as
follows :
dt
= ki 0 ' SiXi 0 •«Γ D f ' S I + Ρ ί (4.58)
Xi 1 0 0 S2X2 . « 2 . XI ο
S2 k3 k2 S2 0
. 0 1 . .0.
.X2. .X2.
Clearly the matrix A2 is full rank. Straightfonward calculations then lead to the
following expressions :
Φ (ξ ι .Ζ ) = S i ( S i Z i ) 0 0 0 (4.61.a)
Ο S i ( S i Z i ) S2(S2Z2) S 2 ( S i Z i )
θ = θ ι «1 (4.61.b)
θ 2
θ 3
θ 4 «2
«2k7.
We notice that the new model is now "underparametrized" in the sense that it
contains only four parameters 6 1 , 0 2 , 6 3 , 6 4 , although the initial system
contained five unknown parameters, α ϊ , α 2, k i , k2, ks. Therefore, as appears
clearly from (4.61), there is no hope to recover all the aj and kj from Θ .
On the other hand, if we consider the same example, but assume that the
measured state is ξ ι = [Xi X2], then the calculations lead to the following
expressions for Φ and 6:
Φ (ξ ι .Ζ ) = XiZi X i (4.62. a)
Θ 2 Θ 4 Θ 5
α ι =θ ι ki = ^ α 2= θ 3 ^3 = . ^ ^^"θ ^
1) The equivalent model (4.51) has been introduced under the condition that
the matrix A2 is left invertible. There are however particular situations in
which a suitable model of the form (4.51) can be derived even if the matrix
A2 is not left invertible. This issue has been already discussed in Section
4.1.
0 < D = constant
^1 min
where Oimin and e2max, respectively, are known lower and upper bounds
on θ ι and Θ 2 such that 2e2max ^ θ ΐ π ΐ π
Simulation result
This means that a Blackman model (see Appendix 1) in limiting conditions has
been chosen :
μ = α 8
with α = constant
Random amplitude step functions of the inputs D and Sjn have been applied to
the process (Fig. 4.4.a&b).
Z , + i = Z , T D , Z , + TD,Sin., (4.63.a)
I (4.63.C)
φ , = [Ζ ,Χ , Xf] (4.63.e)
at = ei,
Fig.4.4.e shows the reconstruction (4.45.f) of the yield coefficient ki from the
estimates of θ ι and Θ 2 :
Kit —
θ 1t
Note that, in the simulation of Fig.4.4, both the influent substrate Sjn, as well as
the dilution rate D, fulfill the first requirement of condition C2 (persistence of
excitation of order 2). It has been observed in practical implementation that a
timevarying dilution rate D(t) induces more excitation to the estimator and
therefore improves the convergence rate of the algorithm.
230 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
D(d1)
0.11
0.1
time (hours)
480 960
Sin (g/l)
2.1
2.
time (hours)
1.9
480 960
time (hours)
480 960
time (hours)
480 960
time(hours)
480 960
$ = Φ (ξ )θ Ο ξ + Ρ α + Ω (ξ ξ ) (4.64.a)
dt
^=φ \ξ )Γ (ξ ι ξ ι ) (4.64.b)
3.4.6). Obviously, it can also be used for both together. In that case, the
adaptive observer is written as follows (compare with (3.133)):
Extended Kalman
^ = Φ (Ξ )θ Ο Ξ + F Q + Ω ι ( Ξ , Θ ) ( ξ ι | i ) (4.65.a)
An
A third solution, which is more closely related to the results of Section 4.2.2, is
the following one. We suppose that ail the yield coefficients involved in A i and
A2 (equation (4.46)) can be calculated from Θ . An adaptive observer is then
readily obtained by augmenting the observer based parameter estimator
(4.52) as follows :
dZ
= D Z + FbQb (4.66.a)
dt
1 = Φ (ξ ι ,Ζ )Θ Ο ξ ι + Fi Qi Ω ι (ξ ι ξ ι ) (4.66.b)
dt
^ = Φ Τ (ξ ΐ ,Ζ )Γ (ξ ι ξ ι ) (4.66.C)
ξ 2 = Α ^(Ζ Α ι ξ ι ) (4.66.d)
Chap.4. ESTIMATION WITH UNKNOWN YIELD COEFFICIENTS 233
^ = 8Χ θ ι DX + ω ι (Χ X) (4.67.a)
^ = 8 Χ θ 2 0 8 + 08|η + ω 2 ( Χ Χ ) (4.67.b)
^ = YiSX(XX) (4.67.C)
^ = Y2SX(XX) (4.67.d)
^=DZ+DSin (4.68.a)
dX
= Ζ Χ Θ ι Χ ^θ 2 DX + ω (Χ Χ ) (4.68.b)
dt
dO
I = YiZX(XX) (4.68.C)
dt
= Y2X^(XX) (4.68.d)
dt
S = Z t 4 X (4.68.e)
θ ι
234 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
Simulation result
Fig.4.5 Shows the complementary simulation result of Fig.4.4, i.e. the adaptive
observation of the substrate concentration S with equation (4.68.e) where
θ ι and §2 are given by (4.63.b) as shown in Fig.4.4.c&d.
[S(g/I)
^ time(hours) ^60
In this section we shall address the problem of estimating the yield coefficients
independently of the reaction rates. We consider biotechnological processes
described by the general dynamical model (1.43) :
4) the substrate feed rates F, the gaseous outflow rates Q and the culture
volume V are measured.
dξ b
dt
= Kbφ (ξ ) Dξ b + Fb Qb (1.69) = (4.71)
where V denotes the culture volume and Fout the effluent flow rate (see
Section 1.1). Note in the integral of expressions (4.72) and (4.73) that the first
term (Foutξ a and Foutξ b. respectively) is equal to zero in batch and fedbatch
reactors and that the second term (V(Qa Fa) and V(Qb Fb), respectively)
represents the cumulated mass of feed introduced and of gas produced.
236 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
η 6ω = Α ο η 3ω (4.74)
AoKa + Kb = 0 (4.75)
Most often, Ka is a square MxM nonsingular matrix, such that AQ = KbK^^ and
( 4 . 7 4 ) is rewritten :
Let us now denote by θ = [θ ι ,...,θ |]"^ (dim(e) = I) the vector of the entries of the
matrix AQ which are not identically zero. Expression (4.76) is rewritten in the
following linear regression form :
η 6(0 = π \η 3ω )θ (4.77)
Consider the state space model (1.66) for intracellular production of PHB acid,
with the following state partition :
ChapA ESTIMATION WITH UNKNOWN YIELD COEFFICIENTS 237
X ξ 6 = S2 (4.78)
LSi
c
LP2.
Ka = 1 0 k2 0• (4.79)
kg 1
k 4 ke
1^7 ke.
k2 (4.80)
1
k3r^
"kg
"'^^Π ^ k^
kik
1^8 ke
ky
ks "ks
We see that this matrix contains I = 7 nonzero entries, so that we define the
vector θ = [θ ι θ γ ]^:
Π ^(η 3) = η β ΐ 0 0 0 0 0 0 (4.82)
Ο Ο Ο Ο Ο
Ο Ο Ο Ο Ο
Ο Ο Ο Ο Ο η 32.
where :
[R(na)nb]dx (4.84)
I Jo J Jo
The matrix inversion can be avoided by using a recursive form of this algorithm
(compare, for instance, with (4.39)):
^ = rR(na)[nbRV)Q] (4.85.a)
S—Cx + P (4.86)
d_
dt
ki φ iDfS DSiin (4.87)
1 X 0
L . J L^gJ 0
Ao = (4.89)
k2
1
k2j
(4.90)
with :
240 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
V(t)X(t)V(0)X(0)+ f FoutXdx
Jo
θ ι (4.91.0)
k2
L92J
1
L
(4.92.a)
02
k . = ^ (4.92.b)
02
If X is not available for measurement, but only S and P, we can still estimate 0 i
= ki/k2, which is the expression of the yield from S to P. This is now illustrated
with a reallife experiment.
The estimation of ki/k2 has been implemented on a 60 liter CSTR pilot reactor
(Unit of Biogineering, Catholic University of Louvain, Belgium) over a period of
14 days by using a discretetime least square estimation algorithm.
Chap.4. ESTIMATION WITH UNKNOWN YIELD COEFFICIENTS 241
By taking account of the low solubility of the methane (see Section 1.8.4), a
discretetime version of the estimator (4.85) specialises here as follows (with
an additional forgetting factor):
Ρ (η 3ΐ ) = VQdx (4.93.C)
Jo
The reactor was operated under the following conditions. The dilution rate D
was set to 0.1 di and a step of influent substrate concentration Sjn (from 10 to
20 gCOD/l) was applied during the second day of the experiment (Fig.4.6.a).
The online measurements of the methane gas flow rate Q and of the substrate
concentration S are shown in Fig.4.6.bc. The sampling period Τ is equal to 1
hour. The estimation of θ ι shown in Fig.4.6.d was performed under the
following conditions :
Simple
"Sint(9C0D/l)
a
240
tCh)
240
Fig.4.6. Estimation of θ ι
Chap.4. ESTIMATION WITH UNKNOWN YIELD COEFFICIENTS 243
This gives a conversion ratio CH4/COD equal to 2.53 g COD/I CH4. A mean
theoretical value of θ ι can then be deduced :
Q _ 2.53x24 _^ gCODxh
^ 0.88 X 60 I CH4 X day X I reactor
The term 24/60 is introduced in order to take account of the fact that the
methane gas flow rate is expressed in h"" (instead of day''x I reactor) (the
volume of the reactor is here equal t°60 I).
With the algorithm (4.84), we have a tool for estimating the parameter Θ . But
our goal is actually to estimate the yield coefficents, i.e. the vector k = k i , k2,...
km). Clearly, as illustrated with (4.81), θ is a nonlinear rational function of k,
which we write formally as follows :
244 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
θ = f (k)
At this stage, we would like to remind the reader of the important remark which
we made in Section 1.5.2, regarding the general dynamical model (1.43) :
^ = Κ φ (ξ ) Ο ξ + F Q (1.43) = (4.95)
In Chapters 3 and 4, we have focused either on the real time estimation of the
state ξ or on the estimation of the parameters related to the kinetics Κ φ (ξ ). But
unknown parameters can also be hidden in the transport dynamics, for which
the methods followed so far may easily be extended. Two such issues are
briefly examined in this section.
Chap.4. ESTIMATION WITH UNKNOWN YIELD COEFFICIENTS 245
α ί = β ΐξ |
as long as ξ ί is lower than the saturation level. The parameters β ι are termed
specific liquid-gas transfer rates. Define the vector β containing those
parameters β ί . It is then clear that the model (4.95) can be rewritten as follows:
^ = Φ (ξ )θ Dξ + F Ψ (ξ )β (4.96)
If we define :
Example
S^CxiP
where S is the substrate, X the biomass and Ρ a gasifiable product (e.g. CO2).
The dynamical model is as follows :
4rx^
dt
SX 0 0 α lDrSlir 0 β
0 SX 0 DSi,
0 0 SX
"φ (ξ )"
Φ *(ξ ) = SX 0 0 0 α
0 SX 0 0 kitt
0 0 SX ρ
L β J
Another typical application, which has given rise to numerous studies (see the
bibliography), concerns the parameters related to the dissolved oxygen
concentration, which is often the most easily measurable state. Consider an
aerobic process described by the following scheme :
SiC Cx
with S the substrate, X the biomass and C the dissolved oxygen. The biomass
and dissolved oxygen dynamics are written (see Section 1.5.5) :
Chap.4. ESTIMATION WITH UNKNOWN YIELD COEFFICIENTS 247
dX
= μ Χ DX (4.99.a)
dt
dC
= Κ 2 μ Χ D C + KLSCCS C ) (4.99.b)
dt
where kLa and Cs denote the mass transfer coefficient and the saturation
concentration, respectively. These equations may be reformulated as follows :
—Γ χ · X 0 0 0 Γ μ D "X"
dt'^
0 X 1 c .c.
kLaCs
ki^a
= Φ *(ξ )θ *Dξ
with
Φ *(ξ ) = X 0 0 0 and Θ * = θ ι μ
0 X 1 C k2μ
Θ ;
kLaCs
θ 3
The model is thus clearly in the correct format for parameter estimation. We
notice, in addition, that the reparametrization Θ * is invertible (see the
discussion in Section 4.2.1), that is estimates of μ , k2, kLa and Cs can be
recovered as follows :
μ =θ ί k2 = ^ Μ =θ 4 Cs ^
θ ι θ 4
0υ Ρ = θ 2Χ
KLA = koFg
dC r
OUR D C
koCs
ko J
i.e., one can proceed directly to the estimation of the oxygen uptake rate OUR,
together with the parameters ko and Cs
Section 4.1
Section 4.2
The C1 C2
1 :
Section 4.3
be :
Bastin G. and M. Gevers (1988). Adaptive observers for nonlinear time varying
systems. IEEE AC33, n°7, 650658.
Kreisselmeier G. (1977). Adaptive observers with exponential rate of
convergence. IEEE AC22, n°1, 28.
Mareels I.M.Y., M. Gevers, G. Bastin and D. Dochain (1987). Exponential
convergence of a new error system arising from adaptive observers.
26^^ IEEE Los Angeles, 1619.
Narendra K.S. and A.M. Annaswany (1989).
PrenticeHall, Englewood Cliffs.
Section 4.4
The
:
Section 4.5
The e.g.
:
Goodwin G.C, B.C. Mclnnis and R.S. Long (1980). Adaptive control algorithms
for waste water treatment and pH neutralization. 3,
443459.
Holmberg A. and J. Ranta (1982). Procedures for parameter and state
estimation of microbial growth process models. 18, 181193.
CHAPTER 5
5.0. Introduction
Monitoring screen
set J
point Keyboard Computer
Control Software
algorithm sensors
Control
action
exit
Concentrated gas ο
substrate
liquid
d o ο
water stream sampling
I J
Why controi ?
As we shall see throughout the chapter, the control design problem is solved
by appropriate algebraic manipulations of the general dynamical model (1.43)
of the process under consideration. The design, however, is carried out as if
the process kinetics were known exactly . But, as we have argued many times
in this book, since the kinetics are most often poorly known, they are replaced
in the control law by suitable online estimates provided by one of the various
parameter estimators which have been described in Chapters 3 and 4, or
others which will be specifically designed in this chapter. Such a controller,
equipped with parameter estimation (see Fig.5.1), is called an adaptive
controller because it has the potential to adapt itself to variations in the
kinetics.
Conventional Control
Linearizing Control
— r e
and is guaranteed to be stabilised only locally but not over a wide range of
operating points or around the transient trajectory in fedbatch operation. In
the exact linearizing control approach we obtain a nonlinear controller which
is precisely designed to achieve a linear closed loop \Nh\ch is unconditionally
stable whatever the operating point or the transient fedbatch trajectory. This is
summarized in Fig.5.2.
256 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
The control objective and the principle of linearizing control are presented,
formalised and illustrated with simple examples in Section 5.1. Some basic
notations and definitions used in the sequel and an essential remark on the
closed loop stability are also given.
In Section 5.3 we treat the adaptive linearizing control problem when the lack
of knowledge of the kinetics φ (ξ ) is explicitly taken into account (by
incorporating online parameter estimation in the control law) but under the
assumption that the yield coefficients are known. Two particular cases are
considered : substrate control and product control.
A general solution to the problem is also presented in Section 5.4 for a class of
CST bioreactors. The concept of relative degree is introduced.
In Section 5.5, we treat the adaptive linearizing control problem in the case
where both reaction rates φ (ξ ) and yield coefficients are unknown. The price
to pay, however, is that more restrictive structural assumptions are to be
considered.
In Section 5.7 a first case study is carried out in detail : it concerns the adaptive
linearizing control of fedbatch bioreactors. The goal is to give a concrete
illustration of the design procedure and to emphasize the benefit to be
expected from using adaptive control in practical engineering applications, in
particular when a yieldproductivity conflict occurs. A comparison with optimal
control is also presented.
^ = Κ φ (ξ ) Ο ξ + F Q (1.43) = (5.1)
Ν
V
Σ C\ (5.2)
i=1
u = Fj for some i
F = bu + f (5.3)
b"^ = [bi,b2,...,bN] b| = 1, bj = 0 Vj^i
f^=[fl,f2...fN] fi = 0, fj = Fj Vj^^i
^ = Κ φ ( ξ ) Ο ξ + bu + f Q (5.4)
Throughout the chapter it will be assumed that f and Q are measured online
and that ξ is known online either by measurement or from an asymptotic
observer (Section 3.3).
dt "Χ Γ
=' 1 0 • + "ο ' Ό " (5.5)
Si ki 0 .Φ 2. Si Fi 0
0 1 X2 0 0
X2
k3 k2 0 0
S2 S2
0 ke 0 Qi
.0. Q2
.P2. .k4 ks. .P2.
y = CiSi + C 2 S 2 (5.6)
where ci and C2 are the unit conversion constants from (g/l) to (g COD/I).
Suppose, in addition, that the influent feed rate Fi is the control input. It is
easy to check that, in this example :
CT = [0 ci 0 C2 0 0]
bT = [0 1 0 0 0 0]
f=0
The control objective is to track a reference output signal denoted y*(t). In the
special case of a constant reference, y*(= constant) is called the set point, and
control is called regulation.
260 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
Step 1. The first task is to derive an input/output model (abr.: I/O model) by
appropriate manipulations (e.g. successive differentiations) of the
general dynamical model (5.4). This model takes the form of a δ ^^^
order differential equation:
d^
^ = f o ( t ) + u(t)fi(t) (5.7.a)
dt^
Step 2. A stable linear reference model of the tracking error (y*(t) y(t)) is
selected as follows:
.i λ Η · ^ [ γ * ( ί ) y(t)] = 0 λ ο =1 (5.7.b)
Chap.5. ADAPTIVE CONTROL OF BIOREACTORS 261
y*(t)y(t)
Step 3. Finally the control design consists of calculating the control action u(t)
such that the input/output model (5.7.a) exactly matches the reference
model (5.7.b). This is achieved by eliminating {d^y/d\^) between both
equations. The solution, as can readily be seen, is written:
δ 1 d' d^v*
u(t) = fo(t) + Σ X5_~[y*(t) y(t)] + ^ (5.7.C)
fi(t) \=o dt^
262 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
In this chapter we shall examine three ways of solving the linearizing control
problem for bioprocesses described by the model (5.4). They are arranged
according to the complexity of the assumptions regarding the prior knowledge
available . We first give some simple examples.
s—C\
for which the dynamical model (1.52)(1.55) holds :
dX
= μ (Χ ,8)Χ ϋ Χ (5.8.a)
dt
dS
= k1μ (X,S)XDS + F (5.8.b)
dt
^ ( 8 * 8 ) + λ ι (8*8) = 0
X,(SS)=f
The linearizing control law is the expression of the feed rate F which satisfies
this equation, that is :
Case 2. Suppose now that the feed rate F is expressed as follows (see
Section 1.5.5) :
F = DSin
and that we want to use the dilution rate D as the control action. It is
straightfonvard to see that the linearizing control law is written :
^ _ λ ι ( 8 * 8 ) + Κ ι μ (Χ ,8)Χ
Sin"S
d^X _ 3φ dX ^ 3φ dS _ ^ d X
dtvdt; ax dt as dt dt
Then, substituting (5.8.a) and (5.8.b) for (dX/dt) and (dS/dt) in this equation, we
obtain :
264 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
d^ . d
— ( X * X) + λ ι ^ ( X * X) + λ 2(Χ * X) = 0
dt clt
^ + λ , ^ = λ 2(Χ *Χ )
dt^
A fedbatch bioreactor is, by definition, operated during a finite time. The goal
is generally to exponentially accumulate some reaction product, which is
harvested at the end of the operation. In mathematical terms, this means that
some state variable follows an exponentially growing trajectory, which is
characteristic of an unstable behaviour. As a matter of fact, in many instances,
this exponential trajectory can be made more or less optimal by regulating
some other state variables at appropriate reference values. Hence the goal is
Chap.5. ADAPTIVE CONTROL OF BIOREACTORS 265
clearly not to stabilise the process globally but rather to keep an unstable
trajectory under control. This issue, which has also been pointed out by other
authors (see the bibliography), will be illustrated in depth in Section 5.7.
In contrast, it is obviously clear that, for CST bioreactors, the global stability of
the closed loop is a primary requirement which has to be checked in advance
by the control designer. Unfortunately, depending on the particular form of the
kinetics, the same method of designing a linearizing controller may produce a
stable as well as an unstable closed loop. Furthermore, checking the stability
beforehand with the aid of a process model is hazardous in our context of
minimal modelling of the kinetics, since our aim is precisely to propose
adaptive feedback control strategies when the kinetics are poorly known and
hence when a full process model is not available. Our best recommendation is
therefore to experiment very carefully with new controllers on bioreactors.
Example
Consider the basic microbial growth process (5.8.ab) with the linearizing
control law (5.8.c) to regulate the substrate concentration S at the constant set
point S*.
Suppose first that the specific growth rate μ (3) depends only on the substrate.
Then it can be easily checked that, if μ (8*) > D, there is no equilibrium state in
closed loop. The dynamics of the biomass growth tend asymptotically to :
^ = WS*)D]X > 0
On the other hand, if the specific growth rate μ (Χ ,8) depends on both biomass
X and substrate S, then the closed loop has an equilibrium state defined by :
which can even be globally attractive, depending on the shape of the function
μ (Χ ,8).
Hence we see that the same control law applied to the same process may give
either a globally stable or a completely unstable behaviour: it is just a matter of
how the kinetics depend on the biomass concentration, an issue which is very
poorly known in most practical applications.
In this section we shall establish a general method for the design of linearizing
controllers based on socalled "fully reduced" models which are obtained by a
systematic application of the singular perturbation technique (Section 1.8).
The theory is presented first. Its biological motivation is then discussed and
illustrated with three typical examples.
5.2.1. Theory
a) there exists a state partition ξ "^= [ξ ^, ξ [], κ "^= [KJ, Κ [] with dim(ξ f) = Μ and Kf
full rank. The components of are referred to as the "slow" components
and those of ξ i are the "fast" components.
Chap.5. ADAPTIVE CONTROL OF BIOREACTORS 267
= Ks9 + Fs Qs (5.9.a)
dt
Κ ,φ + F, Q, = 0 (5.9.b)
y= cIξ s (5.9.C)
Since Kf is supposed to be full rank, it follows from (5.9.b) that the vector φ (ξ ) of
reaction rates can be written :
φ (ξ ) = Κ Γ ν Ρ ,α ,) (5.10)
dy
= D y + C^J(F Q) (5.12)
dt
We now turn to the control design problem. Substituting (5.3) into (5.12), we
get the following input/output fully reduced model:
dy
^ = Dy + C^Jbu + C^J(fQ) (5.13)
dt
We suppose that:
268 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
Cs J b ?t 0
We select a first order reference model for the tracking error (see the definition
(5.7.b)):
^ ( y * y ) + Xi(y*y) = 0 (5.14)
The process is described by the model (5.5)(5.6) which is clearly not "fully
reduced" although it already results from a reduction by singular perturbation
(see Section 1.8.4). In order to perform the full reduction, we select the
following state partition :
Chap.5. ADAPTIVE CONTROL OF BIOREACTORS 269
ξ 3 = Xil 4f=rP
Pii l (5.16)
Si LP2J
X2
S2.
We notice that the "slow" state involves the two substrate concentrations Si
and S2, a combination of which is to be controlled, since (5.6):
Ks = 1 0 0 kg (5.18)
ki 0 Lk4 ksJ
0 1
Lka K2J
ks 1
(5.19)
k4k6 k4
ks 1
"Qi" Qi (5.20)
K4K6 K4
.92j _Q2_ LQ2J
Substituting (5.20) in the first four equations of the model (5.5) leads to the
"fully reduced model" (compare with (5.11)) :
270 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
d_
= D •χ Γ +Ό " +" 1 0 "
dt "Χ Γ
Q;
k4ke k4
Si Si Fi ki 0 LQ2.
X2 X2 0 0 1
.S2. .S2. .0. k3 k2.
J(FQ)
dv
Qi (5.21 .a)
• ^ = D y + CiU + [ei Θ 2]
LQ2J
i
C|jb CsJ(fQ)
with :
Δ Cikik5C2(k3k5 + k2k4)
(5.21 .b)
k^k^
Δ Ciki +C2k3
θ 2= , (5.21 .C)
It is worth noting that this control law not only makes use of the measured
output y (which is the pollution level we want to control) but also of the other
Chap.5. ADAPTIVE CONTROL OF BIOREACTORS 271
Motivation
We consider that the process is described by the model (1.65) and we select
the following set of fesf state variables :
ξ ί = [ 8 ι . 8 2 . S4, P i ] T
272 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
where we recall that Si is the influent organic substrate, S2 is the acetic acid,
S4 is the hydrogen and Pi is the methane.
(5.24)
u = Fi (5.25)
Then the (fairly tedious) calculations of the fully reduced model lead to the
following input/output dynamics if Q3 is assumed to be negligible :
dy
= DyieiQi +e2U (5.26.a)
dt
with :
^ ko2k84k43^ ^ 'k84^
Θ ι =Κ 63 ksa + (5.26.b)
^04^42 1^04/
Chap.5. ADAPTIVE CONTROL OF BIOREACTORS 273
(dyVdt) + X,(y*y) + D y 9 i Q i
u = Fi = 5 (5.27)
«2
We suppose that the process is described by the model (1.64) and we select
the following set of "fast" state variables :
ξ ί =[8,0,ρ Γ (5.28)
274 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
L kg kg J
dy_
= Dy + θ ι Ο ι + θ 2 α ΐ η + θ 3Ρ ι (5.30.a)
dt
with Qi the CO2 gaseous outflow rate, Qjn the oxygen transfer rate and :
rkik4 kgkg
θ ι = (5.30.b)
ν ^2 kg '"
fkik4k9 kskskg^
θρ = (5.30.C)
k2k6
fk|k4k8 k3k5k8 k4
03 = (5.30.d)
k2k6
4
kskg k^ke^
Θ = k7 (5.30.e)
~ϊ <6 kT";
Control law
d/
+ λ ι (χ * y) + Dy Q^Q^ - 02Qin} (5.31)
I dt
The practical implementation of the control law (5.15) requires the knowledge
of the yield coefficients which are present in the matrix J = [IN_M KsKf^]. It
may arise, however, that some of these coefficients are either badly known or
timevarying and, hence, that the linearizing controller is not well adapted to
the process. The remedy offered by control science in that case is known as
Adaptive Control. It is a design methodology which provides controllers or
regulators capable of adapting themselves to modelling uncertainties.
dy
= Dy + e"^Jo(bu + f Q) = Dy + θ "^φ (Ρ ,α ) (5.33)
dt
Δ
where φ (Ρ ,Ο ) = Jo(bu + f Q) is a socalled linear regressor.
^ = h(y.F,Q) (5.35)
Lyapunov design
Taking the time derivative of W(t) and using (5.33) and (5.35), we obtain :
(5.40)
^ = YiQi(y*y) (5.42.a)
Ο θ 2
= Y2Q2(y*y) (5.42.b)
dt
Although the theory may seem rather involved to those who are not familiar
with adaptive systems, it is worth noting that it leads to a very simple control
structure in practice, as is illustrated by this example.
^=^(F,Q)(yy) (5.43.b)
with ω and γ being scalar design parameters (which play the same role as the
matrices Ω and Γ in (3.70)).
Chap.5. ADAPTIVE CONTROL OF BIOREACTORS 279
It is interesting to notice that the adaptation law (5.43.b) is quite parallel to the
preceding one (5.41 .a), the only difference being that the tracking error (y* y)
is replaced by the observation error (y y).
The corresponding adaptive control law is then just obtained by using (5.36)
but with θ provided by (5.43.b).
(5.43.b)
The stability analysis of indirect adaptive control is carried out under the
following realistic assumptions.
A.5.1. The reference signal y*, its time derivative dyVdt and the measured
signals F and Q are continuous bounded functions of time t.
A.5.2. The initial parameter estimate θ (0) belongs to a closed ball Be c: iRdime^
centered on Θ , such that each GgBq has all nonzero components.
W(e,e) = + θ ^θ ) (5.46)
dW 2
(5.47)
dt = (ΰ γ β
Part a) follows.
Prom Assumption A.5.1 and (5.44), φ (Ρ ,Ω ) and hence (de/dt) are bounded.
Therefore e(t) is continuous and (5.49) implies part b).
QED.
Chap.5. ADAPTIVE CONTROL OF BIOREACTORS 281
Fig.5.4. Be
^ ( y * y ) + λ 1(y*y) = • ^ + ω e (5.50)
That is the tracking error (y* y) is the output of a stable linear filter driven by
the observation error e. Then the convergence of e to zero (Lemma 5.1)
necessarily implies the convergence of (y* y) to zero as stated in the following
theorem.
Theorem 5.1. For the adaptive control law (5.36) with the parameter estimator
(5.43) applied to the system (5.33), under Assumptions A.5.1 and A.5.2, the
tracking error (y* y) converges asymptotically to zero :
lim|y*(t)y(t)| = 0 (5.51)
282 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
dy
= Dy I CiU I e^Qi i &2Q2 + ω (y y) (5.52.a)
dt
de
(5.52.b)
dt = 7 Q i ( y y )
d&s
= 7Q2(yy) (5.52.C)
"dT
dy*
U = Ci^ + Xi(y* y) I Dy θ ι Ο ι &2Q2 (5.52.d)
V dt
This indirect control law has to be compared to that obtained by the direct
method (5.42).
So far, we have supposed that the process control input u = Fj (see (5.3)) is the
feed rate of some external substrate which is introduced into the reactor
independently of the dilution water stream. An alternative (see Fig.1.10),
which is common in industrial practice, is to suppose that the feeding substrate
is diluted in the water stream and to use the dilution rate as the manipulated
variable to control the process (Fig.5.5). in that case, the derivation of the
control algorithm is a direct consequence of our previous theory. Indeed, the
I/O fully reduced model, (5.12), is simply rewritten :
^ = D(C|jSj,y)C^JQ (5.53)
Chap.5. ADAPTIVE CONTROL OF BIOREACTORS 283
computer
contro
concentrated action
substrate u=D
Tlutionl^
tank Sensors
The principle of linearizing control then produces the following control law
(compare with 5.15) :
^^x,(S3S3)e,Q, ^^^^
The process has been operated during more than 150 days under an indirect
adaptive version of the control law (5.56). However the parameter adaptation
was applied only to the parameter Θ 2 because the value of θ ι was known
from a preliminary identification study :
θ ι =0.94gr.COD/lit (5.57)
yM = — (5.58) (5.59)
λ f (TDtSin.t)Yt
The forgetting factor λ was set to 0.9 while a sampling period Τ = 2 days was
used. The adaptive controller was thus constituted by the control law (5.56)
rewritten in discrete time as follows :
1) During the first part of the experiment (until the 65^·^ day), we observe an
excellent behaviour of the control system which keeps the actual propionate
concentration S3 very close to the set point. The regulation is robust against
a big step of influent organic matter on day 38, from 40 g COD/I to 50 g
COD/I (Fig.5.6.a).
2) On day 66, the regulator has been switched off and the process operates in
open loop with a slightly increasing dilution rate. We see that the process is
rapidly destabilised and that propionate is exponentially increasing.
3) On day 82, the regulator is switched on again and brings the propionate
concentration S3 back to the set point.
4) The control law (5.60) takes advantage of the online measurement of the
methane gas flow rate Q i (Fig.5.6.d) which gives valuable online
information on the biomass activity.
286 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
0.04
0.02H
time (days)
^ = Κ Ο (ξ )α Ο ξ + bu + f Q (5.62)
Crucial comment:
The reader is advised to notice that, in this section (unlike in the previous one)
we suppose from the beginning that the process model is parametrized by a
set of unknown parameters a. This motivates an immediate search for
adaptive controllers, i.e. controllers which are able to cope with parameter
uncertainty and nonstationarity.
The problem is to find an adaptive control law u(ξ ,f,Q,ά ), which is a function of
the measurements ξ , f, Q and of online estimates ά , such that the dynamics of
the tracking error (y* y) are governed, at least asymptotically and in the
neighbourhood of the reference trajectory y*, by stable linear dynamics. This
is called
Finally, the third situation concerns a particular class of continuous stirred tank
bioreactors. It will be presented in Section 5.4.
Here we suppose that one of the components involved in the controlled output
y is precisely the external substrate which is used as control input. That is the
vectors b and C are such that: C^b Φ 0.
From the state space model (5.62), we readily derive the following I/O
dynamics :
^ ( y * y ) + λ 1(y*y) = 0 (5.65)
= ω ψ ο + ( ω 0 ) ξ α ι Ρ (3.93.b) = (5.66.b)
dt
da _
(3.93.C) = (5.66.C)
— = Γ ψ (ξ ψ ο ψ α )
Γ (0) >ο (3.93.d) = (5.66.d)
dr
— = Γ ψ ψ '''Γ Ι λ ψ
The full adaptive controller is thus the combination of the control law (5.64)
and the parameter estimator (5.66) with α substituted by ά .
C'^b = Ci ^ 0 (5.68)
dy
= [(C2K3 CIKI) XiSi C2K2X2S2] «1 D y + CiU (5.69)
dt
«2.
Practical implementation
Let us suppose that the output pollution level y, the acetic acid concentration
S2 and the methane gas flow rate Q i are the only measurements which are
available online. We shall see how to implement an adaptive version of (5.70)
by using the algorithmic tools which have been proposed in the preceding
chapters. First of all we have, from (5.67.b):
y C2S2
SI = (5.71)
DZ2
= D2, (5.72.a)
dt
d^a
= DZ3QI (5.72.b)
dt
Xp = (5.72.C)
KE
dS
= k i X i S i a i DSi 1F1
dt
dSg
= k3X.|S)(X| — k2X2S2CC2
"dT
dvi
= ω ψ ι + X i S i (5.73.a)
dt
d¥2
= ω ψ 2 + X2S2 (5.73.b)
dt
= ω ψ ο ι Η (ω D) Si ι Fi (5.73.C)
dt
d¥o2
= ω ψ ο 2 + (ω D) $2 (5.73.d)
dt
d . . ,
= rTkiyi kgYi Si Ψ 0 1 +Ι <ι Ψ ι ά ι (5.73.e)
dt α ^Ί = 1 κ
^2} [ Ο k2y2lS2Yo2k3Viai+Ι <2Ψ 2ά 2]
dr (5.73.f)
dt = Γ ψ ψ '''Γ ι λ Γ
with :
ki¥i 0 (5.73.g)
[kgyi k2V2j
This equation does not involve the control input u so that it is useless for the
design of a linearizing control law. Now, if we differentiate ( 5 . 7 7 ) , we obtain,
thanks to (5.75) :
2
^ = 9 ο ( ξ . « . ^ ) + 9ι (ξ .α ) (f Q) + ς ι (ξ .α )6υ (5.79.a)
with
(5.79.b)
• ^ ( y * y) + λ 2 • ^ ( y * y) + λ 1(y* y) = 0 (5.80)
dt^ dt
The principle of linearizing control requires the calculation of the control law
u ί ξ , α , ^ l in such a way that (5.80) is satisfied with dy/dt and d 2 y / d t 2 .
V dt y
respectively, given by (5.77) and (5.78). The solution is as follows :
We see that this control law not only depends, as before, on the unknown
value of the specific reaction rates a, but also on their derivatives da/dt. This
apparent difficulty, however, is easily resolved : we replace α by an online
estimate ά , and da/dt by da/dt (see 5.66.c) in order to make the control law
adaptive.
Chap.5. ADAPTIVE CONTRCDL OF BIOREACTORS 295
d_rv.n
dt
Γ
1 1 1 " XSC0 0 Τ α ι ' D X' + • 0 • " 0 •
ki -k2 0 0 XS 0 «2 S
0
0 k4 k3 0 0 XECL«3j Ε
0 0
ks 0 ke C Qin 0
L kg kg _
.P.
0 .Qi.
(5.82)
According to (5.75), we verify that C'''(F Q) = 0 and C^b = 0, and also that,
according to (5.76) : c ' ^ K ^ [ G ( ξ ) α ] b = k4Xa2 ^ 0.
Equations (5.77) and (5.78) are specialised as follows :
dE
= k4XSa2 kaXECos D E (5.85)
dt
j2.
^ = g o ί ξ . α . 7 ? V g 1 ( ξ . α ) [ f Q + bu)] (5.86.a)
dt^ V dt y
with :
296 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
with
( dα ^
go ξ , α , — = (a2k4S aakaEC) (XSCa^ + XSa2 + XECag DX)
V at y
a2k4X ( kiXSCai k2XSa2 DS)
( D + a3k3XC)(a2k4XS a3k3XECDE)
dap dap dD
+ k4XS — ^ k 3 X E C — ^ Ε ^ (5.86.b)
dt dt dt
Comment
Model description
^ = Κ Ο (ξ )α Ο ξ Β ξ + F (5.87)
We suppose that:
F = bu (5.88)
^ = g(ξ ) + bu (5.89)
Δ
WITH 9(ξ ) = Κ 0 ( ξ ) α 0 ξ Β ξ
298 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
Technical definitions
Let Μ (ξ ) : [RN ^ (RN denote a real valued vector function. The gradient of h,
denoted Vh, is the following matrix :
9hi 9hi
9ξ 7
(5.90)
9h, ahN
3ξ ι
Ν
9hj
j= 1 Ν (5.92)
i=1
We then notice that, with these definitions, the model (5.89) can be rewritten :
Chap.5. ADAPTIVE CONTROL OF BIOREACTORS 299
$ =ν α ξ +ό υ (5.95.a)
dt y
γ = θ "^ξ (5.95.b)
The relative degree δ of the model is the smaller integer δ such that:
The next step is to derive an input/output model in order to be able to apply the
linearizing control principle. This is done as follows. We first differentiate the
output equation (5.95.b) :
c'^b = c X ξ ; ^ 0
^ =θ \ ξ (5.99)
300 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
^ = Ο ^ν ^ξ + c X ( V g ξ ) u (5.100)
^ =Ο ^ ξ + cX(Vg^^ξ )u (5.101)
We see that the meaning of the concept of relative degree δ is that we have to
differentiate the output y δ times before terms involving the input u appear on
the right hand side of the input/output model (5.101).
With the inputoutput model (5.101) at hand, we are in a position to design the
control law. We adopt a reference model (5.7) of order δ , that is :
^δ 1
• ^ ( y * y) 4 λ 1 ^ ( y * y) + + λ δ (y* y) = 0 (5.102)
dt^ dt^^
^1
u(ξ ,α ) = [ c X (ν ^'ξ )_
dt V dt ^
(5.103)
As will by now be familiar to the reader, an adaptive version of this control law
is obtained by replacing the nonmeasured states and the parameter α by on
line estimates provided by the algorithms described in Chapter 3.
Chap.5. ADAPTIVE CONTROL OF BIOREACTORS 301
We suppose that the bioreactor dynamics are described by the general state
space model (1.49) :
^ = Κ Ο (ξ )α Ο ξ Q + F (1.49) = (5.104)
y = C|ξ 1 (5.105)
3) On the other hand, there exists a nice partition (ξ 3, ξ b) and an auxiliary state
(see Sections 1.7 and 3.3.1) :
Ζ = Α ο ξ 3 + ξ 6 = Α ι ξ ι +Α 2ξ 2 (5.106)
302 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
Under these assumptions, it follows that the state space model (5.104) is
equivalent to :
(1ξ
' = Κ ι Θ (ξ ι , A^(Z Α ι ξ ι ))α Ο ξ ^ + Qi (5.108.a)
dt
dZ
= DZ + F b Q b (5.108.b)
dt
The problem is to control the system (5.108) with K i , α and Ζ being unknown.
As we have argued in Chapter 4 (Section 4.2.2), the term KjGa in (5.108.a)
can be reparametrized as follows :
^ = DZ + F b Q b (5.110.b)
The technique for constructing this model (5.110) will be illustrated in Section
5.7 with a simple practical example.
Chap.5. ADAPTIVE CONTROL OF BIOREACTORS 303
We now suppose that the control input is the feed rate of one external
substrate chosen so that:
This means that the system has relative degree one and, therefore, that the
input/output model is obtained from (5.105) and (5.110) as follows :
| ^ ( y * y ) + λ 1(y*y) = 0 (5.113)
(5.114)
In practice, the auxiliary state Ζ and the parameter vector θ are unknown. As
before, they will be replaced by online estimates so as to make the control law
(5.114) adaptive. On the grounds of Chapter 3, a natural asymptotic observer
for the online estimation of Ζ is obtained as follows from (5.110.b) :
304 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
On the other hand, both direct and indirect parameter adaptation laws can be
derived, which are similar to the ones of Sections 5.2.5 and 5.2.6.
de
= Γ Φ (ξ 1,Z)(y*y) (5.116)
dt
In this case, the solution is clearly to use one of the parameter estimators
(4.38) (4.39) which were introduced in Section 4.2 for the design of adaptive
observers. Here also, the closed loop stability may be demonstrated by an
argumentation similar to that of Section 5.2.6.
In the case where the control feed rate is chosen in such a way that condition
(5.109) is not satisfied, it is clear that the system has a relative degree higher
than one. The solution is then to extend the theory which has been developed
in Sections 5.3 and 5.4 when the yield coefficents are known. It will not be
pursued here.
Chap.5. ADAPTIVE CONTROL OF BIOREACTORS 305
We would like in this section to draw the reader's attention to some practical
problems which may arise in the implementation of adaptive linearizing control
laws in bioreactors.
0<u(t)<Umax (5.117)
Let us also mention one classical problem of integral control in the presence of
bounded inputs : the reset windup. When the input reaches the bounds, the
integrator still integrates the regulation error : this may lead to undesirable
oscillations and degradation of the control performance. This problem can be
easily avoided by using an antirest windup mechanism. Let us give an
example.
S—Cx + P (5.118)
with φ = aSX
θ = kiaX (5.120)
the discretetime version of the direct adaptive linearizing controller, with input
saturation and antireset windup mechanism, is written as follows :
Xi(S*St) + etSt
u» — · (5.121 .a)
0 ifD,°<0 (5.121.c)
(5.121.d)
θ ,,ι =h, + Y T S , ( S S.) + (D, Df) ^ ' " 1 " ^ (5.121 .e)
5>t
In the above equations, Df is the value of the dilution rate which is calculated
by the control law (5.120) and Dt is the value which is effectively applied Xo the
bioreactor. The last terrn of the adaptation equation (5.121 .e) is the antireset
windup mechanism : when the input Dt saturates, the integral adaptation law is
reset to a value that gives 0 or Dmax. respectively.
308 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
It is straightfonvard to see from the general dynamical model (5.1) that, for any
process component, the relative degree is always equal to one when the
dilution rate D is chosen as the control input. Therefore it appears a priori very
attractive to directly use, for the synthesis of the linearizing control law, the
dynamical equation of the component to be controlled. Due to the presence of
the input bounds, this might easily give disastrous results when the controlled
variable is a product or a biomass, as we now illustrate.
Let us consider the example of basic microbial growth with a synthesis product
(5.118) already considered above. From (5.119) we can directly synthesise the
following linearizing control law for the regulation of Ρ with D as the control
input:
λ ι (Ρ *Ρ )Κ 2φ
D^ = - — — (5.122)
k i = 2 , k2 = 0.5
Sin(O) = 5 g/l, D(0) = 0.2 h1, S(0) = 1 g/l, X(0) = 2 g/l, P(0) = 1 g/l
λ ι =1
Chap.5. ADAPTIVE CONTROL OF BIOREACTORS 309
0.25
τ
2 4 6 8
time (hours)
Fig.5.7. Effect of input saturation on the llinearizing control of Ρ with D
The process is initially in open loop. At time t = 1 hour the influent substrate
concentration Sjn is set to 7 g/l. The loop is closed with the control algorithm
(5.122)(5.121.b,c,d). P* has been set to 1.5 g/l. Note that this set point is a
priori accessible, since it corresponds, with the new value of Sjn equal to 7 g/l,
to a stable equilibrium point, defined by the following input and state variable
values :
310 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
However, the controller appears to be unable to drive the process to it. Indeed,
the control input D is instantaneously set to zero (Fig.5.7.b); there is an
increase of the product concentration which stops when all the substrate which
remained in the bioreactor has been consumed. By that time, φ has become
equal to zero since S is equal to zero. Because the increase of Ρ is not large
enough, D° remains negative, the batch operation (D = 0) goes on and Ρ will
never reach the desired value P*.
Another example will be given in Section 5.8, showing the control of the
production rate of a gaseous product.
One solution to this problem has been suggested in the literature (see the
references): it consists of trying to reach the final set point P* stepbystep by
introducing intermediate reference values within a "setpoint definition"
mechanism. Another possible approach is to change the control law either by
choosing a feed rate Fj (and not the dilution rate D) as the control input, or to
follow the procedure proposed in Section 5.2.7, i.e. to derive a controller with
an external substrate Fj as the input and then rewrite it by choosing the dilution
rate D as the manipulated variable. By comparing (5.121 .a) with (5.122), we
see that (5.122) contains an explicit feedforward term Sjn and that its
denominator is usually positive.
Our purpose in this section is to highlight the issue of the adaptive control of
bioreactors by discussing in detail its application to a specific class of simple
fedbatch processes. The aim is not only to describe the design procedure but
also to emphasize the benefit which is to be expected from using adaptive
control in practical engineering applications.
dX
= μ (8)Χ DX (5.126.a)
dt
dS
= Ι <ι μ (8)Χ k2v(8)X D8 + DSi^ (5.126.b)
dt
^=v(S)XDP (5.126.C)
dt
ξ ι =8 ξ 2 = [Χ Ρ Γ (5.128.a)
K i = [ k i 0] K2 = 1 0 (5.128.b)
0 1
Fi = D8in F2 = [0 of (5.128.C)
γ = ξ ΐ =8 Ci=1 (5.129)
^a = [X P]^ ^b = S (5.130)
Z = S + kiX (5.131)
^ = D Z + DSin (5.132)
X= ^ ^ (5.133)
From (5.127) and (5.133), the input/output dynamics are written (recall that y =
S):
dS
^ = S(ZS)a DS + DSin (5.134)
dt
Notice that this equation is in the format of the model (5.112) with :
Φ (ξ ι ,Ζ ) = 8 ( Ζ 8 ) θ =α (5.135)
u = Sin (5.136)
314 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
^ = •2+DSjn (5.139)
^ = YiS(2S)(S*S) (5.140)
doc
Comment
W(S.a7) = + γ Τ ^ά ^ + (5.141)
0<D^i,<D(t) Vt
H3. The minimum dilution rate Dmin. the design parameter λ ι and the constant
Co are chosen such that:
316 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
{S(0).a(0).2(0)}6D
Proof. First, it can easily be shown that the upper bound in H3 and H4
(together with the positivity of ά ) implies that the influent substrate
concentration Sin(t) is positive for all t. Straightforward calculations then show
that the time derivative of the Lyapunov function W(S,a,Z) can be bounded as
follows :
dW
<λ ι δ 2Ο ζ 2Η α 8δ Ζ
dt
a(S*iCo)
<[|s , Iz Isl (5.147)
So far in this section we have been concerned with the design and analysis of
an adaptive regulator of substrate concentration for fedbatch reactors
characterized by the reaction scheme (5.123). Now the question arises : why
choose substrate regulation in fedbatch processes? There are several
answers to that question. One of them relies on the fact that substrate
regulation can constitute an efficient tool to manage the yieldproductivity
conflict which occurs in many practical applications. We shall illustrate this
point with an example. Bacterial production of amino acids (e.g. lysine) is
known to be inhibited by high substrate concentration. The dynamics of such
processes are described in the literature (see the references) by the state
space model (5.127), with a Monod model for the specific growth rate :
μ <8) = ^ (5.148)
0 S>— (5.149.b)
V1
Suppose now that the fedbatch operation has a fixed duration T. We define
the productivity as the final product quantity per unit of time :
PRi«Ii=M (5.151)
318 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
and the yield as the ratio of the final product quantity to the amount of substrate
which has been consumed :
P(T)V(T)
(5.152)
DSindx
These parameters PR and Yl are plotted in Fig.5.8 with respect to the set point
S*, for a series of simulations, performed with the model (5.127), (5.150),
under the adaptive control (5.138)(5.140). From this figure it clearly appears
that the set point S* (and obviously the associated adaptive controller) can be
viewed as a means to modulate the process between productivity
maximization (but with a low yield) obtained with S*=1, and yield maximization
(with a low productivity) obtained with S*= 2.
It must be clear that this conclusion holds even if the analytical models of μ (8)
and v(S) are unknown to the user, provided that they have the same shape as
in Fig.5.9. In that case, the optimization procedure should consist of looking,
over successive fedbatch experiments, for the best set point S*; that is, the set
point which corresponds, from the user's viewpoint, to the best tradeoff
between yield and productivity.
1 14 2
Fig.5.8. Final product quantity V(T)P(T) (x) and yield Yl (0) vs set point S*
Chap.5. ADAPTIVE CONTROL OF BIOREACTORS 319
1 2
Substrate Cone. S
We now consider the case where the biomass growth itself is inhibited by high
substrate concentration. We assume that the specific growth rate μ (S) is
suitably described by a Haldane law (1.20) :
k^ = 1 KM = 10 K, = 0.1 μ *=5
Fig.5.10 compares closed loop and open loop operations of the fedbatch
process. In both cases, the reactor is fed with the same amount of substrate.
In open loop, a constant input concentration Sjn(t) is used while, in closed
loop, Sin(t) is computed by the control algorithm (5.138)(5.140). One hour
after the end of the feeding period, X(t) has already reached its maximum
value. In open loop the substrate concentration S(t) increases rapidly to high
values which inhibits the growth and the final biomass concentration remains
below 10% of the value reached in closed loop.
S(0) (5.154)
, V M^W '^M'^I
,y ^ . J i V ^ X . ^ X (5.156)
In contrast with the adaptive regulator (5.138)(5.140) which just requires the
choice of the set point S*, it appears that the main drawback of this optimal
control is the need for a knowledge of the specific growth rate structure and, in
particular, of the constants μ *. KM and K|.
Ch^.5. ADAPTIVE CONTROL OF BIOREACTORS 321
: adaptive control
^—: optimal control
: open loop
υ
§
Υ
«ο
ο
φ
S*=i
TIME (H)
5 g
c
2 Ο
TIME (H)
' Γ · 1 ' R '
>
TIME (H)
TIME (H)
10 20
X o adaptive control
optimal control
ο
§
υ
Μ
Μ
Ι
ο
ω _1 time^ (h)
Τ 1 1 ' Γ
'Ο 10
^ 2
Ο
C
/
ο /
ο S* = 0.9
φ /
η
Ώ
time (h)
1 1 Γ τ ^
1 ο 10 20
/
ο
/
2 ^ /
/ c
/ /
g o
^
,
time (h)
1 I 1 1 τ
10 20
Fig.5.11 shows the better robustness of the adaptive controller towards that
inaccuracy. Although the biomass production is no more optimal, it remains
very close to the optimum, while the (open loop) optimal controller diverges
completely form the optimal trajectory, which induces a loss of more than 50%
of the production.
(5.157)
Q= k29 (5.158.b)
where Q is the gaseous outflow rate of the synthesis product Ρ and where the
reaction rate φ can be expressed as follows according to (1.53) (1.54) :
φ =μ Χ (5.159.a)
= aSX (5.159.b)
Assume that the objective here is to regulate the gaseous production rate Q at
a desired level Q* by acting on the dilution rate D.
energy demand. As a matter of fact, we can expect that the optimal desired
value Q* will be an increasing function of the available influent substrate
concentration Sin(t). as illustrated in Fig.5.12. The control objective consists
here of regulating the methane production rate Q at a desired value Q* by
acting on the dilution rate D. Sjn may be chosen so as to define an "optimal"
value of Q*, which itself corresponds to the energy demand.
Sin(g/'1
Fig.5.12. Q* = f(Sin)
A bad solution consists of using equation (5.159.a) (which does exhibit the
explicit dependence with respect to S) as a basis for the time derivation.
Indeed , we then obtain :
(5.160)
with :
1 ^Ι μ
(5.161)
The simulation has been performed under the following conditions. A Monod
model (1.18) has been chosen for the specific growth rate μ :
μ *5
μ = (5.162)
KM + S
X(0) = 0.095 g/l. S(0) = 0.4 g/l. Sin(O) = 3 g/l, D(0) = 0.2 di
ki = 27.3 k2 = 75 |2d/g.h
Dmax = 0.39 d ^
The process is initially operated in open loop (without control) with a white
noise input signal D(t). At time t = 72. Sjn has been set to 3.4 g/l, and according
to Fig. 5.12, Q* has been set to 1.58 l/h. The gain of the controller λ ι is equal
to 1 h1. The dilution rate is instantaneously set to zero. It remains at this
bound and Q tends to zero (since S, and therefore μ (8), tends to zero).
dQ
= Θ ι 80 + OaQ + D Q [ ^ 2 (5.163)
dt
with :
[θ ι , θ 2. Θ 3] = ilL I d a (5.164)
" · k2' α dt
328 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
The adaptive linearizing adaptive control law then specialises here as follows :
In practice, we have to take account of the physical bounds on the flow rate
and the control law is then implemented as follows :
In (5.165) and (5.166) 0 ° is the value of the control input calculated by the
computer, and D is the input value which is effectively applied at the control
value.
1.6
Q
1.5
1.4
0.4
0.3
This control law (5.165) appears to be more effective. This is mainly due to the
explicit dependence of Q on the limiting substrate S. This is illustrated in
Fig.5.14, which shows the performance of the controller (5.165) in the same
experiment as in Fig.5.13.
0.4
0.3
0.2
0.1
0.0
2.0 s.
\
\
Sin/2
1.0
0.0
0 100 200 300 400
The simulation has been performed in almost similar conditions as before but
with the following initial conditions :
X(0) = 0.04 g / l , S(0) = 1.9 g/l, Sin(O) = 3 g/l, D(0) = 0.33 dl
>in
g=Q 2 (5.168)
It is clear that for values of ω different from zero, division by zero is avoided.
Note that, in the steadystate (dOO/dt = 0), the control law (5.168) reduces to
the preceding one (5.165).
04
Dt
0.2
0.0
2.0
' ^'
1.0
t
0.0
0 100 200 300 400 <h)
Section 5.0
Section 5.1
The be
:
Hoc K.H. and J.C. Kantor (1986). Linear feedback equivalence and control of
an unstable biological reactor. Chem. Eng. 46, 385389.
Hoo K.H. and J.C. Kantor (1986). Global linearization and control of a mixed
culture bioreactor with competition and external inhibition. 82,
4362.
The
The stability analysis of indirect adaptive controllers (Lemma 5.1 and Theorem
5.1) follows the argumentation in:
Renard P., V. Van Breusegem, N. Nguyen, H. Naveau and E.J. Nyns (1990).
Implementation of an adaptive controller for the startup and steadystate
working of a biomethanation process operated in the CSTR mode.
Biotechnol. Bioeng., to appear.
Chap.5. ADAPTIVE CONTROL OF BIOREACTORS 335
A :
Renard P., D. Dochain, G. Bastin, H. Naveau and E.J. Nyns (1988). Adaptive
control of anaerobic digestion processes a pilotscale application.
3 1 , 287294.
5.3
:
of :
Section 5 . 6
of of
:
A
:
336 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
of is
in following of as
in 5,6.3 is
of of
also in :
Section 5 . 7
on of was in :
Section 5.8
The case study on adaptive control of the gaseous production rate is taken
from:
APPENDIX 1
Monod (1942)
μ *8(1)
μ (8) =
KM + S(t)
(1905)
μ if8(t)>KM
(1942)
8(t)
μ (8) = μ * 1 exp
ν K,
(Andrews, 1968)
μ ο 8(ί )
μ (8) =
KM + 8(t) + 8^(t)/K,
340 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
Moser (1958)
μ *8\ΐ )
μ (8) =
Κ Μ + 8\0
with λ > Ο
Powell (1967)
μ (8) = μ KM + 8(t) V K M + S ( t ) ^ 4 K M 8
2KML
with KM > Ο
Konak (1974)
with λ > 0
μ *8(0
b ) ^ =k μ
dt LKM + S(t)
with k: constant
μ Β (8) = Κ Β (8(08B)
μ ρ (8) = Κ ρ ( 8 ( 0 8 F )
Axelsson et al (1984)
^^""^ K [ S i n S ( t ) ] + S(t)
with Κ : constant
μ (8) = μ *S(t)
K[SinS(t)] + KM+S(t)
Jost et a/(1973)
with + μ 2=μ *
KiS
1)μ (8) =
K2+ 8^
Κ ι 8
2) μ (8) =
Kp + 8*^3
Ming et ai (1988)
μ (8) =μ
Verhulst (1838)
μ (Χ ) = μ * 1
with Χ Μ : constant
Appendix 1. MODELS OF THE SPECIFIC GROWTH RATE 343
Kono (1969)
μ (Χ ) = Κ χ Φ
with Κ χ = growth rate constant
Φ = apparent coefficient of growth activity
Φ = 0, induction phase
Φ = φ , 0 < φ < 1, transient phase
φ = at
Φ = 1 exponential phase
Cxc Cx
Φ =
CxM Cxc Cx
with Cxc: critical cell concentration
CxM : maximum cell concentration
Cx : cell concentration
(1959)
μ *S(t)
KcX(t) + S(t)
with Kc: saturation constant
(1977)
C(t)
μ (8,Χ ) = Ki
X(t)
dC
= K2S(t)[X(t) C(t)] K3C(t)
with C(t): cellsubstrate complex
K i , K2, K3 : constants
344 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
Kishimoto et al (1983)
μ (S,X) = K1S(t)K2X(t)
with K i , K2 : constants
Hinslieiwood (1946)
μ (Ρ ) = μ * Κ ι [ Ρ ( 0 Kg]
with K i , K2 : positive constants
Aiba et al (1968)
μ (P) = μ *e^''(«
with Ki : constant
Zeve/isp/e/(1980)
P(t)
μ (Ρ ) = μ * 1
HSgglund (1983)
μ (Ρ ) = Κ ι Κ 2
K3 + P
and (1979)
μ ο 5α )
μ (8,Ρ ) =
K M + S(t) + S^(t)/Ki
Jin a/(1981)
S(t)
μ (8.Ρ ) = μ ^ ^ ^ 3 ( ^ ^ exp {Κ ^Ρ ί Ο KgSd)}
with K i , K2 : constants
e/ a/ (1981)
S(t) Kp ρ ω ^
μ (8,Ρ ) = μ * 1
KM + S(t) Kp + P(t) PL J
346 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
Six) P(t)
a) μ (8,Ρ ) = μ
KM + Six) Kp + P(t)
. Six) Six)
b) μ (8,Ρ ) = μ
KM + Six) 8(t)HKpP(t)
with Kp : constant
8(t) Kp
μ (8,Ρ ) = μ *
KM+Six) + SHX)/K; Kp + P ( t ) l , PL j
Moulin et al (1980)
Aiba et a/(1968)
μ (3.Ρ ) = μ · '^'^'
K2P(t) KM + 8(t)
Appendix 1. MODELS OF THE SPECIFIC GROWTH RATE 347
O/sson (1976)
S(t) C(t)
μ (8,0 μ K^^s(t) Kc + C(t)
with Kc : saturation constant
• S(t) C(t) ^ 1
^ KM + S(t) Kc + C(t) + M2
i+KiC(t)
with Ki : constant
^2: specific endogenous respiration rate
2μ ΐ +μ 2=μ *
Kishimoto et al (1983)
ω μ (8.Ι ) = /^—L
KM + S(t) n . | 2 ( t )
μ (ρ Η ) = α ρ Η 2ι β ρ Η ι γ
with a, β , γ : constants
μ (ρ Η ) = α ρ Η ^ ι β pH (δ ι Τ ) ι γ
with α , β , γ , δ : constants
Appendix 1. MODELS OF THE SPECIFIC GROWTH RATE 349
3)μ (ρ Η ,8) = —
KM + 8H^ + ( 8 H Y / K i
with H+ : hydrogen ion concentration
pH : log H+
μ *8
b) μ (ρ Η ,8) =
KM 1 1+ + 77 + 8
μ *8
c) μ (ρ Η .8) =
^ K3
KM + 8
Η * Kb
I KJ
with Kg, K^: constants
Ο μ (ρ Η .8) = ^ ^
KM + S KH + H +
with KH : constant
KQH
e) μ (ρ Η .8) = ^
KM + S KOH+1/H^
μ *8 KH KQH
f) μ (ρ Η ,8) =
KM + S KH + H"" KQH + I / H *
350 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
μ *8 KH
g) μ (ρ Η ,8) =
^ 5 KH + H+ KOH + 1/H^
K,Μ
μ ·8 KoH
h) μ (ρ Η ,8) =
1+ iS KH + H"^ KOH + I/H"^
KM
μ *8
μ =
(Κ Μ + 8Η 8^/Κ |[1Η Κ 3/Η *])
μ (Τ ) = Ai e^i'""^ + A2 e^^'"'^ A3
with A l , A2, A3 : constants
E i , E2 : activation energies
R : gas constant
Hashimoto (1982)
μ σ )= α Τ β
with a, β : constants
Appendix 1. MODELS OF Τ Ή Ε SPECIFIC GROWTH RATE 351
Constantlnides (1970)
X(t) ^
μ (Τ .Χ ) = Ο ι σ ) 1
b2(T)
bi(T) = KiK2a(t)K3)^
b2a) = K 4 K 5 ( T ( t ) K 6 ) ^
Tamiya et a/(1953)
References
Ghose T.K. and R.D. Tyagi (1979). Rapid ethanol fermentation of cellulose
hydrolysate : II. Product and substrate inhibition and optimization of
fermentor design.Biotechnol. Bioeng., 2Λ , 13871400.
Hagglund T. (1983). Incubation time prediction in yoghurt manufacturing. In A.
Halme (Ed.), Modelling and Control of Biotechnical Processes,
Pergamon, Oxford, 307311.
Haldane J.B.S (1930). Enzymes, Longmans, London.
Hashimoto A.G. (1982).Methane from cattle waste : effects of temperature,
hydraulic retention time and influent substrate concentrationon kinetic
parameter (K). Biotechnol. Bioeng., 24, 20392052.
Hinshelwood C M . (1946). Chemical Kinetics of the Bacterial Cell. Oxford
Univ. Press, London.
Hoppe G.K. and G.S. Hansford (1983). Ethanol inhibition of continuous
anaerobic yeast growth. Biotechnol. Lett., 4 , 1 , 3944.
Jackson J.V. and V.H. Edwards (1975). Kinetics of substrate inhibition of
exponential yeast growth. Biotechnol. Bioeng., 17, 943964.
Jerusalimski N.D. and N.B. Engamberdiev (1969). Continuous Cultivation of
Microorganisms. Academic Press, New York, 517.
Jin C.K., H.L Chiang and S.S. Wang (1981). Steadystate analysis of the
enhancement in ethanol productivity of a continuous fermentation
process employing a proteinphosphotifind complex as a protecting
agent. Enzyme Microbiol. Technol., 3, 249257
Jost J.L., J.F. Drake, A.G. Frederickson and H.M. Tsuchiya (1973). Interactions
of Tetrahymena pyroformis, Escherichia coli, Azobacter vinelandii and
glucose in a minimal medium. J. Bacterid., 113, 834840.
Kishimoto M., T. Sawano, T. Yoshida and T. Taguchi (1983). Optimization of a
fedbatch culture by statistical data analysis. In A. Halme (Ed.), Modelling
and Control of Biotechnical Processes, Pergamon, Oxford,161 168.
Konak A.R. (1974). Derivation of a generalised Monod equation and its
applications. J. Applied Chem. Biotechnol., 24, 453.
Kono T. and T. Asai (1969). Kinetics of fermentation processes. Biotechnol.
Bioeng., U, 293321.
Levenspiel O. (1980). The Monod equation : a revisit and a generalization to
product inhibition situations. Biotechnol. Bioeng., 22, 16711687.
354 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
APPENDIX 2
f(0) Ξ 0 (A2.2)
Definition A2.1
The equilibrium state χ = 0 is asymptotically stable (a.s.) if there exists a
positive constant ε ι > 0 such that, if ||x(0)|| < ε ι , then :
lim||x(t)|| = 0 (A2.3)
t>oo
358 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
Definition A2.2
A Lyapunov function W(x) for the system (A2.1) is defined as follows :
a) W(x) is a continuously differentiable scalar function of χ
b) W(x) is positive definite, i.e. W(x) > 0 Vx, W(x) = 0 if χ = 0
c) ^ W ( x ) = ^ ^ ^ f i x ) is negativedefinite along the solutions of (A2.1).
dt σ Χ
Definition A2.3
The equilibrium state χ ξ Ο is exponentially stable if there exist three positive
constants ε ι , C i , C2 such that, for all ||x(0)|| < ε ι , the solution x(t) of (A2.1) is
bounded as follows :
If all the eigenvalues of the matrix Δ have negative real parts, then the
equilibrium state χ ξ ο is exponentially stable.
If any of the real parts of the eigenvalues of Δ are positive, then the
equilibrium state χ ξ 0 is unstable.
No conclusion may be drawn in case of eigenvalues having zero real parts.
Total stability
^ = f ( x ) + g(x,t) (A2.6)
Defim'tion A2.4
The equilibrium state of (A2.1) is totally stable if there exist two positive
constants ε ι and E 2 such that, if ||x(0)|| < e i and ||g(x,t)|| < E 2 , then the solution
x(t) of (A2.6) is bounded for all t.
Theorem A2.3
If the equilibrium state x = 0 of (A2.1) is exponentially stable, then it is totally
stable.
Remark A2,1. A special case of (A2.6) occurs when the perturbation g(x,t) t
g(x)u(t) with u(t) an external input. In such a case, total stability is also called
BIBS (for Bounded Input Bounded State) stability.
360 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
Definition A2.5
The equilibrium state χ Ξ Q of system (A2.7) is exponentially stable
(synonymous : uniformly asymptotically stable), if there exist two positive
constants Ci and C2, independent of to and x(to), such that x(t) is bounded as
follows for all to and x(to):
Tlieorem A2.4
If there exists a positive constant ε ι , such that for each t > 0, the eigenvalues of
A(t) all have real parts less than or equal to EI , then there exists another
constant £2 such that the equilibrium state χ Ξ 0 of the system (A2.7) is
exponentially stable whenever:
where |[.[| is the matrix norm induced by the vector norm used in (A2.8)
Appendix 2. ELEMENTS OF STABILITY THEORY 361
Definition A2.6
A scalar function W(x,t) is decrescent in a closed regions ofthexspace
containing the origin χ Ξ 0, if a positive definite function Wi(x) exists such that,
for all X in S and all t,
|W(x,t)| <Wi(x)
Ttieorem A2.5
If the matrix A(t) is bounded, then the equilibrium state χ Ξ ο of system (A2.7) is
uniformly asymptotically stable if and only if there exists a timevarying,
quadratic, positive definite, decrescent Lyapunov function whose derivative
along the solutions of (A2.7) has a timevarying negative definite decrescent
quadratic form.
^ = A ( t ) x ( t ) + B(t)u(t) (A2.10)
at
Ttieorem A2.6
If the equilibrium state χ Ξ 0 of (A2.7) is exponentially stable, if the matrix B(t) is
bounded (||B(t)|| < Mi), if the input u(t) is bounded (||u(t)|| < M), then the state of
the system (A2.10) is bounded as follows :
||x(t)||<cJ|x(0)IU^^ Vt>0
362 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
1 λ 2 expiX^s) λ 2 ο χ ρ (λ 28) I ds
Jo
= expa^t) ο χ ρ ( λ ι ) + 2[ expa^o*) expago*)] (A2.11)
Ι η ί λ ρ /λ ι )
with σ *= . \ forallt>a* (A2.12)
^1 "^2
Proof: the value σ * defined by (A2.12) is clearly the unique value such that:
λ ι expa^o*) = λ 2 ο χ ρ (λ 2σ *) (A2.13)
I λ ι expiX^s) λ 2 exp(X2s) ds
Ό
σ
[λ ι exp(Xis) λ 2 exp(X2s)] ds
^ = Ax(t)4b(t) (A2.15)
dt
Appendx 2. ELEMENTS OF STABILrTY THEORY 363
A = Ci 1 (A2.17)
C2 0
b(t) = bi(ty (A2.18)
Lb2(t)
and that A has real distinct eigenvalues λ 2 < λ ι < 0 (i.e. C2 < Cy4).
Then :
,imsup|xi(t)|<j^||^5^
(A2.20)
λ ι +λ 2
lim sup I X2(t) I < Bi ^ ^ ^ B2 (A2.21)
λ ι Ο
λ ι λ 2
1λ 2 1
J(t) = Θ Χ Ρ (λ ι Ο Ο
Ο Θ Χ Ρ (λ 2ΐ )
For sufficiently large t (i.e. after the effect of initial conditions has disappeard),
the solution of (A2.15) is :
1
XL(t) = j ^ — j j j^{[Xiexp(Xi[tx]) λ 2exp(λ 2[tτ ])]b1(τ )
1
X2(t) = {λ 1λ 2[exp(λ 2[tτ ]) exp(X2[tT])]bi(t)
^1~^2 Jo
I [λ 1exp(λ 1[tτ ]) X2exp(Xi[tx])]b2(x)}dt (A2.24)
We now examine xi(t) and X2(t) separately. Using (A2.12) (A2.26) and the
CauchySchwartz inequality, we have from (A2.23) :
Hence taking the limit of the RHS of (A2.28) for t ^ o o , we obtain inequality
(A2.20) after some simple manipulations.
λ λ
+ B2 (expa2t) 1) ^ (expa^t) 1) } (A2.29)
Then expression (A2.20) and (A2.21) hold and the lemma is proved.
QED
Corollary A2,1
If C2 is chosen such that:
C2 = aC?/4, 0<a<1
—c
λ 2 = 2^[1 +VT^]
APPENDIX 3
PERSISTENCE OF EXCITATION.
CONVERGENCE OF ADAPTIVE ESTIMATORS
Definition A3.1
An mxn matrix 0(t), t > 0, of continuously differentiable bounded time functions
is persistently exciting if there exist positive constants α and ε such that:
Definition A3.2
If the equilibrium state χ Ξ 0 of the timevarying linear system (A2.7) is
exponentially stable, then by extension the system itself is said to be
exponentially stable.
368 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
Theorem A3.1
If Φ (\) is persistently exciting, if Γ is a constant mxm positive definite matrix,
then the following linear timevarying system is exponentially stable :
^ = ro(t)o\t)e (A3.2)
dt
Theorem A3.2
If 0(t) is persistently exciting, if A(t) is a stable nxn matrix of bounded piecewise
continuoustime functions, if P(t) is a symmetric positive definite matrix of
bounded continuoustime functions such that dP/dt + PA + A^P is negative
definite, then the following linear timevarying system is exponentially stable :
Transfer of excitation
The above theorems are useful for demonstrating the convergence of adaptive
estimators if the "regressor" 0(t) is the state of stable linear filter. In such a
case, the following results are relevant.
Let 9(t) denote one arbitrary column of the matrix 0(t). Let u(t) be a scalar, real
valued, timevarying, continuously differentiable signal.
Definition A3.3
The signal u(t)is said to be sufficiently rich of order m if the following vector:
Π Τ
du dju d^^u
W(t) = u. (A3.4)
dt' dt^dt"^"^
is persistently exciting.
Appendx 3. PERSISTENCE OF EXCITATION 369
Theorem A3.4
If each column of 0(t) is generated by a linear stable time invariant filter
Remark : when the matrix (A3.6) is full rank, the system (A3.5) is said to be
"state reachable".
NOMENCLATURE
Greek letters
Subscripts
t : time index
in : influent
out : effluent
i,j : number indices
a,b,s,f: partition indices
374 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
Superscripts
Mathematical notations
Σ : sum
Π : product
V : for all
min : minimum
max : maximum
sup : supremum
e : belongs to
NOMENCLATURE 375
4 time derivative
dt
Ai : inverse of the (square) matrix A, i.e. such that Α Α "· = Α "Ά = I (where I is
the identity matrix)
INDEX 377
INDEX
Associated
growth 9; 27
nongrowth 9; 23; 27
Autocatalyst 20; 33; 84
Catalyst 19
Control
adaptive 94; 254; 277; 279; 287; 301; 305; 311; 328
linearizing 94; 254; 261; 266; 276; 277; 279; 283; 287; 296; 300; 323
Dynamics 3; 7; 30
transport 31
Enzymes 20; 37
Equilibrium 60; 104
stable 68; 109; 110; 309
unstable 68
Estimation
linear regression 151; 175; 186; 278; 289
observerbased 147; 160; 173; 177; 181; 192; 205; 219; 224; 278
parameter 87; 92; 202; 216; 231; 244; 278; 279; 281
state 103; 116; 231; 300
General dynamical model 30; 93; 103; 146; 202; 218; 257
Identifiability 87; 243
Inhibition
substrate 14; 67; 319
product 15; 86; 91
Kinetics 11; 31; 34; 84; 94; 95
378 ONLINE ESTIMATION AND ADAPTIVE CONTROL OF BIOREACTORS
Maintenance 5; 21; 31
Mass transfer coefficient 10
Metabolites 7; 91
Microbial death 5; 2 1 ; 31
Microorganisms 4; 20
Observer
adaptive 231; 304
asymptotic 109; 116; 146; 258; 288; 291; 303
exponential 105; 109
Kalman 109; 175; 231
Luenberger 109; 231
Observability 105
Order reduction 46; 49
0TR9
OUR 9; 247
pH 16; 94; 136
Process
anaerobic digestion 24; 4 1 ; 50; 73; 117; 121; 127; 186; 215; 240; 258; 268;
271 ;284; 324
lactic fermentation 27; 42; 60; 85; 194
simple microbial growth 4; 21; 35; 47; 62; 67; 85; 106; 111; 203; 219; 224;
233; 239; 306;311
PHB 26; 42; 45; 133; 236; 244
yeast growth 9; 23; 40; 180; 210; 273; 295
Reaction rate 19; 29; 32; 84; 116; 146; 202; 216; 231
Reactors
batch 6; 120; 191; 211; 235; 311; 320
CSTR 7; 113; 120; 124; 127; 168; 170; 186; 240; 284; 327
fedbatch 6; 120; 133; 141; 180; 235; 264; 273; 311
fixed bed 71
Respiratory quotient (RQ) 26; 133
Sampling 141; 150; 155; 173; 285
Singular perturbation 46; 266; 296; 301
Specific growth rate 5; 8; 10; 34; 68; 86; 91; 160; 180; 181; 188; 207; 327
Blackman law 228
INDEX 379