Model Predictive Control
Model Predictive Control
Contributors
Balachandar Guduri, Goksel Kizir, Abdul Furkan Kanburoglu, Hiroshi Hanaizumi, Song Ho Kim, Kwang
Rim Song, Nesrine Ben Afia, Hassani Messaoud, Francis Assadian, George Martin, K. Karthigaiselvan,
Rames Chandra Panda
Individual chapters of this publication are distributed under the terms of the Creative Commons
Attribution 3.0 Unported License which permits commercial use, distribution and reproduction of
the individual chapters, provided the original author(s) and source publication are appropriately
acknowledged. If so indicated, certain images may not be included under the Creative Commons
license. In such cases users will need to obtain permission from the license holder to reproduce
the material. More details and guidelines concerning content reuse and adaptation can be found at
[Link]
Notice
Statements and opinions expressed in the chapters are these of the individual contributors and not
necessarily those of the editors or publisher. No responsibility is accepted for the accuracy of
information contained in the published chapters. The publisher assumes no responsibility for any
damage or injury to persons or property arising out of the use of any materials, instructions, methods
or ideas contained in the book.
156
Countries delivered to
Top 1%
most cited scientists
12.2%
Contributors from top 500 universities
A
ATE NALY
IV
R
TI
CLA
CS
BOOK
CITATION
INDEX
IN
DEXED
Preface XI
Chapter 1 1
Modified Robust Adaptive Process Control with Improved Transient
Performance and Its Application to Atmospheric Plasma Spray Process
by Balachandar Guduri
Chapter 2 17
Position Control of External Rotor Permanent Magnet Synchronous Motor
with Model Predictive Control
by Goksel Kizir and Abdul Furkan Kanburoglu
Chapter 3 35
Stereo-Measurement of 3D Poses of a Walking Person with a Puppet Model
and Low-Rank Filter
by Hiroshi Hanaizumi
Chapter 4 59
Perspective Chapter: Model Predictive Control of Multi-Variable Non-Linear
System Using Multi-Agent Q-Learning
by Song Ho Kim and Kwang Rim Song
Chapter 5 83
Closed Loop Control Approaches for Conflicted Timed Event Graphs Subject
to Constraints with Dioid Algebra
by Nesrine Ben Afia and Hassani Messaoud
Chapter 6 101
Review of Model Predictive Control and Other Methodologies for Lateral
Control of an Autonomous Vehicle
by Francis Assadian and George Martin
Chapter 7 117
Implementation of MPC Strategy in Reactive Separation Techniques and Its
Benefits: A Demonstration with Natural Gas Sweetening Process
by K. Karthigaiselvan and Rames Chandra Panda
Preface
This book’s subject matter ranges from new theoretical control structures to control
applications in the chemical industry and electrical and mechanical engineering. It
promotes MPC theory in some practical applications of these engineering domains.
The book covers some theoretical concepts of MPC and includes new methodologies,
control structures, and applications. The applications in this project, through a high
technical level of scientific achievements, improve the properties and performances
of complex process control systems. Published studies demonstrate the capability of
MPC in various practical fields, enhancing human understanding and improving the
specialist’s ability to analyze, design, and implement high-performance algorithms.
Applications are presented that focus on the methodologies used, with case studies,
implementation, measurement, and testing issues. These applications involve domains
such as the chemical industry (e.g., atmospheric plasma spray process, reactive separa-
tion technique in the natural gas sweetening process, or thermal treatments of raw
materials) and motion control (e.g., control of permanent magnet synchronous motor,
monitoring of pose of a walking person, or lateral control of a passenger vehicle). New
examples of complex control systems for technological development platforms are
promoted. This book is designed for specialists who are interested in applications and
solutions based on MPC in various fields.
The book includes seven chapters. Chapter 1 presents a solution based on model
reference adaptive control to improve the transient performance of a closed loop sys-
tem under uncertainties and external disturbance, with application in the atmospheric
plasma spray process. Chapter 2 presents an application of MPC and a PID controller
for position regulation of a permanent magnet synchronous motor with practical
experimentation. Chapter 3 presents a method for stereo measurement of 3D poses of
a walking person based on a puppet model and a low-rank filter. Chapter 4 presents
a perspective study to design a hierarchically structured MPC as the online set-point
optimizer for maximizing economic efficiency over a long time horizon to meet
product quality requirements. The chapter proposes a new method of using coopera-
tive actions of multi-agent Q-learning for determining the set-point of controllers
to approximate the temperature trajectory of the raw material through the cascaded
three-step kiln process to an integrated reference trajectory. Chapter 5 presents a theo-
retical study on the control of a particular class of discreet event systems, a subclass
of conflicted timed event graphs with the use of dioid algebra. Chapter 6 proposes a
short theoretical comparative study on some methodologies for lateral control of a
passenger vehicle. Finally, Chapter 7 presents a theoretical introduction to possible
applications of MPC in reactive separation techniques, particularly in the natural gas
sweetening process.
The editor thanks the authors for their excellent contributions. The editor also wishes
to thank Author Service Manager Ivana Barac and the staff at IntechOpen for their
assistance throughout the publication process.
Constantin Voloșencu
Department of Automation and Applied Informatics,
“Politehnica” University Timișoara,
Timișoara, România
XIV
IV
Chapter 1
Abstract
This chapter presents the σ-modification and the low-frequency learning to the
model reference adaptive control (MRAC) to improve the transient performance of a
closed-loop control system under uncertainties and external disturbances. The σ-
modification improved the robustness to external bounded disturbances, and the low-
frequency learning enabled fast adaption without creating high-frequency oscillations.
The feasibility of the resulting robust adaptive control architecture is tested for the
atmospheric plasma spray process (APSP) to achieve consistency in ceramic coatings
through numerical simulations. The robustness and adaptability of the modified and
the standard MRAC architecture are investigated under artificially induced distur-
bances. The proposed architecture shows better performance than the standard
MRAC under external disturbances. The results depict the improved transient perfor-
mance with faster convergence and smooth variations in closed-loop control signals
without creating high-frequency oscillations or steady-state errors.
Keywords: plasma spray process, robust adaptive control, ceramic coating, model
reference adaptive control, transient performance
1. Introduction
parameter drifts, high-gain instability, instability resulting from fast adaption, and
high-frequency instability [3–5].
For improving the robustness and transient performance and avoiding high-
frequency instability in the presence of uncertainties and external disturbances, a
significant research effort has been carried out by modifying the adaptive laws of the
MRAC and its architecture [6]. First, to improve the robustness, many researchers
have proposed various robust MRAC (we referred to as R-MRAC) schemes by modi-
fying the adaptive laws of the MRAC. The R-MRAC using fixed modification [5]
achieves the desired robustness and performance without explicit knowledge of plant
dynamics and bounds of the external disturbances. The modified MRAC achieves the
boundedness of the closed-loop signals; however, the asymptotic convergence of the
tracking error in the absence of the disturbances is not achievable. Apart from this, the
MRAC and the R-MRAC using modification schemes can create high-frequency oscil-
lations in control responses when the fast adaption using the high adaptive gains is
enabled; thus, it leads to process instability. Additionally, the fixed modification can
create a steady-state error and often may lead to a bursting phenomenon [5]. Yucelen
and Haddad have proposed low-frequency learning to the MRAC to avoid high-
frequency oscillation in control responses in the presence of high adaptive gains [2]. In
their work, it was implemented to a nonlinear uncertain plant dynamic without a
disturbance term. The fast adaption is achieved using high-adaptive gains by filtering
out the high-frequency content in the control responses. This scheme preserves the
ideal property of the MRAC, that is, the asymptotic convergence of the tracking error
to zero in the absence of the disturbance term.
The motivation, then, is to develop a robust adaptive process control scheme with
an improved transient performance by overcoming the issues related to the MRAC.
This chapter presents a modified robust model reference adaptive control (we call it
MR-MRAC) architecture by incorporating two modifications to the MRAC. First, to
achieve robustness in the presence of bounded disturbances, the R-MRAC is consid-
ered by incorporating σ-modification to the MRAC. Next, to avoid steady-state error
associated with σ-modification and to enable fast adaption using high-adaptive gain,
we used low-frequency learning with low-pass filters for the gain estimations. The
resulting MR-MRAC scheme achieves the boundedness of all responses of closed-loop
control and convergence of the tracking error to a small bound in the presence of
bounded disturbances. The feasibility of the MR-MRAC architecture is tested for the
atmospheric plasma spray process (APSP), and its adaptability and robustness in the
presence of external disturbances to achieve desired consistency in the outputs have
been investigated.
The APSP has become one of the most efficient and reliable techniques to produce
a wide variety of coatings, such as low porosity, thermal barrier, wear, and corrosive-
resistant coatings, in different applications. The APSP is a common technique to
produce ceramic coatings and is capable of producing functionally graded coatings
(FGCs) [7]. Due to the demand for high-volume manufacturing of these coatings,
reproducibility and repeatability of the coating quality are of prime importance.
As depicted in Figure 1, the APSP includes plasma generation, plasma and in-flight
particle interaction, and deposit formation on a substrate. The plasma produced by the
injection of Ar and H2 into the torch exits from it at a very high temperature and
speed. Powder particles injected into the plasma travel with it to the substrate and,
upon impact, are deposited on it. The y- and the z-axes are, respectively, along and
perpendicular to the plasma jet. Particles’ axial velocity and temperature are moni-
tored in the 1-cm wide observation window located near the substrate to be coated.
2
Modified Robust Adaptive Process Control with Improved Transient Performance and Its…
DOI: [Link]
Figure 1.
Schematics of the APSP for producing ceramic coating using a single torch—Single injector system [8].
Complex interactions between plasma and particles significantly [9, 10], vary coating
properties that affect the process repeatability [11]. Due to large velocity and temper-
ature gradients in a plasma jet, even small changes in process parameters can signifi-
cantly alter mean particles’ states (mean values of temperature, and axial velocity at
the instant of striking the substrate), and thus the quality of the coatings [12]. Even
with the operating parameters set constant during the process, the particles’ states
before impacting the substrate can change over time due to noise variables such as
nozzle wear, injector wear, pulsing of powder due to leaks, worn parts in the powder
feeder, and powder dampness.
We presented the complete details of the design of the adaptive process control for
APSP (validation of numerical simulations, screening of process parameters, finding
optimal input parameters, system identification, and the control design) are given in
Refs. [13] and [14] for ceramic coating using ZrO2 powder with a single torch – single
injector system and in Ref. [15] for FGCs using a mixture of the NiCrAlY and the ZrO2
particles with a single torch – two injector system. This chapter discusses the proposed
MR-MRAC architecture for generating ceramic coating using ZrO2 powder. The con-
trol objective is to maintain the mean axial velocity and temperature of the particles
collected in the observation window as the desired values within small bounds by
attenuating the influence of external disturbances.
The remainder of this chapter is organized as follows. Section 2 presents prelimi-
naries about the standard MRAC. Section 3 provides the proposed modified robust
model reference adaptive control (MR-MRAC) and its stability properties for multi-
inputs and multi-outputs (MIMO) linear time-invariant system with bounded exter-
nal disturbances. The adaptive and robust performance of the proposed controller
using numerical simulations for illustrative examples related to the APSP is presented
in Section 4. Finally, the conclusions are summarized in Section 5.
We choose the following plant dynamics with m inputs and n outputs and inclu-
sion of disturbance term:
3
Model Predictive Control – Theory and Applications
where yðtÞ ∈ n is the output vector, uðtÞ ∈ m is the control input vector, A ∈ n�n
and B ∈ n�m are unknown constants and A is Herwitz, dðtÞ isthe vector
of unknown
_ _
bounded smooth disturbances, which satisfies kdðtÞk ≤ dmax , dðtÞ ≤ dmax with
2
2
unknowns and positive bounds dmax ð ≥ 0Þ, d_ max ð ≥ 0Þ. The pair ðA, BÞ is assumed to be
controllable, yðtÞ is controllable, and uðtÞ is measurable and locally bounded.
The reference model is described as follows:
A � BK ∗ ¼ Am , BL ∗ ¼ Bm (3)
where K ðtÞ ∈ m�n and LðtÞ ∈ m�m are real-valued gain matrices and are the esti-
mates of the ideal gains at time t. The following adaptive law of the MRAC scheme is
used to calculate gains [5]:
K_ ðtÞ ¼ ΛBTm Pe
~ ðtÞyT ðtÞ sgn ðlÞ, K ð0Þ ¼ K 0
(6)
L_ ðtÞ ¼ �ΛBT Pe
m
~ ðtÞrT ðtÞ sgn ðlÞ, Lð0Þ ¼ L0
T
Here, Λ ¼ ΛT and P ~¼P ~ are m � m and n � n positive definite matrices, respec-
tively. The matrix P is the solution of the Lyapunov equation:
ATm P
~ þ PA
~ mþQ ¼0 (7)
For any Q ¼ Q T > 0. For either positive or negative definite L ∗ , there exists a
constant adaptive rate matrix Λ ∈ m�m such that Λ�1 ¼ L ∗ sgn ðlÞ, where l ¼ 1 if L ∗ is
positive definite and l ¼ �1 if L ∗ is negative definite. The dynamics of the tracking
error, eðtÞ � yðtÞ � ym ðtÞ can be written as:
e_ ðtÞ ¼ Am eðtÞ þ Bm L ∗ �1 �K
~ ðtÞyðtÞ þ L
~ ðtÞrðtÞ þ dðtÞ, eð0Þ ¼ e0 (8)
4
Modified Robust Adaptive Process Control with Improved Transient Performance and Its…
DOI: [Link]
The foregoing MRAC scheme may suffer from instabilities, such as parameter
drift, high gains, and/or fast adaption [16]. Some of these could be avoided using the
robust MRAC (R-MRAC) by modifying Eqs. (6)–(9) as proposed by Ioannou and
Kokotovic [17].
K_ ðtÞ ¼ Λ BTm Pe
~ ðtÞyT ðtÞ sgn ðlÞ � σK ðtÞ , K ð0Þ ¼ K 0
(9)
L_ ðtÞ ¼ Λ �BT Pe
m
~ ðtÞrT ðtÞ sgn ðlÞ � σLðtÞ , Lð0Þ ¼ L0
where λ > 0 is a design parameter that serves as the cutoff frequency to suppress
the high-frequency oscillations in the closed-loop control system. These low-pass
filters only pass gains with frequencies lower than that of cutoff values and the rest
will be attenuated. Low-frequency learning is incorporated in σ-modified adaptive
laws presented in Eq. (9) to enforce a distance criterion between the estimated gains
K ðtÞ, LðtÞ and estimated filter gains K f ðtÞ, Lf ðtÞ. This results in a minimization problem
containing the following error criteria:
1 2
min J K K, K f ¼ K ðtÞ � K f ðtÞF
Kf 2
1 2 (11)
min J L L, Lf ¼ LðtÞ � Lf ðtÞF
Lf 2
The negative gradient of the cost function with respect to gain direction leads to
∂J K ∂J
� ¼ � K ðtÞ � K f ðtÞ ; � L ¼ � LðtÞ � Lf ðtÞ (12)
∂K ∂L
The implementation of the MR-MRAC to the APSP is the same as that of Refs. [14]
and [18] except the following form of the adaptive law is used:
5
Model Predictive Control – Theory and Applications
K_ ðtÞ ¼ Λ BTm Pey
~ T � σ K � Kf , K ð0Þ ¼ K 0
(13)
L_ ðtÞ ¼ Λ �BT Per
m
~ T � σ L � Lf , Lð0Þ ¼ L0
Theorem: Consider the plant dynamics shown in Eq. (1), the reference model in
Eq. (2), the control law in Eq. (5). Then, the solution eðtÞ, K ~ ðtÞ, L
~ ðtÞ, K ~ f ðtÞ of the
~ f ðtÞ, L
dynamical system given by Eq. (14) is uniformly bounded for all
~ 0, L
e0 , K ~0, K
~ f 0, L
~ f 0 ∈ Dα where Dα is a compact positive invariant set, with ultimate
bound.
~ dmax
λmax P
keðtÞk2 < 2 ,t≥0 (15)
λmin ðQ Þ
1 2
kek2L2 ≤ ~ d
V 0 þ λmax P max : (16)
λmin ðQ Þ � λmax P
~
where P~¼P ~ T > 0 satisfies the Lyapunov equation in Eq. (7). Since P,~ Γ, Λ are
positive definite, σ > 0, and λ > 0; V ð0, 0, 0, 0, 0Þ ¼ 0 and V e, K, ~ L,
~ K ~ f > 0 for all
~f, L
~ L,
e, K, ~ K ~ f 6¼ ð0, 0, 0, 0, 0Þ. Also, V e, K,
~f, L ~ L,
~ K ~ f is radially unbounded. The
~f, L
time derivative along system trajectories is
T T T T
V_ ¼ e_ T Pe
~ þ eT P_
~ e þ 2tr K ~_ þ 2tr L
~ ΓΛ�1 K ~_ þ 2 σ tr K
~ ΓΛ�1 L ~ ΓK~_ f þ 2 σ tr L ~_f
~ ΓL
f f
λ λ
(18)
From the error dynamics shown in Eq. (14), we can simplify it as:
6
Modified Robust Adaptive Process Control with Improved Transient Performance and Its…
DOI: [Link]
� � � � � T �
V_ ¼ eT ATm P
~ þ PA ~ m L ∗ �1 �Ky
~ m e þ 2eT PB ~ þ Lr~ þ 2tr K ~_
~ ΓΛ�1 K (19)
� T � � T � � T �
þ 2tr L ~_ þ 2 σ tr K
~ ΓΛ�1 L ~ ΓK ~_ f þ 2 σ tr L
~ ΓL~_f þ 2eT Pd
~ ð tÞ
f f
λ λ
As we know
ðt
� � � �
_
� Vdτ ~ 0, L
¼ V e0 , K ~0, K
~ f 0, L
~ f 0 � V eðtÞ, K
~ ðtÞ, L
~ ðtÞ, K ~ f ð tÞ
~ f ðtÞ, L
0 (26)
� �
~ 0, L
≤ V e0 , K ~0, K
~ f 0, L
~f 0
� �
~ 0, L
With definition V 0 � V e0 , K ~0, K
~ f 0, L
~ f 0 , the Eq. (25) becomes
7
Model Predictive Control – Theory and Applications
2 2
λmin ðQ Þ � λmax P
~ kek ≤ V 0 þ λmax P
~ d (27)
L2 max
1 2
kek2L2 ≤ ~ d
V 0 þ λmax P max : (28)
λmin ðQ Þ � λmax P
~
Figure 2.
Schematic of the MR-MRAC architecture [14].
8
Modified Robust Adaptive Process Control with Improved Transient Performance and Its…
DOI: [Link]
4. Case studies
Shang et al. [8], among others, have provided a mathematical model for the APSP
and the associated numerical model. We use LAVA-P software developed at the Idaho
National Engineering and Environmental Laboratory to analyze the three-dimensional
motions of powder particles within the plasma. Figure 3 depicts the schematic of the
proposed robust adaptive process control using the MR-MRAC for generating consis-
tent quality ceramic coating using a single torch—single injection APSP system. Limits
on the input variables with symbols indicated in parentheses are Ar flow rate (P), 20
slm ≤ P ≤ 60 slm (standard liters per minute); H2 flow rate (Q), 0 ≤ Q ≤ 20 slm;
and current (I), 300 A ≤ I ≤ 600 A. The effect of disturbances is desired to die out
within 50 ms of their occurrence. The sampling time of these simulations is 0.01 ms.
The mean values of particles’ axial velocity and temperature are computed in the
1-cm-wide window, 9.5 ≤ y ≤ 10.5 cm located along the jet axis from the nozzle exit.
Linearizing the nonlinear dynamics of the mean axial velocity vðtÞ and the mean
temperature T ðtÞ around an equilibrium point results in the following multi-inputs
and multi-outputs (MIMO) SS model:
8 9
� � � �� � � �< PðtÞ = � � � �
v_ ðtÞ av 0 vðtÞ b11 b12 b13 dv ðtÞ vð0Þ¼v0
¼ þ Q ðtÞ þ , (29)
T_ ðtÞ 0 aT T ðtÞ b21 b22 b23 : ; dT ðtÞ T ð0Þ¼T 0
IðtÞ
Figure 3.
Schematic of the proposed robust adaptive control scheme for an APSP [13].
9
Model Predictive Control – Theory and Applications
8 9
( ) " #( ) " #>
> vdes ðtÞ >
> ( )
v_m ðtÞ �0:5 0 vm ðtÞ 0:5 0 0:5 < = vm ð0Þ ¼ v0
¼ þ T des ðtÞ ,
T_m ðtÞ 0 �0:5 T m ðtÞ 0 0:5 0:5 >
>
:
>
>
; T m ð0Þ ¼ T 0
0
(30)
For this study, we use the following adaptive gain matrix in Eq. (13):
2 3
10�8 0 0
6 7
Λ¼γ�4 0 10�10 0 5 (32)
0 0 10�9
Figure 4.
Effect of adaptive constant γ in MRAC (first column), damping constant σ in RMRAC (second column for
γ ¼ 20), and filter constant λ in MR-MRAC (third column for γ ¼ 20 and σ ¼ 108 ).
σ ¼ 108 , the effect of damping is very high, and this leads to an undesirable
steady-state error between the measured and desired outputs.
The performance of the MR-MRAC is investigated for γ ¼ 20 and σ ¼ 108
with the filter constants λ ¼ 10�4 , λ ¼ 10�2 , and λ ¼ 1. The fast adaption using a
high-gain learning rate is achieved with the MR-MRAC scheme for λ ¼ 1. From
the third column of Figure 4, we can observe that the high-frequency oscillations
with γ ¼ 20 and steady-state error for σ ¼ 108 have been reduced with MR-MRAC
and the effect of disturbance is attenuated within 20 milliseconds. The smooth
variations in the mean particles’ states and control inputs are acquired. This
illustrates the point that the designed MR-MRAC achieves the fast and robust
adaption without creating highfrequency oscillations or steady-state errors.
11
Model Predictive Control – Theory and Applications
Figure 5.
The closed-loop control responses of MRAC and MR-MRAC for a) increasing desired mean particles’ axial velocity
and decreasing desired mean particles’ temperature; and b) the decreasing desired mean particles’ axial velocity
but increasing desired mean particles’ temperature in the presence of step disturbance in average injection velocity.
First, we now check the performance of the MR-MRAC for adaptive tracking when
the desired values of mean particles’ states vary with time in the presence of a varia-
tion of the disturbance. The following adaptive gain matrix is used for the rest of the
analyses:
12
Modified Robust Adaptive Process Control with Improved Transient Performance and Its…
DOI: [Link]
2 3
2 � 10�8 0 0
6 7
Λ¼4 0 2 � 10�10 0 5 (33)
�9
0 0 5 � 10
Here, the damping constant σ ¼ 108 and the filter constant λ ¼ 1. In this case, the
performances of the MRAC and the MR-MRAC are compared, and the subsequent
results are presented in Figure 5 for step variations in vdes ðtÞ and T des ðtÞ in the pres-
ence of the step variation of average particles’ injection velocity. It is evident that
both controllers effectively force the mean particles’ states to follow the outputs of
the reference model despite larger magnitudes of the error between the measured
and the desired particles’ states. However, the magnitude of the mean temperature
oscillations is significantly dampened using the MR-MRAC. Even if the mean parti-
cles’ states reach the desired values faster than the MR-MRAC in this particle case,
faster convergence can be achieved for MR-MRAC by further fine-tuning of the filter
constant λ.
The effect of the simultaneously varied disturbances, such as the average injection
velocity of particles and the arc voltages (in the first and the second row of Figure 6),
on the mean axial velocity and mean temperature are shown in the third and the
fourth rows of Figure 6, respectively. The performance of the MR-MRAC is investi-
gated under these disturbances, and the varied control outputs are shown in the fifth
and the sixth rows of Figure 6, and the corresponding control inputs are presented in
the remaining rows of Figure 6. These examples establish the effectiveness of the
designed process controller in mitigating the effects of various classes of disturbances
for generating ceramic coatings using the APSP. Of course, in practice, disturbances
are not limited to those stipulated here.
5. Conclusion
This chapter proposes two modifications to the standard model reference adaptive
control (MRAC) to improve the robustness and the fast adaption, and its application
to the atmospheric plasma spray process (APSP) to improve repeatability and repro-
ducibility of coating quality and simultaneously decreasing manufacturing costs. The
MRAC lacks robustness in the presence of process uncertainties and bounded external
disturbances, which is a well-known drawback. This issue is handled by the modified
robust MRAC (MR-MRAC) scheme, which consists of sigma-modified adaptive laws
of MRAC with a low-pass weight estimated filter. The control objective for the APSP
is to get consistency in mean particles’ states, such as mean axial velocity and mean
temperature, before impacting the substrate. The performance of this strategy is
tested on numerical software LAVA-P simulates the APSP. The MR-MRAC shows
better performance compared to standard MRAC under external disturbances. The
desired consistency in mean particles’ states is achieved despite artificially induced
disturbances by varying control inputs through fast adaption. The smooth variations
in the mean particles’ states and control inputs are acquired without generating high-
frequency oscillations or steady-state errors.
We anticipate that the MR-MRAC will perform equally well in practical applica-
tions and economically enable the production of high-quality coatings. This control
architecture also is feasible for other coating methods, such as the HVOF spray
process, physical vapor deposition, and chemical vapor deposition.
13
Model Predictive Control – Theory and Applications
Figure 6.
The closed-loop responses of the MR-MRAC system in the presence of combined disturbances of the average powder
injection velocity and the arc voltage.
Conflict of interest
Author details
Balachandar Guduri
Virginia Tech Transportation Institute, Virginia Polytechnic Institute and State
University, Blacksburg, VA, USA
© 2023 The Author(s). Licensee IntechOpen. This chapter is distributed under the terms of
the Creative Commons Attribution License ([Link]
which permits unrestricted use, distribution, and reproduction in any medium, provided
the original work is properly cited.
15
Model Predictive Control – Theory and Applications
References
[2] Yucelen T, Haddad WM. Low- [11] Fincke JR et al. Diagnostics and
frequency learning and fast adaptation in control in the thermal spray process.
model reference adaptive control. IEEE Surface and Coatings Technology. 2001;
Transactions on Automatic Control. 146:537-543
2012;58(4):1080-1085
[12] Westergård R et al. The erosion and
[3] Egardt B. Stability of Adaptive abrasion characteristics of alumina
Controllers. Berlin Heidelberg: Springer; coatings plasma sprayed under different
1979 spraying conditions. Tribology
International. 1998;31(5):271-279
[4] Rohrs C et al. Robustness of
continuous-time adaptive control [13] Guduri B et al. Adaptive process
algorithms in the presence of unmodeled control for achieving consistent particles'
dynamics. IEEE Transactions on states in atmospheric plasma spray
Automatic Control. 1985;30(9):881-889 process. SN Applied Sciences. 2021;3(3):
1-21
[5] Ioannou PA, Sun J. Robust adaptive
control. 1: Upper Saddle River, NJ: PTR [14] Guduri B, Batra R. Robust model
Prentice-Hall; 1996 reference adaptive controller for
atmospheric plasma spray process. SN
[6] Shi Z, Zhao L. Robust model reference Applied Sciences. 2022;4(4):1-10
adaptive control based on linear matrix
inequality. Aerospace Science and [15] Guduri B, Batra RC. Adaptive
Technology. 2017;66:152-159 control of the atmospheric plasma
spray process for functionally graded
[7] Sampath S et al. Thermal spray thermal barrier coatings. Advances in
processing of FGMs. MRS Bulletin. 1995; Materials Science and Engineering. 2022;
20(1):27-31 2022
[8] Shang S et al. Effect of turbulence [16] Ioannou PA, Datta A. Robust
modulation on three-dimensional adaptive control: A unified approach.
trajectories of powder particles in a Proceedings of the IEEE. 1991;79(12):
plasma spray process. Journal of Physics 1736-1768
D: Applied Physics. 2014;47(40):405206
[17] Ioannou PA, Kokotovic PV.
[9] Williamson R, Fincke J, Chang C. Instability analysis and improvement of
A computational examination of the robustness of adaptive control.
sources of statistical variance in particle Automatica. 1984;20(5):583-594
parameters during thermal plasma
spraying. Plasma Chemistry and Plasma [18] Guduri B. Adaptive Process Control
Processing. 2000;20(3):299-324 for Achieving Consistent Mean Particles'
States in Atmospheric Plasma Spray
[10] Wan Y, et al., Model and Powder Process. US: Virginia Tech; 2022
Particle Heating, Melting,
16
Chapter 2
Abstract
1. Introduction
17
Model Predictive Control – Theory and Applications
Two areas where PMSMs are frequently preferred for similar control purpose are
robotics and military applications. PMSMs are used as actuators that control a joint in
robotic applications, as well as control the angular position of a vane in military
applications. This position control may need to be of high precision in both areas.
Since position data is needed as feedback in position control of PMSMs, sensorless
control methods cannot be applied in these applications. In such applications,
the control methods preferred recently are intelligent control methods or model-based
control methods [8–12].
Thanks to the developing technology and developing production infrastructures,
PMSMs in different structures can be produced. Coreless PMSMs, a type of PMSM,
can produce constant torque. The stator windings of Coreless PMSMs are air wound
instead of a core. In this way, much lower cogging torque occurs at output torques
compared to other PMSMs. Due to their low cogging torque, they are preferred in
robotics and military applications [13–16].
The main drawback of these coreless PMSMs is their low output torque. In order to
meet high output torque requirements for relatively small actuator designs, higher
transmission ratios may be considered. However, designing an actuator with higher
transmission ratios arise other considerations such as efficiency, backlash, etc.
ER-PMSM has gradually become popular with the characteristics of low loss,
simplistic-compact structure, and reliable in operation. Unlike Coreless PMSMs,
ER-PMSMs can provide high output torques at a similar volume. Since the stator
windings of most of the ER-PMSMs have cores, cogging occurs in the output torques
of the ER-PMSMs. This cogging torque causes a disruption effect on the control. There
are studies in the literature for modeling/reducing the cogging torque [17–20]. How-
ever, ER-PMSMs do not have position control application. In addition, most of the
developed ER-PMSMs are used in drones.
In this study, which aims to produce high output torque with low transmission
ratio, the use of ER-PMSMs as an actuator in an application that requires precise
position control is evaluated. It is planned to increase the efficiency of the transmis-
sion mechanism with a low transmission ratio. In addition, with the position controller
to be designed, it is desired to minimize the effect of the cogging torque on the
control.
MPC is selected for position control. Additionally, a comparison is added in order
to evaluate the performance of MPC. The sequential PID control structure, which is
frequently preferred for motor control in the literature, is preferred for this compar-
ison. In the third part, there are four different test scenario results of two controllers.
The fourth section is the section where the test results are discussed. In the last part,
the results of the study are evaluated.
The block diagram of PMSM and control strategies in this chapter is given in
Figure 1. A three-phase PMSM is driven by a PWM inverter circuit. Three-phase
control voltage is applied to the PWM inverter circuit, and the three-phase current
value is read by analog sensors in this circuit. In addition, the angular position of the
PMSM is read by an incremental encoder.
In the control algorithm, the rotor position of PMSM is controlled by both MPC
and PID. Both control structures calculate the PMSM q-axis control voltage. While
MPC only needs angular position data for this calculation, PID controller structure
18
Position Control of External Rotor Permanent Magnet Synchronous Motor with Model…
DOI: [Link]
Figure 1.
PMSM and control strategies block diagram.
also needs the q-axis current of the PMSM. In addition to the position control, the
d-axis current of the PMSM is kept at zero by a different controller. In this chapter,
PID controller structure is chosen as the d-axis current controller.
Obtained d- and q-axis voltages are converted to PMSM phase voltages by Inverse
Park Transform. In addition, the d- and q-axis currents required by the PID controller,
and the d-axis current controller are obtained by Park Transform.
In the second part, PMSM model and control strategies are explained. Field ori-
ented control (FOC), which is the PMSM driving method, is explained, the PID
controller structure and the selection criteria of the PID controller coefficients are
mentioned. Finally, the determined MPC method is explained in detail.
PMSMs are synchronous motors with permanent magnets on their rotors and
windings on their stators [7]. The stator windings are usually three-phases, although
five- or eight-phases configurations are also available. Considering the positions of
their rotors, PMSMs can be classified in two ways as external (outer) rotor and inner
rotor.
Although this difference in design changes the speed and torque characteristics of
both motors, their mathematical models are the same. PMSM mathematical models
are available for both three phases (abc-phases) and two axes (dq-axis). Since PMSM
control can be handled linearly with two-axis modeling, two-axis modeling is pre-
ferred in this study. The equations of the PMSM according to the dq-axis set are as
follows.
vd ¼ Rs id � ωLq iq þ ρ Ld id þ λpm (1)
vq ¼ Rs iq þ ω Ld id þ λpm þ ρLq iq (2)
T e ¼ 3p=2 λpm iq þ Ld � Lq id iq (3)
T e � T l � T cogg ðθm Þ ¼ ρωm J þ Bωm (4)
Figure 2.
Equivalent circuit of PMSM electrical equations.
3=2 ∗ p ∗ λpm
Gpmsm ¼ 2 (7)
Lq Js3 þ Rs J þ Lq B s2 þ 3=2 pλpm þ Rs B s
While obtaining this equation, it is assumed that current flow through the d-axis is
zero. Hence the PMSM mathematical equations are simplified. The d-axis current of
the PMSM is kept at zero with a PID controller.
The Field Oriented Control (FOC) is a method based on controlling the stator
currents represented by vectors. FOC gives proficient control capability over the full
torque and speed ranges. Its implementation requires transformation of stator cur-
rents from the stationary reference frame to the rotor flux reference frame (also
Figure 3.
PMSM transfer function block diagram.
20
Position Control of External Rotor Permanent Magnet Synchronous Motor with Model…
DOI: [Link]
dq 2
T abc ðθÞ ¼ ½ cos ðθÞ cosðθ�2π=3Þ cosðθþ2π=3Þ sinðθÞ sinðθ�2π=3Þ sinðθþ2π=3Þ� (8)
3
qbc 2
T dq ðθÞ ¼ ½ cos ðθÞ sinðθÞ cosðθ�2π=3Þ sinðθ�2π=3Þ cosðθþ2π=3Þ sinðθþ2π=3Þ� (9)
3
The classical PID controller transfer function is as in Eq. (10). The PID controller
structure is shown in Figure 4.
Ki
Gpid ¼ K p þ þ Kds (10)
s
The PID control structure used in this study is shown in Figure 4. A cascade
structure is preferred as the PID control structure. The output of the position control-
ler is set as the velocity controller reference where the output of the velocity controller
is the q-axis current controller reference. The d-axis current reference is set to zero.
PMSM position and currents are measured from the system. The velocity value is
obtained by taking the discrete derivative of the measured position value.
PID controller outputs are produced on dq-axis and applied to three phases of
PMSM with Inverse Park Transform. Utilizing the current values measured from the
three phases of the PMSM, the currents in the dq-axis are calculated with Park
Transform (Figure 5).
Figure 4.
Block diagram of PID Controller.
21
Model Predictive Control – Theory and Applications
Figure 5.
Block diagram of PID controller structure.
The D coefficient of the d- and q-axis current controllers in the sequential PID
controller structure has been determined as zero. This is because current measure-
ments are made analog and the derivative expression of current noise degrades the
controller performance. Eq. (11) is used while determining the PI controller coeffi-
cients of these two current controllers. Eq. (11) is simplified version of Eqs. (1) and
(2) and has a siso structure. Since the electrical characteristic of PMSM is much faster
than the mechanical characteristic, there is no velocity dependent expression in
Eq. (11).
ix 1
¼ Gcur_pid ¼ (11)
vx Lx s þ Rs
θm 1
¼ Gpos_pid ¼ (13)
ωm s
22
Position Control of External Rotor Permanent Magnet Synchronous Motor with Model…
DOI: [Link]
aðzÞ and bðzÞ in Eq. (14) represent the transfer function of the system, and dk
represents disturbance and measurement noise effects simultaneously.
Unlike the generic CARIMA model, noise and disturbances are removed and the
simplest transfer function model is obtained as in Eq. (15).
Eq. (16) is obtained if both sides of the Eq. (15) are multiplied by the expression Δ.
If the Eq. (16) is written in expanded and matrix form for n steps, Eq. (18) is
obtained.
2 3 2 3 2 3 2 3
ykþ1 yk Δuk Δuk
6y 7 6 y 7 6 Δu 7 6 Δu 7
6 7 6 7 6 kþ1 7 6 k�1 7
CA 6 kþ2 7 þ HA 6 k�1 7 ¼ Cb 6 7 þ Hb 6 7 (18)
4 ⋮ 5 4 ⋮ 5 4 ⋮ 5 4 ⋮ 5
ykþn yk�nþ1 Δuk�m Δuk�mþ1
23
Model Predictive Control – Theory and Applications
2 3
b2 b_3 ⋯ bm�1 bn
6 7
6 b3 b4 ⋯ bm 0 7
6 7
Hb ¼ 6
6 ⋮ ⋮ ⋱ ⋮ ⋮ 7
7 (22)
6 7
4 bm�1 bm ⋯ 0 05
bm 0 ⋯ 0 0
Eq. (23) is obtained if Eq. (18) is arranged to give the estimation of the output
!
value. The expression y kþ1 in Eq. (23) is the estimation of the output value in the next
! !
step. u k value is the input signal to be applied to the system in current step. u k�1 is the
!
input signal applied to the system in the previous step and y k is the output value in the
current step.
! ! ! !
y kþ1 ¼ HΔu k þ PΔu k�1 � Q y k (23)
H ¼ C�1
A Cb (24)
P ¼ C�1
A Hb (25)
Q ¼ C�1
A HA (26)
The transfer function to be used for MPC is obtained in Eq. (23). In the next step,
the cost function of the system should be determined. The cost function used in this
study is given in Eq. (27).
" !
#
!T ! !T Δu k�1
J¼ Δu k SΔu k þ Δu k 2X !
yk (27)
!
y kþ1
S ¼ HT W y H þ W u (28)
� �
X ¼ HT W y P HT W y Q � H T W y (29)
If the matrices in Eqs. (28) and (29) are updated to calculate the next step of the
prediction, instead of n step long vector, the calculations are simplified as follows.
24
Position Control of External Rotor Permanent Magnet Synchronous Motor with Model…
DOI: [Link]
The block diagram of MPC is as in Figure 4. To obtain the control signal, the
reference input value is multiplied by the Pr matrix. In next step, the output mea-
surement of the system and the measurement matrix obtained from the previous
output values are multiplied by the Dk matrix. In final step, the delta of the reference
signal applied to the system and the matrix obtained from the previous values of these
deltas are multiplied by the N k matrix. The result obtained is added together. This
value is the delta reference value to be applied to the system. This delta reference
value is added at each step (Figure 6).
In order to convert the PMSM transfer function in Eq. (7) to CARIMA form in
Eq. (11), it is necessary to switch from the s transform of Eq. (36) to the z transform.
Tustin method is selected for this process. According to the Tustin method, the
following equation is used to obtain the z transform of an equation in the s transform.
T s is the sampling time of the z transform.
2 z�1
s (36)
Ts z þ 1
The CARIMA form of the PMSM transfer function is as in Eqs. (38) and (39).
2 z�1
s (37)
Ts z þ 1
aðzÞ ¼ a3 z3 þ a2 z2 þ a1 z þ a0 (38)
3
bðzÞ ¼ pλpm T 3s z3 þ 3z2 þ 3z þ 1 (39)
2
2 3
2
a3 ¼ 4T S Rs J þ Lq b þ 8Lq J þ 2T s pλpm þ Rs b (40)
2
2 3
2
a2 ¼ �4T S Rs J þ Lq b � 24Lq J þ 2T s pλpm þ Rs b (41)
2
3 2
a1 ¼ �4T S Rs J þ Lq b þ 24Lq J � 2T 2s pλpm þ Rs b (42)
2
3 2
a0 ¼ 4T S Rs J þ Lq b � 8Lq J � 2T 2s pλpm þ Rs b (43)
2
After obtaining the CARIMA form, the other matrices required for MPC are
calculated in MATLAB because their sizes are very large.
Figure 6.
Block diagram of MPC.
25
Model Predictive Control – Theory and Applications
3. Experimental results
The test system is given in Figure 7. In the test system, there is an absolute
encoder connected to the output shaft of the ER-PMSM for measuring the position of
the ER-PMSM. The resolution of this encoder is 21 bits. This value is sufficient for us
to observe the movement precisely. There is a driver card that controls and drives the
ER-PMSM. FPGA is used as a smart unit in this card. These three components are used
in all of the no-load tests of the ER-PMSM described below.
Experimental studies are carried out with a driver card that is controlled by FPGA.
Since the calculations can be made in parallel and quickly, control performance can be
evaluated without being affected by the computation load and time.
The load motor in the test system has its own controller. This controller uses the
data from the torque sensor in the test setup as a feedback signal and controls the load
motor to apply the desired load.
The test system uses one interface, which is not included in Figure 7. This
interface sends commands to the ER-PMSM controller and the load motor controller
simultaneously. In this way, two controllers work simultaneously.
Finally, the tests are carried out without the transmission mechanism. The
ER-PMSM output shaft is directly connected to the load motor output shaft with the
couplings shown in Figure 7. There are only couplings and torque sensor between load
motor and ER-PMSM.
The parameters of the ER-PMSM are used in the experimental setup are given in
Table 1. MPC parameters are selected as in Table 2. PID parameters are given in
Table 3.
Figure 7.
Test system block diagram.
Parameter Value
Rd , and Rq 91 mΩ
Ld 57 μH
Lq 78 μH
p 21
J 1:33 104 kg m2
Table 1.
ER-PMSM parameters.
26
Position Control of External Rotor Permanent Magnet Synchronous Motor with Model…
DOI: [Link]
ny nu Wy Wu Ts
21 1 1 1 1 ms
Table 2.
MPC parameters.
Kp Ki Kd Kp Ki Kd Kp Ki Kd
Table 3.
PID parameters.
D-axis and q-axis current controllers are selected the same. The sampling time of
the current controllers is determined as 50μs. The position and speed control sampling
times are set to 1 ms.
Experimental study is carried out in four different test condition. In these tests,
both the sensitivity of position control is observed and the two controllers are com-
pared with each other.
In the first test, position control sensitivity of ER-PMSMs under cogging torque is
investigated. In the second and third tests, the performances of both controllers are
compared. The performance comparison is made for the condition where there is no
external disturbance factor. In the last test, the disturbance caused by external factors
such load torque is examined.
In this test, the position reference profile is shown in Figure 8, which changes at a
speed of 0.5 rad/s, is applied as the position reference. The purpose of the test is to
Figure 8.
Low speed position control test experimental results.
27
Model Predictive Control – Theory and Applications
examine the effect of cogging torque on position control as the rotor position changes
at a slow rate. In addition, there is no external load in this test.
In Figure 8, there are position control outputs for both controllers. It can be
observed from Figure 8 that, there are small ripples in position tracking in
both controllers. These ripples are at 4 mrad in PID controller, as they are 10 mrad
in MPC.
In this test, a step signal with an amplitude of 5 rad and a rate of 80 rad=s is set as
the position reference. The purpose of this test is to observe the step response of both
controllers. There is also no external load in this test.
In Figure 10, there are position control outputs of the both controllers are given. It
can be observed from Figure 10 that, rise time and settling time values are the same
Figure 9.
Sinusoidal reference position control test experiment results.
28
Position Control of External Rotor Permanent Magnet Synchronous Motor with Model…
DOI: [Link]
Figure 10.
Step reference position control test experiment results.
for both controllers. In MPC, the acceleration at the beginning of the motion is lower
than in PID. However, the MPC slackened faster in the last part of the movement,
both controllers completed the movement in the same time.
Also, Figure 10 shows the power consumption of both controllers while making
step motion. As can be seen from the power graph, control with MPC consumes less
power than PID.
In this test, the command in “Low-Speed Position Control Test” is used as the
position reference. However, unlike the “Low-Speed Position Control Test”, the
external load in Figure 11 is applied to the PMSM rotor shaft. This test investigates the
effects of an external load, a.k.a. disturbance rejection performance.
As can be observed in Figure 11, position tracking where the load is constant is the
same as in the “Low-Speed Position Control Test”. When the load changes suddenly,
the position control error increases up to 20 mrad for both controllers. MPC compen-
sates for this error within 30 ms, while PID controller compensates for this error
within approximately 90 ms.
4. Discussions
Four different tests are carried out both not only to observe the control perfor-
mance of the ER-PMSM but also to compare the two designed controllers with each
other.
29
Model Predictive Control – Theory and Applications
Figure 11.
Low speed position control test with external load experiment result.
As a result of “Low-Speed Position Control Tests” for both externally loaded and
unloaded conditions, it has been observed that ER-PMSMs can be used in high-
precision motion control applications. Cogging torque of ER-PMSMs causes ripples
during movement. However, the level of these ripples is small and can be ignored in
many applications. In addition, external loads on the rotor shaft do not have a negative
effect on the position control of ER-PMSMs. Controllers can compensate these exter-
nal loads rapidly.
After observing that the position control of ER-PMSMs can be done precisely with
two different controllers, the advantages and disadvantages of these two controllers
are investigated. First of all, the parameters of these two controllers are set to give
similar performance. When the position outputs in the test results are examined, it is
observed that the two controllers perform similarly.
It has been observed that the peak power consumption is lower in the control
with MPC. The main reason for this behavior is that the acceleration characteristics
of the two controllers are different. Although acceleration takes longer in MPC
then PID, so the maximum acceleration level in MPC is lower then PID. In PID,
on the other hand, the initial value of the acceleration is high, the acceleration
time is shorter. Therefore, both controllers have similar performance in both
sinusoidal reference and step signal reference, there are differences in power
consumption.
Another difference between the two controllers is the processing loads. In the
control with PID, it is necessary to control both at higher sampling frequencies
and the much more operations. In MPC, on the other hand, fewer operations are
performed with a low sampling frequency. Moreover, position measurement is
sufficient for MPC, while current measurement is necessary for sequential PID
control.
30
Position Control of External Rotor Permanent Magnet Synchronous Motor with Model…
DOI: [Link]
5. Conclusions
In this chapter, the use of ER-PMSMs in applications that require precise position
control is investigated. Additionally, MPC is determined as the control method.
PMSM position control structure is established using the CARIMA model. To compare
the MPC performance, the sequential PID controller structure is established. These
control methods are tested under four different test scenarios.
When the test results are examined, it is observed that the effect of cogging on
control performance is relatively low even in a system without transmission elements
(such as gearbox etc.) at the output shaft. Together with the transmission mechanism,
the fluctuations caused by the cogging will be negligible. According to these results, it
is shown that actuators with low transmission rates can be designed with ER-PMSMs.
In addition, when the test results of the two different control structures are exam-
ined, it is observed that the MPC is more suitable than PID controller in terms of
energy consumption. It is also observed that the processing load of the MPC is less
than PID controller and it can operate at a lower sampling time compared to the PID
controller. As a result of this evaluation, for energy limited applications, it should be
considered that would be more appropriate to use MPC in the control of ER-PMSMs.
Acknowledgements
Author details
© 2023 The Author(s). Licensee IntechOpen. This chapter is distributed under the terms of
the Creative Commons Attribution License ([Link]
which permits unrestricted use, distribution, and reproduction in any medium, provided
the original work is properly cited.
31
Model Predictive Control – Theory and Applications
References
[4] Sayed E, Yang Y, Bilgin B, Bakr MH, [10] Kiselev A, Kuznietsov A, Leidhold R.
Emadi A. A comprehensive review of Position control of a permanent magnet
flux barriers in interior permanent synchronous motor using generalized
magnet synchronous machines. IEEE predictive control algorithm. In: 2016
Access. 2019;7:149168-149181. International Symposium on Power
DOI: 10.1109/ACCESS.2019.2947047 Electronics, Electrical Drives,
Automation and Motion (SPEEDAM);
[5] De Klerk ML, Saha AK. A 22–24 June 2016. Italy: IEEE; 2016.
comprehensive review of advanced pp. 110-115
traction motor control techniques
suitable for electric vehicle applications. [11] Sahin M. Optimization of model
IEEE Access. 2021;9:125080-125108. predictive control weights for control of
DOI: 10.1109/ACCESS.2021.3110736 permanent magnet synchronous motor
by using the multi objective bees
[6] Zhu W, Chen D, Du H, Wang X. algorithm. In: Hamid UZA, Faudzi AM,
Position control for permanent magnet editors. Model-Based Control
synchronous motor based on neural Engineering - Recent Design and
network and terminal sliding mode Implementations for Varied Applications
control. Transactions of the Institute of [Internet]. London: IntechOpen; 2021.
Measurement and Control. 2020;42(9): DOI: 10.5772/intechopen.98810
1632-1640. DOI: 10.1177/
0142331219893799 [12] Zhao J, Ma T, Liu X, Zhao G,
Dong N. Performance analysis of a
[7] Chen DB, Du HB, Jin XZ. Position coreless axial-flux PMSM by an
tracking control for permanent magnet improved magnetic equivalent circuit
synchronous motor based on integral model. IEEE Transactions on Energy
32
Position Control of External Rotor Permanent Magnet Synchronous Motor with Model…
DOI: [Link]
Stereo-Measurement of 3D Poses of
a Walking Person with a Puppet
Model and Low-Rank Filter
Hiroshi Hanaizumi
Abstract
1. Introduction
Recognizing the behaviors of people in public spaces such as train stations is very
important to ensure our safety and security. For example, even if a person feels sick,
falls, or has trouble with another person while walking, we can automatically recog-
nize it and can help the person immediately. A person’s behavior can be defined as a
time trace pattern of poses of the person. In other words, if the pose can be quantified,
it is possible to recognize the behavior as a pattern of temporal change. For the
quantification, it is first essential to be able to measure the pose with high precision.
There have been many methods for recognizing human poses [1–3]. They can be
divided into two groups: silhouette-based methods and joint-based ones. In the former
35
Model Predictive Control – Theory and Applications
sections, we describe the principle and the procedure of the method. Application
results of an actual person walking are also shown.
2. Principle
Figure 1 shows world and camera coordinate systems used here. A set of stereo-
camera C1 and C2 are calibrated (distortion correction and collimation are performed)
so that their optical axes are parallel and have the same focal length with distance B.
They are installed so that the center of the camera C1 coincides with the origin of the
world coordinate system.
A point Pðx, y, zÞ on the world coordinate system is observed as image points
p1 ðul , vl Þ and p2 ður :vr Þ on cameras C1 and C2 , respectively. The coordinates x, y, z are
obtained as
ul B vl B fB
x¼ ,y ¼ ,z ¼ , (1)
ul � ur ul � ur ul � ur
where, f is the focal length and B baseline length. The camera coordinates ul , vl and
ur , vr are also calculated from the coordinates x, y, z as
Figure 1.
World and camera coordinate systems.
37
Model Predictive Control – Theory and Applications
x x�B y
ul ¼ f , ur ¼ f , vl ¼ vr ¼ f : (2)
z z z
OpenPose is the first real-time multi-person system to jointly detect human body,
hand, facial, and foot keypoints [9]. Here we use it as a human joint detector and
adopt 15 keypoints for human walking analysis among the output format BODY_25, as
shown in Figure 2. OpenPose provides the keypoint with detection confidence in a
JSON file. The confidence takes a value between 0 and 1, and the higher the value the
more confident it is. When a joint is hidden by the body, its confidence takes 0, and
the coordinates are also 0. Therefore, the missing coordinates such as due to joint
occlusion yield larger noise. We have to complete the missing values first. OpenPose
may also cause incorrect detections, such as leg swapping, arm swapping, leg dupli-
cation, and arm duplication, due to poor lighting conditions in image capturing. In
those cases, the confidence takes lower but non-zero values, so it is hard to detect
them using confidence. Both the swapping and the duplication also cause larger noise,
so we need some algorithms to detect and correct them.
Figure 2.
OpenPose keypoints in BODY_25.
38
Stereo-Measurement of 3D Poses of a Walking Person with a Puppet Model and Low-Rank Filter
DOI: [Link]
Those missing values are interpolated by using internal division points of both
ends of non-zero-confidence observations as
si�1 ðj � k þ 1Þ þ sjþ1 ðk � i þ 1Þ
sk ¼ ði ≤ k ≤ jÞ: (4)
j�iþ2
In wrong recognitions, left and right legs are duplicated as one leg, and leg
swapping also occurs more frequently. In normal walking, one of the legs is swung to
the front and fixed on the floor, and the other is also swung and fixed alternately.
The left and right ankles draw continuous trajectories that accurately reflect these
movements. When the leg swapping and/or duplication occur, some discontinuities
are yielded in the trajectories. Therefore, we detect them by finding the discontinu-
ities. We detect the swapping by finding the discontinuity at the same position on
both left and right ankle trajectories, and the duplication by finding it on one of
them. For simplicity, consider a person walking parallel to the x-axis as shown in
Figure 2. Let x-coordinate vectors of left and right ankles be sL ¼ ðsL1 sL2 … sLn ÞT and
sR ¼ ðsR1 sR2 … sRn ÞT for n observations. Their elements sLi and sRi ði ¼ 1, … , nÞ are rela-
tive position to a keypoint mid-hip. The swapping is detected at the i-th element when
δLi =w > threshold and δRi =w > threshold, where, w means the stride length of the walk as
In this study, we define behavior as the temporal change of the poses. Therefore, it
is necessary to quantify each pose for describing the behavior. We define keypoint
39
Model Predictive Control – Theory and Applications
vector qt and the pose vector pt independently of the dimension. The former is
described as
� �
qt ¼ ut0 vt0 ut1 vt1 ⋯ utm�1 vtm�1 , (8)
on an image or
� �
qt ¼ xt0 yt0 zt0 xt1 yt1 zt1 ⋯ xtm�1 ytm�1 ztm�1 , (9)
� �
in the world coordinate system, where, ðui , vi Þ and xi , yi , zi ði ¼ 0, ⋯, m � 1Þ are
two- and three-dimensional coordinates of the keypoints, respectively, and m ¼ 15. Of
course, since the 2D pose strongly depends on the direction of observation, the 3D
pose vector without such dependence is valid. Therefore, when we simply refer to the
pose vector, we mean the 3-D one. Using their relative coordinates, the latter is
represented as
on an image or
� �
pt ¼ xt0 � xt8 yt0 � yt8 zt0 � zt8 ⋯ xtm�1 � xt8 ytm�1 � yt8 ztm�1 � zt8 , (11)
� �
in the world coordinate system, where, ðu8 , v8 Þ and x8 , y8 , z8 are coordinates of
the keypoint mid-hip at time t, and pt does not include it while qt does. We consider
that the keypoint mid-hip is located near the true centroid of a human body, so we use
it instead of the centroid. Thus, the pose vector is useful to represent relative pose
regardless of the position. Finally, we define keypoint matrix Q n and behavior matrix
Pn for n observations as
0 1 0 1
p0 p0 � μ
B p C B p �μ C 1Xn�1
B C B 1 C
Qn ¼ B 1 C, P n ¼ B C, μ ¼ p: (12)
@ ⋮ A @ ⋮ A n i¼0 i
pn�1 pn�1 � μ
1
Σ¼ PT Pn : (13)
n�1 n
Since the elements within the covariance matrix represent the degree of correla-
tion between corresponding coordinates, we consider that it includes important
information about the spatial correlation structure of joint movements.
OpenPose may yield some fluctuations in its recognitions, and pose vectors still
have noise due to the fluctuation. Since they severely affect the three-dimensional
coordinates, we have to reduce the noise in the pose vectors. On the other hand, the
coordinates have some correlation structures, such that they do not change abruptly in
40
Stereo-Measurement of 3D Poses of a Walking Person with a Puppet Model and Low-Rank Filter
DOI: [Link]
time while keeping their relative positions. Therefore, we realize the noise reduction
by extracting low-rank components from the observed time sequential joint coordi-
nates. The one-dimensional coordinate sequence is once converted to a two-
dimensional matrix shape to extract the low-rank components. After we apply a rank
reduction operation to that matrix, the resultant matrix is converted back to the
original one-dimensional sequence. To perform the process, we need an interconver-
sion algorithm between a one-dimensional signal and a two-dimensional matrix. Let
U k be a temporal observation vector of positions of the k-th joint of a moving person
on the image as
� �
U k ¼ u0k u1k ⋯ unk , (14)
where, the superscripts show time, that is, frame. Since the movement is not so
fast and not random, they have some correlation with each other. This means that
they fit into an auto-regressive (AR) model with length of m as
8 m
> uk ¼ a0 u0k þ a1 u1k þ ⋯ þ am�1 um�1
k
>
>
< umþ1 ¼ a u1 þ a u2 þ ⋯ þ a um
k 0 k 1 k m�1 k
: (15)
>⋮
>
>
: n
uk ¼ a0 ukn�m þ a1 un�mþ1
k þ ⋯ þ am�1 ukn�1
These equations show that the current value of a one-dimensional signal is deter-
mined by the values of the m signals preceding it. Using matrix format, we rewrite
Eq. (15) as
0 10 1 0 1
u0k u1k ⋯ um�1
k a0 um
k
B u1 u2k ⋯ m CB
uk CB a1 C B umþ1 C
B k C B k C
B CB C¼B C, (16)
@ ⋮ ⋮ ⋱ ⋮ A@ ⋮ A @ ⋮ A
ukn�m un�mþ1
k ⋯ un�1
k am�1 unk
XA ¼ Y, (17)
where matrix X is called the Hankel matrix. The vector Y is calculated from the
matrix X, and also X is reconstructed from Y. Considering that the observations
consist of dominant signal component with some correlation structure and some
noise, Eq. (17) can be described as
ðX s þ X n ÞA ¼ ðY s þ Y n Þ: (18)
Here we realize the low-rank filter for the vector Y s by separating X s with rank r
from X n as
� �
X s As ¼ Y s rankX s ¼ rf :
(19)
Since the coefficient vector A in Eq. (19) is different from that in Eq. (17), an
iterative algorithm is needed for the calculation [11].
41
Model Predictive Control – Theory and Applications
� � � y �
xtj ¼ xtj ytj ztj , 0 ¼ ð 0 0 0 Þ, ak ¼ axk ak azk : (20)
The model is characterized by symmetrical calculation such that each joint coordi-
nates x, y, and z on the right side are obtained from all non-zero coordinates on the
left side. We believe the symmetrical calculation enables us to realize stable analysis
independently of the walking direction. Since the number of unknowns increases
threefold, we need at least sequential three poses for the calculation. We use more
poses to get the smoothing effect. The filtering is achieved by decreasing the rank of
the left-side matrix.
42
Stereo-Measurement of 3D Poses of a Walking Person with a Puppet Model and Low-Rank Filter
DOI: [Link]
Figure 3.
Puppet model with joint number (black) and limb lengths (red) [m].
Some constraints are required. Here we propose two types of puppet models as pose
stabilizers. The model is based on the fact that the distance between the neighboring
joints is invariant of the pose. Figure 3 shows the puppet with the joint number
(black) and limb length in [m] (red). The puppet has a symmetrical structure with a
predetermined length limb and freely moving joints in any direction. We determined
their lengths based on roughly measuring the length of the limbs of a person with a
height of 1.7 [m]. We introduce two types of models with different constraint
methods: the flexible type and the rigid one. We call the former Puppet-I [12] and the
latter Puppet-II. In both models, we regard the keypoint 8 (mid-hip) as the reference
joint.
2.6.1 Puppet-I
In this model, we evaluate the limb length between a neighboring joint pair whose
positions are calculated by using Eq. (1). If the length does not match that of the
model, we regard that there is an error in the position of the joint ur on the right
camera image, and adjust the parallax ul � ur so that they match. This process is
started from the reference joint. Let the position of the i-th neighboring joint
� � � � � �
Pi xi , yi , zi be calculated from the stereo-pair image points Q li uli , vli and Q ri uri , vri ,
� �
and Pk xk , yk , zk be the reference. The parallax adjustment is performed as
qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi
� �2
Δuropt arg min ∣ ðxi � xk Þ2 þ yi � yk þ ðzi � zk Þ2 � Lik ∣, (22)
Δur
where,
Buli
xi ¼ , (23)
uli � uri þ Δur
Bvli
yi ¼ , (24)
uli � uri þ Δur
43
Model Predictive Control – Theory and Applications
Bf
zi ¼ , (25)
uli � uri þ Δur
and Lik is the predetermined distance from the reference to the i-th joint. The
adjustment is repeatedly applied to successive joint pairs, such as mid-hip to hip, hip
to knee, and knee to ankle for legs, and mid-hip to neck, neck to shoulder, shoulder to
elbow, and elbow to wrist for arms. The optimization process in Eq. (22) is similar
to the finding solution for a quadratic-like curve as shown in Figure 4. Figure 4
indicates that we may have two solutions (left) and have nothing (right). In the
former case, we select the best combination so that, for example, both shoulders have
the longest distance. Arms and legs are also compensated so that they have the largest
angle at the elbow and knee, respectively. In the latter case, the compensation is
performed so that the difference becomes the minimum. Substituting the optimal
adjuster Δuropt for the i-th joint into Eqs. (23)–(25), we obtain the three-dimensional
coordinate of the joints.
2.6.2 Puppet-II
In this model, we regard that relative positions among body joints, that is, mid hip,
left hip, right hip, neck, left shoulder, and right shoulder, are fixed independently of
poses. Assuming the rotation angles α, β, γ and the shift xs , ys , zs , we transfer the model
shown in Figure 5a into the world coordinate system. Then, we predict the position of
their joints in both camera coordinate systems. We regard that the measurement was
made when the squared sum of the difference among predicted positions
Figure 4.
Model limb length and solutions.
Figure 5.
Rigid body model, upper limb model, and lower one with limb lengths.
44
Stereo-Measurement of 3D Poses of a Walking Person with a Puppet Model and Low-Rank Filter
DOI: [Link]
� p p� � p p� � � � �
ul , vl , ur , vr and observed ones uol , vol , uor , vor on the camera coordinates for six
joints within the part body falls to the minimum and that we obtain the optimum
angles and shifts as.
body
X �� p 2
� �
p 2
� �
p 2
� �
p 2
��
Eopt arg min uol,j � ul,j þ vol,j � vl,j þ uor,j � ur,j þ vor,j � vr,j ,
α, β, γ , xs , ys , zs j ∈ body
(26)
body
where, Eopt is the optimized angles and shifts as
body � �
Eopt ¼ αopt βopt γ opt xopt yopt zopt , (27)
and the summation means sum over six joints in the body model (nose is not used),
and
� camera image � coordinates are calculated from the initial position of body joints
init init init
xj , yj , zj ðj ∈ bodyÞ as
0 p 1 0 1 1 0
xj xs xinit
j
B pC B C B C
B yj C ¼ Rðα, β, γ ÞB yinit C
@ A @ j A þ @ ys A ðj ∈ bodyÞ, (28)
p
zj zinit
j
zs
0 10 10 1
1 0 0 cos β 0 � sin β cos γ � sin γ 0
B CB CB C
Rðα, β, γ Þ ¼ @ 0 cos α � sin α A@ 0 1 0 A@ sin γ cos γ 0 A,
0 sin α cos α � sin β 0 cos β 0 0 1
(29)
� �
p p p
p xj p
xj � B p p yj
ul,j ¼ f p, ur,j ¼ f p , vl,j ¼ vr,j ¼ f p : (30)
zj zj zj
(31)
where, r is a bending coefficient ð0 ≤ r ≤ 1Þ between the upper limb l1 and the lower
one l2 in the triangle shown in Figure 5d, and
2S
h¼ : (32)
rðl1 þ l2 Þ
The area S of the triangle is calculated using Heron’s formula. After initial coordi-
nates setting, the rotation matrix Rðα, β, γ Þ is applied to them, then they are shifted to
the corresponding body joint, that is, the left shoulder in this case as.
45
Model Predictive Control – Theory and Applications
Joint X y z
2 0 0 0
qffiffiffiffiffiffiffiffiffiffiffiffiffiffi
3 -h 0
� l21 � h2
4 0 �rðl1 þ l2 Þ 0
0 0 0
qffiffiffiffiffiffiffiffiffiffiffiffiffiffi
6 h 0
� l21 � h2
7 0 �rðl1 þ l2 Þ 0
0 0 0
qffiffiffiffiffiffiffiffiffiffiffiffiffiffi
10 -h 0
� l21 � h2
11 0 �rðl1 þ l2 Þ 0
0 0 0
qffiffiffiffiffiffiffiffiffiffiffiffiffiffi
13 h 0
� l21 � h2
14 0 �rðl1 þ l2 Þ 0
Table 1.
Initial coordinates for arm and leg models.
0 p 1 0 1 0 1
xj xinit
j x5
B pC B C B C
B yj C ¼ Rðα, β, γ ÞB yinit C ðj ∈ l_armÞ:
@ A @ j A þ @ y5 A (33)
p
zj init
zj z5
3. Procedures
The followings are the procedures of the proposed method. We measure the three-
dimensional position of 15 joints in model Body_25. The main process is noise reduc-
tion in the two-dimensional joint coordinates recognized by OpenPose on stereo-pair
images.
Step 1: Reading keypoint data from a JSON file and checking their consistencies.
The keypoint data for a person in the image may be divided into a few portions and
be output as a few persons’ data. Mis-recognitions such as ghost keypoints also appear
due to the very high sensitivity. The portion collection is made by using keypoint
consistency between the stereo-pair images.
Step 2: Interpolating the coordinates of missing keypoints.
Using the confidence in the JSON file, we determine whether there is a missing
keypoint or not. Then, the missing values are interpolated.
46
Stereo-Measurement of 3D Poses of a Walking Person with a Puppet Model and Low-Rank Filter
DOI: [Link]
Figure 6.
Processing flow of the proposed method.
Here we show the stereo camera used and its calibration result, observed joint data,
and some preprocessing results for them. Performances of the low-rank filter, spatial
AR model, and puppet models are also discussed with the implementation.
Figure 7 shows the stereo camera we used in the experiments below, and Table 2
shows its specification. The camera was stereo-calibrated so that parallelization was
made. We evaluated the performance of the calibration by showing the difference in
vertical coordinates between both the stereo-pair images of corner points of a chess
47
Model Predictive Control – Theory and Applications
Figure 7.
A stereo camera Zed2 was used.
Parameter Value
Table 2.
Specification of the stereo camera. *Zed2 originally has higher performance. We used lower mode for easy
recording.
Figure 8.
Vertical coordinate differences among all corresponding points in stereo-pair images.
board sheet used for the camera calibration as shown in Figure 8. The difference was
within plus or minus 0.5 pixels except around the four corners of the image, and we
found that the parallelization was achieved with high accuracy.
Figure 9.
Walking path and an example of recognized keypoints.
Figure 10.
Performance in completing missing data; confidence (top), missing data (middle), and completion result
(bottom).
occlusions. The first two of them yield spike-shaped noises and the third zero output
in the middle. The bottom shows that the spikes were well interpolated and that the
last nonzero value was kept to the end of the data.
49
Model Predictive Control – Theory and Applications
Figure 11.
Correction results for the swappings and duplications; original (upper) and correcting result (lower).
Figure 11 shows an example of the original trajectories of ankles (upper) after the
missing value completion and their correction result (lower). The original trajectories
included the leg duplications at frames 23–25, 41, 58, 90, and 121, and leg swappings at
56 and 73, respectively. We experimentally determined the threshold as 0.3 and got the
best performance. Figure 12 shows the performance of the low-rank filter applied to
the time sequence of the right ankle horizontal coordinate. The resultant coordinates
were compared with the original ones. After some trials, we set the AR model length as
12 and the rank as unity (rf ¼ 1). The low-rank filter provided us the excellent perfor-
mance in reducing severe noise. The result was smooth and well reproduced the
original shape, which cannot be obtained with a simple low-pass filter. Expecting to get
something personal feature, we repeated the experiments by increasing the rank up to
three. Unfortunately, larger ranks yielded only instability in the pose.
Figure 13 shows the performances of the puppet model fitting for stabilizing the
three-dimensional poses reconstructed from the joints on the stereo-pair images. The
Figure 12.
Performance of 2D low-rank filter applied to the time sequence of the right ankle horizontal coordinates.
50
Stereo-Measurement of 3D Poses of a Walking Person with a Puppet Model and Low-Rank Filter
DOI: [Link]
Figure 13.
Reconstructions of 3D-pose and shoulder trajectories.
left row indicates the reconstructed pose with footprints, and the right trajectories of
both shoulders are projected on the x-z plane.
In Figure 13a, although some joints were shifted from their original positions, their
overall shape has preserved a human shape. Such discrepancies are considered to be
the result of the low-rank filter in the previous stage being independently applied to
each joint regardless of the mutual position of the joints. This can also be seen from the
fact that the gaps between the two-dimensional trajectories of both shoulders shown
in Figure 13b were not constant. The distortion was somewhat compensated by
applying puppet-I model as shown in Figure 13c. The model puppet-I acted as a kind
of constraint and gave the reconstructed pose a possible positional relationship among
the joints as a human. You can see that the shoulder width was corrected to a constant
though their positions included larger fluctuation as shown in Figure 13d. The fluctu-
ation indicates that some systematic noise remains in the parallax after fitting the
model puppet-I. Although the shoulder width alone is not enough, the puppet-I
enabled us to reproduce relative poses from the measured joint coordinates with
smoothing by the low-rank filter. We consider that the fluctuations can be reduced by
applying a normal low-pass filter, such as a moving average one.
51
Model Predictive Control – Theory and Applications
The model puppet-II was developed as the improved version of the puppet-I. This
is because puppet-I rarely produces larger distortions that stretch the upper body
(shoulders and arms) from the lower body (hips and legs), particularly in an area far
from the camera. We speculate that this phenomenon is related to decreasing the
precision in OpenPose recognition of joint positions as the object becomes smaller.
Therefore, we adopted the rigid body in the puppet-II with some pose stabilizing
techniques. Whereas the puppet poses are optimized in the three-dimensional world
coordinate system in puppet-I, it is done on the two-dimensional image coordinate
system in puppet-II. When a person crosses the optical axis and both shoulders are on
it, they appear at the same point on the reference image, and the difference in their
parallax is slight. Therefore, noise in the stereo-pair images prevents us to distinguish
whether the front of the model is fitted to the front of the object or inverted to fit the
back. Since the optimization strongly depended on the initial values, we suppressed
the model flip by stabilizing them. The stabilization was performed by fitting the body
model in Figure 5a to joint coordinates on not only the target frame but also multiple
frames before and after the target frame. The multi-frame fitting was based on the
fact that the corresponding point translation on the stereo-pair images with keeping
the parallax just produced the translation in the world coordinate system without
changing the distance. We translated the body joints on all the frames in the window
so that the mid-point between the neck and the mid-hip of them matched that of the
target. We set a window w with a width of 24 and used the optimization result for all
frames in it as the initial values for optimization in a frame in the central small
window containing 12 frames. After finishing the optimization of them, we shifted the
window so that the central small window covered frames without gaps. We repeated
those procedures until all frames were processed. Before performing the optimization
for legs and arms, we applied an inverted test. When the direction from neck to nose
in the optimized model did not match that in the measured pose, we flipped the body
model. Figure 13e shows one of the resultant poses with footprints and Figure 13f
shoulder trajectories. The procedures above were for adjusting the positional relation-
ship among the joints and did not affect smoothing the distance from the camera.
Figure 14 shows the result of suppressing the variation in the distance by applying a
moving average filter and their shoulder trajectories. We consider that walking human
does not make sudden changes in posture for 1/3 of a second and determined the
window width as 21.
Figure 14.
Processed 3D-pose and shoulder trajectories with moving average.
52
Stereo-Measurement of 3D Poses of a Walking Person with a Puppet Model and Low-Rank Filter
DOI: [Link]
Figure 15.
Performance of the low-rank filter and the spatial AR model filter.
53
Model Predictive Control – Theory and Applications
Figure 16.
Final poses with footprints.
Figure 17.
Intermediate results after the main processing steps have been completed.
54
Stereo-Measurement of 3D Poses of a Walking Person with a Puppet Model and Low-Rank Filter
DOI: [Link]
was removed almost perfectly by predicting and correcting body position with fitting
the model puppet-II as shown in Figure 17e. Following the low-rank filter, LRF-3D
provided smoothness in joint movements as shown in Figure 17f. The last spatial AR
model filter SARF also gave spatial smoothness as shown in Figure 17g, although LRF-
3D was so powerful that the effect of SARF was almost invisible. The result indicates
that the proposed method measured the person walking almost perfectly in not only
its pose but also its position. We also provide the whole scene of the person walking by
a video at [Link] As can be seen from Figure 16
(and the video), LRF and the puppet-II model performed very well in the walking
measurements conducted in this study. The former extracts the dominant mode in the
signal, so from the standpoint of the behavior measurement, the longer the same
movement lasts (in this case, the more steps taken), the more stable the results
will be. On the other hand, if the pose changes significantly in a short period, the
dominant mode itself may become unstable and the performance may not be suffi-
cient. We believe that such poor performance may be improved by using a stereo
camera with a high frame rate for recording poses. The latter was introduced on the
fact that the joint positioning in a person’s upper body (shoulders and hips) does not
change significantly with a pose. The good performance of this model can be
interpreted as the effect of incorporating already existing knowledge into the mea-
surement. In this case, we believe that the fixed joint positioning as a correlation
structure narrows the search area in the optimizing process and thereby improves
total accuracy.
Now, we consider the applicability of the model puppet-II used here to persons
with different heights and body types. Based on the followings, we think the body
type is not so much larger problem, and the height difference can be compensated by
expanding or shrinking the length of each limb correspondingly to the height. The
reasons are that roughly measured limb lengths already gave us almost the perfect
results, the model had a very simple structure, and the position and the direction of
body parts were determined by an optimization process, not a matching one.
Conventionally, to recognize human behavior, we have to measure poses and
analyze the behavior as the temporal change of the poses. In this process, recognizing
the human itself was an extremely hard task. Recent advances in deep learning have
enabled software systems such as OpenPose to quantitatively extract human joints
independently of the observation direction. Analysis with two-dimensional data,
however, still depended on the observing direction, and one with three-dimensional
data was attractive but some problems also remained in acquiring the three-
dimensional human joint coordinates. In this study, we have established a technical
basis for quantitatively handling three-dimensional poses and their temporal changes,
that is, behavior, by removing the extreme noise in the three-dimensional joint coor-
dinates converted from OpenPose extracting stereo-pair joint coordinates.
5. Conclusions
Based on the fact that human joints did not move at random but moved together
with having a kind of spatial correlation structure in each action, a joint-based method
was proposed to measure three-dimensional human pose with position in walking as
the first step for obtaining the correlation structure. The joint positions were obtained
by applying OpenPose to both left and right images acquired with a general-purpose
stereo camera. The original three-dimensional joint coordinates were severely affected
55
Model Predictive Control – Theory and Applications
Abbreviations
AR Auto-Regression
JSON JavaScript Object Notation
LRF Low-rank filter
LRF-2D Two-dimensional low-rank filter
LRF-3D Three-dimensional low-rank filter
SARF Spatial AR model filtering
56
Stereo-Measurement of 3D Poses of a Walking Person with a Puppet Model and Low-Rank Filter
DOI: [Link]
Author details
Hiroshi Hanaizumi
Hosei University, Tokyo, Japan
© 2023 The Author(s). Licensee IntechOpen. This chapter is distributed under the terms of
the Creative Commons Attribution License ([Link]
which permits unrestricted use, distribution, and reproduction in any medium, provided
the original work is properly cited.
57
Model Predictive Control – Theory and Applications
References
Abstract
Model predictive control (MPC) is generally implemented with the feedback con-
troller to calculate the control sequence by solving an open-loop optimization problem
in the finite horizon, subject to the input and output constraints in the direct control
layer. While predicting the dynamics of the non-convex and non-linear system, the
computational burden and the model uncertainty are primary difficulties of the MPC
implementation. The objective of this paper is to design a hierarchically structured
MPC as the online set-point optimizer for maximizing economic efficiency over a long
time horizon to meet the strict product quality requirements. This paper proposes a
new method of using cooperative actions of multi-agent Q-learning for determining
the set-point of controllers to approximate the temperature trajectory of the raw
material through the cascaded three-step kiln process to an integrated reference tra-
jectory. Experimental results show that these cooperative actions guarantee the online
set-point optimization for decentralized local controllers within the framework of
hierarchically structured MPC.
1. Introduction
Model predictive control (MPC) is a control method that the future response of a
plant is predicted by the process model and the set of future control signals is calcu-
lated by optimizing a determined criterion to keep the process as close as possible to
the reference trajectory. MPC has originated from engineering requirements to max-
imize the control performance and the economic efficiency of the complex processes,
where requirements for manufacturing could not be properly satisfied by only the
feedback control such as PID.
MPC has been successfully implemented with a specific named controller for
almost all kinds of systems such as industry, economics, management and finance [1].
Nowadays, MPC is also referred as model-based predictive control, receding hori-
zon control (RHC), or moving horizon optimal control. MPC has become one of the e
59
Model Predictive Control – Theory and Applications
advanced process control technologies widely used for practical applications such
as multivariable control problems in the process industry because of its own
characteristics to consider the physical and operational constraints.
In traditional model predictive control, the control action at every sampling time is
determined by solving an online optimization problem with the initial state, being the
current state of the plant. MPC adopts the open-loop control method, by which the
future control actions are computed to minimize the performance function subject to
the desired reference trajectory over a prediction horizon under the constraints on
input and output signals at every sampling time. MPC has some features such as
compensating large delay, considering physical constraints, handling multivariable
system and not requiring deep knowledge of control. Especially, one of the key
features of MPC is the ability to handle constraints in the design [2, 3].
In most MPC algorithms, the predictive model would be the state space model.
Since the state space model deals with the state directly, MPC could be expanded to
multivariable systems and implement optimal control considering state constraints.
However, MPC also has some drawbacks such as the high computational burden and
the stringent real-time requirement, because it has to solve iterative optimal problems
at every sampling time.
In many research literatures for industrial processes control, MPC was designed as
the feedback controller to calculate the control sequence by solving a finite horizon
open-loop optimal control problem, subject to constraints on input and output signals
at direct control level. However, in the light of implementation, the computational
burden to calculate optimization problem at every sampling time remains the most
critical challenge. Moreover, the model uncertainty to predict the non-convex and
non-linear dynamic systems lead also to difficulties.
To cope with the non-linearity of the industrial processes, several non-linear MPC
techniques have been developed for multivariable optimal control using a non-linear
dynamic model for the prediction of the process outputs [4]. Two methods are intro-
duced which are based on non-linear model predictive control (NMPC) to solve
stochastic optimization problems, considering uncertainty and disturbances [5].
The distributed model predictive control is proposed, which is the effective
approach for plants with several subsystems [6, 7]. However, the direct control might
be insufficient for the optimal controller design in complex multivariable processes
due to their strong uncertainty, non-linearity and time-varying disturbance inputs. To
deal with these complex situations, a hierarchical control structure is presented to
maximize economic efficiency in the long run of the process so that it is possible to
efficiently handle the complexity and uncertainty in the process dynamics [3, 8].
MPC has been called the set-point optimizer in the constrained control layer (or
the global control layer) of the hierarchical structure. And it determines an optimal
set-point which leads to the best-predicted output of the process over some limited
horizon for the feedback controller of the direct control layer (or local control layer).
The multilayer control structuring methodology with the control layer in the
complex industrial processes was proposed in [8], and the online set-point optimizer
has been designed using a hierarchical control structure with MPC advanced control
layer in [9, 10]. The hierarchically structured MPC determining set-points for local
controllers placed at different elements of the sewer network have been designed in
[2] and the hierarchically distributed MPC that a higher supervisory layer provides
set-point trajectories to lower level MPCs proposed in [11].
As MPC in feedback controller, the optimizer of set-point control layer in the
hierarchical structure needs also the explicit model on processes. Nevertheless, it is
60
Perspective Chapter: Model Predictive Control of Multi-Variable Non-Linear System Using…
DOI: [Link]
generally very difficult to obtain the dynamic model of the complex controlled plant.
Therefore, Reference [12] proposed a Q-learning-based intelligent supervisory control
system (ISCS) with two layer-structures to find the online optimal set-points of
control loops for the three-step kiln process and presented a method for improvement
of Q-learning convergence to solve the difficulties of obtaining precise models of
industrial processes. By extending this method, this paper proposes a new method that
exploits the cooperative action of the multi-agent Q-learning, which satisfies the
online set-point optimization of the decentralized controllers to approximate the
temperature trajectory of the raw material of passing through the cascaded three-step
kiln to an integrated reference trajectory.
The objective of this paper is to design a hierarchically structured MPC as online
set-point optimizer for maximizing the economic efficiency over a long time horizon
to meet the strict quality requirements for products. The rest of this chapter is orga-
nized as follows. Section 2 designs the distributed MPC system of a three-layer struc-
ture, summarizes the function of every layer and analyze the requirement for the
controlled plant and constraints. Section 3 designs the Q-learning agents for the online
set-point optimization of the decentralized controllers and Section 4 describes the
methodology to improve the Q-learning convergence for the intelligent supervisory
control of the kiln process. Section 5 describes the simulation and practical results to
demonstrate the effectiveness of the proposed method. Finally, we draw conclusions
and give some directions for future research.
This section describes the design and functions of the hierarchically distributed
MPC architecture for set-point optimization.
The kiln process consists of three electric heating zones, namely the preheating
zone, the heating zone and the reducing zone, which are cascaded. In this process, the
quality requirements for most of the products were met by only stabilizing the color of
the product, which can be determined by the overall quantity of heat permeating
through materials. The temperature and speed in the heating zone allow us to control
the heat quantity, provided that the temperature of the preheating and reducing zone
was kept constant. Therefore, the intelligent supervisory control system of a two-layer
structure based on Q-learning has been proposed, which determines the set-point of
the controller in the heating zone instead of the human operator [12].
However, some specific products require not only the color property but also
stricter physical properties which depend on the temperature change of the
preheating and reducing zones. To do this, the temperature change characteristics of
the material passing through each zone should be approximated to a given reference
trajectory.
On the other hand, the kiln process is a multivariable non-linear system in which
the quality characteristics of the system cannot be evaluated by the response to any
single input signal alone, and vary with the disturbance. Moreover, it may be very
difficult to satisfy the quality characteristics of the high control requirements only by
linear feedback control, where the three zones in the process control are approxi-
mately linearized, respectively. Therefore, this paper extends ISCS of the two-layer
61
Model Predictive Control – Theory and Applications
structure in the framework of MPC to ensure the temperature trajectory of the raw
material passing through all zones in the kiln and proposes a three-layer ISCS archi-
tecture with multi-agent for the set-point optimization of the decentralized local
controllers.
Since the sizer followed by kilns classifies the material to flow into three lines, the
quantity of input material differs from each other. The experiment shows that the
average variation cycle of the material quantity is 1.2 min and the variation rate is 13.4%.
Passing through the preheating zone, the raw materials are slowly heated along with
a moderate temperature rise trajectory, depending on the requirements of the physical
initial properties of the product. Then, the temperature change of the materials depends
on the time of passing through this zone and its temperature, which are determined by
the set-point of the control system. When the preheating zone temperature is stabilized
according to the set-point by PID control, the heat transfer characteristics of the raw
material passing through this zone seem to be approximated by the first-order element
with time delay from the step response experiment. Figure 1(a) shows the step
response curve and the transfer function is equal to Eq. (1).
k
GðsÞ ¼ e�τs (1)
Ts þ 1
where T is the heat transfer time constant depending on the mass of the material, τ
is the time delay, and k is the steady-state value.
As shown in Figure 1, the value of the steady-state k impacts on the reachable
temperature at a certain period. The elapsed time of passing through the preheating
zone also varies depending on the conveyor moving speed. Therefore, in order to
satisfy the temperature reference trajectory of the raw materials, it is necessary to
change the temperature set-point of this zone according to the conveyor speed. The
heating zone is the most important one for ensuring the physicochemical properties of
products. The color of products that reflects the primary quality requirements is
changed sensitively by the temperature, conveyor speed and input material quantity
in this zone. Therefore, to achieve the desired color of products, it is necessary to
change the temperature and conveyor speed of this zone with the variation of material
Figure 1.
Step responses. (a) Preheating zone. (b) Reducing zone.
62
Perspective Chapter: Model Predictive Control of Multi-Variable Non-Linear System Using…
DOI: [Link]
quantity. The conveyor speed of the kiln process is controlled to only satisfy the
control characteristics of the heating zone under certain constraints, and the speed in
the preheating and reducing zone is dependent on the heating zone.
In the reducing zone, the materials are cooled slowly along with the moderate
temperature drop trajectory from the outlet temperature in the heating zone to meet
the physical properties according to the product quality stabilization requirements.
The temperature change of the materials depends on the temperature and passing
time of this zone.
The temperature change of the materials and control requirement in this zone is
the same as the preheating zone, but the only difference is that this is the cooling
process due to the temperature drop. The heat transfer model is the same as for the
preheating process and the step response is shown in Figure 1(b).
Each zone and conveyor of the kiln are controlled independently by a
decentralized PID controller according to a given set-point, respectively. In Figure 2,
the set-points are denoted as w1(s), w2(s), w3(s), and w4(s); manipulated variables as
u1(s), u2(s) and u3(s); the controlled variables as y1(s), y2(s) and y3(s) and v, which
respectively correspond to the temperature T1, T2 and T3 and the conveyor speed. If
the quantity of the material in the flow lines remains constant, the thermal equilib-
rium would be also maintained. If not, it is possible that the thermal balance in the kiln
would be affected by the change in the material quantity. Therefore, the overall heat
quantity of the materials is calculated as follows:
where Qc1, Qc2 and Qc3 are the heat quantity of each zone.
Since the variation of the heat quantity due to the change of the material quantity
causes the variation of the surface color of the products from kilns, it is unlikely that
the color characteristics of the products would be stabilized by the control loops.
Figure 2.
Three-layer ISCS architecture.
63
Model Predictive Control – Theory and Applications
The two-layer structured ISCS, which employs the reinforcement learning method
in which the agent learns through interaction with the environment, was developed to
optimize the set-points of the temperature and speed controllers instead of the human
operator in the heating zone [12].
The human operator empirically determines the set-points of the control loops in
the original process and evaluates the input material quantity and the color of product
images by using CCD cameras at the input and output of kiln processes. After that
where set-points for the temperature and the conveyor belt speed in each zone are
properly provided through HMI (Human Machine Interface) for maintaining the
product color to the required value.
Due to the difficulty of considering all the variables in the operation of the real
process, the human operator usually regulates set-points of the conveyor speed and
the temperature for the heating zone to cope with the change of the material quantity,
but not the temperature for the preheating and reduction zone. During the process
operation, all values of process variables are stored in the database.
Moreover, considering the fuzziness of the human’s action for product stabiliza-
tion, the following relationships between state and action variables would hold:
where d (kg/m2) is the quantity of material, v (m/s) is the speed of the conveyor,Ti
(°C) is the temperature of the heating zone and Δv and ΔTi are the offset of the speed
and the temperature set-points, and A, B, Ci, E and Fi are fuzzy sets.
The proposed three-layer structured ISCS consists of a distributed MPC system
with several agents, in which the set-point optimizers of the second layer calculate the
optimal set-points of the decentralized controllers to satisfy the control characteristics
according to the product quality requirements in each zone with the reference trajec-
tory provided by the economic optimization layer.
Agent 1 receives the temperature T1 of the preheating zone and the conveyor speed
v determined by agent 2 as stated and determines the temperature set-point change
ΔT1 of a controller in accordance with the quality requirements in this zone as an
action. Thus, the action of agent 1 makes a decision to satisfy the economic efficiency
by depending on the action of agent 2.
Agent 2 observes states such as speed v, temperature T2 in the heating zone and the
input material quantity d obtained by the estimator from CCD camera images, and
then, it determines the optimal change of set-point Δv and ΔT2 for speed and tem-
perature of the controller to stabilize the output product color Cp. Agent 2 does not
depend on the action of other agents, acts independently, and only provides its own
action results upon their request.
Agent 3 receives the speed v and the temperature T3 of the reducing zone as stated
and determines the temperature set-point change ΔT3 of the controller as an action to
meet the quality requirements. The action of agent 3 also depends on the action of
agent 2 as well as agent 1.
This system can be modeled as a multi-agent system, which is a group of single
agents with independent subsystems. Reinforcement Learning is a powerful approach
to solving multi-agent learning problems in complex environments.
This paper focuses on the design problem of multi-agent Q-learning for set-point
optimization of controllers in the set-point optimization layer to solve the distributed
64
Perspective Chapter: Model Predictive Control of Multi-Variable Non-Linear System Using…
DOI: [Link]
M�1
X� �2 M�2
X M�2
X
J 2 ðkÞ ¼ r2 ðk þ pÞ � y2 ðk þ pÞ þ ΔT 2 ðk þ pÞ2 þ Δvðk þ pÞ2 (5)
p¼L p¼L�1 p¼L�1
N �
X �2 N
X �1
J 3 ðkÞ ¼ r3 ðk þ pÞ � y3 ðk þ pÞ þ ΔT 3 ðk þ pÞ2 (6)
p¼M p¼M�1
subject to:
With constraints, the cost functions can be minimized numerically by the optimal
action of agents.
The third layer functions as the plant control layer, where the optimal reference
trajectory would be calculated to achieve the economic effectiveness of the process
Figure 3.
The reference trajectories for three-step kiln process.
65
Model Predictive Control – Theory and Applications
This section describes the design of the decentralized Q-learning agents for set-
point optimization of controllers in each zone to solve the distributed NMPC problem.
From the analysis of references [13, 14], Q-learning is described as follows [12].
The Q-learning algorithm is a model-free reinforcement learning method and its
convergence has been proved. The Q-learning estimates the expected value Q*(s, a) of
the discounted reward sum as Q-value through randomized interactions with the
environment without the requirement of knowledge for transition probabilities in
Markov decision process (MDP).
The action value Q(s, a) is the estimate of an action a in a state s and its updating
process would be recorded in a Q-table. Generally, the initial value of the Q(s, a)
called Q-function is given randomly and is approximated iteratively to the optimal Q-
function. As a state transits from st to st + 1 by an action a, the agent updates Q(st, at) as
follows:
h i
Q ðst , at Þ ( ð1 � αÞQ ðst , at Þ þ α rtþ1 þ γ max Q ðstþ1 , aÞ (9)
a
where α ∈ (0, 1] is the learning rate, rt + 1 the immediate reward for the next state
st + 1 and maxaQ(st + 1, a) the maximum action value in the same state. The Q-learning
algorithm for estimating Q*(s, a) is given in Table 1.
The Q-table can be utilized as a dynamic model of the environment after the
learning has been completed because it reflects the dynamic characteristic of the
environment.
Despite the effectiveness for optimal policy, the Q-learning algorithm has some
drawbacks of slow convergence. To tackle these issues, problem definition,
discretization and learning parameters should be properly determined in practical
circumstances [15].
It is usually difficult for a single agent to implement a large-scale complex task due
to its own limited capacity. Multi-agents, which collaborate agents with each other
Table 1.
Q-learning algorithm.
66
Perspective Chapter: Model Predictive Control of Multi-Variable Non-Linear System Using…
DOI: [Link]
The heating zone is the most important part for the quality of products, and the
agent for the determination of the controller set-point in this zone does not depend on
the action of the other agents, but only transmits its future action through the message
with the request of other agents. Thus, the agent design in this zone becomes the
single agent problem. The materials passing through this zone cause physicochemical
changes and are calcined near the appropriate temperature set-point for a certain
time.
Although the temperature in this zone is at a steady state, the temperature trajec-
tory of materials cannot be properly predicted by the heat transfer model because the
input material quantity changes the variation of the heat quantity of materials. Hence,
in order to stabilize the heat quantity that materials receive, the agent evaluates the
color of the output product and determines the optimal set-point change Δv and ΔT2
of the temperature and conveyor speed for the heating zone controller according to
Eq. (3) in each action cycle. Thus, Eq. (5) is reformulated as follows:
M
X �1 � �2 M
X �2 M
X �2
J 2 ðkÞ ¼ rcp ðk þ pÞ � ycp ðk þ pÞ þ ΔT 2 ðk þ pÞ2 þ Δvðk þ pÞ2 (10)
p¼L p¼L�1 p¼L�1
where rcp is the desired reference luminance of the product, and ycp is the measured
luminance obtained in the estimator.
The agent designing for the heating zone involves the designing of the state space,
action space and reward function as in [12] (see Appendix A).
changes of the controllers from Eq. (4) and (6) to approximate them to the reference
trajectory ri, respectively.
Since the conveyor velocity v is determined by the heating zone agent 2, the action
of agents 1 and 3 depends on the action of agent 2. That is, the Q-learning agents act to
maximize the reward based on the cooperative information with agent 2 and the
independent interaction with the sub-environment. The agent’s action is represented
by the following fuzzy rules:
From Eq. (11), states of the preheating and reducing zones are the joint state of the
state v of agent 2 and a state Ti of agent i (i = 1, 3). The continuous state variables v and
Ti are discretized and the state space is partitioned into fuzzy subspaces that are
assigned to five linguistic variables, respectively. The discrete joint state space can be
represented as follows:
S ¼ sjsjk ¼ vj , T i,k , i ¼ 1, 3, j ¼ 1, 2, … , J, k ¼ 1, 2, … , K (12)
where J = K = 5 and the number of possible states are 52 = 25 and the triangular
membership functions are used.
As shown in Eq. (11), the set-point change ΔTi of controllers is the action variable
of the agents for the operation of the preheating and reducing zones. The range of this
variable is determined by ΔTi ∈ [�15, +15] (°C) as the heating zone. The continuous
action space is partitioned into fuzzy subspace which is assigned to five linguistic
variables. The discrete action space for the agent is represented as follows:
where M is the number of equally divided fuzzy subset in the proper range of
ΔTi,m.
In each time step, based on the observed states (i.e. vj and Ti,k) and the ε-greedy
policy, the agents choose a state-action pair from Q-table and update the temperature
set-points of control systems for speed and temperature for the preheating and
reducing zones. By the action of agents, the temperatures are updated as follows:
The action of agents in the preheating and reducing zones to meet the specific
quality requirements of the product is guaranteed by approximating the heat transfer
trajectory of the material passing through these zones to the reference trajectory.
68
Perspective Chapter: Model Predictive Control of Multi-Variable Non-Linear System Using…
DOI: [Link]
Thus, the reward signal of Q-learning for the control of these zones can be expressed
as the inverse of the square sum of the deviation between the reference trajectory and
the prediction trajectory over the prediction horizon, which is obtained by the set-
point change at the current sampling time as follows:
1
rtþ1 ¼ PK � �2 , i ¼ 1, 3 (15)
k¼0 ri ðkÞ � yi ðkÞ
PK � �2
where k is the prediction length in the ith zone and k¼0 ri ðkÞ � yi ðkÞ > 0.
Methods for improving the convergence of Q-learning with discrete action as the
primary acting mode are largely divided into tuning the learning parameters and fast
updating of the Q-table.
In the heating zone, the convergence improvement method [12] of the Q-learning
agent based on the method of obtaining the optimal Q-table is presented in Appendix
B, but a brief outline is as follows.
The use of the agent in process operation has not been permitted until the learning
is completed, because the heating zone agent uses a model-free Q-learning method
that finds the optimal policy without prior knowledge of the environment.
Therefore, the method for improving the convergence of Q-learning is to deter-
mine the initial values of the Q-table optimally. This requires knowledge of the
environmental dynamics, which is not easily obtained in the non-linear system.
The proposed method is realized by extracting automatically the operational
experience rules of the expert from past operating data and initializing the Q-table
using it.
In the zones for preheating and reducing of the calcined raw material, agents
interact with the environment and adjust the set-point of the control systems
according to the conveyor speed change, considering the cooperative information
provided by the heating zone agent.
Taking into account the arbitrary variation of the speed, the agent action of deter-
mining the set-point change with the temperature of its zone is represented by a fuzzy
logic rule as Eq. (11). When two state variables and one action variable have five fuzzy
variables, respectively, the Q-table consists of 125 state-action pairs where the number
of states is 25 and each state has 5 actions, respectively.
69
Model Predictive Control – Theory and Applications
Rule Description
... ...
Table 2.
Structure of rules.
In the preheating and reducing zones, the heat transfer dynamics of the material
from the step response experiment are shown in Figure 1. Given the dynamics, it is
possible to perform the offline simulation.
This subsection presents a method of determining the optimal initial value of the
Q-table using the dynamics model. Given the conveyor speed v determined by the
action of the heating zone agent, the time t of passing through the zone can be
calculated.
Based on the numerical simulation using the step response model, moreover, the
set-point change where the heat transfer trajectory of the material is approximated to
the reference trajectory can be determined repeatedly.
First, the initial Q-value is set to 0 and the reward is determined by the off-line
simulation using the step response model and Eq. (15).
Eq. (15) is the reward function at a joint state S and an individual action A of agent
i, that is,
Ri : S � A ! R (16)
where R is the set of real numbers. Table 2 shows the structure of rules.
The simulation result to evaluate the performance of the agent for the heating zone
is presented in Appendix C.
The simulation result for the preheating and reducing zones does not present
because there have already existed the explicit heat transfer models in these zones, but
only the operating experiment result.
During the operation experiment, firstly, the luminance of the output product
is utilized to compare the operation by the human with the agent for the heating
zone [12].
It is usually impossible to run the comparative experimentation with the tradi-
tional method in a real situation due to the trial-and-error features in the Q-learning
with arbitrarily initialized Q-value. Therefore, the operations of an operator are
preferred to evaluate the proposed method.
Figure 4 shows the comparison results for 90 hour-experiment.
The tolerance limitation Y0 of luminance lies between 167 and 178. The
luminance Y for the manual operation changes within the range of Y0 � 5 and its
deviation V is 0.4%. For the proposed case, the experiment results are that Y=Y0 � 3
and V = 0.4%.
70
Perspective Chapter: Model Predictive Control of Multi-Variable Non-Linear System Using…
DOI: [Link]
Figure 4.
Operation experiment result of real process. (a) Operation by human operator. (b) Operation by agent.
In spite of the sub-optimality of the initial Q-values, it seems that the convergence
feature was mostly satisfied.
However, the experiment for human operation shows somewhat insufficiency.
The operator’s experience might have a decisive impact on the long-term operation.
Furthermore, it is unlikely that human might always make the correct decision for
set-points of control systems.
From the above results, it is certain that the proposed method improves the
trial-and-error features in the Q-learning with arbitrarily initialized Q-value.
Next, in the preheating and reducing zones, the online set-point determination
method using the cooperative action of agents is compared with the previous method by
the deviation between the predicted temperature trajectory and the reference trajectory.
Figure 5 shows the results of an experiment for the comparison of the temperature
change trajectory with the reference trajectory according to the operating mode of the
kiln process. Since the temperature trajectory of the material in the heating zone
cannot be predicted by the heat transfer model, the medium part of the plot for this
zone demonstrates the relative change of the heat quantity estimated by the
luminance of the product during the experiment.
In the previous approach, the supervisory control by the intelligent agent was
implemented for the heating zone with the temperature of the preheating and reducing
zones being constant due to the operational complexity. In this operational mode, the
reference trajectories and the predicted temperature trajectories are shown in Figure 5(a).
On the other hand, Figure 5(b) demonstrates the temperature trajectories
improved by the optimal set-point control in the operational mode with the coopera-
tive action of decentralized agents to meet the high-quality requirement.
71
Model Predictive Control – Theory and Applications
Figure 5.
Comparison of temperature change trajectory approximation. (a) Previous method. (b) Improved method.
Moreover, in the case of batch production for a limited amount of specific product,
it is possible to satisfy the more accurate temperature trajectory by stepwise change of
the set-point.
Experimental results show that the cooperative action of agents for determining
the set-point of the decentralized local controllers ensures the economic optimization
of the process operation.
6. Conclusions
This paper proposes an NMPC design problem with the hierarchical structure as an
online set-point optimizer to maximize the economic efficiency of long-term opera-
tion in order to meet the strict quality requirements of products in the cascaded
three-step kiln.
Firstly, a three-layer ISCS was designed, which involves a direct control layer for
the kiln process, an online set-point optimization layer for decentralized controllers
and a management layer for the economic optimization of the process.
Second, a distributed MPC system that approximates the temperature trajectory of
the raw material of passing through the kiln to an integrated reference trajectory is
proposed, which adopts the multi-agent Q-learning to optimize the set-point for
decentralized controllers.
Third, a new method for fast Q-learning convergence is proposed. For the agent of
the heating zone, the human operator’s experience rules were automatically extracted
from the process database using C4.5, and the Q-table initialization algorithm based
on experience rules was developed.
In addition, for agents of the preheating and reducing zones, the Q-table initiali-
zation method using the model is proposed.
Thus, the cooperative action of multi-agent Q-learning-based ISCS determines the
optimal set-points of the controllers to stabilize the process, so that it can replace the
human operator in the kiln process which does not permit the trial-and-error
72
Perspective Chapter: Model Predictive Control of Multi-Variable Non-Linear System Using…
DOI: [Link]
A. Agent design
If the temperature trajectory in the preheating and reducing zones of Figure 2 are
satisfying the reference trajectory, the relation between the material quantity d, the
speed v, the heating zone temperature T2 and the product color Cp can be represented
as follows:
ðd, v, T 2 Þ ! Cp (17)
where v and T2 are measured by the controllers (PLCs) and d and Cp are calculated
as the luminance through the estimator from the CCD camera image. In order to
represent the grey-scale information by the luminance Y from the 8-bit RGB color
model, the YIQ color model [19] is used as follows:
where I, J and K are the numbers of equally divided fuzzy subsets in the proper
ranges of di, vj and T2,k, respectively, I = J = K = 5 and the number of possible states are
53 = 125.
In Figure 2, the set-point change, Δv ∈ [�0.02, +0.02] and ΔT2 ∈ [�15, +15] (°C),
are the action variables of the agent for the preheating zone and the action space is
partitioned into the fuzzy sub-spaces denoted by five linguistic variables as follows:
The number of possible actions for each state (d, v,T2) is 52 = 25. The agent chooses
a pair of state-action from Q-table based on the observed states and the ε-greedy
policy of choosing actions.
According to this, the rules for updating set-points for the speed and the temper-
ature are as follows:
where v(t + 1) and T2(t + 1) are the speed and temperature set-points in the present
time, v(t) and T2(t) are ones in the past time, respectively.
Since the product color Cp as the quality characteristic depends on the d, v and T2,
the luminance is used as the reward of the reinforcement learning for the heating
zone.
Due to the action of the agent, the state st proceeds to st + 1 and the product color
Cp(t) changes to Cp(t + 1). The reward rt + 1 given to the agent is as follows:
rtþ1 ¼ f Cp ðt þ 1Þ (23)
The scheme of improving the Q-learning convergence for the heating zone agent
involves procedures such as (i) Extracting the decision tree for the operational
Figure 6.
Fuzzy set of luminance value.
74
Perspective Chapter: Model Predictive Control of Multi-Variable Non-Linear System Using…
DOI: [Link]
experience rules from the historical database, (ii) Converting the decision tree to
fuzzy rule, (iii) Initializing the Q-table by the fuzzy rule.
The data records R(At1, At2, … , Atk, ...) stored in the database involves the state
variable set X = {x1, x2, ..., xk}, the action variable set (set-points) Y = {y1, y2, ..., yp},
the operator’s experience knowledge and the process dynamics.
Thus, the new relationship between the state and action is obtained using the
relational projection operation [20] as follows:
Y
ðRÞ ¼ ft½q� j t ∈ Rg (25)
q
where t[q] is the set of the value of the attribute q to the element t of the relation R.
First, samples are selected from the created relations and each element of the
sample is normalized onto the interval [0, 1]. And the normalized samples are
classified according to the Euclidean similarity criteria of Eq. (26) and the obtained
instances are classified randomly into training data and test data:
" #1=2
Xm � �2
rij ¼ qik � qjk =m (26)
k¼1
where qi = (qi1, qi2, … , qim) and qj = (qj1, qj2, … , qjm) are ith and jth samples.
The obtained instance set D consists of two classes according to the value C of class
that if the luminance which shows the product quality lies in the proper range δ then
C = 1 else C = 0, and its structure is shown in Table 3. Then, D1 ∩ D0 = ϕ.
In Table 3, the attribute set I = {I1, I2, ..., Im} contains the state variable set X and
the action variable set Y, where I = X ∪ Y, X ∩ Y = ϕ and m = k + p.
The decision tree learning method to extract the operating rules from data utilizes
the C4.5 algorithm [21], which is the successor of ID3 [22].
I1 I2 I3 … Im Class
… … … … … … …
Table 3.
Structure of instance set.
75
Model Predictive Control – Theory and Applications
C4.5 algorithm for constructing the decision tree includes the following contents:
ii. To construct the branches based on every value of the root node.
where X = [x1, x2, ..., xm] is the m-dimensional sample vector, Aji (i = 1, 2, ..., m) is
the fuzzy set of xj; Cj ∈ {0, 1} is the pattern class of the jth rule and N is the number of
fuzzy rules.
In the decision tree constructed from the training data by the C4.5 algorithm, each
path from a root to a leaf represents a rule.
Table 4 shows some rules obtained from the decision tree.
The state-action pairs with the C = 1 in Table 4 represent the operating conditions
applicable to the process. Therefore, by choosing only the rules with C = 1 among the
N rules, the fuzzy rules for the following state-action pairs would be obtained:
From Eq. (28), as each rule has 3 fuzzy variables for state and 2 fuzzy variables for
action, the Q-table contains 125 states, each of which has 25 actions.
However, since only the empirical knowledge of operator is stored in the process
database, the fuzzy rule obtained from Table 4 reveals only the most appropriate
action to the given state among the possible action space.
Rule Description
Table 4.
Some of the decision tree rules.
76
Perspective Chapter: Model Predictive Control of Multi-Variable Non-Linear System Using…
DOI: [Link]
1. i = 1.
2. Search the rule of Eq. (28), whose antecedent matches the ith state si in Q-table. If the rule does not
exist, then go to step 5.
3. Assign maximum value to the Q-value of an action that matches with the consequence of the rule.
4. Initialize Q-values of the rest actions using Eq. (31) and go to step 6.
5. Initialize Q-values of all possible actions to the state si as zero.
6. i i + 1.
7. Repeat from step 2 for all the states.
Table 5.
Initialization algorithm of Q-table.
Figure 7.
Assignment of Q-value in 5 � 5 action space.
Thus, we propose the algorithm of initializing the Q-value for the action space that
cannot be obtained by the decision tree for each state in Table 5.
The exponential function distribution used in the determination of Q-values in the
three-dimensional space is represented as follows:
where ||w-r|| is the Euclidean Square Norm of feature vectors defined as follows:
!
n �
X � 1=2
2
kw � rk ¼ j wl � r l j (30)
l
where actions w1 and w2 have the values of Δv and ΔT, respectively, W is the
action set and i = j = 1, 2, … , 5. r1i and r2j are respectively the centres of the ith and jth
action range. A is the initial constant value and k is the growth constant. In this study,
A = 10 and k = 1.6, respectively.
77
Model Predictive Control – Theory and Applications
Figure 8.
Architecture of simulation system.
C. Simulation results
Figure 8 shows the architecture of the simulation system, which is used to evaluate
the performance of the agent for the heating zone under the assumption that the
direct control layer in Figure 2 performs well enough.
The reward for the agent is calculated by Eq. (24) and the reward signal is simu-
lated by the following luminance prediction model corresponding to the color of
product obtained using the process data:
where x1, x2, x3 and y denote the quantity of material d, the speed v, the tempera-
ture T and the product luminance Y, respectively. Thus, the agent observes the states
of the process through x1, x2 and x3, and takes the actions through Δx2, Δx3, and
estimates the reward by y. During simulation, the Q-table and parameters for the real
process are utilized (Table 6).
The simulation and experiment results are shown in Figures 9–11.
Figure 9 compares the Q-learning convergence of the proposed method to the
traditional one in regard to the Bellman error [23].
Figure 10 demonstrates the operating characteristic during simulation.
Material quantity d 10 � 50 %
Table 6.
Parameters for simulation.
78
Perspective Chapter: Model Predictive Control of Multi-Variable Non-Linear System Using…
DOI: [Link]
Figure 9.
Comparison of Q-learning convergence.
Figure 10.
Simulation results of quality characteristics. (a) Input quantity change. (b) Initialized method arbitrarily. (c)
Proposed method.
In Figure 10(a), the virtual input x1 changes randomly and the variables x2, x3 are
given as certain values according to the process.
In Figure 10(b) and (c), the upper and lower limit of the luminance
corresponding to the product quality is shown as the thick line.
The luminance is calculated by Eq. (32) and the reward is predicted by Eq. (24).
79
Model Predictive Control – Theory and Applications
Figure 11.
Comparison of average reward.
Author details
© 2023 The Author(s). Licensee IntechOpen. This chapter is distributed under the terms of
the Creative Commons Attribution License ([Link]
which permits unrestricted use, distribution, and reproduction in any medium, provided
the original work is properly cited.
80
Perspective Chapter: Model Predictive Control of Multi-Variable Non-Linear System Using…
DOI: [Link]
References
[1] Fekri S, Assadian F. Fast model Control. London, UK: Imperial College
predictive control and its application to Press; 2005. p. 370
energy Management of Hybrid Electric
Vehicles. In: Zheng T, editor. Advanced [9] Marusak P, Tatjewski P. Actuator
Model Predictive Control. London, UK: fault toleration in control systems with
IntechOpen; 2011. pp. 3-28 ch1 predictive constrained set-point
optimizers. International Journal of
[2] Ocampo-Martinez C. Model Applied Mathematics and Computer
Predictive Control of Wastewater Science. 2008;18(4):539-551.
Systems. Springer-Verlag London DOI: 10.2478/v10006-008-0047-2
Limited; 2010. p. 216. DOI: 10.1007/
978-1-84996-353-4 [10] Tatjewski P. Supervisory predictive
control and on-line set-point
[3] Wang L. Model Predictive Control optimization. International Journal of
System Design and Implementation Applied Mathematics and Computer
Using MATLAB®. Springer-Verlag Science. 2010;20(3):483-495.
London Limited; 2009. p. 374. DOI: 10.2478/v10006-010-0035-1
DOI: 10.1007/978-1-84882-331-0
[11] Li H, Swartz CLE. Dynamic real-
[4] Qin SJ, Badgwell TA. A survey of time optimization of distributed MPC
industrial model predictive control systems using rigorous closed-loop
technology. Control Engineering prediction. Computers and Chemical
Practice. 2003;11(7):733-764 Engineering. 2018;122:356-371
[5] Arellano-Garcia H, Barz T, [12] Kim SH, Song KR, Kang IY, Hyon CI.
Dorneanu B, Vassiliadis VS. Real-time On-line set-point optimization for
feasibility of nonlinear model predictive intelligent supervisory control and
control for semi-batch reactors subject to improvement of Q-learning
uncertainty and disturbances. convergence. Control Engineering
Computers and Chemical Engineering. Practice. 2021;114:104859. DOI: 10.1016/
2020;133:1-18. DOI: 10.1016/j. [Link].2021.104859
compchemeng.2019.106529
[13] Watkins CJCH, Dayan P. Technical
[6] Patil BV et al. Decentralized nonlinear note: Q-learning. Machine Learning.
model predictive control of a multi- 1992;8:279-292
machine power system. Electrical Power
and Energy Systems. 2019;106:358-372. [14] Montague PR. Reinforcement
DOI: 10.1016/[Link].2018.10.018 Learning: An Introduction, by Sutton RS,
Barto AG. Trends in Cognitive Science 3,
[7] Zhang A, Yin X, Liu S, Zeng J, Liu J. no 9; 1999. p. 360
Distributed economic model predictive
control of wastewater treatment plants. [15] Zarrabian S, Belkacemi R,
Chemical Engineering Research and Babalola AA. Reinforcement learning
Design. 2019;141:144-155. DOI: 10.1016/ approach for congestion management
[Link].2018.10.039 and cascading failure prevention with
experimental application. Electric Power
[8] Brdys M, Tatjewski P. Iterative Systems Research. 2016;141:179-190.
Algorithms for Multilayer Optimizing DOI: 10.1016/[Link].2016.06.041
81
Model Predictive Control – Theory and Applications
82
Chapter 5
Abstract
In this chapter, we are going to tackle the control of a particular class of Discreet
Event systems, which is the subclass of Conflicted Timed Event Graphs with the use
of Dioid Algebra (Min, +). The main proposed approaches concern systems including
sharing phenomena and are subject to various constraints such as time, capacity, and
mixed constraints. For that, we establish a convenient switching policy according to a
specific allocation order, and we compute suitable control laws that guarantee the
proper system functioning while ensuring the respect of its constraints.
1. Introduction
For Discrete Event Systems, resource sharing could be a problem. Therefore, time
and space compliance is crucial, and a loss of time and space results when the right
control decision is not made, especially when various constraints exist. For this reason,
the allocation of shared resources for Timed Event Graphs (TEGs) between several
processes can be transformed into a switching system control problem that is modeled
using the (Min, +) algebra. As this type of system could contain a finite number of
states, then it belongs consequently to the class of Discrete Event Systems (DES), the
object of our study.
This chapter book takes place among the investigations and the studies in order to
establish control approaches for Discrete Event Systems [1–4]. In several industrial
processes, both time and capacity factors are critical conditions that affect the evolu-
tion of Discrete Events, especially when resource-sharing phenomenons arise, which
urges us to define a suitable modeling adapted to their nature and following switching
operational modes.
To do this, we have placed ourselves in relation to the works done with the use of
the same tools in order to establish an adapted state of the art to our purposes. We
have been able to improve some approaches by relaxing some limiting assumptions,
83
Model Predictive Control – Theory and Applications
and the new approaches established preserve the liveliness of Timed Event Graphs by
avoiding dead loops without tokens [5, 6]. An effective switching policy is introduced
to organize the access to the shared resource. Switching (Min, +) models are then
adapted, computed, and used to solve the control problem under the existence of
constraints. We have established an adapted control policy according to a sequence of
active modes of competing graphs and defined according to an operating plan. For our
case study, we were interested not only in mixed modes but also in conservative
modes for which the same graph within a mode can exclusively appropriate the
resource allocation.
Original (Min, +) control synthesis is detailed in the case of the existence of a
single marking constraint on one of the CTEG’s places, which is after that generalized
to the case of multiple marking constraints, and we have also dealt with the problem
of possible mixed constraints of both time and capacity. The design of control laws
that satisfy these requirements is therefore an important step, and sufficient condi-
tions for the satisfaction of these constraints have been deduced.
2. Modeling of CTEGs
To model the sharing phenomenon between CTEGs, we first study the switching
behavior of these systems. Their evolution is described by the succession of modes,
which constitutes a switching sequence defining the resource allocation of a particular
process, whereby the organization of modes within a sequence is already fixed by the
production plan. In the following section, we give some basic definitions.
2.1 Definitions
2.2 Hypotheses
• N defines the number of concurrent SISO Timed Event Graphs (users) such that
N > 1.
• Since the periodic allocation of the shared conflict place depends on the order of
the modes in the sequence, it results in a periodic Conflicted Timed Event Graph.
84
Closed Loop Control Approaches for Conflicted Timed Event Graphs Subject to Constraints…
DOI: [Link]
• The token in the conflict place is consumed only once by a single graph. In terms
of Petri nets when this place is not marked, it means that there is only one active
elementary circuit in possession of the resource.
Most of the works dealing with control of Petri nets, under marking constraints,
have not taken into account the time parameter in the modeling phase or in the
control synthesis phase. Despite the fundamental role of the time factor, a few studies
have dealt with the control of SEDs modeled by timed Petri nets.
For the example of the TEG shown in Figure 1, we observe that three Timed Event
Graphs (users) compete to win the resource allocation in one mode. Furthermore, we
provide the rules for managing the switching between the different modes to validate
the allocation of the shared resource. As defined earlier, a mode can contain a number
of competing graphs. The activation logic of the transitions follows the order of the
selected graphs, such that only the upstream and downstream transitions of the shared
resource are concerned on the modeling step.
We highlight the modeling step of the GETC, especially at the shared resource
level; see Figure 1. For this, we chose the operational mode Mk ðGn Gnþ1 Þ where k is
the mode index. Thus, the activation of the mode systematically leads to the
possession of the token by the first graph noted Gn (respectively with its upstream and
downstream transitions linked to the shared resource). After having been used for a
certain time τ, the resource will be available for the graph Gnþ1 , and the token will
thus be distributed by the output transition tk to the input transition ti of this mode
Figure 1.
~1 .
Highlighting the conflict at the level of the shared resource p
85
Model Predictive Control – Theory and Applications
(the other arcs connected to the resource with other transitions will not be
considered by the modeling step).
Referring to [7] and by analogy to TEGs, the modeling of GETC is based on the
swap/switch between TEGs under the switching model approach.
Remark 1: Each defined mode is associated with a switching model (Min, +). The
dynamic evolution equation corresponding to the activation of the mode is noted by
Mk in the sequence S, and it is defined by the following equation:
Where x represents the index of the corresponding switching model (Min, +), we
have:
∗n
Ax ∈ nmin is the state matrix of the mode k.
n∗m
Bx ∈ min is the control matrix of the mode k.
ux is the control vector of the mode k.
n is the number of all internal transitions, and m is the number of source
transitions.
Example: In Figure 2, the CTEG is composed of 3 Timed Event Graphs
respectively given by: GET 1, GET 2, and GET 3. The resource allocation given by the
sequence S as follows:
S ¼ M 1 M2 (2)
Figure 2.
~1 .
An example of three TEGs (TEG1, TEG2, and TEG3) sharing a conflict place p
86
Closed Loop Control Approaches for Conflicted Timed Event Graphs Subject to Constraints…
DOI: [Link]
To obtain the linear (Min, +) model and for more clarity sakes, it is recommended
to make these changes; we replace “Min” by “⊕” and “+” by “.”, and one obtains,
consequently, the following system of (Min, +) linear equations:
8
>
> θ1 ðtÞ ¼ e:u11 ðtÞ⊕2:θ2 ðt � 1Þ
>
>
>
> θ2 ðtÞ ¼ e:θ1 ðt � 1Þ
>
>
>
>
> 1
> θ3 ðtÞ ¼ 1:u2 ðtÞ
>
>
>
>
< θ4 ðtÞ ¼ e:θ3 ðt � 1Þ⊕1:θ8 ðtÞ
(3)
>
> θ5 ðtÞ ¼ 1:θ4 ðtÞ
>
>
>
> θ ðtÞ ¼ e:u1 ðtÞ
>
> 6
>
> 3
>
>
>
> θ 7 ð tÞ ¼ e:θ 6 ðt � 1Þ
>
>
:
θ8 ðtÞ ¼ 1:θ7 ðt � 1Þ
When the system switches the mode from M1 to M2 , the model also
changes. For the second mode M2 ðG3 G2 Þ, we obtain the following system of (Min, +)
equations:
8
>
> θ1 ðtÞ ¼ e:u21 ðtÞ⊕2:θ2 ðt � 1Þ
>
>
>
> θ2 ðtÞ ¼ e:θ1 ðt � 1Þ
>
>
>
>
>
> θ3 ðtÞ ¼ 1:u22 ðtÞ
>
>
>
>
< θ4 ðtÞ ¼ e:θ3 ðt � 1Þ⊕1:θ8 ðtÞ
(4)
>
> θ5 ðtÞ ¼ 1:θ4 ðtÞ
>
>
>
>
>
>
> θ6 ðtÞ ¼ e:u23 ðtÞ
>
>
>
> θ7 ðtÞ ¼ e:θ6 ðt � 1Þ
>
>
>
:
θ8 ðtÞ ¼ 1:θ7 ðt � 1Þ
And for the second mode M2 ðG2 G3 Þ, the following state space equation is
achieved:
87
Model Predictive Control – Theory and Applications
2 3 2 3
ε 2 ε ε ε ε ε ε e ε ε
6e ε ε ε ε ε ε ε77 6 ε7
6 6ε ε 7
6 7 6 7
6ε ε ε ε ε ε ε ε 7 6ε ε ε7
6 7 6 7
6ε ε e ε ε ε 2 ε77 6ε ε ε7
6 6 7
x 2 ð tÞ ¼ 6 7:xðt � 1Þ⊕6 7uðtÞ (6)
6ε ε 1 ε ε ε ε ε7 6ε ε ε7
6 7 6 7
6ε ε ε ε ε ε ε ε77 6ε ε ε7
6 6 7
6 7 6 7
4ε ε ε ε ε e ε ε5 4ε 1 ε5
ε ε ε ε ε ε 1 ε ε ε ε
Space constraints are crucial factors that are often considered in the context of the
Petri net formalism. Our main objective is to find efficient controllers to optimize this
constraint by limiting the number of tokens in certain places and that is depending on
the system needs. These places could be assimilated to stations in transportation
networks or to limited stock areas in industrial contexts. The marking constraints are
expressed by linear inequalities.
In the same context, among some recent contributions, we can mention [8], where
the authors addressed the control design problem to synthesize a causal control feed-
back that serves to satisfy the capacity constraints in a single place as well as in a
sequence of places. In this sense, they tried to establish relaxed adaptive assumptions
by assuming that each linear marking constraint only affects a single place or places
located on the same path within the TEG.
Through this section, we will give some hypotheses in order to solve the problem
of undesirable situations related to capacity constraints (whatever the place) for a
large and complex case of Timed Petri nets, which is Conflicting Timed Event Graphs.
To do so, it is necessary to explain some interesting concepts.
In the following sections, after introducing the marking constraint, we will pro-
ceed first by the control synthesis formulation for the case of a single constraint before
extending to the case of multiple constraints.
Where xi ðtÞ and xj ðtÞ are, respectively, the counter functions of the input
and output transitions related to this place. The first counter function xi ðtÞ
represents the number of transitions firing from the transition start time tj to t
time. Thus, xj ðtÞ defines the sum of input tokens, and xi ðtÞ defines the sum of
output tokens.
In the case of marking constraint, the final marking of this place from an initial
marking Mij0 must not exceed a certain threshold noted b. Eq. (7) can thus be reduced
through (Min, +) algebra to the following inequality, which represents the marking
constraint that we seek to satisfy:
xj ðtÞ ≤ b � Mij0 :xi ðtÞ (8)
Given the explicit equation of state representation: xðtÞ ¼ A:xðt � 1Þ⊕B:uðtÞ such
that we have A ¼ A ^ ∗ :A ^ ∗ :B,
^ 1 and B ¼ A ^ its equivalent equation is given by the
0 0
following equation:
τ�1
τ k
xðtÞ ¼ A :xðt � τÞ⊕ ⊕ A :B:uðt � kÞ , Such as τ ≥ 1 (9)
k¼0
Where n represents the number of internal transitions of CTEG, and Aϕ ir
denotes the ith components of the matrix.
For each path in CTEG the selected mode, we define by ταn the sum of all delays for
each TEG connecting the source transition to the upstream transition of the
constrained place. We denote by n the graph number.
By replacing the two Eqs. (10) and (11) in Eq. (9), we obtain the following
expression:
ταn
n ϕ ϕ�1
k
ðA BÞj ux ðt � ταn Þ ≤ b � Mij0 : ⊕ A in r xr ðt � ϕÞ ⊕ ⊕ A :B in :uðt � kÞ
n
r¼1 k¼0
(12)
We see that the satisfaction of the above inequality induces the simultaneous
satisfaction of the following two inequalities:
ϕ�1
ðAταn BÞj ux ðt � ταn Þ ≤ b � Mij0 ⊕ Ak :B in :uðt � kÞ (13)
n
k¼0
ταn
n ϕ
ðA BÞj ux ðt � ταn Þ ≤ b � Mij0 ⊕ A in r xr ðt � ϕÞ (14)
n
r¼1
89
Model Predictive Control – Theory and Applications
ταn
ϕ�1 k
ðA BÞjn ux ðt � ταn Þ ≤ b � Mij0 ⊕ A :B in :uðt � kÞ (15)
k¼0
n
ux ðt � ταn Þ ≤ b � Mij0 � ðAταn BÞj ⊕ Aϕ in r xr ðt � ϕÞ (16)
n r¼1
Like:
F ¼ b � Mij0 � ðAταn BÞj :Aϕ such that ϕ ¼ ταn þ 1; F ≥ e.
n
In this section, we deal with a more complex case, where multiple users are
competing to win the resource allocation. In addition to this complexity criterion that
could be cumulated especially with the presence of multiple marking constraints.
Therefore, we admit that for a CTEG, multiple constraints could emerge for each n
SISO TEG. We assume that there are Z capacity constraints applied to some places
belonging to the Timed Event Graph of n index, and they are noted psn : For each
constrained place, we note respectively the following notations: Msn0 is the initial
marking, tzn and tz0 n are the delays, and they are corresponding to the input and output
transitions of the place psn . xzn xz0 n are the counter functions corresponding to these
transitions. We denote by αsn the path connecting the control transition to the input
transition of the constrained place. ταsn is the sum of the delays through this path.
We denote the expression of marking constraints by the following inequality:
Z
uðtÞ ¼ ⊕ uz ðtÞ (20)
z¼1
90
Closed Loop Control Approaches for Conflicted Timed Event Graphs Subject to Constraints…
DOI: [Link]
Having
for the z constraint
a control law denoted as uz ðtÞ ¼ Fz :xðt � 1Þ such that
τ αn ταn þ1
F z ¼ b � Mij0 � ðA BÞj :A ðzn 0 , :Þ is the feedback that ensures each constraint
n
of the form (19), if the conditions of the form (18) are verified for each index z0 n and
zn of the constrained place psn , with ϕs ¼ ταsn þ 1 for s ¼ 1, … , S:
Proof is provided in [9].
3.4 Closed-loop control with the (Min, +) algebra of timed Petri nets subject to
mixed constraints
Temporal constraints are common restrictions for Discrete Event Systems, and
their consideration during the control synthesis stage is a current problem that has
motivated many researchers [1–3, 5, 10–18].
In this section, we are interested in the satisfaction of these constraints, more
particularly in the critical time, especially in the case of tasks where the allocated time
must be limited by a maximum bound τmax min
ij . Given a place denoted by pij , τ ij repre-
sents the minimal stay time of the token in this place. This is the time that is already
taken in advance by the linear model. Since τmin ij ¼ τij , then τmax
ij is the additional time
condition that we look to satisfy.
Referring to [19], the expression for the time constraint is derived. It is represented
by the following inequality:
xi ðtÞ ≥ mij0 xj t � τmax
ij (21)
Petri net feature marking assigns a nonnegative integer number to the places that
refers to number of existing tokens. It also defines the dynamic behavior of a given
system that varies according to certain transition firing rules. The tokens are
interpreted as available resources such as material storage capacity in storage areas,
memory capacity in network communication systems, and products to be processed
and that are occupying an industrial production line. In the literature, several attempts
have been carried out for the synthesis of a control satisfying the marking constraints
of different kinds and for particular Petri nets [4, 8, 20–23]. However, each of these
approaches suffers from a particular limitation.
We assume that the place illustrated in Figure 3 is subject to a mixed constraint.
Let mij0 be its initial marking. xj ðtÞ and xi ðtÞ are, respectively, the counter functions
associated with the transitions tj and ti until t time. mij is the marking available in the
place pij until t time like mij ∈ ½e, b�, which is equivalent to:
According to [8], the marking is bounded as follows mij ðtÞ ≤ b, and subsequently,
we could get the following inequality:
91
Model Predictive Control – Theory and Applications
Figure 3.
Mixed constraints on the place pij .
In this section, we focus on the synthesis of appropriate control laws in the pres-
ence of mixed constraints on the places of the Timed Event Graphs. We start with the
case of a single mixed constraint, and then, we generalize to the case of multiple
constraints.
Considering the Eq. (9), we proceed by substituting the parameter τ by ϕ, and we
the following equation:
ϕ N ϕ�1
k
xi ðtÞ ¼ ⊕ A ir xr ðt � ϕÞ ⊕ ⊕ A :B i :uðt � kÞ ; ϕ ≥ 1 (25)
r¼1 k¼0
n�n n�m
With A ∈ min and B ∈ min , like n denotes the number of internal transitions, and
m is the number of resource transitions.
The matrix given by Aϕ ir denotes the rth components of the i row of the
matrix Aϕ :
To be more precise, we will opt for the notation ϕ ¼ ϕx in the case of the time
constraint and the notation ϕ ¼ ϕy when it comes to the capacity constraint.
Let α be the path bounded by the source transition and the transition upstream of
the mixed constrained place.
We define by τα and mα successively the sum of all delays and the sum of markings
existing along this path.
xj ðtÞ represents the counter function of the transition upstream of the constrained
place, and ux ðtÞ represents the counter function of the source transition. As a result,
we give the following inequality:
Remark 2: We admit that ux ðtÞ represents the control that guarantees the time
constraint case and uy ðtÞ the control that guarantees the marking constraint.
92
Closed Loop Control Approaches for Conflicted Timed Event Graphs Subject to Constraints…
DOI: [Link]
TEGs are a major class within the Discrete Event Systems paradigm. This type of
system seems to be more sensitive when the general process is exposed to mixed time
and capacity constraints. We reserve this section for the introduction of the control
synthesis in the case of existence of mixed constraints in the TEG.
Theorem 4.1: A TEG whose dynamics is given by the explicit equation of state
representation, subject to time and capacity constraints on the place pij of the form
(21) and (24) respectively. It admits a control law of the form uðtÞ:
uðtÞ ¼ min Fx xr ðt � 1Þ, F y xr ðt � 1Þ ¼ ux ðtÞ⊕uy ðtÞ ¼ Fx xr ðt � 1Þ⊕F y xr ðt � 1Þ
(27)
N
With Fx ¼ ⊕ Aϕx ir � mij :mα such like ϕx ¼ τα þ τmax
ij þ 1 and
r¼1
N
Fy ¼ ⊕ Aϕy : b � mij � mα such like ϕy ¼ τα þ 1
r¼1
This is also equivalent to:
N N
uðtÞ ¼ min ⊕ Aϕx ir � mij :mα :xr ðt � 1Þ, ⊕ Aϕy : b � mij � mα ir :xr ðt � 1Þ
r¼1 r¼1
N N
¼ ⊕ Aϕx ir � mij :mα :xr ðt � 1Þ⊕ ⊕ Aϕy : b � mij � mα ir :xr ðt � 1Þ
r¼1 r¼1
TEG might also be more sensitive when the same system is the subject of the
presence of multiple mixed constraints. In this regard, since we have dealt with the
case of control laws that satisfy a single mixed constraint, it seems important to deal
with a more generalized problem that is multiple places subject to mixed constraints:
Let Ps be the places subject to multiple mixed constraints with s ¼ 1, … , S: These
places are respectively delimited by the transitions tz , tz0 , which are respectively
associated to the counter functions xz and xz0 : We denote by λz the cumulative delay
from the control transition tu to the input transition of the constrained place Ps :. For
each place Ps , we define by mz the initial marking. τmaxz is the maximum delay, and
bz ∈ ℕ ∗ is the upper bound of the marking to be respected.
Consequently, the time constraints and the capacity constraints are given by:
xz0 ðtÞ ≤ mz xz t � τmax
z (29)
xz ðtÞ ≤ ðb � Ms Þxz0 n ðtÞ (30)
Theorem 3: For a TEG whose evolution is described by the explicit equation of the
state representation (1), it is subject to Z mixed constraints on the places of the form
(29) and (30), admitting a general control law of the form:
93
Model Predictive Control – Theory and Applications
Z
U ð tÞ ¼ ⊕ u z ð tÞ (31)
z¼1
With:
� � � �
uðtÞ ¼ F:xðt � 1Þ ¼ min F x :Fy xr ðt � 1Þ ¼ F x ⊕Fy xr ðt � 1Þ
� � � �
N � � N � � �� � �
Like Fx ¼ ⊕ Aϕx ir � mij :mα et F y ¼ ⊕ Aϕy ir : b � mij � mα are the
r¼1 r¼1
feedbacks that ensure the mixed constraints of the form (29) and (30), they are
verified for each index z0 and z of the constrained place ps , with:
ϕxs ¼ τα þ τmax
ij þ 1 et ϕys ¼ τα þ 1 for each s ¼ 1, … , S:
4.3 Control of CTEGs subject to a mixed constraint with a single shared resource
Although many processes with nonpermissive standards, such as time and capacity
criteria, are almost sensitive, they are found to be effective when these standards are
met under proper system conduction.
At this level, we focus on the formulation of the control approach in the case of
CTEGs exposed to a mixed time and capacity constraint. CTEGs are similar to com-
peting users sharing a single resource among themselves. The solution of this problem
is based on finding control laws with appropriate feedbacks that guarantee the mixed
constraints applied on specific places of the CTEG.
Assuming that pij is the place subject to both a capacity and a time constraint,
specifically located on the nth Timed Event Graph of the CTEG.
xjn ðtÞ and xin ðtÞ represent the counter functions of transitions tj and ti respectively,
such that the firing number of these transitions is fixed until t time.
In the context of CTEG topic, the expression of the time constraint is expressed
with reference to the n index of the TEG where it exists. It is given by the following
linear inequality:
� �
xin ðtÞ ≥ mij xjn t � τmax
ij (32)
This same place may also be subject to marking constraint, which is given by the
following inequality:
94
Closed Loop Control Approaches for Conflicted Timed Event Graphs Subject to Constraints…
DOI: [Link]
xjn ðtÞ ≤ b � mij xin ðtÞ (33)
N0�N0 N0�m
Given the matrices A ∈ min and B ∈ min , such that N 0 represents the number
of internal transitions of the Conflicted Timed Event Graph. The notation given by
ϕ
A ir denotes the ith component of the matrix Aϕ with r varying from 1 to N 0 .
For clarity purposes, uðt � kÞ in Eq. (35) will be noted as ux ðt � kÞ when we inspect
for a control synthesis in the time constraint case and as uy ðt � kÞ in the capacity
constraint case, with αn denoting the path bounded by the source transition and the
upstream transition of the mixed constrained place.
For each path of the Conflict Timed Event Graphs in the chosen mode, we define
respectively by ταn and mαn the sum of all delays and the sum of the markings for each
Timed Event Graph connecting the source transition to the upstream transition of the
constrained place. Let tjn be its upstream transition of this place and xjn be its counter
function. As a result, we obtain the following inequation:
95
Model Predictive Control – Theory and Applications
N
ϕy
Fy ¼ ⊕ A : b � mij � mαn ; ϕy ¼ ταn þ 1
r¼1
The above control is also equivalent to
N ϕx
ϕ N
un ðtÞ ¼ min ⊕ A ir � mij :mαn :xr ðt � 1Þ, ⊕ A : b � mij � mαn ir xr ðt � 1Þ
y
r¼1 r¼1
N N
ϕx ϕy
¼ ⊕ A ir � mij :mαn :xr ðt � 1Þ⊕ ⊕ A : b � mij � mαn ir xr ðt � 1Þ
r¼1 r¼1
The above control law exists if the following conditions are true:
F x ≥ 0, Fy ≥ 0 and mαn ≤ b � mij : Ak :B in for each k ¼ 0, … , ταn (38)
This section will be reserved to extend the previous case for the control of a CTEG
in the case of the existence of multiple mixed constraints.
Theorem 5: For a CTEG constituted of N Timed Event Graphs, whose evolution is
described by the explicit equation of state representation (1), shares a safe resource
denoted p ~. Then, Ps are the places subject to z mixed constraints of the form (39) and
(40). This CTEG admits a general control law of the form:
Z
U ð tÞ ¼ ⊕ u z ð tÞ (41)
z¼1
The demonstration of this theorem with an application case could be found in [25].
96
Closed Loop Control Approaches for Conflicted Timed Event Graphs Subject to Constraints…
DOI: [Link]
Multiple shared resources can be the object of multiple switches between the
Timed Event Graphs constituting the CTEGs and performed according to the needs
and specifications of the application. While multiple mixed constraints may also be
involved, we move to a generalization for a control approach previously given in
Section 4.4 that focuses on the existence of multiple users sharing multiple safe places
while being a cause of the presence of multiple mixed constraints.
Remark 4: We note that at the modeling level, the mobilization of several shared
resources is visible through the switching (Min, +) model within the sequence.
Theorem 6: For a CTEG consisting of N Timed Event Graphs, whose evolution is
given by the explicit equation of state space representation (1), sharing multiple safe
resources noted p ~l with l ¼ 1, … , L, ∀l ∈ ℕ, it is subject to multiple mixed constraints
given by the inequalities (39) and (40) respectively, admitting a global control law of
the form:
Z
U ð tÞ ¼ ⊕ u z ð tÞ (43)
z¼1
Having for z existing constraints on the places psn , the control law in this case is
N
noted uz ðtÞ ¼ min ux ðtÞ, uy ðtÞ , where ux ðtÞ ¼ ⊕ Aϕx z0n , : :xr ðt � 1Þ � mz0 z :mαn and
r¼1
N ϕy
uy ðtÞ ¼ ⊕ A z0n , : :xr ðt � 1Þ:ððbn � miz0 z Þ � mαn guarantee the existing constraints of
r¼1
the form (32) and (33), if and only if the conditions of the form (42) are verified for
each index z0 n and zn of the constrained places noted by psn : having ϕxs ¼ ταn þ τmax
ij þ
1 and ϕys ¼ ταn þ 1, for s ¼ 1, … , S:
The proof is provided in [25] and an application case of a crossing railway sections
is given.
5. Conclusion
Conflicted Timed Event Graphs turn out to be a rich class in the Discrete Event
Systems paradigm with wide range of industrial applications. Based on their func-
tionally critical nature where multiple users compete to win resource allocation, this
type of systems seems to be more sensitive when the overall process is exposed to
mixed time and capacity constraints. A wide investigation in this subject with multiple
application cases referring to manufacturing applications and transport systems could
be found in [26]. To this end, we detailed the switching model approach using the
(Min, +) Dioid algebra. The conservative and mixed cases for resource allocation
between graphs are considered beforehand. These contributions solve both sharing-
resource-allocation problems, while the problem of the existence of capacity- and
time-related marking constraints in places seems to be a source of complication for
this type of system. Sufficient conditions are given for the existence of control laws.
Conflict of interest
Author details
© 2023 The Author(s). Licensee IntechOpen. This chapter is distributed under the terms of
the Creative Commons Attribution License ([Link]
which permits unrestricted use, distribution, and reproduction in any medium, provided
the original work is properly cited.
98
Closed Loop Control Approaches for Conflicted Timed Event Graphs Subject to Constraints…
DOI: [Link]
References
100
Chapter 6
Abstract
1. Introduction
Automatic navigation and control of terrestrial vehicles are a rapidly growing and
developing field, with a wide range of applications. From meal-serving robots in
restaurants to GPS-localized tractors that can till fields without human interaction, the
potential for this domain of research and application in industry is only recently being
expanded. Recent advances in computational, sensory, and battery technologies have
enabled the automation of perhaps the most popular domain, automotive systems.
The automotive industry has a long history of utilizing feedback control systems, in
functions such as cruise control for longitudinal control and lane-keeping assistance
for lateral control. In fact, control of an autonomous vehicle has historically been
decomposed into these two categories – longitudinal and lateral control. However, in
order to achieve higher levels of autonomy, it is vital to develop a control framework
that generates a high-quality coordinated response between both vehicle states. In this
chapter, a comparison between the various control schema will be illustrated to weigh
the pros and cons of a model predictive controller in this application. For the use of an
MPC system in simulation, it will be necessary to compare several models, MPC
formulations, and optimization methods. At the end of this chapter, one example of
such a controller will be presented for both a linear and nonlinear case to illustrate the
performance and capabilities of such a controller, as well as the advantages and
disadvantages, which come with its implementation.
101
Model Predictive Control – Theory and Applications
2. Controller review
Geometric controllers simply use the geometric and kinematic relations of the
vehicle to generate an output. In lateral control, the most popular formulations are the
pure-pursuit and Stanley controllers.
2.2 Pure-pursuit
Perhaps the most simple controller that sees real-world use, a pure pursuit con-
troller uses some look-ahead distance to generate a steering output. In the most simple
application, a fixed distance is selected, and a point on the target trajectory path at this
distance from the car is used to determine the steering output. The output steering is
directly proportional to the yaw angle of this geometric link. Additional complexity
can be added by having this look-ahead distance vary as vehicle speed changes. This
works well in simple, low-curvature environments but has no claims of optimality or
robustness. Furthermore, as the vehicle approaches a path, such as a straight line or
slight curve, it will asymptotically approach the line even in ideal circumstances.
Additional logic needs to be included to improve target following and account for
situations where the car is further away from the path than the look-ahead distance.
2.3 Stanley
keðtÞ
δðtÞ ¼ ψ ðtÞ þ arctan (1)
vðtÞ
102
Review of Model Predictive Control and Other Methodologies for Lateral Control…
DOI: [Link]
This controller is able to operate within a wider operating range than a pure pursuit
controller, similar computational requirement, and ease of implementation. Addi-
tionally, only one gain is required to be tuned, although the formulation can be
modified with other gains and considerations in practice. However, this controller is
highly dependent on a well-tuned yaw sensor as beyond a certain threshold noise can
significantly impede performance. Furthermore, this controller suffers in its ability to
provide adequate robustness.
Controllers developed using frequency domain analysis have a rich history of use
due to their ability to produce optimal and robust linear controllers, as well as the ease
of implementation in computationally constrained environments.
2.5 PID
ð
deðtÞ
uðtÞ ¼ K p eðtÞ þ K i eðτÞdτ þ K d (2)
dt
PID controllers are the most popular general controller, due to their performance
on a wide variety of systems, simple formulation as a second-order low pass filter, and
procedural tuning methodology. The proportional, integral, and derivative gains are
able to correct the input based on the current error, sum of previous errors, and rate of
change of the error. For many systems, this is sufficient to produce the desired
performance. This method can be tuned directly without a system model, or the
controller gains could be derived utilizing an appropriate system model.
2.7 H2 and H∞
The H2 and H∞ controllers use the concept of norm minimization in the frequency
domain to develop a controller that guarantees performance of a linear system [3]. H2
controllers minimize a quadratic cost function or 2-norm of a system, which can be
shown to guarantee performance even with Gaussian noise interference to the system.
H∞ controllers use a multiplicative gain to shape the closed-loop transfer function and
serve to mitigate worst-case scenarios and guarantee stability.
103
Model Predictive Control – Theory and Applications
2.11 MPC
Due to the wide variety of controllers applicable to the problem of vehicle control,
one must weigh the benefits and drawbacks of any controller to be implemented
against all others to determine which best fits the vehicle’s intended function. For this
reason, it is useful to describe the specific utility provided by MPC and justify the cost
of including more powerful computational equipment onboard a vehicle. Model pre-
dictive control methods are able to approximate an optimal solution to the control
problem, which incorporates realistic actuator and state constraints. Additionally,
these controllers are able to forward-project, which is highly useful in automotive
applications as the controller can account for path constraints and obstacles.
Model predictive controllers, while difficult to prove as robust, are nonetheless able
to generate optimal outputs that are updated in response to the actual dynamics of the
system. They also introduce a critical consideration in optimization that controller
actuators are constrained not only within minimum and maximum bounds but within
transition speed limits as well. Since controllers use a constrained optimization tech-
nique at each time step, the capabilities of the actuators can always be included in the
problem and produce outputs that are both optimal and feasible.
3. Modeling
Perhaps the most popular model format used in the control of cars and car-like
robots is the bicycle model. The widespread use of this modeling style can be attrib-
uted to its ability to accurately describe the motion of a vehicle across a variety of
maneuvers, using a minimal set of states. The general assumption of this model is that
there is no weight transfer or roll in the vehicle and that both front and rear sets of
wheels can be effectively reduced to a single wheel in the front and rear of the vehicle
for control purposes. In this section, controllers of increasing complexity will be
described, which are based on these original assumptions.
In a kinematic bicycle model, dynamic interactions between the tires and the road
are ignored, and perfect traction is assumed. For a standard passenger vehicle, the
vehicle is assumed to have a front wheel that is free to rotate, and a fixed rear wheel.
Essentially, the vehicle is modeled as a two-dimensional bicycle, which is graphically
represented in Figure 1.
x_ ¼ vcosðψ þ βÞ
y_ ¼ vsinðψ þ βÞ
v
ψ_ ¼ sin ðβÞ
lr (3)
v_ ¼ a !
lr � �
β_ ¼ arctan tan δf
lf þ lr
This model is inherently nonlinear due to the rotation of the front tire as an input
and its corresponding impact on the system as a whole. As such, it is sometimes useful
105
Model Predictive Control – Theory and Applications
Figure 1.
Diagram of bicycle model [5].
to linearize this system about a zero steering angle in order to develop the linearized
kinematic bicycle model. This model describes the kinematic motion of a front-steered
vehicle well but makes one assumption that greatly limits its performance. The kine-
matic model’s assumptions imply that the vehicle’s front and rear wheels will drive
forward in exactly the direction they are aimed, which is not true, especially at larger
steering angles. In reality, tires flex and the contact patch where the tire meets the road
can distort, leading to behavior that does not fit this model. At higher lateral accelera-
tions, tire dynamics become one of the most significant parameters in lateral control.
The dynamic model is an expanded form of the kinematic model, in that tire forces
are now included. Tire behavior is nonlinear and does saturate beyond a certain
threshold. The most famous model used in both academia and industry is the Pacejka
Magic Tire formula, which was empirically derived from a series of experiments
designed to capture pure cornering motion [6]. Though there is not a direct link to
known physical phenomena within the tire, the Magic Formula accurately captures
tire behavior over a wide range of conditions.
F y αy ¼ Dy sin Cy arctan By ∗ αy � Ey By αy � arctan By αy þ SV y whereαy ¼ α þ SHy: (4)
F y ¼ Cy αy (5)
This assumption simplifies the model but loses the ability to model tire saturation,
and therefore, only performs adequately within a near-linear range. Below a lateral
106
Review of Model Predictive Control and Other Methodologies for Lateral Control…
DOI: [Link]
acceleration of 4–5 m/s2, this model is sufficient for most applications. When incor-
porated into the linear bicycle model, the state space notation for lateral motion of a
bicycle model becomes
2 3 2 3
Cr þ Cf Cf a1 � Cr a2 C1
� � �u � � �
v_ 6 � mu mu 7 v 6 m 7
¼6
4 �Cf a1 þ cr a2 2 2
7
5 þ6 7
4 Cf a1 5δf (6)
r_ �Cf a1 � Cr a2 r
uIz Iz u Iz
h i
ye ¼ ½0 1� vr :
Additional higher-order models of note include the planar and double bicycle
models, which model each tire with a fixed track width between two linked bicycle
models, and the full model, which can consider roll and weight transfer. There are a
limitless number of considerations that can be made, but each additional required
state exponentially increases the computation time required for an MPC controller to
generate the optimal solution, and as of yet are not feasible without a significant
investment into the computational platform. The following examples will use more
simple models for ease of explanation as well as viability for use without heavy
resource commitments.
In recent years, model predictive control has become of great interest in autono-
mous vehicle engineering, as it is able to formulate an optimal control law given
realistic vehicle constraints, and adjust in real-time to a change in target trajectory as
well as vehicle dynamic conditions. It is adaptable to a wide variety of applications and
provides a great deal of flexibility to the control designer. However, the greatest
limiting factor is the computation time required to achieve an optimal solution. In
practical applications, significant time must be given to ensure that the controller will
achieve good performance and provide commands quickly enough to function in a
real-world environment. A rule of thumb in this application is the outermost loop of
the controller should iterate at roughly 10 Hz frequency, which has been used
several times in academic studies [7, 8]. Currently, computing technology has
advanced to the degree that both linear and nonlinear MPC controllers are beginning
to see use. In this section, the MPC formulation of a vehicle controller will be
elucidated, and considerations will be noted with regard to realistic functional
development (Figure 2).
states, as well as state transition speeds and a variety of other factors. The general
formulation of a continuous-time optimal control problem is as follows:
ð
minimize lc ðxðtÞ, uðtÞÞdt þ V f xðT Þ
x, u
subject to : xð0Þ ¼ x0
xðT Þ ∈ f
Figure 2.
MPC loop structure.
108
Review of Model Predictive Control and Other Methodologies for Lateral Control…
DOI: [Link]
For reasons that will be clear to those with experience using cost functions, and
that will be explained later in the section, it is practical and many times ideal to use a
quadratic cost function similar to an LQR formulation. In the example below, there is
a quadratic cost for the states, inputs, derivative of inputs, and final value.
J ¼ xT Qx þ uT Ru þ u_ T RΔ u_ þ Φ xf (8)
Direct shooting methods are the simplest methods that can be applied to produce a
performant output, and exploit the formulation described in previous sections. Since
the boundary problem has been converted to an initial value problem, an optimizer can,
within each time step, guess and check the input value and observe the output, moving
closer to the optimal value with each iteration. The solving method by which this is
guaranteed to approach an optimal solution will be described in the next section, as well
as the constraints imposed on the initial value optimization method. Once an optimal
solution is found, its final state values are used to generate the next initial value problem
in the set. This process is repeated until the time horizon is reached.
Direct multiple shooting is an extension of direct single shooting [9]. Instead of
solving the first time step, then continuing forward in time to reach a solution, direct
multiple shooting methods solve each time step in parallel, allowing a discontinuity
between the time steps to appear—this is called a defect. The defect is then included in
the optimization problem as a term to be minimized, and thus after iteration becomes
negligible. If an optimal solution is reached, the absolute sum of defects should approach
zero. Now that the transcription method and optimization problem have been formu-
lated, the only remaining component is how the optimization problem is actually solved.
Direct methods require the use of an iterative solver, which approaches the final
result in finite time. In this section, a few selected solver methodologies will be
109
Model Predictive Control – Theory and Applications
described and compared, starting with a basic solver to describe their fundamental
behavior, before moving on to more complex methods. An important clarification is
to be made with regard to optimization and its degree of difficulty. While distinction
is generally made between linear and nonlinear MPC, the more significant factor
determining the difficulty of optimization is whether the system is convex or non-
convex. This is the primary reason that quadratic cost functions are preferred, which
was referenced earlier in the chapter. Quadratic cost functions maintain convexity in
the solution space. Linear MPC with a quadratic cost function will always be a convex
optimization problem, while nonlinear MPC may or may not be convex. Convexity in
this context assumes that all points between two points in the set are also points in the
set. This enables the use of interior point methods to generate a solution, which
comprises the driving functions behind most popular optimization solvers used in
MPC. Additionally, a convex set provides a guarantee that the solution will be globally
optimal [10]. Optimization for non-convex problems introduces the risk that the
solution will only be locally optimal, but there are techniques to mitigate this issue
without making the computation time unrealistic for use in real-time applications like
autonomous vehicle control.
One popular method for optimization is the Newton–Raphson method. This gra-
dient descent method is a simple implementation that provides a good basis for
understanding other optimization techniques. The formula for selecting the next
iterative point is shown below:
�1
xkþ1 ¼ xk � ∇2 f ðxk Þ ∇f ðxk Þ: (9)
This method uses the Hessian of a function to approximate the global minima, as
this in a sense minimizes a quadratic cost function. One benefit of this method is that
it works very well for linear systems without a large number of states, with low
relative computational cost. However, significant nonlinear behavior or a large num-
ber of states may require more advanced methods. Optimization is a large field with a
wide breadth of literature so will not be covered in depth here, but the Newton–
Raphson method provides a good intuitive sense of the general idea of how optimiza-
tion is performed in a model predictive controller.
6. Simulations
In order to provide a more concrete and understandable model, two MPC simula-
tions were selected to present their performance. There will not be a one-to-one
comparison as each controller has a different application, but a curious reader will be
able to use the available GitHub repositories to investigate beyond the phenomena and
commentary provided here.
A simple example of linear MPC using a kinematic bicycle model is available at the
PythonRobotics GitHub repository [11]. The available model predictive speed and
steering control utilizes a cubic spline planner to produce a set of ordered waypoints,
which include an x, y, and yaw pose as well as velocity target. The simulation uses the
direct single-shooting method based on the same cost function described earlier in this
110
Review of Model Predictive Control and Other Methodologies for Lateral Control…
DOI: [Link]
Figure 3.
PythonRobotics linear kinematic model (5 m/s and 10 m/s, respectively).
chapter. The map used in this example is derived from the nonlinear example
presented next in this section (Figure 3).
In this example, the MPC controller was modified to have a fixed longitudinal
velocity, in order to accentuate the lateral behavior of the vehicle. In this linear
example, which was simulated with a kinematic system, the vehicle is able to track the
target path, however, performance is hindered at higher speeds. The most significant
overshoot is observed in the lower left section of the track, where the linear model is
unable to generate an ideal trajectory for a high curvature. Additionally, this model is
able to effectively control for cross-track error and yaw rate but is limited in practical
scope as it cannot make use of additional road information.
A much more advanced example from ETH Zurich presents a nonlinear model
predictive control scheme, which incorporates a set of realistic constraints to the
vehicle and path, and simulates a higher-order model, a dynamic bicycle model with
Pacejka tire coefficients [12]. Again, this simulation was restricted to only allow for
lateral control and was operated at a fixed speed of 5 and 10 meters per second.
However, this example has a more developed cost function, and as such select weights
are compared to differentiate between a forward-progression optimization and path-
tracking optimization.
x_ ðtÞ ¼ f ðx, uÞ
(10)
el ðxÞ ¼ sin ϕref X � X ref � cos ϕref Y � Y ref
ec ðxÞ ¼ � cos ϕref X � X ref � sin ϕref Y � Y ref
x ∈ track
This formulation is still quadratic but uses a lag cost term qc as well as state, input,
and terminal cost. The state costs are also bounded within a track, which constrains
the optimization such that the vehicle cannot predict a path that leaves the track
(Figure 4).
111
Model Predictive Control – Theory and Applications
Figure 4.
Modified MPCC controller simulation at select speeds and optimization weights.
7. Conclusions
Direct multiple shooting converges faster than single shooting due to the increased
dimensionality of slack parameters between each time step. Furthermore, Python is
inherently a slower language than C++ because is it not a compiled language. In the
application of autonomous vehicles, where fast control response is essential, it is of the
utmost importance to formulate the problem and design using languages that reduce
the computational time wherever possible.
The benefits of model predictive control are additionally shown in the simulated
examples above, especially the MPCC controller, which utilizes bounded optimization
to navigate the track near the edge of the drivable terrain. Without an intelligent path
planner, it is difficult to design a controller through any other means that is able to use
information about the drivable space and optimize the control response to take
advantage of it. While this effect is achievable with more complex path planning and
replanning, model predictive control is able to provide a collision-free output whose
performance is dependent upon the model itself rather than an external planning
algorithm. More advanced autonomous systems are additionally able to forward-
project moving objects, and a model predictive controller can take these projections
and generate an online output that navigates around such objects.
In existing real-world applications, longitudinal control is additionally incorpo-
rated in order to have the vehicle achieve a form of full-optimized piloting. This
provides a significant advantage in some cases as many other controllers require either
a decoupling of the longitudinal and lateral control or some modification to the control
law to achieve good performance. The increased computational cost of this controller
is quickly becoming a smaller and smaller price to pay for this performance, and the
nonlinear model predictive control of a passenger vehicle is becoming increasingly
feasible to implement. Collision avoidance, behavioral prediction models, and sto-
chastic prediction are just a few of the many possible improvements that can be
incorporated to achieve control with a well-defined set of safety considerations. This
will ultimately provide an extra layer of safety and performance in the computational
stack of a self-driving vehicle, beyond just following a dictated path.
[Link]
[Link]
113
Model Predictive Control – Theory and Applications
Author details
© 2023 The Author(s). Licensee IntechOpen. This chapter is distributed under the terms of
the Creative Commons Attribution License ([Link]
which permits unrestricted use, distribution, and reproduction in any medium, provided
the original work is properly cited.
114
Review of Model Predictive Control and Other Methodologies for Lateral Control…
DOI: [Link]
References
Abstract
Model Predictive Control (MPC) is a widely used method that has numerous
applications in process industries. In the MPC group of controllers, a clear process
model is used directly for controlling, predicting future plant behavior, and calculat-
ing corrective control action required to maintain the output at the desired set point
value. Most chemical processes exhibit inherent nonlinearities due to interactions
among processes, disturbance, and set-point changes. MPC variants based on
nonlinear process models have been a proven stiff control technique for process
control along with improved handling of constraints, abnormal dynamics, and time
delays. In addition to that, MPC is better in handling the nonlinearity and time-
varying characteristics during run time by modifying model. The control of multi-
input and multi-output reactive-separation process is difficult due to nonlinearity
associated with the process and interactions of vapor-liquid equilibrium with
chemical reactions. In order to obtain optimal performance, energy conservation,
and cost-effectiveness in reactive-separation process, the application of optimal
control technique is inevitable. This chapter addresses application of MPC
and its benefits in reactive separation techniques, particularly in natural gas
sweetening process. The recent application in MPC and its proven results for the
above-mentioned reactive separation processes are discussed here.
1. Introduction
Process Integration (PI) deals with the improvement of innovative equipment and
techniques that fetches profound advancements in the field of chemical process and
manufacturing industries. This technique facilitates to achieve reduction in the
117
Model Predictive Control – Theory and Applications
volume of equipment, consumption of energy, and decreasing waste that could result
in safer, cheaper, and sustainable technologies. Reactive separation is a process that
takes place of combination of reaction and separation in a single equipment unit
(multifunction reactors). The reaction and separation combinedly take place in
equipment without having any interdependence among them. The primary applica-
tion of integrated processes has been focusing on the conservation of resources,
prevention of pollution, and energy management. Process integration can be
categorized into mass integration and energy integration [1].
Process integration and optimization are part of process systems engineering
(PSE). Advanced process integration and optimization methods have been developed
in the recent past. The integration has broad applications in chemical and other allied
industries. Those applications in industries require best operating conditions that
minimize the investment, environmental impact, operating cost, destruction of
exergy.
Reactive separation processes are integrated processes that have a combination of
reaction and separation into a single unit for simultaneous production and removal of
products. It involves energy integration, mass integration, and optimization, which
involves enhanced reaction rate, reducing energy, and reducing solvent need. Reac-
tive distillation, reactive absorption, reactive adsorption, and reactive extraction are
the well-known techniques involved in the reactive separation process. Owing to
strong interactions of chemical reactions, heat, and mass transfer, the reactive sepa-
ration process behaves in a complicated fashion. The reactive separation process is
encouraging process integration technologies (PI) [2].
The regular process operation and control of the reactive separation process are
coupled with the regulation of variables. Every reactive separation process requires a
tight control system to achieve product specifications despite a lack of information on
design, material property changes, equipment degradation, and external disturbances.
The deviation in process variables is compensated by deviations of actuated variables.
It is desired to isolate the disturbance at localized equipment/part of the process to
avoid propagation of disturbances to other processes by using the measurement of the
process and its decisive property. The integration of processes such as reactive sepa-
ration demands counterbalancing effects of reaction kinetics and mass transfer. The
efficiency of reactive separation process depends on the implementation of right
processing parameters. When the buffer for control is removed, the deviations in
process variables occur by losing the measurement information.
Variations in process variables are available for controlling the process. The case of
merging of reaction and separation in a single column enables the information of
external flows, temperature, and concentration along with the internal temperature.
The process information and manipulated variables get reduced but the control task
becomes difficult. The manipulation of variables is concerned with degrees of free-
dom (DOF). The constricted operation degrees of freedom are likely to have an
influencing effect on other process variables and independent control loops become
insufficient to handle the process. Integrated processes exhibit immoderate critical
process parameters as compared to the separated process that exhibits maximum
concentration or conversion within the operating region. Thus, the immoderate
process parameters change the sign of process gains and manifest the design of the
controller more difficult.
118
Implementation of MPC Strategy in Reactive Separation Techniques and Its Benefits…
DOI: [Link]
Even though the integrated processes have the advantages of minimal equipment
and minimal energy consumption, it is confronted by process control challenges.
These challenges could be overcome by the implementation of complex and better-
tuned regular control structures or nonlinear model-based controllers. As shown in
recent studies on reactive separation processes. The industrial case studies and expe-
riences show that process nonlinearity makes the control problems difficult and devi-
ations result in loss of process efficiency. Better results are obtained by implementing
model predictive control as compared to conventional proportional-integral-deriva-
tive (PID) controller. The model predictive control can handle the process interac-
tions, disturbance rejection, and set-point tracking suitable for stability and robust
performance in presence of process noise [3, 4].
Model predictive control utilizes a process model to predict future behavior while
satisfying constraints in the process. Predictive technique calculates deviations from
the reference. The algorithm works on repeated optimization of mathematical model
of the process. The system model is used for calculating future system behavior that
determines the optimal trajectory of manipulated variable (Figure 1) [5].
The cost index is minimized by MPC minimizes by tracking the error between
reference and output
xðk þ 1Þ ¼ f ðxðkÞ:uðkÞÞ
yðkÞ ¼ hðxðkÞÞ
min J ðxðkÞ, uð:ÞÞ
u
N2
X
kðrðk þ ijkÞ � yðk þ ijkk (1)
i¼N 1
Figure 1.
A MPC-based control loop.
119
Model Predictive Control – Theory and Applications
and model formulation. MPCs are widely implemented in Petroleum refineries and
petrochemical plants.
As MPC technique is a proven control technique that can handle the state and
input constraints, interaction, and measured disturbances. Modern process control
techniques rely on the application of dynamic models. Intensive processes exhibit
specific and dynamic characteristics. The intensified processes are directed toward
optimization and model-based control [6].
This chapter explains recent advancements happened in MPC applicable to reac-
tive separation processes and presents a case study on the implementation of Linear
MPC in the natural gas sweetening process.
2.1 Significant role of MPC and its previous proven benefits in reactive separation
processes
The demerits associated with conventional PID controller invoke the need for
advanced controllers such as model predictive controller, non-linear model predictive
controller (NLMPC). In case of reactive distillation which has a multiplicity of steady
states, vapor-liquid equilibrium interaction, and a higher degree of nonlinearity,
demand application of Nonlinear model predictive control and multi-parametric
MPC. The employment of NMPC in batch esterification process has been considered
to be suitable where ethanol and acetic acid are used as reactants to produce ethyl
acetate and water. The application of nonlinear-based MPC produced stringent con-
trol of the system. The NMPC algorithm was useful for the input for providing the
desired amount of distillate [7].
In case of an ideal reactive distillation column that has two ideal reactants and two
products, the performance of MPC was analyzed for various scenarios. It was
observed that MPC performed well in set point tracking and regulatory control. In
addition to that, MPC presented a smooth variation in manipulated variables that
yielded minimized energy requirement for control [8].
Optimal control based on design configuration was attained inspite of the presence
of range of measured disturbances [4]. In this study, MTBE distillation column used in
the study had time invariant design variables such as column diameter, catalyst
distribution, number of trays, feed tray and time-variant design variables such as feed
flow rate, molar flow rate, liquid methanol feed flow rate.
Application of MPC strategies for reactive distillation column used for benzene
hydrogenation that was utilized in gPROMS [9]. In the study, the performance of
Several MPCs was analyzed for different sets of manipulated and controlled variables
analyzed by Vishal Mahindrakar and Juergen Hahn by keeping the remaining variable
in feedback control. It was observed that all MPCs exhibited better responses than the
PI feedback control scheme. In the case of feed benzene concentration disturbances,
Single input-Single output (SISO) performed better than Multi input- Multi output
(MIMO). MPC inputs with significant disturbances exhibited a reduction in an upset
condition.
The implementation of ANN also quite useful in process applications. The capabil-
ity of ANN to predict future behavior is quite useful to model various complicated
physics-based processes. The computational cost is also less in the case of ANN model.
For example in the case of a reactor where the kinetics information is not available,
data-based modeling is quite useful. MPC coupled with the ANN model can estimate
the behavior of nonlinear system accurately under operating variable change and
disturbance. In the case of application of a neural network model predictive control
120
Implementation of MPC Strategy in Reactive Separation Techniques and Its Benefits…
DOI: [Link]
(NNMPC) was developed for depropanizer column, the NNMPC strategy predicted
the output correctly which was confirmed by the low MSE index. This meant the
simulation and predicted data were very small [10].
Najim and Ruiz [11] investigated the concentration of CO2 in a gas mixture
reduced to a specified value using Diethanolamine (DEA) solvent. Long-range adap-
tive control was achieved by using model parameters developed from the least square
algorithm. The primary aim of the study was to achieve horizon-control policy by
attaining minimization of quadratic criterion function composed of the input and
output tracking errors in feedback. Desired performance was accomplished by the
implementation of the adaptive control strategy. High sensitive absorption column
efficiency was attained in this study [11].
Optimal control of amine plant using non-dominated sorting genetic algorithm-II
was investigated by Behroozsarand and Shafiei [12]. In this study, a multi-objective
genetic algorithm concept in concurrence with PID controller was adopted to control
amine plant. The tuning of the PID controller was executed through the non-
dominated sorting genetic algorithm (NSGA-II). The result showed that NSGA-II-
based tuning provided optimal control of plant.
Natural gas is one of the promising energy resources that emit fewer carbon-di-
oxide (CO2) emissions as compared to other fossil fuels such as coal and oil. The
contribution of natural gas to the world energy basket is significant. The consumption
of natural gas has been on positive growth. It is used as a fuel in power plants,
feedstock for production of ammonia & urea, fuel in furnaces and heating applica-
tions, for heating spaces and water for cooking, non-polluting fuel, and the raw
material for variety of chemical products. Various forms of NG, such as LNG, RLNG,
and CNG, are used in market. The natural gas processing units deal with the produc-
tion of sales specified natural gas requirement by upgrading sub-quality natural gas
from reservoir.
The natural gas from the reservoir contains significant quantities of impurities
such as carbon-di-oxide (CO2), hydrogen sulfide (H2S), mercaptans, etc. These con-
taminants produce various problems as follows: In the presence of water, these con-
taminants can form acids that corrode equipment and pipelines. The presence of CO2
in natural gas reduces the calorific value of gas. Hence, the contaminants CO2 and H2S
removal is essential to meet market specifications and environmental compliances. A
typical consumer gas should have H2S content of less than 4 ppmv (parts per million
by volume) and CO2 content of 1% by volume. Figure 2 represents the scope of
control applications in natural gas sweetening process.
The natural gas sweetening process is a reactive absorption process where a liquid
solvent methyldiethanolamine (MDEA), is used to contact the gaseous phase to cap-
ture the contaminants/acid gases (H2S and CO2). The process is carried out at a
counter-current absorber through which the gas flows upwards and liquid solvent
flows downwards. Generally, the acid gases H2S and CO2 are captured by solvent
through column. The tray in the tower provides an essential contact area between gas
121
Model Predictive Control – Theory and Applications
Figure 2.
Scope of process control application in natural gas sweetening.
and liquid. The residence time of reaction is governed by the flow rates of streams.
Removal of any acid gases by amine washing results in the liberation of heat (heat of
absorption). The diagram of acid gas absorber is given in Figure 3 [13].
The sensitivity studies reveals that input and output variables are involved in the
amine absorption process. The transfer function of the amine absorber was developed
by introducing step changes on input variables. Step responses of variables (y1 and y2)
have been obtained using the reaction curve technique [14].
The acid gas removal efficiency can be influenced by the flow rate of solvent. The
fluctuations in the flow rate of natural gas occur because of production disturbances at
upstream level and acid gas content also is changed naturally depending on the
reservoir conditions. The concentration of H2S content in the outlet is influenced by
MDEA flow. MDEA flow rate influences the dynamics of H2S and CO2 concentration
in the absorber.
The typical controlled variables in the reactive absorption process are concentra-
tion and throughput of sweet gas/lean gas compositions are controlled variables. Flow
rate and concentration of solvent are manipulated variables. The disturbances are feed
flow rate and mole fractions in the feed gas. The control strategies for the reactive
122
Implementation of MPC Strategy in Reactive Separation Techniques and Its Benefits…
DOI: [Link]
Figure 3.
A typical reactive absorption column.
Figure 4.
Reactive absorption process input and output variables.
Figure 5.
Representation of amine absorber in terms of input-output variables.
123
Model Predictive Control – Theory and Applications
The control strategy for the natural gas sweetening process depends on avoiding
any undesirable effects during plant operations and obtaining satisfactory perfor-
mance. The frequent changes in natural gas load disturb the process as well as the feed
fluctuations cause transient behavior. The control system should ensure plant to run at
steady conditions to achieve desirable outputs with optimal inputs though the pres-
ence of significant uncertainty about plant behavior and disturbances. The removal of
H2S is emphasized in natural gas sweetening process and control strategy is devised
based on the H2S removal. An appropriately designed controller does ensure the
solvent flow concentration and handling fluctuations in load disturbance
(Table 1) [12].
A typical natural gas sweetening absorption column system has following controls:
a flow controller performs the action of regulating the water makeup by monitoring
the water amount going out of the top of the stripper; pressure controller, acts on the
gas stream exiting the top of the columns; a flow controller regulates the water/solvent
recycle stream from the stripper to the absorber; a level controller is employed to
govern the bottom holdup of the absorber [16].
In this chapter, an IMC-PID controller and model predictive controller are used for
controlling the absorption column. The performance of controllers is presented under
various operating scenarios such as solvent flow rate fluctuations, solvent concentra-
tion fluctuations, as well as disturbance in gas flow rate. The dynamics of the process
Table 1.
The transfer functions for amine gas sweetening process.
124
Implementation of MPC Strategy in Reactive Separation Techniques and Its Benefits…
DOI: [Link]
are studied under the inducement of a step change of �10% to solvent flow rate,
solvent concentration, and natural gas flow rate.
The manipulated variables are the MDEA(solvent) solution flow rate and MDEA
solution concentration. The disturbances are the natural gas feed flow rate and the
compositions of acid gases in incoming feed. The design parameters are the number of
trays in the absorption column and the number of trays in the regeneration column.
The H2S removal rate, energy efficiency, and stability of plant are affected by above
factors. Sweet gas compositions in the exit and throughput of sweet gas coming out of
absorption tower are controlled variables.
The important variable in sweetening process is outlet H2S concentration. The
removal efficiency of H2S is used to measure the performance of the control system.
The removal efficiency is defined as the ratio of inlet to outlet H2S concentration. A
good control system guarantees the removal of H2S by more than 90%
The control loops for the sweetening of natural gas are either PID, model-based, or
intelligent heuristics. On account of their simplicity, credibility, and implementation
PID controller has wide applications in industry.
Two different control strategies have been proposed for the control of natural gas
sweetening columns. A 2 � 2 First Order Plus Dead Time (FOPDT) model is used for
control purposes. The models are obtained through linearization around nominal
operating conditions.
The PID control scheme and MPC control scheme have been investigated under
flexible operating conditions concerning regulatory requirements and load changes
(disturbance) in the presence of economical, environmental, and operational con-
straints. The control strategies performances are evaluated based on their efficiency in
acid gas capturing capability, that is, the ability to reach the set point quickly without
error.
PID controllers are used to control the process with time delay The PID controllers
are widely adopted due to their simple structure and easy implementation and main-
tenance. PID controller is applied when noisy signals are not observed and the
dynamic response is essential. The requirement of sweetening process is to Maintain
the H2S concentration less than 2.5 moles/m3 and limiting the absorption of CO2
subject to the restriction of control limit. The control objective of natural gas sweet-
ening process is to maintain the H2S concentration actual value (y1(t)) close to desired
value (y*)
The control problem of the sweetening process can be described as follows.
The control action is subject to variation in the domain [u1minimum,u1maximum] &
[u2minimum,u2 maximum] & where the domain represents input manipulated variable
flow rate of solvent and concentration of solvent are limited.
The general PID has the following structure
1
GcðsÞ ¼ K c 1 þ þ τd s (3)
τ1 s
where Kc is the proportional gain, τI is the integral time, and τd is the derivative
time. PID controller for absorber is designed by considering the following methodol-
ogy from the literature.
125
Model Predictive Control – Theory and Applications
Figure 6.
The control loop diagram for the natural gas sweetening process.
126
Implementation of MPC Strategy in Reactive Separation Techniques and Its Benefits…
DOI: [Link]
The model predictive control for amine sweetening process is represented in state
space form as follows:
where
� � � �
A 0 Bu
A¼ ,B ¼ , C ¼ ½0 I� and D ¼ 0
CA I CBu
Figure 7.
(a) The solvent flow rate (manipulated variable) response and (b) the sweet gas concentration response using PID
controller.
The cost function used with MPC, which penalizes the tracking error as well as the
change in manipulated variable is defined in
P �
X � M
X
J¼ � rðk þ 1Þ‐yðk þ iÞ �2 þ β kΔuk2 (6)
i¼1 i¼1
128
Implementation of MPC Strategy in Reactive Separation Techniques and Its Benefits…
DOI: [Link]
The section discusses the implementation of PID and MPC control for the natural
gas sweetening process and compares the performance of PID and MPC in natural gas
sweetening applications.
The effects of manipulating variables such as MDEA solution flow rate and MDEA
concentration variation on output variables are presented. The specification of the
sweet gas concentration in the outlet gas is fixed by operational goals and must be kept
within 0.5% of its set point at a steady state.
The acid gas concentration with respect to time using PID controller was obtained
and given in Figure 6. The response of change in concentration with respect to a
longer time span is given in Figure 7a, to visualize the changes occur in shorter time
span Figure 7b can be seen. It is observed from Figure 7b, the concentration change in
acid gases is initially oscillatory. The oscillations are gradually vanished with respect to
time and reaches the steady value of 2.476 moles/m3 of acid gas after a period of 500 s.
In Figure 8a and b, the solvent concentration response and the controller’s action
on throughput of sweet gas have been given respectively. The throughput of sweet gas
has evolved very slowly and takes a longer time duration to achieve steady values. The
response has reached the steady value of 8.13 m3/hr. after approximately 2.77 hours.
A model predictive control has been designed for natural gas sweetening absorber
by considering scenarios of plant operations. The MPC controller has been assessed
based on the capability of disturbance rejection and tracking about setpoint. The
removal of acid gases (primarily focus on H2S removal followed by CO2) rate depends
on the qualitative concentration of the amine solution.
The basic purpose of control strategy is to maintain acid gas concentration at 2.5
moles/m3. The acid gas concentration is measured as output variable y1 and through-
put is measured as y2. The following section discusses the various scenarios of plant
129
Model Predictive Control – Theory and Applications
Figure 8.
(a) The solvent concentration(manipulated variable) response (b) The response of sweet gas throughput using PID
controller.
operations controlled by MPC and its performance assessment in the handling of the
plant under changes in input variables.
The control objective is to maintain the output variables at the setpoint. The
controlled variable is the concentration of acid gases (H2S and CO2). The scenario
130
Implementation of MPC Strategy in Reactive Separation Techniques and Its Benefits…
DOI: [Link]
Figure 9.
(a) The movement of inputs under closed loop response (b) Set point tracking responses of sweet gas concentration
(y1) and sweet gas throughput change (y2) under closed-loop response.
(conditions under normal plant operation) was simulated for constant solvent flow
rate and constant solvent concentration.
It is observed from Figure 9b the MPC controller ensures the concentration of H2S
and CO2 to reach the desired set point. In the case of throughput, sweet gas going out
of absorption tower has been increased. The steady-state values have been attained
after 35 minutes.
4.2.2 Set point tracking in closed loop response during step change in solvent flow rate
The following scenario has been done for manipulated step input change in solvent
flow rate. The movements of manipulated variables are shown in Figure 10:
As we can observe from Figure 10b the controlled variable (sweet gas) response.
This MPC simulation produced the concentration of H2S and CO2 to reach below its
desired set point, during step change in solvent flow rate. After dead time, the
concentration initially rises quickly and after 40 min, steady values have appeared.
The throughput has been increased and reached a steady state value after 35 min. The
change in throughput has appeared by the interaction effect with solvent flow rate.
131
Model Predictive Control – Theory and Applications
Figure 10.
(a) The input response of step change in solvent flow rate (b) Response of sweet gas concentration and sweet gas
throughput due to step input change in solvent flow rate.
The following section is presented with aggressive response of MPC for the con-
centration control of acid gases.
We can observe from Figure 11b the controlled variable sweet gases concentration
has stayed below 4.633 moles/m3 for a step change in solvent flow rate. Initially,
the concentration-response shot up within a shorter time duration and
smoothly settled down after 40 min. The throughput also reached steady value
after 35 min.
4.2.4 The response of output variables during load disturbance in closed-loop response
The scenario was analyzed for load disturbance (varying natural gas flow rate).
The response of input variables is given in Figure 11. The solvent flow rate and
concentration were adjusted according to variations in load.
132
Implementation of MPC Strategy in Reactive Separation Techniques and Its Benefits…
DOI: [Link]
Figure 11.
(a) The movement of input variables during aggressive performance (b) The response in acid gases concentration
and throughput during aggressive performance.
4.2.5 The response of output variables in aggressive mode during load disturbance
The response of output during load disturbance is given in Figure 13. The acid gas
concentration has reached the desired specification. The set point has reached by
25 min. The concentration steady values have taken place for 25 min. The throughput
settling time is less than the concentration settling time as compared to settling of
concentration. When load disturbance occurred, the sweet gas going out of the
absorption tower increased marginally.
133
Model Predictive Control – Theory and Applications
Figure 12.
(a) The input movements by the controller during load disturbances (b) The output response by controller during
load disturbance.
The performance of controllers can be measured by set point tracking and distur-
bance rejection. The performance of MPC and PID have been assessed by Integral
Absolute Error (IAE) criteria which measures the integral of absolute value of
deviation from setpoints. The IAE values are tabulated in Table 2.
The major objective of the chapter is to understand the controller’s handling ability
in the efficient removal of sour gases during changes in manipulated variables and
load disturbances. The closed-loop response were studied using decentralized PID
controller and closed-loop response, robust response, and aggressive response were
analyzed by MPC. The IAE values of MPC aggressive in Table 2 reveal that MPC
aggressive mode efficiently handles the changes and has less error in maintaining the
set point of concentration of sweet gas and throughput of sweet gas
134
Implementation of MPC Strategy in Reactive Separation Techniques and Its Benefits…
DOI: [Link]
Figure 13.
(a) The input movements by the controller during aggressive mode (b) the response of output concentration and
throughput during aggressive mode.
Table 2.
IAE values of controllers.
The PID controller responses revealed that the acid gas concentration showed an
oscillatory behavior during the initial duration and the oscillation decayed quickly.
The time to reach set point is very less in the case of PID but from the IAE value, it is
observed that the error is higher.
135
Model Predictive Control – Theory and Applications
The PID controller responses revealed that the acid gas throughput of acid gas
evolved very slowly and took a long time to reach steady state. When the concentra-
tion of solvent is reduced, the throughput of acid gas increases. The IAE value of
throughput is higher than MPC.
4.3.3 MPC controller closed loop response on sweet gas concentration and throughput
The MPC controller responses revealed that the acid gas concentration reached the
set point without much error. Even though the attaining of steady values has longer
duration, the IAE value in closed loop response is one among the less values as
compared to other MPC response IAE values. In case of throughput, the closed loop
response is effective and the IAE value is less.
4.3.4 MPC controller aggressive response on sweet gas concentration and throughput
The MPC controller responses revealed that the acid gas concentration reached the
set point very quickly without much error. Even though the steady values took place
very faster, the IAE value in closed loop response is less comparatively than PID and
MPC response. In the case of throughput, the aggressive response is very effective.
The aggressive response is very much faster and more efficient than all responses.
5. Conclusions
MPC can handle multi-input multi-output (MIMO) systems that have interactions.
Because of these interactions, it is often challenging to design MIMO systems using
traditional controller PID. Nevertheless, MPC concurrently controls all the outputs
while taking into account input-output interactions. As far as reactive absorption is
concerned, MPC has been proven for tracking setpoints even though the presence of
disturbances along with handling constraints. MPC satisfies process intensification
objects along with energy, mass, and environmental constraints. The MPC applica-
tions in post-carbon capture have proved that Integral square error in case of step
change in flue gas flow rate of MPC is less than PI controller whereas the percentage
carbon capture setpoint tracking is lower in case of MPC. A huge amount of heat duty
has been saved by implementing an MPC controller that PI controller. The reboiler
heat duty is significantly less than the PI controller. In case of settling time for
reaching steady-state values, The MPC has taken less time to reach the setpoint
quickly [20, 21].
The application of MPC in post-carbon capture (PCC) has been promising. In
addition to that, MPC approach has exhibited the best performance compared to
conventional PID control in the natural gas sweetening process. The MPC had
performed well even under disturbance by avoiding large overshoots in case of step
increment in solvent flow rate and acid gas composition. MPC allows the lean solvent
flow rate to attain new operating points faster than the PID controller with no fluctu-
ations. MPC has less computational speed when it has to calculate multiple trains.
MPC has dynamic adaptability in maintaining different trains to achieve different
individual acid gas rates to reach the overall acid gas rate. MPC has less integral square
error for overall acid gases capture control on account of step increase/decrease in the
136
Implementation of MPC Strategy in Reactive Separation Techniques and Its Benefits…
DOI: [Link]
manipulated variable as well as load changes. PID scheme has sluggish performance as
compared to MPC controller. PID controller took a longer time and the responses are
oscillatory to reach the desired set point. Whereas the MPC controller can handle the
changes in manipulated variables along with satisfying constraints and can reach a set
point within shorter time horizon. In all different cases of the MPC scheme, the trade-
off observed is H2S concentration reaches nil value and concentration reduction of
CO2 is compromised even though it is reduced to some extent.
Acknowledgements
To prepare a chapter, the authors gratefully acknowledge the support of A.C. Tech
and CSIR-CLRI.
Conflict of interest
Author details
© 2023 The Author(s). Licensee IntechOpen. This chapter is distributed under the terms of
the Creative Commons Attribution License ([Link]
which permits unrestricted use, distribution, and reproduction in any medium, provided
the original work is properly cited.
137
Model Predictive Control – Theory and Applications
References
[6] Eaton JW, Rawlings JB. Model- [14] Rake H. Step response and frequency
predictive control of chemical processes. response methods. IFAC Proceedings
Chemical Engineering Science. 1992; Volumes. 1979;12(8):519-526
47(4):705-720
[15] Arteaga FJ, Contreras JR. System
[7] Balasubramhanya LS, Doyle FJ III. Identification and model predictive
Nonlinear model-based control of a control for the optimization of a gas
batch reactive distillation column. sweetening process. In: IEEE
Journal of Process Control. 2000; International Symposium on Industrial
10(2–3):209-218 Electronics. Proceedings. ISIE’98 (Cat.
No. 98TH8357). IEEE; 1998
[8] Seban L, Kirubakaran V, Roy BK,
Radhakrishnan TK. GOBF-ARMA based [16] Sahraei MH, Ricardez-Sandoval LA.
model predictive control for an ideal Simultaneous design and control of the
reactive distillation column. MEA absorption process of a CO2
Ecotoxicology and Environmental capture plant. Energy Procedia. Elsevier.
Safety. 2015;2015:110-115 2014;63:1601-1607
138
Implementation of MPC Strategy in Reactive Separation Techniques and Its Benefits…
DOI: [Link]
139
Edited by Constantin Volosencu
The book presents some recent specialized theoretical and practical works in the field of
process control based on the model predictive control (MPC) method. It includes seven
chapters that present studies on the application of MPC in various technical processes,
such as the atmospheric plasma spray process, permanent magnet synchronous motors,
monitoring of the pose of a walking person, monitoring of the heat treatment process
of raw materials, discrete event processes, control of passenger vehicles, and natural
gas sweetening processes. Chapters include examples and case studies from researchers
in the field. This volume provides readers with new solutions and answers to questions
related to the emerging applications of MPC and their implementation.
ISBN 978-1-80355-989-6
978-1-80355-988-9
Published in London, UK
© 2023 IntechOpen
© Henning Flintholm Jensen /
Shutterstock