You are on page 1of 5

Predictive Control of Temperature Under

Greenhouse using LQG Strategy


Youssef EL AFOU1,2, Abdelouahad AIT MSAAD3
1
Physics Department, Faculty of sciences, Moulay Ismaïl Tarik KOUSKSOU4, Mustapha MAHDAOUI5
University, LEAB laboratory
4
Meknes, Morocco Université de Pau et des Pays de l’Adour, Technopôle
& Hélioparc Pau Pyrénées 2, Avenue du
2
INRIA Non-A groupe, University of Sciences and Président Angot, 64053 Pau Cédex 09
Technology of Lille1, LAGIS Laboratory Laboratoire des Sciences pour l’Ingénieur Appliquée à
Lille, France la Mécanique et au Génie Electrique, France
Elafou.youssef@gmail.com tarik.kousksou@univ-pau.fr
3 5
École Supérieure de Technologie de Fès, Université LIMSI-CNRS, BP 133, 91403 Orsay Cedex, France
Sidi Mohamed Ben Abdellah, Route d’Imouzzer, BP mustapha_mahdaoui@yahoo.fr
2427 Fès, Morocco
msaadabdelouahad@yahoo.fr

Abstract—In this paper, we present a simulation of the predictive For this reason, our work consists in integrating the
control named Linear Quadratic Gaussian (LQG) in order to Linear Quadratic Gaussian (LQG) algorithm to control the
control the temperature under greenhouse. This controller temperature under greenhouse. This control strategy allows
permits to estimate the gain of Kalman filter by resolving the calculating the gain of a state feedback control for the specific
Riccati equation. For that, we are using Matlab software to
purpose of reducing white noise. It combines the Linear
develop the state equation to be implemented in LabVIEW
software. Quadratic controller (LQ) and a Kalman estimator, which can
be calculated independently according to the separation
Keywords-component; Greenhouse, Automatic Control, LQG principle [10]. LQ control ensures a certain robustness of the
controller, Kalman filter. closed loop. The Kalman filter is a recursive estimator that has
two distinct phases: Prediction phase and Update step [11].
I. INTRODUCTION The prediction phase uses the estimated state of the previous
time to produce an estimate of the current state. In the update
T he greenhouse is a production tool for creating an
artificial microclimate for growth and development of
crops. The greenhouse grows fast using the techniques and
step, the observations of the current time are used to correct
the predicted state in order to obtain a more accurate estimate.
Actuators have limited operations (fully open or closed).
materials ever more varied and complex. This is why growers, Come into account security reasons, environmental or inherent
who want to remain competitive, need to maximize their limitations of sensors, limits on process variables (temperatures
investment by controlling the conditions of production, aiming and relative humidity). All this requires considering the
also to control automatically the climate factors of the plant constraints in the design phase and implementation of the
development [1]-[3]. controller for improved system performance. The synthesis of
Plant physiology informs us about the role of temperature control without taking into account the restrictions mentioned
in the process ensuring plant life. Temperature plays different may discard the response of the controlled system to that
roles by day, while photosynthesis occurs, and during the desired. Therefore, predictive control takes place for such
night, while cellular respiration occurs. The distinction regulation.
between these two types of temperature provides important
information on the evolution of plants. Alternating daily or
II. LINEAR QUADRATIC GAUSSIAN CONTROLLER (LQG)
monthly temperature affects the rate of plant growth [4], [5]. OVERVIEW
High temperature acting on the evaporation of water cell
and leads to increase perspiration. Similarly, the temperature
beyond 25 °C and 30 °C, causes decreased sweating. Low Figure 1 shows the block diagram of LQG controller. The
temperature is a contributing factor in various diseases. But it application of this controller is to calculate the gain of a
may even be the reason for the death of the plant. The roots feedback control condition in a particular order to reduce
are particularly sensitive to cold and same problems can white noise. The LQG controller combines LQ (Linear
appear as 14 °C. This requires the integration of techniques of Quadratic) and a Kalman estimator which can be calculated
automated temperature control [6]-[9].

978-1-4673-7894-9/15/$31.00 ©2015 IEEE


