Research Article | Open Access

# Stabilization Using a Discrete Fuzzy PDC Control with PID Controllers and Pole Placement: Application to an Experimental Greenhouse

**Academic Editor:**Onur Toker

#### Abstract

This paper proposes a control strategy for complex and nonlinear systems, based on a parallel distributed compensation (PDC) controller. A solution is presented to solve a stability problem that arises when dealing with a Takagi-Sugeno discrete system with great numbers of rules. The PDC controller will use a classical controller like a PI, PID, or RST in each rule with a pole placement strategy to avoid causing instability. The fuzzy controller presented combines the multicontrol approach and the performance of the classical controllers to obtain a robust nonlinear control action that can also deal with time-variant systems. The presented method was applied to a small greenhouse to control its inside temperature by variation in ventilation rate inside the process. The results obtained will show the efficiency of the adopted method to control the nonlinear and complex systems.

#### 1. Introduction

In the last few decades the Takagi-Sugeno (TS) fuzzy systems have become an important means for both modeling and control, and their performance in these two domains is proved in the research especially in the application of complex and nonlinear systems. TS fuzzy systems use a multimodel approach by fitting enough local linear models each describing an operating functional zone of the process [1]. The final output of the fuzzy system is the fuzzy weighted contribution of all the local output models guaranteeing precision and stability.

Such a tool can be used for control purposes; in fact when dealing with complex systems classical methods become inefficient and so emerges the need for other control techniques. The PDC controllers [2] are a convenient solution, having the same structure as a TS fuzzy system, where every rule is associated with a local linear controller synthesized from the local model with the same rule [3]. The result is a nonlinear control action, which is a fuzzy blending of each individual linear controller. Many applications using TS model and PDC controller [3, 4] were presented, and several propositions of new techniques of PDC control appear in the literature [5]. Where the most proposed approaches present a state feedback for each rule, the stability is proved by finding a common Lyapunov function which can satisfy all the fuzzy subsystems [6]. However, in case of a large number of rules describing the system it is very difficult to apply this approach [7].

In the continuous domain, a solution was presented using a PD or a PID controller for each rule. The denominator of the closed loop system is treated as an uncertain polynomial with affine linear uncertainty structure where the stability can be verified using a frequency domain criterion [7]. In the discrete domain, there is not an efficient solution to deal with the stability problem which is one of the objectives of this paper that will be discussed in Section 3. Another goal that will be described in the same section is to find the appropriate parameters of the controller for each rule using pole placement approach. But before that, in Section 2, an introduction to the TS fuzzy model and the PDC controller will be presented. In Section 4, a practical application will be presented where the proposed control strategy is used in an adaptive fuzzy control scheme. The process is an experimental greenhouse that was fuzzy identified and controlled in real time. Finally, Section 5 will conclude this paper.

#### 2. Takagi-Sugeno Fuzzy Systems

There are different classes of fuzzy systems; the most often used are Mamdani fuzzy systems [8] and Takagi-Sugeno fuzzy systems [1]. The latter differ from the former in the rules consequents: it is not a fuzzy set but it is a local model of the system (submodel related to the rule that describes an operative zone of the process) to be approximated. For the *j*th rule a TS fuzzy system has the following form:

The fuzzy proposition โ is โ is the antecedent of the rule, the system of equation in the second part of (1) is the consequent, โโ are the inputs of the TS fuzzy system, they can be the states โ,โ the input โ,โ or the disturbances inputs โ,โ โโ is the membership function representing the fuzzy subset with a corresponding membership value โ,โ and *N* is the total number of rules.

Assume that all the subsystems considered are completely controllable and completely observable. Also, denote the following states and inputs variables:

The matrix (, , and ), represents the parameters of the TS fuzzy system (1) with the following Frobenius canonical structure:

The output level of each local model is weighted by the firing strength . The final output of the system is the weighted average of all the rule's outputs, the computed as

Assuming that the output of the TS model becomes with and .

