• 沒有找到結果。

Imitation of state feedback controllers by fuzzy linguistic control rules

N/A
N/A
Protected

Academic year: 2021

Share "Imitation of state feedback controllers by fuzzy linguistic control rules"

Copied!
2
0
0

加載中.... (立即查看全文)

全文

(1)

Pmceullngs of Me 291h Conference on Declilon and Control Honolulu, Hawaii December 1990

Imitation of State Feedback Controllers

by Fuzzy Linguistic Control Rules

TA-7-2

=

1210

Yung-Yaw Chen Department of Electrical Engineering

National Taiwan University Taipei, Taiwan, R.O.C.

Abstract

There has been much dispute on the role of fuzzy logic in the field of automatic feedback control. Modem control researchers have not yet been fully convinced of the functionality of fuzzy control bccause its structure and stability has not been rigidly defined and proved. In this paper, we imitate the pcrformance of a state feedback controller by using linguistic control rules, which is commonly used in fuzzy control. We argue that a fuzzy logic con- troller should be able to achieve a performance at least as good as a state feedback controller’s when properly designed. A simulation-based comparison between the state feedback controller and the proposed fuzzy logic controller is also performed.

Introduction

It is well known that conventional control theories, established on rigorous mathematical modeling and analysis, have failed to cope with the complexity, nonlinearity and imprecision of many realistic control systems and/or industrial processes. On the other hand, human expert can often per- form superbly well under conditions of imprecise sensor information and sys- tem uncertainty. To take the advantage of this phenomenon, Mamdani and Assilian [ 11 pioneered the implementation of a fuzzy logic controller, which

was based on fuzzy set theory [2,3], to model the decisionmaking processes of human experts.

Many applications of fuzzy logic control (fuzzy control) have appeared in a wide range of fields since Mamdani’s first steam engine controller. Some recent applications include aircraft flight [4], vehicle navigation [5], robot arm [6]. nuclear plant [7], automobile transmission [8], Sendai automatic train [9], automobile transmission control[lO], etc. In spite of these successful applications, there is still much controversy on the role of fuzzy logic control in the field of automatic control. Modem control theorist are not fully convinced of the validity of fuzzy logic control because its structure is not rigid defined and its stability is not completely investigated. In this paper, we exhibit the flexibility and versatility of fuzzy control by exploring the possibility of using linguistic control rules to imitate the most elememtary control action: a linear function of state variables. We show that the behavior of a state feedback controller (SFC) can be achieved by a fuzzy logic con- troller @LC) with properly designed linguistic control rules.

The organization of the paper is as follows. In the next section, we propose an algorithm to encode a set of linguistic control rules based on the given state feedback control actions. In section 3, we discuss two properties of the proposed algorithm. Then, in section 4, we apply our algorithm to an inverted pendulum system to compare its performance with the proposed fuzzy logic controller. Finally, we conclude that, given a set of appropriate rules, a fuzzy logic controller can achieve a performance at least as good as a state feedback controller’s. Some potential future work is also explored in the last section.

Imitate State Feedback Control by Fuzzy Implication Rules

In this section, we are going to introduce an algorithm that can imitate a given slate feedback controller, which is characterized by its control actions, by some linguistic control rules with a certain bounded average error. Let us assume that the control actions of a state feedback controller can be denotcd by

U = f S F ( x + ) (2.1)

whcrc U is the controller output and

x’

is the vector of state variables. The state feedback plane (SF plane) used in this paper represents the surface of U

in (2.1) with .? as independent variables. Similarly, the fuzzy control surface

(FC surface) is defined to be the surface of U in (2.2) with

x’

as indcpendent variables.

U = f F c ( x - 7 (2.2)

where FC denotes Fuzzy Control.

The purpose of our algorithm is to imitate the SF plane of (2.1) by some implication rules which in term will be represented by an FC plane. In order to display the control actions plane in a 3-D diagram, we only consider the control systems with two state variables, i.e. we assume

f

SF (x y ) = p * x

+

4 *y : the state feedback plane,

fFc ( x y ) : the fuzzy control surface, where x and y are the state vari-

ables.

For a general control system having m > 2 state variables, this algo- rithm is still applicable with some decomposition techniques to be discussed

Jyh-Shing Jang

Department of Electrical Engineering and Computer Sciences University of Califomia, Berkeley

Berkeley, CA 94720 later. The algorithm is then described in the following steps:

Step 1: We first define the domain of interest of our imitation algorithm. It is reasonable and practical to consider only a limited region of interest instead of the whole space since a l l the variables are bounded in finite time in the real world. The domain of interest can be characterized by the following parameters:

x,,, = maximum of the absolute values of x considered,

ymax = maximum of the absolute values of y considered,

xu = maxb,,,,, ymar * q @

1,

yU = maxly,,,, x,, * p / q ) .

X I = - x u , Yl = - Y”.