independently depending on separation principle. We algebraic Riccati equation presented in (7) plays an important
introduce LQ on the controller for ensuring a robustness of the role for the stability of the LQG controller [18]. The existence
closed loop [12]-[14]. of the solution is related to the following conditions:
LQG is a more modern technique of state space C1: (A, B) is controllable
representation for optimal dynamic regulators designer. It C2: (C, A) is observable
helps to have good performance at control. It also carries the The Condition C1 ensures stability of the LQG control
white noise considerations and processes those measurements while the second condition C2 ensures the stability of the
[15]-[17]. estimator. The LQG control requires that all state variables are
measurable. To estimate the state vector x(t) we use a state
observer obtained by changing the representation of system
status:
ˆ  1)  Ax(t)
x(t ˆ  Bu(t)  K(t)(y(t)  Cx(t))
ˆ (8)
xˆ (t ) is the estimate for x(t ) and K a gain of
Where,
Kalman filter. It permits to estimates the state x(t  1) . This
filtering gain can be calculated from the matrixes A, C, the
two covariance matrices V and W of the Gaussian white noise
v(t) and w(t) and the initial state.
Fig. 1. Block diagram of LQG controller.
Regulation is provided by a dynamic system capable of III. TEMPERATURE CONTROL UNDER GREENHOUSE BY LQG
keeping his behavior even in response interference. Therefore, Greenhouse is a place built based on properties ensuring the
the performance of the control system is strongly dependent biological life mimetic natural life while minimizing the
on the gain matrix in the linear observation. To improve the negative impact of external climatic conditions. Should be
performance, it is clearly better to make the dimension and the noted that greenhouse must have a synthesis similar to the
value of this gain matrix as large as possible. Note that the atmospheric environment. The greenhouse cultivation is
performance depends on the adopted structure, level of evolving rapidly by requiring sophisticated techniques for
accuracy of the estimate of variance and the ability of used reliable control. Indeed, to achieve these objectives we will
actuator. The system can be described by the state space as recourse to the use of electronics (sensors, actuators,
described in the following equation: electronic interfaces, etc.) and the computing (process
x(t  1)  Ax(t)  Bu(t)  w(t) (1) automation).
y(t)  Cx(t)  (t)
A. Experimental Device
Where x is the vector that contains a state of controlled
variables, u is the vector of command, w is a Gaussian white The experimental greenhouse, where all Data were
noise detected on the output. The optimized standard criterion collected, is located at the Electronic Automatic and
allows a trade-off between a convergence time and a Biotechnology Laboratory, Faculty of Sciences, Meknes,
consumption control: Morocco. It is a greenhouse chapel, which is covered with a
transparent material. The experimentation consists in setting
J  Lim  y(t)  y r (t)   u(t) 2 
1 N 2 (2)
N  N t 0
up a station acquisition composed of a set of sensors and
Where  is the control weighting factor, N is the time electronic devices to complete the acquisition, processing,
storage, control and monitoring of climatic parameters
control horizon and yr (t ) represents the setpoint. It is
(temperature, humidity, light and CO2 content. The proposed
characterized by two important parameters: the time control solution utilizes a data acquisition card type PCI-6024E
horizon and the control-weighting factor, y is the vector of controlled by a Personal Computer (PC) as illustrated in Fig.
controlled variables, u is the control vector; the criterion of (2) 2. This last will act as an interface between PC and the
is minimal for the following control law: different cards conditioning sensors, power card, protection
and signaling card [19]-[21].
u(t)  L(t)x(t)  r(t) (3)
With:
L(t)     BT R(t)B BT R(t)A
1
(4)
r(t)     B R(t)B B V(t)
T 1 T (5)
V(t)   A  BL(t)   Cyr (t)
T
(6)
R(t)  A R(t 1)A  A R(t 1)B    B R(t 1)B  B R(t 1)A  C C
1
(7)
T T
T T T

Where, R is a non-negative matrix. The solution of the


The Fig. 3 gives the LQG algorithm able to estimate the
inside temperature: Tin, the estimated output (Tkfe) obtained
with Kalman filter and the error and the control order (Cd)

IV. RESULTS AND DISCUSSION


Experimental device was used for the acquisition of
climatic parameters under the greenhouse. The experimental
data are used to simulate the proposed control algorithm. In
this section, we present the simulation results obtained using
the LQG controller.
A. Parameters Estimation
Simulink design optimization software works by adjusting
parameters in a Simulink model so that chosen response
signals within the system behave in a specified way. The
constraints on the behavior of the response signals and the
tuned parameters are setting within the signal constraint block.
Fig. 2. Schematic block diagram of acquisition. We specify the desired response of a signal by enforcing
signal bounds or by tracking a reference signal. Constraint-
- The actuators used to adjust the climate inside the bound segments define the time-domain constraints. To
greenhouse. position these segments, which appear as a white shaded
- The weather outside is used to condition the region bordered by a red line, using the mouse to click and
greenhouse climate. drag segments within the signal constraint window as shown
- The parameters must be optimal for a normal life of the in the Fig. 4. With this interface we can estimate some
plant. parameters which allow us to obtain optimal values of LQG
The data acquisition system is controlled by LabVIEW controller, enforcing in desired trajectory. Here we computed
software. It allows real-time visualization. It features two sides the gain of Kalman Filter: K=3.769 103.
one before for viewing and the other for the development of
the diagram, the responses can be saved as text form [24],
[25].
B. LQG Diagram in Simulink
Fig. 3 presents the diagram developed in order to estimate
LQG parameters. This estimation is based on Kalman filter
using the correlation matrix of this filter and the order of the
measurement noise and process. Indeed, some parameters vary
within very large intervals and in this case it is not easy to find
suitable values. With this diagram in Simulink, we set these
parameters, and by iteration we send the correct values.

Fig. 4. Parameter estimation.

B. Validation
We exploit the previous estimated parameters implemented
in LQG algorithm. The results of the simulation are shown in
Fig. 5.

The parameters of LQG algorithm are initialized as:

A= [0.9233 1; 0.0655 0]
B= [0.2734 0.1324]
Fig. 3. Estimating the parameters of the LQG controller.
C= [1 0]
D=0
  0.05
R=1.5*[1 0; 0 1]

Fig. 7. LabVIEW front panel.

Fig. 5. Validation of the LQG controller. V. CONCLUSION


It can be seen that the measured and simulated temperatures This paper deals with the applicability of adaptive LQG
under greenhouse are similar. More than that, the computed control to the temperature under greenhouse. In the practical
error between both temperatures was acceptable for a time implementation of the control law it was important to select a
interval of 800 s. Indeed, the command has low power. All strategy that not only gives a small output variance, but also
these observations prove the accuracy of the estimated ensures not too large a change of the input signal. The
parameters. To improve these results we will introduce Matlab experiments show that the control law gives satisfactory
Script to load the previous tested algorithm. results. Thus, the performance of adaptive LQG control is
analysed and its efficiency is demonstrated through the quality
C. Matlab Script of results and the easy parameters tuning.
The Matlab Script is able to bind LabVIEW with Matlab via The LQG control problem is one of the most fundamental
script. We chose Matlab script with its advantages and its optimal control problems. It concerns uncertain linear
ability to extend several applications. Fig. 6 provides an greenhouse system disturbed by additive noise, having
example of using Matlab script: incomplete state information (i.e. not all the state variables are
measured and available for feedback) and undergoing control
subject to quadratic costs. Moreover the solution constitutes a
linear dynamic feedback control law that is easily computed
and implemented. Finally the LQG controller is also
fundamental to the optimal temperature control of perturbed
non-linear greenhouse system.
Matlab script is a remarkable tool that enables powerful to
exploit the programs written in Matlab into LabVIEW through
its power to treat, monitor and analyze the data acquired under
LabVIEW using these programs. The real-time
implementation of this command will be implemented in the
future work.

REFERENCES
Fig. 6. Matlab script used in the diagram VI. [1] C. Castañé and A. Hanafi, “Integrated control in protected crops,
mediterranean climate,” in Proc. of a Meeting at Agadir (Morocco),
The block diagram showed in the fig. 6 presents the Math IOBC-WPRS Bulletin 26(10), 192 p., 2003.
script node integrated in LabVIEW software. Fig. 7 shows the
[2] J. Dayan, E. Dayan, Y. Strassberga and E. Presnov, “Simulation and
evolution curves of the. It’s clear that the obtained results with control of ventilation rates in greenhouses,” Mathematics and Computers
LabVIEW simulation are so similar to those obtained with the in Simulation, 65, pp.3–17, 2004.
Matlab ones. Therefore, the variables were recuperated [3] G. F. Franklin, J.D. Powell and A. Emami-Naeini, “Feedback control of
optimally. dynamic systems," Fifth Edition, Pearson Prentice Hall, Upper Saddle
River, NJ, 2005.
[4] Harmanto, H. J. Tantau and V. M. Salokhe, “Microclimate and air [21] M. Guerbaoui, Y. El Afou, A. Ed-Dahhak, A. Lachhab, B. Bouchikhi,
exchange rates in greenhouses covered with different nets in the humid “PC-based monitoring for drip irrigation system,” Int. J. of Engineering
tropics,” Elsevier Ltd, Biosystems Engineering, 94(2), pp. 239–235, Science and Technology, Vol. 5, no. 1, pp. 221–225, 2013.
2006.
[5] T. Boulard and S. Wang, “Greenhouse crop transpiration simulation
from external climate conditions,” Agricultural and Forest Meteorology,
vol. 100, pp. 25–34, 2000.
[6] A. Ed-Dahhak, M. Guerbaoui, Y. El Afou, M. Outanoute, A. Lachhab,
L. Belkoura and B. Bouchikhi, “Implementation of Fuzzy Controller to
Reduce Water Irrigation in Greenhouse Using LabVIEW,” Int. Journal
of Engineering and Advanced Technology Studies (IJEATS), Vol. 1,
Issue 2, pp. 12–22, 2013.
[7] Y. El Afou, M. Guerbaoui, A. Ed-Dahhak, A. Lachhab,L. Belkoura, B.
Bouchikhi, “Modelling and control of inside temperature in greenhouse
by PID,” J. Association for the Advancement of Modelling and
Simulation Techniques in Enterprises (AMSE), Accepted in press.
[8] M. Guerbaoui, A. Ed-Dahhak, Y. El Afou, A. Lachhab, L. Belkoura and
B. Bouchikhi, “Implementation of Direct Fuzzy Controller In
Greenhouse Based on Labview,” Int. J. of Electrical and Electronics
Engineering Studies (IJEEES), Vol. 1, Issue 1, pp. 1–13, 2013.
[9] J. Maciejowski, “Model Predictive Control with constraints,” Prentice-
Hall, England, 2002.
[10] Y. El Afou, M. Guerbaoui, A. Ed-Dahhak, M. Outanoute, A. Lachhab,
L. Belkoura and B. Bouchikhi, “Design and Implementation of LQG
Strategies for Temperature Control under Greenhouse,” Int. J. of
Engineering and Advanced Technology Studies, vol.1 no.2, Published
by European Centre for Research Training and Development UK, 2013.
[11] T.M. Paes, “System identification in power plants with application to
LQG steam temperature control design,” DCT, 2006.
[12] B. Codrons, “Optimal control of steam temperature in conventional
power plants using LQG design,” IBRA, bulletin trimestriel
d’information, no. 3, 2005.
[13] B. Kulcsár, “LQG/LTR Controller Design for an Aircraft Model,”
Periodica Polytechnica Ser. Transp. Eng., vol. 28, no. 1–2, pp. 131–142,
2000.
[14] D. X. Wang, “Direct-comparison approach to continuous time Linear
Quadratic Gaussian control Problem,” Control and Automatic, ICCA
2009, IEEE int. conf. on, pp. 81–85, 2009.
[15] S. D. Patek, M. D. Breton, Y. Chen, C. Solomon and B. Kovatchev,
“Linear Quadratic Gaussian-Based Closed-Loop Control of Type 1
Diabetes,” J. Diabetes Sci. Technol., 1(6), pp. 834–841, November
2007.
[16] I. Astrov, M. Pikkov, R. Paluoja, “LQG flight control of VTAV for
enhanced situational awareness,” World Academy of Science
Engineering and Technology, Int. J. of Mechanical, Industrial Science
and Engineering, vol. 7, no 10, 2013.
[17] S. Lee, F. B. Hsiao and S. S. JAN, “Design and implementation of
Linear-Quadratic-Gaussian stability augmentation autopilot for
unmanned air vehicle,” Aeronautical J., vol. 113, n o 1143, pp. 275–290,
2009.
[18] K. Aliyu, C. A. Osheku, L. M. A. Adetoro and A. A. Funmilayo,
“Optimal solution to matrix riccati equation – for Kalman filter
implementation,” Vasilios N. Katsikis, ISBN 978-953-51-0752-1, 2012.
[19] A. Ed-Dahhak, A. Lachhab, L. Ezzine and B. Bouchikhi, “Performance
evaluation of a developing greenhouse climate control with a computer
system” AMSE J. Modelling C, 68 (1), pp. 53–64, 2007.
[20] A. Ed-Dahhak, “Development of a system for monitoring the climate
and managing the drip fertilizing irrigation in greenhouse by using
LabVIEW software,” National PhD, Faculty of Sciences, Meknes,
Morocco, 2009.

You might also like