On the other hand, the controller is a TS fuzzy system, having the same antecedent of the fuzzy model and differing from it in its consequent. A linear controller is developed for each rule, and the global control action is synthesized in the same way as the TS fuzzy model output [2] as follows: with representing the local output control.

#### 3. Stability of a Closed-Loop TS System

The stability problem of (1) can be solved in general using the Lyapunov approach [9โ11]. In this case, the proposed control law of the PDC controller is a state feedback having the following expression: Replacing (8) into (1) without considering the disturbance inputs leads to the following expression: with .

The following theorem gives a sufficient stability condition for a system of the form of (11) [12].

Theorem 1. *The closed-loop TS fuzzy system of the form of (10) is quadratically stable for some state feedback (via PDC scheme) if there exists a common positive definite matrix such that
*

The problem arises when the TS fuzzy system has a great number of rules, for it is difficult to find matrix that verifies the stability condition (see (11) and (12)) [7].

The solution presented in this paper deals with a transfer function form of the TS fuzzy system. Combining (1) and (6) without considering the disturbance inputs, we obtain the following NARX form: Since , the following expression can be obtained: The transformation leads to the new form:

Let and so the transfer function of the TS fuzzy system is as follows: Let us also consider the transfer function of the PDC controller to be where and are the numerator and the denominator of local controllers correspondent to each rule of the PDC controller.

The transfer function of the closed-loop fuzzy system will be This leads to the following expression:

From (20) we can see that the controller related to a rule , initially designed to stabilize the local model related to the same rule, has an influence on the stability of the other submodel related to different rules as indicated by the expression located in the denominator of the closed-loop transfer function. There is a high probability that the local controller for a particular rule is not suitable for a local model associated with a different rule. Thus, the stability of the overall closed-loop system with the current structure cannot be guaranteed especially when the TS fuzzy system has a great number of rules.

In fact, the cross-coupling and possible instability are created by the two multiplications and ; if we manage to eliminate the multiplication, then the problem can be solved.

In order to fulfill this objective the chosen local controllers must have the same order as the local models. For instance, if the system is a first-order one, then the local controllers must be a PI, and if the system is a second-order one, then the correspondent local controllers should be a PID. For higher-order systems, one can choose an RST controller to each local model with an equivalent order having the polynomial equal to the polynomial .

Also, assuming all stable zeros of the transfer function (17), the denominator of each local controller must include the numerator of the local model having the same rule . So let us consider the denominator of a local controller related to a rule :

Here all the local controllers share the same polynomial representing the numerical expression of an integrator that will allow the rejection of disturbances. This expression already exists in a PI, a PID, or an RST controller having an integrator in the open loop [13].

We have also Replacing (21) and (22) in (19) leads to the following transfer function of the closed-loop fuzzy system:

In the transfer function (23) of the closed-loop system, the multiplication was eliminated and so the cause of the interaction or cross-coupling is removed. However, the stability is not yet guaranteed. We still need to find the appropriate numerator's parameters of each local controller. A pole placement strategy is adopted with an appropriate polynomial , having its roots inside the unit circle, to be identified with the denominator of every closed-loop subsystem as follows: The result is the following system of equations: The denominator of the transfer function (23) becomes invariant whatever the rule , and since we have , the new form of the transfer function (23) becomes with the poles located inside the unit circle which guarantees the stability of the system. Also, with the described method, whatever the number of rules is, it is possible to take advantage of both: the performance of a classical controller like a PI, a PID, or an RST and in the same time the multicontrol approach given by the PDC controller. The result is a robust nonlinear controller that can even deal with complex system with time-variant parameters when using a recursive fuzzy identification of the TS fuzzy model. A simulation of the proposed method will be presented in the next section to control such a system.

#### 4. Application to an Experimental Greenhouse

The presented method was applied to control the inside temperature of a small greenhouse (Figure 1). The inside climate is subjected to various phenomena like the solar radiation transfer, heat and mass transfer between the soil, the cover, the canopy and the outside climate. There is also the ventilation conducted by two three-phase motors that interfere to cool the inside temperature.