In other words, the region formed by the coordinate points ( X I , y l ) . ( x , , y u ) , / . , yl) and (xu, y,) is the smallest rectangle covering the possibli ,.$crating range of the state variables, which has the zero crossing line L @ * x

+

4*y = 0)

as

its diagonal. From the definitions, we have

p*x.

+

q*yI = 0 (2.3)

p*x1

+

4*yu = 0 (2.4)

Without loss of generality, it is assumed that the slope of line L is negative (i.e. p and 4 are of the same sign). In case of a positive slope, the format can be maintained simply by change of variables. Step 2 Partition the x-axis bounded by x I and xu into n regions with n+l

partition points (including xu and x l ) . For the i-th (i = 1 to n+l) par- tition point x i , assign a linguistic term Ai such that the membership function of this term is a equal-sided triangle centered at xi and sided

at and xi+l. Repeat the same process on y-axis to get partition

points yi (i = 1 to n+l) and the linguistic terms Bi

.

Step 3: Construct (n+1)2 linguistic control rules with a general form

as

fol- lows:

I f x is A; and y is B j 9 then the control action is F;,j

where F i j is a linguistic term with a membership function: ( z - f f ; + j - d * S ( z - f f ; + j - J - ( z - f f i + j ) * S ( z - H i + j ) if i+j>n

P F i j ( z ) = 0 i f i + j = n

(-2 -Hi+j-l)*S (-2 -Hi+,-J - (-2 -Hi+j)*S (-2 -Hi+,) if i +j VI

(2.5)

1

In (2.5). S(.) is unit step function, and

where

&I = (p *xu

+

4 *y.)ln (2.8) (2.9)

W i j = min(hi(x), PE,@)] (2.10)

= -@ * X I

+

4 *yt)ln

Therefore the weight of the rule in (2.5) when x and y

are given is

The control action corresponding to each rule is given by

F i J = (i+j-n-l)*OX

+

W i j * W (2.11)

The output of the fuzzy controller is calculated by taking the weighted average of the control actions of all the rules according to their weights respectively. The overall control action can be derived as:

Properties of the Algorithm

We have proposed an algorithm to imitate the control action surface (i.e. SF plane) of a state feedback controller by using some linguistic conml rules. The complete rule base is actually a working fuzzy controller except that its rules are not based on the experiences of the human experts but a

(2)

state feedback control scheme.

In the section, we wish to discuss some of the properties of the algo- rithm in the followings.

Property 1: At each grid point (where x and y coordinates belong to one of the partition points), the imitated control action is exactly the same as the value given by the state feedback controller. It is easy to see that only one rule will be fired with weight 1 at x = x, and y = y , (i.e. at the grid points), for i = 1, ,

.

, . n + l , j = 1,

. .

. , n + l . The control actions created by the proposed fuzzy logic controller can be shown to be equal to the control actions of the state feedback controller at each grid points.

Properly 2: At each non-grid point, at most 4 rules can be fired.

This property comes from the fact that given a specific value of any state variable, it has at most 2 non-zero membership value with rcspcct to all the linguistic terms related to this variable. And because of this propeny, the computational complexity can be made indenpendent of the number of rules.

Property 3: As the number of linguistic control rules increase, the average error between SF plane and FC surface decreases, where the average error is defincd as

(3.1) Property 3 can be inferred intuitively from property 1. Since SF plane and FC plane coincide at each grid point, the average error is expected to decrease

as

the number of grid points (which is proportional to the number of fuzzy implication rules) increases. Rigorous mathematical proof of this pro- perty is complicated and will not b e discussed in this paper. However, com- putcr simulations were employed and the results are shown and discussed through a special control problem in the next section.

We have successfully dealt with the case of 2 state variables in section 2 and 3. Furthermore, for the cases of more than 2 state variables, a dccom- position scheme is proposed to divide the problem into the format of the solv- able 2-state case. Simply stated, for an m-variable (m>2) system, wc can decompose the system into many 2-slate sub-systems with possibly onc vari- able alone as one system. Then we apply the algorithm to each sub-systems and sum all the outputs of the [ m12 ] systems to get the final output.

Simulation Results

In this section, we will use a famous control problem, the inverted pen- dulum, to test our algorithm and compare the performance between state feedback controller and the imitated one, i.e., fuzzy logic controller.

The inverted pendulum system consists of a pole and a motor-driven cart. The cart moves on the rail tracks to its right, or left, depending on the controller's output The pole is hinged to the cart through a frictionless free joint (i.e. it has only one degree of freedom). The goal of control is to bal- ance the pole by supplying appropriate voltage to the cart motor.

At first, we derive a state feedback controller which can kecp the pole balanced

Average Error =

I"

l f F C ( x y ) - f S F ( x , y j d ~ d y I I

f S F ( x , y ) = 88o*x

+

8o*y

where x is the angle between pole and the vertical position, and y is the time derivative of x , which is the angular velocity.

The imitating fuzzy controllers with different number of partitions are constructed according to the procedures described in section 2. Then the the differences between the SF plane and the FC surfaces with different n's can be shown in Figure 1. z 200. 100. 0 . - 100. - 2 0 0 . -2. -.l - 2 Y 2.-0.1 x Y 2 0.1 x z z 2 0 0 . 200 100. 100 0. 0. -100 -100 - 2 0 0 - 2 0 0 - 2 . -.l -2. -.l Y 2 . 0.1 x Y 2 0 . 1 x

Figure 1: (a) SF plane and various FC surfaces with (b)n =2 ( c ) n 4 (d)n =6

From the figure, it can be seen that the imitating FC surfaces are Closely matched to the desired SF plane. It can also be seen in Figure 2 that the matchings become better as the number of partitions increases, which is stated in Propcrty 3.

::

E:!kF+

a 4 0 . 0 10 20 30 10 YO or F*"T,T,O"

Figure 2: The average error bctwccn the SF and FC planes What we have done so far is only related to the matchings of the con- trol actions plancs, not to the control systems directly. In order to see how the FC surfaces work as coinparcd to the original SF plane, we applied both controllers to the inverted pendulum system. Both systems start from the Same nonzero initial condition with sampling time equal to 5m second. The performances are shown in Figure 3.

Figure 3: Pole angle using (a) SF and various FC with (b)n=8, (c)n=12. From the above two diagrams, it's obvious that the performance of fuzzy controller resembles state feedback controller's as n increases. How- ever, due to the idiosyncracy of fuzzy controller, it seems fuzzy controllers always have a larger steady state error.

Conclusions and Future Work

In this paper, we have proposed an algorithm that can encode a set of linguistic control rules to imitate a given state feedback plane. We have shown how the average error between these control actions decreases with the increase of the number of rules. An inverted pendulum system was used to compare the performances of these two schemes. For a system with more than 2 state variables, a simple decomposing method was suggested such that our algorithm can still be applied.

Although we have successful using linguistic control rules to imitate a PD controller (state feedback controller), this is only the initial exhibition of the flexibility of fuzzy controller. It is expected that with some appropriate rules and various defuzzification strategy, fuzzy controller can imitate any given surface (presumably a optimal control action surface) with limited aver- age error. Forthermore, with the auto-tuning process proposed by [ll], the average error is expected to go down as a result of the tuning of the member- ship function of each linguistic term.

Reference

Mamdani, E. H., and Assilian, S . , "An Experiment in linguistic syn- thesis with a fuzzy logic controller," International Journal of Man-

Machine Studies, vol. 7, no. 1, pp. 1-13, 1975.

Zadeh, L. A., "Fuzzy Sets," Information and Control, vol. 8, pp. 338- 353, 1965.

Zadch, L. A., "Fuzzy Logic," IEEE Computer, pp. 83-93, 1988 Larkin, L. I., "A Fuzzy Logic Controller for Aircraft Flight Control,"

Proc. of the 23rd Conference of Decision and Control, Las Vegas, 1984.

Hogle, P. A. and Bonissone, P., "A Fuzzy Algorithm for Path Selection in Autonomous Vehicle Navigation," Proc. 23rd IEEE Conference on

Decision and Conlrol, Las Vegas, 1984.

Scharf, E. M., "The Application of a Fuzzy Controller to the Control of a Multi-Degree-of-Freedom Robot Ann," Industrial Application of Fuzzy Control, Sugeno, M. ed., North-Holland, 1985.

Bernard, J. A., "The Construction and Use of a Knowledge Base in the Real-Time Control of Research Reactor Power," proc. 6th power Plant

Dynamics, Control, and Testing Symp., Knoxville, TN, 1986.

Kasai, Y. and Morimoto, Y., "Electrically Controlled Continuously Variable Transmission (ECVT-II)," Proc. of the Int. Congress on Tran- sportalion Electronics, Dearbom, 1988.

S . Yasunobu and S. Myamoto, "Automatic train operation by predictive fuzzy control," in Industrial Applications of Fuzzy Control, M. Sugeno, ed.. Amsterdam: North Holland, 1985.

數據

Figure 3: Pole angle using  (a) SF and various  FC with  (b)n=8,  (c)n=12.

參考文獻

相關文件

• Strange metal state are generic non-Fermi liquid properties in correlated electron systems near quantum phase transitions. • Kondo in competition with RVB spin-liquid provides

2003~2010: Control experiment  Initial state effects such as Cronin effect, (anti-)shadowing and saturation. 2010~today: Discussion of possibility to create QGP in small

[r]

State value function: when using

An alternative activated-state model was generated by substituting the single ligand-biased receptor refinement protocol with the following procedure: (1) rotation of TM VI by

◉ State-action value function: when using

First, when the premise variables in the fuzzy plant model are available, an H ∞ fuzzy dynamic output feedback controller, which uses the same premise variables as the T-S

In this paper, by using Takagi and Sugeno (T-S) fuzzy dynamic model, the H 1 output feedback control design problems for nonlinear stochastic systems with state- dependent noise,