Application of Fuzzy Logic To Control The DC-DC Converter
Application of Fuzzy Logic To Control The DC-DC Converter
Application of Fuzzy Logic To Control The DC-DC Converter
2007
34
1 Introduction
DC-DC converters are nonlinear system in nature due to their switching property. Static and dynamic characteristics of these converters have been widely discussed in the literature. In many industrial applications there is a need for the transformation of a constant dc voltage source to a variable dc voltage source, and like a transformer, the converter can be employed for stepwise increase or reduction of dc source voltage. In this way Buck converter has a wide application in electrical industry and power systems and specifically it can supply the voltage for a direct current consumer. Buck is a one-input and multiple-output in structure with a non-linear property due to its switching behavior, but at the same time when the switch is on and off its behavior is linear. Therefore, by employing the averaging method, it is possible to exchange a non-linear system with a linear one. Many of the methods are centered on the isolation of the system variables and PI controller design [1]. Some control methods have defined the subject of control based on pole placement. One of the other control methods is the use of feedback stage in dc converter control [2]. Other control method is the feedback loop control [3]. Another one is the use of LQR method in the control of Buck converter [4] , [5]. To administer different control methods, varied models of dc-dc converters are presented which have satisfactory responses [6]. In general, most control systems must track inputs. One solution to this problem is to introduce integral control, just as with PI controller, together with the
constant- gain state feedback. In this article fuzzy and PID control is designed that can improve the Buck converter response. In this paper, several control structures based on the fuzzy-set approach are presented. The fuzzy-set theory has evolved as a powerful modeling tool that can cope with the uncertainties and non-linearity of the control systems [7], [8]. The first algorithm considered in this paper is based on decomposed fuzzy PI controller in order to eliminate the static error and to improve the converter dynamics. The second one is a PD fuzzy state controller, where a nonlinear fuzzy approach, and the third one is a PID fuzzy state controller that they are used for adaptive state controller gain adjustment in order to minimize the steady state error and improve dynamics.
Fig.1 Buck converter The function of the circuit is divided into two parts. The first part starts when the switch is turned on at t=0. The input current which is rising passes through
7th WSEAS International Conference on Electric Power Systems, High Voltages, Electric Machines, Venice, Italy, November 21-23, 2007
35
L filter inductor, C filter capacitor, and RL load resistance. The second part starts when the switch is turned off at t=t1. Due to the presence of stored energy in the inductor, and the inductor current continues passing from L, C, load and D. The inductor current declines until the second switch switching in the next cycle. In this model, Vo is the system output voltage and Vref is the converter voltage. The converter state equations in lowfrequency state, is presented.
Switch ON:
V dc (v C + rc C dv C / dt ) = ( rt + rL ) i L + L (di L / dt )
a 24 = 1 /[C ( R L + rc )]
b 21 = 0 , b 22 = 0
Now it is required to show the effect of on and off durations of switch in (1) and (2) to obtain the mean values of state equations.
. X = A X + B V dc
A = d * A1 + (1 d ) * A2
B = d B1 + (1 d ) B 2
(3)
i L = C (dv c / dt ) + (v c + rc dv C / dt ) / R L
d =
t on T
x1 = i L
x 2 = Vc
x X = 1 x2
3 FUZZY LOGIC
In 1965, Zadeh proposed Fuzzy logic; it has been effectively utilized in many field of knowledge to solve such control and optimization problems [9]. Fuzzy logic has been available as a control methodology for over three decades and its application to engineering control systems is well proven. In a sense fuzzy logic is a logical system that is an extension of multi-valued logic although in character it is quite different. It has become popular due to the fact that human reasoning and thought formation is linked very strongly with the ways fuzzy logic is implemented. In power system area, it has been used to stability studies, load frequency control, unit commitment, and to reactive compensation in distribution network and other areas. The most important specifications of fuzzy control method are their fuzzy logical ability in the quality perception of system dynamics and the application of these quality ideas simultaneously for power systems [10]. A simple block diagram of a fuzzy system is shown in Fig.2.
X& = A1 X + B1 V dc
b a a A1 = 11 12 , B1 = 11 a a 13 14 b12
a11 = rL + rt + ( rc R L ) /( R L + rc ) /L
(1)
a = R L /[ L ( R L + rc )] 12
a = R L /[C ( R L + rc )] 13
a = 1 /[C ( R L + rc )] 14
b11 = 1 / L , b12 = 0
Switch OFF:
( rd + rL ) i L + L (di L / dt ) + v c + rc C dv c / dt = 0
i L = C (dv C / dt ) + (v c + rc C dv C / dt ) / R L
& = A X + B V X 2 2 dc
(2)
b B2 = 21 b22
a A2 = 21 a 23
a 22 a 24
a21 = rL + rd + ( rc R L ) /( R L + rc ) / L
a22 = R L /[ L ( R L + rC )]
a23 = R L /[C ( R L + rC )]
7th WSEAS International Conference on Electric Power Systems, High Voltages, Electric Machines, Venice, Italy, November 21-23, 2007
36
A. Fuzzification The fuzzification block performs the following tasks: Measures the value of input variables. Performs a scale mapping that transfers the range of values of input variables into the corresponding universes of discourse. Performs the function of fuzzification, which converts input data into suitable linguistic values that may be viewed as labels of fuzzy sets. The input signals to FLC are scaled using appropriate scaling factors. These scaled input data are then converted into linguistic variables, which may be viewed as labels of fuzzy sets. Fuzzy sets can be characterized by membership functions. There are many types of membership functions e.g., the bell-shaped, linear function, triangular function, trapezoidal function and exponential function. B. Knowledge-base The knowledge base is comprised of two components namely called fuzzy sets (data base) and fuzzy control rule base. The concepts associated with fuzzy sets are used to characterize fuzzy control rules and fuzzy data manipulation in an FLC. These concepts are subjectively defined and based on experience. So, it should be noted that the correct choice of the membership functions of a term set plays an essential role in the success of an application [11]. The fuzzy rule base consists of a set of linguistic control rules written in the form: IF a set of conditions are satisfied (premise), THEN a set of consequences are inferred The collection of fuzzy control rules that are expressed as fuzzy conditional statements forms the rule base or the rule set of an FLC. In particular, the choice of linguistic variables and their membership function have a strong influence on the linguistic structure of an FLC. Typically, the linguistic variables in an FLC are the state, state error, state error derivative, state error integral, etc. One of the key problems is to find the appropriate fuzzy control rules. In general, there are four models of derivation of fuzzy control rules [11]: Using the experience and knowledge of an expert. Modeling the control actions of the operator. Using a fuzzy model of a process. Using self-organized fuzzy controllers. C. Fuzzy inference engine The fuzzy engine is the kernel of a fuzzy logic controller, which has capability of simulating human decisionmaking based on fuzzy concepts and of inferring fuzzy control actions using fuzzy implication (fuzzy relation) and the rules of inference in fuzzy logic. This means that the fuzzy inference engine handles rule inference where human experience can easily be injected through linguistic rules. D. Defuzzification The defuzzification block performs the following functions:
Scale mapping, which converts the range of values of output variables into corresponding universes of discourse. Transforms the fuzzy control actions to continuous (crisp) signals, which can be applied to the physical plant.
y(t)=Cx(t)+Du(t)
X=
iL V c
U= Vdc
and
A=
,
D= [0]
B=
59523.75 0
C= 0 1
rL rd rc rt
C L RL V dc
Open loop response will be in the form of Fig.3. To optimize the Vo several fuzzy control methods are used.
The overshoot of the output voltage in open loop response was 23% peak-to-peak (Vpp) and the settling time of the step response was 3.6 ms.
As it is evident from the study of outputs, the open loop system cannot hold the output in constant and ideal conditions. Of course, the outputs will eventually approximate the ideal rate with regard to the stability of the system.
7th WSEAS International Conference on Electric Power Systems, High Voltages, Electric Machines, Venice, Italy, November 21-23, 2007
37
7 6 5
V out (volt)
Degree of membership
1 0.8 0.6 0.4 0.2 0 -1 -0.8 -0.6 -0.4 -0.2 0 e,ie,de 0.2 0.4 0.6 0.8 1 negative zero positive
4 3 2 1 0 0
Degree of membership
1 0.8 0.6 0.4 0.2 0 -1 -0.8 -0.6 -0.4 -0.2 0 0.2 Np,Ni,Nd 0.4 0.6 negative zero
posetive
6 x 10
7
-3
0.8
Time (sec)
Fig.5 Membership functions of a fuzzy PID controller (Input membership function: e, ie, de) and (Output membership function: Np, Ni, Nd) Table II Np fuzzy rules
Kp (Np) if e(k)=negative then y=negative if e(k)=zero then y=zero if e(k)=positive then y=positive
Fig.4 Structure of fuzzy controller in exciter system The membership functions are shown in Fig.5. The fuzzy rules were designed that for each input membership function the output membership function was assigned. In Table II, 3 fuzzy rules for linguistic variable Np are shown. Similar fuzzy rules were assigned to the integral and differential part, that they are shown in Table III, and Table IV. In the simulation by using the gain parameters, the effect of the fuzzy controllers are defined. The result of this procedure for Np, Ni, Nd are shown in Fig. 6. Where Np, Nd and Ni are the non-linear functions determined by a Fuzzy Rule-Based System (FRBS).
7th WSEAS International Conference on Electric Power Systems, High Voltages, Electric Machines, Venice, Italy, November 21-23, 2007
38
The output of the fuzzy PI controller is denoted by (4), and the gains are Kp=1.5, and Ki=1.2. The response of DC-DC converter with PI fuzzy controller is shown in Fig. 7. u (k ) = Np (e(k )) + Ni (ie(k )) (4)
V out (volt)
6 5 4 3 2 1 0 0
6 5 4
V out (volt)
3 2 1
6 x 10
7
-3
Time (sec)
0 0
6 x 10
7
-3
Time (sec)
6 5
V out (volt)
Fig. 7. Step response of a decomposed fuzzy PI controller The output of the fuzzy PD controller is denoted by (5),and the gains are Kp=1.5, and Kd=0.1. The response of DC-DC converter with PD fuzzy controller is shown in Fig. 8. u (k ) = Np(e(k )) + Nd (de(k )) (5)
7 6 5
V out (volt)
Time (sec)
Fig. 10. Step response of a decomposed fuzzy PI, PD, PID controller and open loop The results of this procedure are shown in Fig. 10 where the fuzzy PID controller is compare with open loop, fuzzy PI and fuzzy PD controllers that there is no overshoot at this response.
4 3 2 1 0 0
6 Conclusion
The dc-de conversion principle is a part of many electronics devices and is a subject of many research projects which are looking for the best control. Fuzzy control therefore simplifies the design of optimal compensation for DC-DC converters. These controllers are designed to eliminate the overshoot and reduce the settling time response. This paper demonstrated the effectiveness of the fuzzy controller applied to the state space averaging DCDC converter using MATLAB
6 x 10
7
-3
Time (sec)
Fig. 8. Step response of a decomposed fuzzy PD controller The output of the fuzzy PID controller is denoted by (6),and the gains are Kp=1.5, Kd=0.1, and Ki=1.2. The response of DC-DC converter with PID fuzzy controller is shown in Fig. 9. u (k ) = Np (e(k )) + Nd (de(k )) + Ni (ie(k )) (6)
7th WSEAS International Conference on Electric Power Systems, High Voltages, Electric Machines, Venice, Italy, November 21-23, 2007
39
References:
Kostov, K. S., Kyyra, J., Suntio, T., The input impedance of a buck converter, European power Electronics Conf., 2003. [2] Lasea, I. G. D., Myrzik, J. M. A., State- space control structures for buck converters with / without Input Filter, IEEE. 2005.,Power Electron, 2005 European Conf., 2005. [3] Uran, S., Milanovic, M., State controller for buck converer, EUROCON, 2003., vol. 1, 381385, 2003. [4] Dores Costa, J. m., Design of linear quadratic regulators for quasi- resonant dc-dc converter, IEEE. 2001. Power Electron Conf., PESC. 2001. vol. 1, 422 426, 2001. [5] Leung, F. H. F., Tam, P. K. S., Li, C. K., The control of switching dc-dc converter S-A general LQR problem, IEEE Trans., Ind Electron., vol. 38, 65-71, 1991. [6] Feng, Qi., Hung, J.Y., Nelms, R.M., The application of posicast control to dc-dc converters, 37th Intersociety Energy Converesion Engineering Conference (IECEC), 2002. [7] W.C. Sa, C. K. Tse, Y.S. Lee, "Development of a furzy logic controller for DC-DC converters: design. computer simulations, and experimental evaluation," IEEE Trom. Power Elenmnin. vol. 11, no. 1, Jan. 1996. [8] Golob, M., Tovomik, B., Modeling and control of the magnetic suspension system, ISA Trans., vol. 43, no. I, pp. 89-100, 2003. [9] Zadeh, L., Fuzzy sets, Information Control 8, 1965. [10] Terano, T., AsaI, K., Sugeno, M., Applied fuzzy systems, Academic Presss Inc., pp.86-93, 1994. [11] Lee, C. C., Fuzzy Logic in Control Systems: Fuzzy Logic Controller- Part I, IEEE Trans. On Syst. Man Cybern., vol. 20, no. 2, pp. 404-418, March/April 1990. [1]