The effect of the solar radiation is preponderant during daylight; in fact, the components of the greenhouse absorb the radiation energy and convert it to heat energy released in the air by heat transfer [14], which enhances the inside temperature that will surpass the outside temperature (Figures 2 and 3).

All these factors result in a nonlinear evolution with time-varying parameters of the climate inside the greenhouse [15]. The use of ventilation to cool down the climate during daylight is very common. In fact, with an adequate and skilful management it can be possible to maintain suitable climate-state variables (temperature, humidity, and CO_{2} concentration) [16]. Also, the ventilation represents an alternative and cheap solution to the air conditioner that consumes an important electrical power.

But the complexity of the system makes it hard to achieve successful results, and so most of the farmers use an on-off control action between two boundary temperature values. But, this kind of control is unhealthy to the canopy. On the other hand, the time where the ventilation is effective is related to the weather. In fact, the possible constraints that oppose the use of this method all along the year are(i)the presence of solar radiation that will enhance the inside temperature and make it surpass the outside temperature,(ii)the desired temperature of the climate inside the greenhouse that must be greater with several degrees than the outside temperature. The choice of the desired temperature depends on the requirement of the cultivation inside the greenhouse.

These conditions can be met in 3 to 4 months of the year. When the outside temperature is near the desired inside temperature, the farmers use the pad cooling system; it is a combination between fans and a wet pad that decreases the introduced air with several degrees [17โ19]. Thus, the ventilation use is effective for another one or two months depending on the quality of the pad.

In this paper, we focus on the evolution of the inside temperature by manipulating the ventilation rate to obtain a desired behavior of the process. As described in Section 2, the TS fuzzy system is able to describe this kind of system and can be used to control the inside temperature using the fans during daylight.

##### 4.1. Materials and Measurements

The process is a greenhouse with the following geometrical characteristics: 1.5โm height, total width of 1โm, and total length of 1.5โm.

The inputs of the system are obtained from several sensors located inside and outside the greenhouse as follows.(i)The inside and outside temperatures were measured by two LM35 transistors; both have an AD 620 amplifier to amplify the delivered signal.(ii)The inside humidity was measured using a humidity sensor (SY-HS-230BT).(iii)The solar radiation was obtained by a pyranometer type LP-PYRA 03 module.

In order to control the ventilation rate, the greenhouse was equipped with two fans driven by two three-phase motors. These engines have a power supply delivered by a frequency converter (microdrive FC 51 Danfoss). The rotational speed of the fans is proportional to the frequency of the three-phase power supply and so the ventilation rate inside the greenhouse depends on the frequency of the power supply. Thus, the control input will be the frequency that will be computed by the fuzzy controller.

The communication between MATLAB, the sensors, and the frequency converter is carried by the data acquisition module (KUSB-3100).

##### 4.2. Fuzzy Identification

The structure of the discrete TS fuzzy system that will be approximated will have a local model for every rule having the following form [20]: where is the frequency delivered by the frequency converter to the motors equipped with fans to control the ventilation rate inside the greenhouse.

The fuzzy identification is performed in two steps. The first one is the determination of the appropriate membership functions of each input to set the antecedent part of the TS fuzzy system, which is done using fuzzy clustering based on C-means algorithm. The membership functions were fixed and *would not* change during the control application. For that purpose, on the day of 25-02-2011, we gave a random action control to collect the data needed under the sample time of 15 seconds; after that we set the membership functions in Figures 4, 5, 6, 7, and 8.

The second step is the estimation of (27) that represents the consequent part of the TS fuzzy system. For a time-variant system like a greenhouse, the more convenient way is an online fuzzy identification using the following recursive equations based on the recursive least square algorithm [20]: where is a forgetting factor, is the regression vector of inputs, is the estimated vector of parameters, and is the output representing the inside temperature .

