Professional Documents
Culture Documents
Adaptive Control System For Biogas Power Plant Using Model Predictive Control SGEPRI Journals & Magazine
Adaptive Control System For Biogas Power Plant Using Model Predictive Control SGEPRI Journals & Magazine
JOURNAL OF MODERN POWER SYSTEMS AND CLEAN ENERGY, VOL. XX, NO. XX, XX XXXX 1
Abstract——This paper presents an adaptive control system us‐ parameters. The process is related to various anaerobe, bio‐
ing model predictive control for a biogas-fueled power system. chemical and physical reactions which require a different set
The control scheme is derived from an anaerobic digestion mod‐ of optimal process variables to control the AD output and
el that includes the concentration of biodegradable volatile solid
in the reactor, the concentration of volatile solid in influent, the achieve substrate regulation.
concentration of acidogens, and the concentration of methano‐ The AD is a compound, nonlinear and high-dimensional
gens. All these concentrations are the state variables of model process. It involves four stages dependent on each other and
predictive control. The whole biogas-fueled power system has each stage requires a different set of optimal process parame‐
been modeled, implemented, and tested in MATLAB/Simulink ters. The process is related to various anaerobe, biochemical
environment. To validate the performance of the proposed con‐
and physical reactions which require a different set of opti‐
troller, different operation conditions are studied and analyzed.
The simulation results prove the effectiveness and the applica‐ mal process variables to control the AD output and achieve
bility of the proposed control system under different operating substrate regulation. On the other hand, the transfer func‐
conditions. tions in the paper represent the microturbine model. The
Index Terms— —Anaerobic digestion, micro-turbine, model pre‐ whole biogas-fueled power system is modeled, implemented,
dictive control, state space, biogas. and tested in MATLAB/Simulink environment. The biogas-
fueled power system is composed of three main parts: a bio‐
gas AD reactor, a micro-turbine (MT) coupled to a perma‐
I. INTRODUCTION nent magnet synchronous generator, and a storage system.
B IOGAS production from organic waste and/or energy Hence, the whole system is complex and nonlinear.
crops has been continuously developing as a promising Numerous control systems have been designed and ap‐
plied to control the operation of the AD reactor in a biogas-
technology for heat and electricity production [1]. Anaerobic
fueled power system. The functions of these control systems
digestion (AD) includes a series of biological processes in
can be summed up in two actions: to regulate the produced
which microorganisms break down biodegradable material in
methane flow for the required power production, and to keep
the absence of oxygen. The fed substrates in the AD process
the volatile fatty acids (VFA) concentration in the permissi‐
include many kinds of materials including wastewater, fertil‐
ble limits. Reference [3] presents a critical overview of the
izer, energy crops and the organic fraction of municipal solid
available automatic control technologies implemented in AD
waste. The output biogas is mainly composed of methane
processes at different scales. References [4] and [5] propose
and carbon dioxide [1].
a temperature control system based on model predictive con‐
From the viewpoint of operation safety, AD is intrinsically
trol (MPC) method for controlling a practical pilot AD biore‐
a very unstable process in which the variations of input vari‐
actor fed with dairy waste. The aforementioned references
ables (hydraulic flow rate, influent organic load) may easily
have focused on feedback control with on-off control, pro‐
lead to the washout of the process, i. e., a state where the
portional integral (PI) control, and feedforward control for
bacterial life disappears [2].
controlling the methane gas flow on both simulated and prac‐
The use of advanced control and optimization algorithms
tical reactors. Reference [6] develops a proposed adaptive
for a biogas plant provides an attractive solution to ensure
controller for an anaerobic digester considering the input
stable operation conditions and increase biogas production.
constraints. Many assumptions have been considered for the
The AD process is a compound, nonlinear and high-dimen‐
proposed controller including the biomass and chemical oxy‐
sional process. It involves four stages dependent on each oth‐
gen demand concentrations, the model parameters and the
er, and each stage requires a different set of optimal process
limits of model parameters. Reference [7] presents a nonlin‐
ear MPC algorithm to optimally control the AD process in
Manuscript received: March 19, 2019; accepted: January 19, 2020. Date of biogas plants, but the MPC algorithm has been applied to a
CrossCheck: January 19, 2020. Date of online publication: XX XX, XXXX.
This article is distributed under the terms of the Creative Commons Attribu‐
reduced detailed model called the anaerobic digestion model
tion 4.0 International License (http://creativecommons.org/licenses/by/4.0/). No. 1 (ADM1). References [8] and [9] present a closed-loop
S. Fawzy (corresponding author), M. Saeed, A. Eladl, and M. El-Saadawi are substrate feed control for agricultural biogas plants. A multi-
with the Electrical Engineering Department, Mansoura University, Mansoura, objective nonlinear MPC has been proposed to control the
Egypt (e-mail: samaa. fawzy92@gmail. com; mohammedsaid@mans. edu. eg; ela‐
dle7@mans.edu.eg; m_saadawi@mans.edu.eg). composition and amount of the substrate to optimize the eco‐
DOI: 10.35833/MPCE.2019.000170 nomic feasibility of a biogas plant whilst ensuring process
2 JOURNAL OF MODERN POWER SYSTEMS AND CLEAN ENERGY, VOL. XX, NO. XX, XX XXXX
stability. A nonlinear predictive controller has been imple‐ and values of disturbances according to unbalanced loading
mented to control a simulated ADM1 assuming that all conditions, and hence, it can protect the MT from damage.
states are available. Therefore, a state space is not used. Ref‐ The rest of the paper is organized as follows. Section II
erence [10] applies a model-based adaptive linearizing con‐ presents the proposed adaptive control system. Section III
troller and a fuzzy controller to control the alkaline volatile, presents a procedure for solving the problem. Section IV
and VAF within the prescribed limits to ensure stable pro‐ presents mathematical modeling and simulation of the pro‐
cess conditions and avoid accumulation of VFA. Six states posed control system. The simulation results and system vali‐
of a real AD reactor fed with effluents from a wood process‐ dation are presented in Section V. Finally, the paper is con‐
ing plant have been estimated using an asymptotic observer. cluded in Section VI.
The asymptotic observer is an open-loop estimator and has
no tuning parameters. Reference [11] develops a generic ad‐ II. PROPOSED ADAPTIVE CONTROL SYSTEM BASED ON MPC
vanced process control system to optimize the performance
The MPC method has evolved significantly over the past
of AD.
two decades, which is realized by improving the perfor‐
Reference [12] implements a predictive controller based
on transfer functions adapted to the ADM1. In that model, mance indicators for some future control sequences by using
the flow rates of the primary and secondary wastewater predictions of the output signal based on the process model
sludge are considered as the uncontrolled variables, whereas while satisfying a set of constraints. MPC can handle the
the biogas production rate and its methane content are con‐ constraints on the manipulated and controlled variables in a
sidered as the controlled variables. The optimization criteri‐ systematic manner. Meanwhile, it can handle multivariable
on of the controller contains the square of the control error, control problems naturally. Although MPC has been success‐
while the control signal usage is not included. Reference ful in industries with slow processes, further researches are
[13] proposes a novel multi-objective control strategy based still required to solve the computation problems with fast op‐
on controlling both the concentration of VFA in the effluent erations [15].
and the methane flow rate for an up-flow sludge bed-filter MPC algorithm depends on an internal dynamic model of
reactor. Finally, [14] introduces a survey over the last 40 the process, a history of past control moves, and an optimiza‐
years about feed control of AD processes for renewable ener‐ tion objective function over the receding prediction horizon
gy production. It is concluded that although sophisticated to calculate the optimal control moves. MPC algorithm uses
controllers are existent, full-scale biogas plants still operate the moving horizon method, which calculates a range of hor‐
without a closed-loop feed control. izontal control movements. Initial control movements are
The main objective of this paper is to develop an adaptive performed, while the remaining calculated movements are ig‐
control system to control the fed substrate to the reactor of a nored [16]. The process is then repeated at subsequent sam‐
biogas power plant according to the connected load which pling times. With the increase of computation speed of com‐
can efficiently respond to any variations of the connected puters, MPC can be applied to fast operations rather than
electrical load. The proposed control system depends on locking to slow operations.
MPC method for controlling the biogas-fueled power sys‐ A basic structure model of MPC method is illustrated by
tem. An MPC-based algorithm is used to detect the control Fig. 1 [17]. The model is applied to predict future outputs of
inputs that result in the best-predicted behavior of the sys‐ the plant based on past and current values and optimal pro‐
tem according to any changes. posed future control actions. These actions are computed by
This paper proposes an adaptive control system for the the optimizer with consideration of the constraints as well as
whole biogas power plant based on the flexible response of the cost function, where the future trace error is considered.
the biogas plant to any load changes. An MPC-based algo‐ Reference
rithm is used to detect the control inputs, which results in Past input trajectory
Predicted
the best-predicted behavior of the system according to any and output
output
+
changes. The MPC algorithm is based on state space mod‐ Model +
els. The proposed controller is developed to control the fed
substrate according to the predicted load and to handle the Future
input
expected changes in electrical load through the speed of MT
according to the amount of methane stored in the storage Optimizer
Future error
system.
The main contributions of this paper can briefly be sum‐ Cost function Constraint
marized as follows:
Fig. 1. Basic structure model of MPC.
1) An adaptive control system using MPC for a biogas
power plant based on state space is proposed and simulated.
2) The control system depends on both MT parameters The constraints can be either on the output of controlled
and the methane quantity stored in the storage tank. processes (control variable) or on the control signals that are
3) The simulation results of the proposed controller prove inputted to the process (manipulated variables). These con‐
its effectiveness and applicability to adapt the biogas power straints are in the form of saturation characteristics, for ex‐
plant operation under different operating conditions. ample, valves with a limited range of adjustment, a control
4) The proposed control system decreases the duration surface with a limited deflection angle, etc. The input con‐
FAWZY et al.: ADAPTIVE CONTROL SYSTEM FOR BIOGAS POWER PLANT USING MODEL PREDICTIVE CONTROL 3
straints are also shown in the form of rate constraints. erence trajectory.
The MPC performance index is used to indicate how well This section presents a proposed control system for a bio‐
the MPC controller is meeting its defined goal and how the gas power plant using the MPC method. The MPC algo‐
model helps to achieve the better results. The index repre‐ rithms are based on state space models. The MPC algo‐
sents a measure for both the reference tracking error and the rithms represent a closed loop for controlling any variable
control action signal. The MPC performance index measures signals in the biogas plant. MPC controls these signals and
both the reference tracking error and the control action sig‐ sends them to state space to predict the next state. It is im‐
nal. The control law is established from the minimization of portant for the MPC to detect the current state of the biogas
a two-norm measure of predicted performance. A typical per‐ power plant. Therefore, the simulation begins with the cur‐
formance index can be represented as follow [18]: rent operation state of the biogas plant model. The MPC con‐
nu - 1 troller can be used to control the substrate feed and the
J = ∑ Rk + i - Yk + i + λ ∑ Uk + i
ny
i = nw
i=0
(1) amount of produced methane, as shown in Fig. 2.
Suitable amount of methane Biogas power
where Rk+i is the reference signal at instant time k; Yk+i is the State space
plant
weighted process output signal at instant time k; ||·|| is the
norm operator; λ is the weight of the control action; Uk+i is
the weighted process input signal at instant time k; nw is the MPC
window parameter assumed to be one; ny is the prediction Optimal variable Speed and signal from storage tank
horizon parameter; and nu is the control horizon parameter. Fig. 2. Block diagram of proposed control system using MPC.
In the MPC model, the receding horizon periods can be
explained as follows: The optimal substrate feed can be achieved according to
1) At the kth sampling instant, the values of the manipulat‐ the current state of the plant depending on controlling the
ed variables u are calculated at the next M sampling instants, MT speed according to any load variations. The MT speed
{u(k)u(k + 1)…u(k + M - 1)}. controller sends a signal to the MPC system to change the
2) This set of M “control moves” is calculated so as to input feed amount based on the gas amount in the storage
minimize the predicted deviations from the reference trajecto‐ tank. Figure 3 shows a detailed schematic diagram of the
ry over the next P sampling instants while satisfying the con‐ proposed control system.
straints.
3) A linear program or quadratic program problem is Speed signal
solved at each sampling instant.
Biogas
4) Set M as the control horizon and P as the prediction ho‐ Biogas reactor Microturbine
rizon. Biogas needed by load
5) Then, the first “control move”, u(k), is implemented. Biogas
Load
6) At the next sampling instant, k+1, the M-step control
Excess amount of biogas
policy is re-calculated for the next M sampling instants, k + 1 Comparator Storage tank
to k+M, and the first control move u(k + 1) is implemented.
7) Then, 1) and 2) are repeated for subsequent sampling
Fig. 3. Schematic diagram for proposed control system.
instants.
The prediction horizon is the design parameter of the
MPC with an important effect on the computation cost of The methane formation in the reactor depends on the AD
the controller. If a long prediction horizon is considered, the process (fermentation process), which takes a few days to
domain of attraction of the controller is larger and the perfor‐ produce a constant amount of the gas. Thus, the reactor
mance is improved. However, the number of decision vari‐ must operate for a pre-operation period before connecting
ables increases, and hence, the complexity of the optimiza‐ the electric load. After that period, the methane-fueled MT
tion problem increases. The necessary condition for choosing can be connected to the reactor, and the plant can supply
the prediction horizon is the feasibility of the initial state. electric loads. Three controllers are used to control the MT, i.
The model predictions can be written as [18]: e., a governor speed controller, a temperature controller, and
Ŷ (k + 1 ) = SDU (k ) + Ŷ ' (k + 1)
an acceleration controller. The output of these controllers rep‐
(2)
resents the input to a least value gate (LVG), whose output
where Ŷ (k + 1) is the corrected prediction; Ŷ ' (k + 1) is the is the lowest value of the three inputs. The LVG sends a con‐
vector notation for predictions; DU (k ) is the kth manipulated trol signal which determines the least amount of fuel to the
variable; and S is the dynamic matrix of dimension P×M, M turbine, as illustrated in Fig. 4.
is control horizon, P is prediction horizon. In case of increasing or decreasing the MT speed due to
The control calculations are based on minimizing the pre‐ load change, the speed controller sends a signal to the MPC
dicted deviations between the reference trajectory. The pre‐ system to change the amount of feed input to the reactor
dicted error is defined as [18]: based on the volume methane stored in the storage system.
Ê (k + 1 ) = Y r (k + 1 ) - Ŷ (k + 1) (3) In this case, the amount of feed input to reactor change, and
all the parameters of the AD process also change, including
where Ê (k + 1) is the predicted error; and Y r (k + 1) is the ref‐ the concentration of biodegradable volatile solid in the reac‐
4 JOURNAL OF MODERN POWER SYSTEMS AND CLEAN ENERGY, VOL. XX, NO. XX, XX XXXX
tor, the concentration of volatile solid in influent, the concen‐ Step 5: In case of load change (increase or decrease), each
tration of acidogens, and the concentration of methanogens. MT and the tank sends signals to the MPC controller. The
This means that the system automatically changes its parame‐ MT sends a speed signal according to load change. At the
ters according to the connected load. same time, the tank sends a signal dependent on its status
(charged or discharged).
Temperature
control
Step 6: If the load increases, the speed of MT decreases,
and the MT speed controller sends a signal to MPC. If the
Speed amount of methane in the tank is at the permissible limits,
reference
+ +
Speed Least amount Compressor the MPC sends a signal to the methane storage system to in‐
LVG
Acceleration
of fuel turbine crease the output quantity for supplying the load require‐
Generator
speed control
Torque
ments. Otherwise, if the load decreases, the MT speed in‐
creases. The MT speed controller sends a signal to MPC and
Fig. 4. Schematic diagram of an MT control function. the controller sends a signal to the storage system to de‐
crease the methane.
The MT is coupled to a high-speed generator directly driv‐ Step 7: If the amount of methane in the tank reaches the
en by the turbo-compressor shaft to produce the required prescribed maximum limit, the MPC controller sends a sig‐
electric power. The fuel controller detects the suitable nal to the reactor to decrease the feed input. Otherwise, if
amount of methane to produce appropriate torque to drive a the methane in the tank reaches the prescribed minimum lim‐
permanent magnet synchronous generator (PMSG) and sup‐ it of the tank, the MPC controller sends a signal to the reac‐
ply the load. According to the methane requirements of MT, tor to increase the feed input.
the MT sends a control signal to the comparator part of the
storage system to compare it with the amount of methane Start
produced by the reactor. If the produced methane is less than
the MT requirements, the deficit part is supplied by the stor‐ Input state space parameters and build MPC
age system. Otherwise, the surplus methane is stored in the
storage tank. For the sake of safety, the amount of methane Input feed (animal manure)
in the tank must be noticed and controlled.
When the stored methane in the tank reaches 90% of the AD process is completed and methane becomes constant.
tank volume, a signal is sent to the MPC system to decrease Methane fuels MT according to load connected to PMSG,
the input feed of the reactor. Otherwise, if the stored meth‐ with excess amount of methane stored in tank.
ane decreases to 30% of the tank volume, a signal is sent to
the MPC to increase the input feed of the reactor. From an When load changes (decreases or increases), the speed of MT
changes according to load connected to PMSG. The speed
economic point of view, the presence of the storage tank sends signal to MPC although tank sends signal to MPC.
makes the reactor more reliable and economic. Without a
tank, the reactor cannot supply an electric load continuously
in case of load increase. On the other hand, with load de‐ Y Does load N No changes
crease, the produced methane may be greater than the load increase or
decrease? occur in load
requirements and therefore it is necessary to the disposal of
the surplus amount of methane to keep the pressure inside
the reactor constant. This is not only an uneconomic deci‐ Is the Is the
amount of amount of
sion but also an unsafe one. methane within N N methane within Y
minimum and minimum and
maximum maximum
III. PROCEDURE FOR SOLVING PROBLEM limits? limits?
T M = 1.3 (CD - 0.23 ) = 0.5(1- N) (11) volume, the control system will decrease the input feed to
where N is the rotor speed. the reactor. Otherwise, if the stored methane decreases to
For MT temperature control, the turbine temperature TX is less than the minimum prescribed limit of the tank volume,
computed by [22]: the control system will increase the input feed of the reactor.
(
T X = T R - 700 1- e
-SE TD
) + 550(1- N) (12) F. Biogas Reactor Controller
There are many factors affecting the outputs of the reactor
where TR is the reference temperature; and ETD is the turbine
including the feed type, the reactor temperature, the mois‐
exhaust delay.
ture, the pH, etc. [24]. The main factor affecting the feed
The output of the LVG is the least amount of fuel needed
type is the concentration of biodegradable concentration
for a specific operating point Vce which will be the input to
[25]. There is a remarkable change in both methane produc‐
fuel system beside N. The per unit value of Vce is directly
tion period and volume for different feed types.
proportional to that of the mechanical power on the turbine
In order to complete the fermentation process, the temper‐
at steady state. Figure 8 shows a block diagram of the fuel ature of reactor Treact must be kept in a range between 20 ºC
flow control as a function of Vce, where K3 is the minimum and 60 ºC [26]. If the reactor temperature exceeds 60 ºC,
amount of fuel flow without load. there will be a severe reduction in methanogenesis (bacteria)
concentration. So, it is important to fix the temperature of
K3
From LVG Vce a 1 WF-fueled the reactor at a set point, which is one of the tasks for the re‐
× bs+c Tf s+1 flow actor controller.
× 1K3 eu Valve Fuel system 1) Mathematical Modeling of Biogas Reactor
N × positioner actuator The mathematical model of the AD reactor operations de‐
Fig. 8. Block diagram of fuel flow control system. pends on the material balances of volatile biodegradable sol‐
ids, volatile fatty acids, acidogens and methanogens, and the
computation of the flow of methane. In the literature, several
All the above controllers are represented in MATLAB/ mathematical models representing the dynamic behavior of
Simulink environment. The Simulink model for the MT in‐ AD reactors using animal wastes have been reported
cluding all proposed control systems is illustrated in [19]. [27]-[29].
E. Storage System Controller Reference [27] and [28] have presented a dynamic model
of AD reactor based on Hill’s model [29]. In this paper, the
The storage system consists of two parts. The first part is
modified Hill’s dynamic AD model is used as a mathemati‐
a comparator, which receives the signal coming from MT fu‐
cal model to represent the dynamic behavior of AD bioreac‐
el controller for detecting the amount of methane needed by
tor feeding by dairy manure. The model can be summarized
the MT and the amount of methane output from the reactor.
as follows:
The second part is the tank that stores the excess methane
F feed µ m S b K 1 X acid
coming from the reactor. A Simulink model for the storage Ṡ b = (B o S vs - S b ) - (16)
system is developed and illustrated in [19]. The required stor‐ V Ks + Sb
age volume can be calculated by performing a mass balance F feed µ m S b K 2 X acid µ mc S v K 3 X meth
over the storage volume as follows [23]: Ṡ v = (A f B o S vs - S v ) + -
V Ks + Sb K sc + S v
dV acc
V Min - V Mout + =0 (13) (17)
dt
where V M in and V M out are the volumes of methane input to
and output from the storage tank, respectively; and V acc is
the volume of methane accumulated in the storage tank.
Ẋ acid = ( µm Sb
Ks + Sb
- Kd -
F feed
bV )
X acid (18)
∫
V storage = (V Min - V Mout )dt (14)
F meth = V
µ mc S v
K X (20)
The biogas flow rate needed to supply the load connected K sc + S v 4 meth
to MT is calculated according to the following relation [20]:
µ m (T react ) = µ mc (T react ) = 0.013T react - 0.129
(21)
24P
V needed = (15) where Sb is the concentration of biodegradable volatile solid
η MT × CV CH4 ω CH4
in the reactor; Bo is the biodegradability constant; Svs is the
where Vneeded the volumetric flow rate of biogas needed; P is concentration of volatile solid in influent; Ffeed is the feed
the output power of MT; η MT is the efficiency of MT; CVCH4 flow rate; V is the effective reactor volume; µm is the maxi‐
is the calorific value of methane equal to 10 kWh/m3; and mum reaction rate for acidogens; Xacid is the concentration of
ω CH4 is the percentage of methane in biogas, which is 70%- acidogens; K1 is the yield factor estimated using experimen‐
75%. tal data given in [28]; Ks is the Monod half-velocity constant
As explained before, in case that the stored methane in for acidogens; Af is the acidity constant; Xmeth is the concen‐
the tank exceeds the maximum prescribed limit of the tank tration of methanogens; µmc is the maximum growth rate for
FAWZY et al.: ADAPTIVE CONTROL SYSTEM FOR BIOGAS POWER PLANT USING MODEL PREDICTIVE CONTROL 7
actor and that stored in the storage tank is discussed. In or‐ 2) Impact on Methane Production
der to test the impact of the proposed controller on the stor‐ Without applying the MPC-based controller, the methane
age system, the constant load is assumed as 100 kW which output from the reactor reaches 300 m3 after 20 days. But in
is less than the plant full load of 400 kW. case of applying the proposed controller, the methane is
1) Impact on MT Torque and Speed changed (increase or decrease) according to the volume of
As explained before, the formation of methane in the reac‐ the stored methane in both the storage tank and the connect‐
tor takes a few days to produce a constant amount of biogas. ed load as shown in Fig. 10. Controlling the amount of pro‐
During this period, the MT torque increases with the pro‐ duced methane is a great advantage of the proposed control‐
duced methane until it reaches a constant value after com‐ ler. In case the biogas plant is installed without a control sys‐
pleting the AD process. tem, a larger tank size is needed, which is shown by compar‐
Without applying a control system, the amount of input ing the areas under the two curves in Fig. 10. The uncontrol‐
feed to the reactor is fixed at a daily step according to the lable production of biogas may even lead to a tank explo‐
designed size of the reactor. Since the nameplate capacity of sion.
the designed plant is 400 kW, any decrease in the connected
load will not affect the input feed, leading to an increase in 350
With MPC
Without MPC
the surplus methane which may affect the system safety.
0.12 8000
0.10
6000
0.08 With MPC
0.06 Without MPC 4000
0.04
0 5 10 15 20 25 30 2000
Time (day)
(a) 0
1.2
−2000
0 20 40 60 80 100
1.0 Time (day)
Speed (p.u.)
0.6 With MPC By applying the proposed controller, there will be differ‐
Without MPC
ent actions in the biogas plant. Whenever the methane in the
0.4
0 5 10 15 20 25 30 tank reaches 90% (1800 m3) of the tank volume (2000 m3),
Time (day) the controller sends a signal to the reactor to decrease the in‐
(b)
put feed, and hence, to decrease the produced methane. This
Fig. 9. Variation of MT torque and speed with and without MPC-based action is done on the 32nd day and the 72nd day. In case that
controller. the methane stored in the tank reaches 30% (600m3) of the
FAWZY et al.: ADAPTIVE CONTROL SYSTEM FOR BIOGAS POWER PLANT USING MODEL PREDICTIVE CONTROL 9
tank volume, the controller sends a signal to the reactor to increasing feed input to the reactor. Whenever the methane
increase the input feed, and hence, to increase the produced stored in the tank reaches 90% of the tank volume at the 31st
methane. This action is done on the 45th day and the 88th day hour, the controller sends a signal to the reactor to decrease
as shown in Fig.12. the feed input so that the produced methane decreases. The
2000 variation of the produced methane stored in the tank for this
Methane accumulation (m3/day)
Speed (p.u.)
0.9855
0
0.9850
−500
0 20 40 60 80 100 0.9845
Time (day)
0.9840
20 25 30 35 40 45
Fig. 12. Variation of accumulated methane with constant load with MPC.
Time (hour)
(a)
The next two sub-sections will analyze the impact of load 1.00
variations on the controller’s performance for balanced and 0.99
unbalanced loads.
Speed (p.u.)
0.98
B. Normal Operation
0.97
In this section, a hypothetical load curve is used to study
the behaviors of the proposed control system due to load 0.96
variations over a specified period. The load curve is shown 0.95
in Fig.13. 20 25 30 35 40 45
Time (hour)
350 (b)
300
Fig. 14. Variation of generator speed with load. (a) Without MPC. (b)
250 With MPC.
Power (kW)
200
150 With MPC
350
100 Without MPC
Methane flow rate (m3/hour)
50 300
250
0 5 10 15 20 25
Time (hour) 200
2000
On the other hand, the generator speed increases whenever
the load decrease (at hour 34). In the case of applying the 1500
MPC, the speed becomes nearly constant during load
change, and the speed variations are within [-5%+ 7%]. 1000
Figure 15 shows the variation of the produced methane
with load before applying the proposed controller. In the 500
case of applying the controller, the methane output from the
reactor is affected by the load connected to MT and the 0
20 25 30 35 40 45
amount of methane stored in the tank. If the load increases
Time (hour)
as in the case of the 28th hour and the 40th hour, the methane
produced in the reactor increases at the 28th hour due to the Fig. 16. Variation of accumulated methane in tank with MPC controller.
10 JOURNAL OF MODERN POWER SYSTEMS AND CLEAN ENERGY, VOL. XX, NO. XX, XX XXXX
Figure 17 shows the methane needed by the load, the troller, the oscillations are decreased and the output voltage
methane produced by the reactor and the methane stored in becomes a pure sinusoidal wave. By measuring the perfor‐
the tank. The summation of the amount of methane required mance index, the error is decreased from 15% to 0%. Figure
by the load and the amount of methane stored in tank equal 20 shows the impact of unbalanced load operation on the
to the amount of methane produced from the reactor as generator output voltage.
shown by the figure. 0.133
Torque (p.u.)
0.131
Methane stored in tank
200 0.130
0.129
100
0.128
0 0.127
30 31 32 33 34 35 36
Time (s)
−100
20 25 30 35 40 45 (a)
Time (hour) 0.130
Fig. 17. Variation of methane with variable load when applying MPC con‐ 0.128
Torque (p.u.)
troller.
0.126
plexity. The usual units of time are not used in complexity APPENDIX A
theory, because they are too dependent on the choice of a
TABLE AI
specific computer or the evolution of technology. Therefore, FACTORS AND PARAMETERS USED IN PROPOSED MODEL
instead of the real time, one generally considers the elemen‐
tary operations that are done during the computation. The ex‐ Item Parameter Value
cution time of the simulation model ranges from 12 s to B 2.90
15 s. Ks 15.5 kg/m3
Ksc 3 kg/m3
1.5
Phase a Phase b Phase c Kd 0.02 day-1
1.0
Kdc 0.02 day-1
Voltage (p.u.)
0.5 K1 3.89
AD
0 K2 1.76
−0.5 K3 31.7
−1.0 K4 26.3
−1.5 Af 0.69
30.0 30.2 30.4 30.6 30.8 31.0 31.2 31.4 31.6 31.8 32.0 Bο 0.25
Time (s) V 160 m3
(a)
A 1
1.5 Phase a Phase b Phase c B 0.05
1.0
C 1
Voltage (p.u.)
0.5 T1 0.4
0 T2 1
−0.5 K 25
MT TF 0.04
−1.0
tR 510 ºC
−1.5
30.0 30.2 30.4 30.6 30.8 31.0 31.2 31.4 31.6 31.8 32.0 Tt 232.2 ºC
Time (s) Z 3
(b) ECR 0.01
Fig. 20. Variation of generator output voltage with unbalanced load condi‐ ETD 0.04
tion. (a) Without MPC. (b) With MPC. TCD 0.2
R 12.5 Ω
VI. CONCLUSION Ld 165 μH
Lq 165 μH
This paper has presented an adaptive control system using
PMSG Wr 70000 rpm
MPC for a biogas power plant based on state space. The pro‐
P 4 poles
posed control system has been developed to control the fed
J 0.011 kg m2
substrate according to the connected load, and respond to the
λ 0.2388 Wb
expected changes in the electric load.
The control scheme is derived from an anaerobic diges‐
tion model, which includes all the concentrations of biode‐ REFERENCES
gradable volatile solid in the reactor, volatile solid in influ‐
[1] K. Singh and T. Jash, “Performance analysis of microturbine-based
ent, acidogens, and methanogens. Those are the state vari‐ grid-connected biogas power plant in Purulia in West Bengal, India,”
ables of an MPC system. Clean Technologies and Environmental Policy, vol. 17, no. 3, pp. 789-
795, Aug. 2015.
The system has been implemented in the MATLAB/Simu‐ [2] J. Bailey and D. Ollis, Biochemical Engineering Fundamentals, 2nd
link environment and tested under different loading condi‐ ed., New York: McGraw-Hill, 1984.
tions. The simulation results have proved the effectiveness [3] D. Nguyen, V. Gadhamshetty, S. Nitayavardhana et al., “Automatic
process control in anaerobic digestion technology: a critical review,”
and applicability of the proposed MPC system to adapt the Bioresource Technology, vol. 193, pp. 513-522, Oct. 2015.
biogas power plant operation under different operating condi‐ [4] F. Haugen, R. Bakke, and B. Lie, “Temperature control of a pilot an‐
aerobic digestion reactor,” Modeling, Identification and Control, vol.
tions. The proposed controller system can protect the MT 33, no. 4, pp. 99-117, Jul. 2013.
from the damage due to unbalanced load operation by de‐ [5] F. Haugen, R. Bakke, and B. Lie, “On-off and PI control of methane
creasing the duration and values of the disturbances. By mea‐ gas production of a pilot anaerobic digestion reactor,” Modeling, Iden‐
tification and Control, vol. 34, no. 3, pp. 139-156, Jul. 2013.
suring the performance index, the errors decrease from 18% [6] A. Rincón, C. Erazo, and F. Angulo, “A robust adaptive controller for
to 2% for the MT torque, from 50% to 10% for the genera‐ an anaerobic digester with saturated input: guarantees for the bounded‐
ness and convergence properties,” Journal of Process Control, vol. 22,
tor speed, and from 15% to 0% for the generator output volt‐ no. 9, pp. 1785-1792, Oct. 2012.
age, respectively. [7] L. Xue, D. Li, and Y. Xi, “Nonlinear model predictive control of an‐
12 JOURNAL OF MODERN POWER SYSTEMS AND CLEAN ENERGY, VOL. XX, NO. XX, XX XXXX
aerobic digestion process based on reduced ADM1,” in Proceedings of gineering and Computer Science, Kassel University, Kassel, Germany,
10th Asian Control Conference (ASCC), Kota Kinabalu, Malaysia, 2012.
Sept. 2015, pp. 1-6. [24] A. Khalid, M. Arshad, M. Anjum et al., “The anaerobic digestion of
[8] D. Gaida, C. Wolf, T. Bäck et al., “Nonlinear model predictive sub‐ solid organic waste,” Waste Management, vol. 31, no. 8, pp. 1737-
strate feed control of biogas plants,” in Proceedings of 20th Mediterra‐ 1744, Aug. 2011.
nean Conference on Control & Automation, Barcelona, Spain, Aug. [25] A. Husain, “Mathematical models of the kinetics of anaerobic diges‐
2012, pp. 1-6. tion-a selected review,” Biomass and Bioenergy, vol. 14, no. 5-6, pp.
[9] D. Gaida, A. L. Sousa Brito, C. Wolf et al., “Optimal control of bio‐ 561-571, May-Jun. 1998.
gas plants using nonlinear model predictive control,” in Proceedings [26] T. Pathmasiri, F. Haugen, and S. Gunawardena, “Simulation of a bio‐
of 22nd IET Irish Signals and Systems Conference, Dublin, Ireland, gas reactor for dairy manure,” Annual Transactions of IESL, vol.
Jun. 2011, pp. 1-6. 2013, pp. 394-398, Sept. 2013.
[10] O. Bernard et al., “Advanced monitoring and control of anaerobic [27] F. Haugen, R. Bakke, and B. Lie, “State estimation and model-based
wastewater treatment plants: software sensors and controllers for an an‐ control of a pilot anaerobic digestion reactor,” Journal of Control Sci‐
aerobic digester,” Water Science and Technology, vol. 43, no. 7, pp. ence and Engineering, vol. 2014, no. 3, pp. 1-19, Apr. 2014.
175-182, Sept. 2001. [28] H. Finn, R. Bakke, and B. Lie, “Mathematical modelling for planning
[11] G. Oppong, G. Montague, B. Elaine et al., “Towards model predictive optimal operation of a biogas reactor for dairy manure,” in Proceed‐
control on anaerobic digestion process,” IFAC Proceedings Volumes, ings of World Congress on Water, Climate and Energy, Dublin, Ire‐
vol. 46, no. 32, pp. 684-689, Dec. 2013. land, May 2012, pp. 1-9.
[12] A. Ordace, C. M. Ionescu, T. P. W. Vannecke et al., “Predictive con‐ [29] D. Hill, “Simplified Monod kinetics of methane fermentation of ani‐
trol of anaerobic digestion of wastewater sludge: a feasibility study,” mal wastes,” Agricultural Wastes, vol. 5, no. 1, pp. 1-16, Jan. 1983.
in Proceedings of 16th International Conference on System Theory.
Control and Computing, Sinaia, Romania, Dec. 2012, pp. 1-7.
[13] C. García-Diéguez, F. Molina, and E. Roca, “Multi-objective cascade Samaa Fawzy received the B. Sc. degree from Mansoura University, Man‐
controller for an anaerobic digester,” Process Biochemistry, vol. 46, soura, Egypt, in 2015, and the M. Sc. degree in electrical power and ma‐
no. 4, pp. 900-909, Apr. 2011. chines engineering from Mansoura University in 2019. She has been a re‐
[14] D. Gaida, C. Wolf, and M. Bongards, “Feed control of anaerobic di‐ searcher at the Electrical Engineering Department, Faculty of Engineering,
gestion processes for renewable energy production: a review,” Renew‐ Mansoura University since 2015. Her research interests include renewable
able and Sustainable Energy Reviews, vol. 68, no. 2, pp. 869-875, energy, biomass energy, and adaptive control systems.
Feb. 2017.
[15] P. Orukpe, “Model predictive control fundamentals,” Nigerian Journal Mohammed Saeed received the B.Sc., M.Sc. and Ph.D. degrees from Man‐
of Technology, vol. 31, no. 2, pp. 139-148, Jul. 2012. soura University, Mansoura, Egypt, in 2004, 2010 and 2015, respectively.
[16] M. O’Brien, J. Mack, B. Lennox et al., “Model predictive control of Currently, he is an assistant professor at the Electrical Engineering Depart‐
an activated sludge process: a case study,” Control Engineering Prac‐ ment, Faculty of Engineering, Mansoura University. His research interests
tice, vol. 19, no. 1, pp. 54-61, Jan. 2011. include renewable energy, biomass energy, smart grids, advanced control,
[17] F. Camacho and C. Bordons, Model predictive control, 2nd ed., Lon‐ modern optimization techniques, and power system analysis.
don: Springer Verlag, 2007.
[18] J. Rossiter, “Model-based predictive control: a practical approach,”
Abdelfattah Eladl received the B. Sc., M. Sc., and Ph. D. degrees from the
Taylor & Francis e-Library, 2003.
Electrical Engineering Department, Faculty of Engineering, Mansoura Uni‐
[19] M. Saeed, S. Fawzy, and M. El-Saadawi, “Modeling and simulation of
versity, Mansoura, Egypt, in 2002, 2007, and 2015, respectively. In 2016, he
biogas-fueled power system,” International Journal of Green Energy,
receives the best Ph. D. thesis award from Mansoura University. Currently,
vol. 16, no. 2, pp. 125-151, Jul. 2019.
he is an assistant professor at the Electrical Engineering Department, Man‐
[20] S. Guda, “Modeling and power management of a hybrid wind micro‐
soura University. His research interests include power system economics,
turbine power generation system,” M.Sc. Dissertation, Electrical Engi‐
planning, power quality, and energy hubs.
neering Department, Montana State University, Bozeman, USA, 2005.
[21] S. Guda, C. Wang, and M. Nehrir, “Modeling of microturbine power
generation systems,” Electric Power Components and Systems, vol. Magdi El-Saadawi received the B. Sc. and M. Sc. degrees from Mansoura
34, no. 9, pp. 1027-1041, Sept. 2006. University, Mansoura, Egypt, in 1982 and 1988, respectively, and his Ph.D.
[22] W. Rowen, “Simplified mathematical representations of heavy-duty from Warsaw University of Technology, Warsaw, Poland, in 1997. He was a
gas turbines,” Journal of Engineering for Power, vol. 105, no. 4, pp. teaching assistant at El-Mansoura University, Mansoura, Egypt, from 1983
865-869, Oct. 1983. to 1992. From 1997, he was a staff member of the Electrical Engineering
[23] R. Al-Zubi, “Modeling and performance analysis of a hybrid biogas- Department, Mansoura University, and has been a professor since May
photovoltaic system,” M. Sc. Dissertation, Electrical Engineering De‐ 2011. His research interests include renewable energy, power system analy‐
partment, Cairo University, Cairo, Egypt, and Faculty of Electrical En‐ sis, and applications of artificial intelligence in power systems.