revathis2017
revathis2017
Abstract— Greenhouse climate control problem has received nonlinear fuzzy immune PID algorithm is tested on the
considerable attention in agriculture engineering research. The interacting multivariable greenhouse climate control.
greater part of accomplishing ensured farming within the For the purpose of comparison, four controller
greenhouse environment is achieved by controlling the algorithms namely Proportional-Integral-Derivative (PID)
temperature and relative humidity. As the result of process control, Linear Quadratic Regulator control, Rule based
dead times and extreme interdependence of these parameters,
Fuzzy Logic Control and Fuzzy Immune PID control are
the control problem is classified to be non-linear and multi-
variable. With the advances in intelligent control systems, more studied. In “non-intelligent” technique, PID and LQR
and more decisions involved in greenhouse control can be approach that is more classical is considered. In “Intelligent”
automated. Thus, more emphasis can be placed on emulating technique, Fuzzy PID and Fuzzy immune PID are
the abilities of the expert operator. In this paper, intelligent and considered. Even though fuzzy logic is widely used in
non-intelligent control techniques for addressing the problem control, fuzzy immune control is new and it is not
of automated climate control in a greenhouse are investigated. prevalently used in the control arena. Numerical simulation
These include proportional-integral-derivative (PID) and is performed and the advantages of intelligent controllers are
Linear-Quadratic regulator (LQR) as a ‘non-intelligent’ compared against non-intelligent controller with system
technique and fuzzy PID and fuzzy immune PID as ‘intelligent’
responses to set-point changes.
technique. The new study is made for implementing the
nonlinear fuzzy immune PID controller for greenhouse climate
control. This controller has a simple structure and its II. GREENHOUSE CLIMATE MODELLING AND DECOUPLING
parameters can be conveniently adjusted. It consists of a PID Based on mass and energy balance inside the
controller and a basic immune proportional controller in greenhouse, a dynamic model describing the latent and
cascaded connection, the nonlinear function of the immune
sensible heat and the water vapor balance is developed [2].
proportional controller is realized using fuzzy reasoning. Thus,
controller parameters are adjusted online by the rules of This is used as a multi-season model. This simplified model
immune feedback controller and fuzzy controller. The considers only the significant disturbances such as outside
simulation results are compared for the effectiveness and temperature and humidity, and the solar radiation. The
applicability to greenhouse environmental problem. differential equations for coupled energy and water vapor
mass balances are mentioned in (1a) and (1b) respectively.
I. INTRODUCTION
𝑑𝑇𝑖𝑛(𝑡) 1
Greenhouses allow producers to grow plants at a = [𝑞ℎ𝑒𝑎𝑡𝑒𝑟 (𝑡) + 𝑆𝑖 (𝑡) − 𝜆𝑞𝑓𝑜𝑔 (𝑡)] −
𝑑𝑡 𝜌𝐶𝑝 𝑉
time when it would be impossible to grow outside because ̇
𝑉 (𝑡) 𝑈𝐴
of adverse climate, pests and diseases [1]. In order to [𝑇 (𝑡) − 𝑇𝑜𝑢𝑡 (𝑡)] − [𝑇 (𝑡) − 𝑇𝑜𝑢𝑡 (𝑡)](1a)
𝑉(𝑡) 𝑖𝑛 𝜌𝐶 𝑉 𝑖𝑛
𝑝
achieve maximum returns from greenhouse cultivation, it is
important to maintain an environment that minimizes the 𝑑𝜔𝑖𝑛 (𝑡) 1 1 𝑉̇ (𝑡)
energy consumption. The greenhouse climate is a nonlinear = 𝑞𝑓𝑜𝑔 (𝑡) + 𝐸(𝑆𝑖 (𝑡), 𝜔𝑖𝑛 (𝑡)) − [𝜔𝑖𝑛 (𝑡) −
𝑑𝑡 𝜌𝑉 𝜌𝑉 𝑉(𝑡)
Multiple input Multiple Output (MIMO) system 𝜔𝑜𝑢𝑡 (𝑡)] (1b)
characterized by high coupling, with strong variation of
parameters due to crop development stages, and it is highly where Tin (t) , Tout (t) are the greenhouse and ambient
influenced by disturbances (outside temperature and temperature respectively (°C), V is the greenhouse volume
humidity, wind speed, solar radiation). The main state (m3 ), ρ is the air density (1.2 kg/m3 ), Cp is the specific heat
variables for greenhouse climate control are air humidity and of air (1006 J(KgK)−1 ), qheater is the heat provided by the
temperature. The interdependence of these parameters makes greenhouse heater (W), Si is the intercepted solar radiant
it a very challenging control problem. The efficacy of
energy (W), qfog is the water capacity of the fog system (g
H2 O/s), λ is the latent heat of vaporization (2257 J/g), V̇ is
the ventilation rate (m3 /s), ωin and ωout are the interior and
Revathi S is with Department of Instrumentation and Control in the exterior absolute humidity (g H2 O/m3 ), E(Si , ωin ) is the
National Institute of Technology, Tiruchirapalli, Tamil Nadu, India- evapotranspiration rate of the plants (g H2 O/s). In this
620015.( phone: 9488611107; e-mail: [email protected]).
Radhakrishnan T K is with the Chemical Engineering Department, paper, just summer operations are considered and hence
National Institute of Technology, Tiruchirapalli, Tamil Nadu, India-620015. heater element is not used, i.e. qheater = 0.
(e-mail: [email protected]). 𝑆 (𝑡)
Sivakumaran N, is with Department of Instrumentation and Control,
𝐸(𝑆𝑖 (𝑡), 𝜔𝑖𝑛 (𝑡)) = 𝛼 𝑖 − 𝛽𝑇 𝜔𝑖𝑛 (𝑡) (2)
𝜆
National Institute of Technology, Tiruchirapalli, Tamil Nadu, India-620015.
(e-mail: [email protected]).
𝑈𝐴 1 𝜆
𝑥̇1 (𝑡) = − 𝑥 (𝑡) − 𝑥1 (𝑡)𝑢1 (𝑡) − 𝑢 (𝑡) +
𝜌𝐶𝑝 𝑉 1 𝑉 𝜌𝐶𝑝 𝑉 2
1 𝑈𝐴 1
𝑣 (𝑡) + 𝑣 (𝑡) + 𝑢1 (𝑡)𝑣2 (𝑡) (3a)
𝜌𝐶 𝑉 1
𝑝 𝜌𝐶 𝑉 2 𝑝 𝑉 Figure 1. Block diagram of General PID Controller
𝛽𝑇 1 1 1
𝑥̇ 2 (𝑡) = 𝑥2 (𝑡) + 𝑢2 (𝑡) + 𝑣1 (𝑡) − 𝑥2 (𝑡)𝑢1 (𝑡) +
𝜌𝑉 𝜌𝑉 𝜆𝑝 𝑉 𝜌𝑉 The proportional part is responsible for following
1
𝑢1 (𝑡)𝑣3 (𝑡) (3b) the desired set point, while the integral and derivative part
𝜌𝑉
account for the accumulation of past errors and the rate of
change of error in the process respectively. The PID tuning
The state variables 𝑥1 and 𝑥2 are the greenhouse inside
rules based on direct synthesis method is in Table I.
temperature and the interior absolute humidity. The input
control variables 𝑢1 and 𝑢2 are the fan ventilation rate and TABLE I. PID TUNING RULES BASED ON DIRECT-SYNTHESIS DESIGN
the water capacity of the fog system. The external
disturbances 𝑣1 , 𝑣2 and 𝑣3 correspond to the intercepted 𝑲𝒑 𝑻𝒊 𝑻𝒅
solar radiation, outside temperature and outside absolute 2𝜆 + 1.5𝐿 2 𝜆+1.5L 𝐿𝜆 + 0.5𝐿2
humidity. By using combined scheme of feedback with 𝐾(𝜆2 + 𝑠𝜆𝐿 + 0.5𝐿2 ) 2𝜆 + 1.5𝐿
simultaneous feedforward linearization, the temperature
changes are modeled as a self-regulating first-order plus b. LQR Controller Design
dead time (FOPDT) model while interior humidity changes The LQR theory is a powerful method for the
are modeled as an integrator plus dead-time model as shown control of linear systems. It generates controllers with
in (4a) and (4b). guaranteed closed-loop stability and robustness property
𝐾 𝑒 −𝑑𝑇 𝑠 even in the face of uncertain gain and phase variation at the
𝑋1 (𝑠) = 𝑇 ̃𝑇 (𝑠)
𝑈 (4a)
𝜏𝑇 𝑠+1 plant input/output [10]. In addition, the LQR-based
𝐾𝜔 𝑒 −𝑑𝜔 𝑠
𝑋2 (𝑠) = ̃𝜔 (𝑠)
𝑈 (4b) controllers provide reliable closed-loop system performance
𝑠
𝜌𝐶𝑝 𝑉
̃𝑇 , 𝜏 𝑇 = 𝜌𝐶𝑝 𝑉 𝑉
̃𝜔 and despite the presence of stochastic plant disturbances. It
where 𝐾𝑇 = 𝐾 , 𝐾𝜔 = 𝐾 minimizes the following quadratic objective function shown
𝑈𝐴 𝑈𝐴 𝛽𝑇
𝑑 𝑇 = 𝑑𝜔 = 30𝑠𝑒𝑐 in (6).
∞
III. CONTROL STRATEGIES J(k) = ∫0 ( x T (t)Qx(t) + uT (t)Ru(t)) dt (6)
where ‘Q’ is a nonnegative-definite matrix that penalizes the
Control of greenhouse systems has become more departure of system states from the equilibrium and ‘R’ is a
important in the recent years. Traditionally, both non- positive-definite matrix that penalizes the control input is
intelligent and intelligent techniques have been deployed in used. The solution to the LQR problem is obtained via
literature. Lagrange multiplier-based optimization technique and is
A. Non-Intelligent control technique given by (7).
K = 𝑅−1 𝐵𝑇 P (7)
a. PID Controller Design
The PID controller is the most widely used B. Intelligent control technique
controller in industry today and it possesses the simple The parameters of the PID controllers K p , K 𝐼 , K 𝑑
robust and stable properties. PID controller with the transfer are tuned adaptively to the changes in error and rate of
function is shown in (5) change of error using fuzzy intelligent technique. This leads
1 to the optimal values of the controller parameters.
𝐶(𝑠) = K p (1 + + TD s) (5)
Ti s
where K p , Ti , TD are the proportional gain, integral time and a. Design of Fuzzy PID Controller
derivative time respectively. A wide range of methods are A fuzzy expert system is an expert system that uses
available in literature for tuning the parameters of PID a collection of fuzzy membership functions and rules,
controller to processes modeled by integrator plus dead time instead of Boolean logic, to reason about data. A fuzzy PID
models viz., empirical formulae, analytical methods and controller takes the conventional PID controller as the
frequency-domain approaches. The best values are used in foundation and uses the fuzzy reasoning and variable
the simulation [3] [4] [5]. The general PID control structure universe of discourse to regulate the PID parameters [6]. The
is in Fig. 1. structure of the controller is in Fig. 2.
888
This is an immune feedback control. The P controller is:
u(k) = k p e(k) (11)
Where we α(k) assume as the system deviation e(k) , S(k)
as the control input u(k), then equation (11) is rewritten as
u(k) = K (1 − ηf(u(k), Δu(k))) e(k) = K p1 e(k) (12)
where K p1 = K (1 − ηf(u(k), Δu(k))), K = k1 is control
reaction rate, if k1 increases, it can improve the response
speed. η = k 2 /k1 is control-stability effect, and if η
Figure 2. Fuzzy PID Control structure
increases, it can reduce the overshoot and improve the
stability. The block diagram representation is in Fig. 4.
The characteristics of the fuzzy system (such as
robustness and adaptability) incorporated into the controlling
method for better tuning of PID parameters. The self-tuning
characteristics of this controller to tune the controlling
parameters on-line automatically, gives the most suitable
values of PID parameters that results in optimization of the
process output [7].
889
40
Temperature step change response curves for Non-Intelligent Controllers
N NB NB N O P
Temperature ( degree celcius)
35 O N N O P P
Desired Temperature
30
PID P N O P P PB
LQR
25
PB O P P PB PB
20
15
TABLE IV. FUZZY RULES FOR K D
500 600 700 800 900 1000 1100 1200 1300 1400 1500
Time (sec) CE NB N O P PB
Humidity step change response curves for Non-Intelligent Controllers
20
18 E
16 NB N N NB NB P
Humidity ratio (g/Kg)
14
PID
12
LQR N N N N N O
10 Desired Humidity level
8
O O O O O O
6
2
P PB O P P PB
0
500 600 700 800 900 1000 1100 1200 1300 1400 1500
Time (sec) PB PB P P P PB
Figure 5. Servo Response for non-intelligent controllers
In fuzzy PID design, two inputs to the fuzzy logic In fuzzy Immune PID controller, the proportion
controller are error ‘E’ and change in error ‘CE’ and the factor ′𝐾𝑝 ′ is the output of immune fuzzy adjusting
output are the PID parameters. The fuzzy membership and 𝐾𝐼 , 𝐾𝐷 are adjusted online according to fuzzy PI
functions are ‘NB’, ‘N’, ‘O’, ‘P’, ‘PB’ which means controller. In the fuzzy immune adjusting, double inputs and
negative big, negative, zero, positive, positive big single output are used. The inputs are u (k) and ∆u (k), and
respectively for all the membership variables. The fuzzy the output is f (u (k), ∆u (k)). The input variables are
control rule for K p , K I , K D are listed in the Table II, III, IV fuzzified by two fuzzy sets, which are named “Positive” (P)
respectively. and “Negative” (N), and the output variable is fuzzified by
three fuzzy sets, which are named “Positive” (P), “Negative”
TABLE II. FUZZY RULES FOR K P
(N) and “Zero” (Z). Fuzzy inference rules are derived by
CE NB N O P PB Lyapunov synthesis method to ensure f(∗) on the stability of
the system. The fuzzy rules are in Table V.
E
NB PB PB P P O TABLE V. FUZZY RULES FOR IMMUNE FUZZY TUNED K P
∆U P N
N PB PB P O N
U
O P P O N N P N Z
P P O N N NB N Z P
PB O N N NB NB
Using fuzzy logic Zadeh AND operation, Mamdani
algorithm and centroid defuzzification, the f(∗) can be fitted
precisely. The combined response with implementation of
TABLE III. FUZZY RULES FOR K 𝐼
intelligent controllers for the variation in step change in
CE NB N O P PB temperature and humidity in the greenhouse is in Fig. 6. It is
inferred that fuzzy immune PID has less settling time
E compared to fuzzy PID control.
NB NB NB N N O
890
Temperature step change response curves for Intelligent Controllers Response of temperature during unknown disturbance
40 32
Temperature (Degree
24 Celsius)
25 Fuzzy Immune PID
Fuzzy PID 22
Desired temperature
20 20
18
15
500 600 700 800 900 1000 1100 1200 1300 1400 1500
16
Time (sec) 500 1000 1500 2000
Humidity step change response curves for Intelligent Controllers Response of Humidity during unknown disturbace Time (sec)
22
32
16 Fuzzy Immune PID
30 Fuzzy PID
14 Fuzzy immune PID Desired Humidity
Fuzzy PID 28
12 Desired humidity
Humidity (g/Kg)
26
10
24
8
22
6
800 900 1000 1100 1200 1300 1400 1500 20
Time (sec)
18
Figure 6. Servo response for intelligent controllers
16
14
600 800 1000 1200 1400 1600 1800 2000
891
REFERENCES
[1] Bennis N, Duplaix J, Enéa G, Haloua M, Youlal H, “Greenhouse
climate modeling and robust control”, Computers and Electronics in
Agriculture, vol. 61,no. 2, pp. 96–107, May 2008.
[2] L.D. Albright, R.S. Gates, K.G. Arvanitis, and A. Drysdale,
“Environmental control for plants on earth and in space,” IEEE
Control System Magazine, vol. 21, no. 5, pp. 28-47, Oct. 2001.
[3] M. Chidambaram and R. Padma Sree, “A simple method of tuning
PID controllers for integrator/dead-time processes,” Computers and
Chemical Engineering, vol. 27, no. 2, pp. 211-215, Feb. 2003.
[4] A. Seshagiri Rao, V.S.R. Rao, M. Chidambaram, “Direct synthesis
based controller design for integrating processes with time delay,”
Journal of the Franklin Institute, vol. 346, no. 1, pp. 38-56., Feb.
2009.
[5] L. Wang and W.R. Cluett, “Tuning PID controllers for integrating
processes,” IEE Proceedings - Control Theory and Applications, vol.
144, no. 5, pp. 385-392, Sep. 1997.
[6] Ma Yin-hui, Ding Jian-she and Xu De-song, “Design of PID
parameter self-adjusting fuzzy controller based on MATLAB and its
simulated applications,” Power Equipment, no.2, 112-124, 2005.
[7] G. Cao, C. Lou and D. “An Application of fuzzy self-tuning PID
control to air conditioning system,” Heat Ventilating and Air
Conditioning, vol. 34, no.10, 106-109, October 2004.
[8] Wang, W., Gao, X. Z., Wang, C. H., “Fuzzy Immune PID Controller
in Material-level Control of Preheating Cylinder,” International
Conference on Informatics and Control Technologies, pp. 52-55,
2006.
[9] Peng Daogang, Yang Ping, Wang Zhiping, et al., “Fuzzy immune
PID control and its application to main steam temperature control
system,” Computer Automated Measurement & Control, vol. 13,
no.3, 250-251, 2005.
[10] William S. Levine, The Control Handbook. CRC press, 1995.
892