and are obtained from an offline fuzzy identification based on an ordinary weighted least square method [20], where the data used are those collected during the day before the recursive identification and also served to build the membership functions.

The estimated vector will be used in an adaptive fuzzy control scheme (see Figure 9) to bring the inside temperature to the desired temperature using the fuzzy controller output .

##### 4.3. Fuzzy Control

The system is a first-order one so the local controller for each rule will be a PI controller. From the previous section, the transfer function of the PDC controller can be deduced as follows: Consider the following polynomial having its roots inside the unit circle of the complex plane: where its poles, having a complex form, are the following: The chosen polynomial is identified with the denominator of every closed-loop subsystem which leads to the following equality: The solution of (32) gives us the numerator's parameters of the PDC controller as follows: The transfer function of the PDC controller (30) leads to the following equalities: From (36) a recurrent form of the control law can be deduced, which will be where represents the error between the reference output and the system output, where,,.

With this expression it is also possible to take into account the saturation of the control input since we deal with local classical controllers with recurrent form [21], and so the new expression of the control law will be With represent the saturated control input.

##### 4.4. Practical Results

The desired output is 27ยฐC. The application was conducted with a sample time equal to 15 seconds on the day of 24 March 2011. It started at 8:39 AM and ended at 6:23โPM. The results of the proposed method are shown in Figures 10 and 11. Figures 12 and 13 represent the measured disturbance inputs of the system during the application. In the beginning and in the end of the application, where the values of the intercepted solar radiation and outside temperature are very low (corresponding to the morning and later in the evening before the sun set), the controller does not take action. This is because the value of the inside temperature is below the desired temperature.

Moreover, we can note from Figure 11 that the control signal presents high switching; it is because of some errors in measurements that affect the response of the controller; but, in spite of this, it still leads the process to the desired trajectory, which proves its robustness and efficiency.

#### 5. Conclusion

TS fuzzy systems can assimilate the evolution of complex and nonlinear process and act consequently to provide acceptable results in terms of modeling and control. However, a stability problem arises because of the great number of rules used to model such systems. This paper offers a solution using classical controllers like a PI, a PID, or an RST for each rule and a pole placement strategy. The fuzzy controller presented combines the multicontrol approach and the performance of the classical controllers. The result is a robust nonlinear control action that can also deal with time-variant systems.

#### References

- T. Takagi and M. Sugeno, โFuzzy identification of systems and its applications to modeling and control,โ
*IEEE Transactions on Systems, Man and Cybernetics*, vol. 15, no. 1, pp. 116โ132, 1985. View at: Google Scholar - H. O. Wang, K. Tanaka, and M. F. Griffin, โParallel distributed compensation of nonlinear systems by Takagi-Sugeno fuzzy model,โ in
*Proceedings of the IEEE International Conference on Fuzzy Systems (FUZZ-IEEE/IFES '95)*, pp. 531โ538, March 1995. View at: Google Scholar - R. Babuška and H. B. Verbruggen, โAn overview of fuzzy modeling for control,โ
*Control Engineering Practice*, vol. 4, no. 11, pp. 1593โ1606, 1996. View at: Publisher Site | Google Scholar - D. Niemann, H. O. Wang, and J. Li, โRobust tracking for high-rise high-speed elevators,โ in
*Proceedings of the American Control Conference*, pp. 3445โ3449, 1998. View at: Google Scholar - H. O. Wang, D. Niemann, K. Tanaka, and J. Li, โT-S fuzzy model with linear rule consequence and PDC controller: a universal framework for nonlinear control systems,โ in
*Proceedings of the 9th IEEE International Conference on Fuzzy Systems (FUZZ-IEEE '00)*, pp. 549โ554, May 2000. View at: Google Scholar - K. Tanaka and M. Sugeno, โStability analysis and design of fuzzy control systems,โ
*Fuzzy Sets and Systems*, vol. 45, no. 2, pp. 135โ156, 1992. View at: Google Scholar - L. H. Lan, โStability analysis for a class of Takagi-Sugeno fuzzy control systems with PID controllers,โ
*International Journal of Approximate Reasoning*, vol. 46, no. 1, pp. 109โ119, 2007. View at: Publisher Site | Google Scholar - E. H. Mamdani, โApplication of fuzzy logic to approximate reasoning using linguistic systems,โ
*IEEE Transactions on Computers*, vol. 26, no. 12, pp. 1182โ1191, 1977. View at: Google Scholar - D. Huang and S. K. Nguang, โStatic output feedback controller design for fuzzy systems: an ILMI approach,โ
*Information Sciences*, vol. 177, no. 14, pp. 3005โ3015, 2007. View at: Publisher Site | Google Scholar | MathSciNet - S. K. Hong and Y. Nam, โStable fuzzy control system design with pole-placement constraint: an LMI approach,โ
*Computers in Industry*, vol. 51, no. 1, pp. 1โ11, 2003. View at: Publisher Site | Google Scholar - A. Sala, T. M. Guerra, and R. Babuška, โPerspectives of fuzzy systems and control,โ
*Fuzzy Sets and Systems*, vol. 156, no. 3, pp. 432โ444, 2005. View at: Publisher Site | Google Scholar | MathSciNet - H. O. Wang, K. Tanaka, and M. F. Griffin, โAn approach to fuzzy control of nonlinear systems: stability and design issues,โ
*IEEE Transactions on Fuzzy Systems*, vol. 4, no. 1, pp. 14โ23, 1996. View at: Google Scholar - I. Landau, R. Lozano, and M. MSaad,
*Adaptative Control*, Springer, London, UK, 1998. - J. M. Aaslyng, J. B. Lund, N. Ehler, and E. Rosenqvist, โIntelliGrow: a greenhouse component-based climate control system,โ
*Environmental Modelling and Software*, vol. 18, no. 7, pp. 657โ666, 2003. View at: Publisher Site | Google Scholar - J. C. Roy, T. Boulard, C. Kittas, and S. Wang, โConvective and ventilation transfers in greenhouses, part 1: the greenhouse considered as a perfectly stirred tank,โ
*Biosystems Engineering*, vol. 83, no. 1, pp. 1โ20, 2002. View at: Publisher Site | Google Scholar - C. Kittas, N. Katsoulas, and A. Baille, โInfluence of greenhouse ventilation regime on the microclimate and energy partitioning of a Rose Canopy during summer conditions,โ
*Journal of Agricultural Engineering Research*, vol. 79, no. 3, pp. 349โ360, 2001. View at: Publisher Site | Google Scholar - K. H. Chiu and C. M. Liao, โWind tunnel modeling the system performance of alternative evaporative cooling pads in Taiwan region,โ
*Building and Environment*, vol. 37, no. 2, pp. 177โ187, 2002. View at: Publisher Site | Google Scholar - E. Dayan, M. Fuchs, and E. Presnov, โEvaporative cooling of a ventilated greenhouse rose crop,โ
*Agricultural and Forest Meteorology*, vol. 138, no. 1–4, pp. 203โ215, 2006. View at: Publisher Site | Google Scholar - F. Al-Sulaiman, โEvaluation of the performance of local fibers in evaporative cooling,โ
*Energy Conversion and Management*, vol. 43, no. 16, pp. 2267โ2273, 2002. View at: Publisher Site | Google Scholar - A. Trabelsi, F. Lafont, M. B. A. Kamoun, and G. Enea, โFuzzy identification of a greenhouse,โ
*Applied Soft Computing Journal*, vol. 7, no. 3, pp. 1092โ1101, 2007. View at: Publisher Site | Google Scholar - K. J. Aström and T. Häglund,
*Automatic Tuning of PID Controllers*, Instrument Society of America, Parkersburg, Wva, USA, 1988.

#### Copyright

Copyright © 2011 Amine Chouchaine et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.