• 沒有找到結果。

Real-coded genetic algorithm based fuzzy sliding-mode control design for precision positioning

N/A
N/A
Protected

Academic year: 2021

Share "Real-coded genetic algorithm based fuzzy sliding-mode control design for precision positioning"

Copied!
6
0
0

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

全文

(1)

Real-Coded Genetic Algorithm Based Fuzzy Sliding-Mode Control Design

For Precision Positioning

Pai-Yi Huang, Sinn-Cheng Lin and Yung-Yaw Chen

Lab. 202, Electrical Engineering Department, National Taiwan University, Taipei, Taiwan, R.O.C.

fS

1085(ii,cctwin.ee.ntu.edu.tw

Abstract

A f i z z y sliding-mode controller was optimized through real-coded genetic algorithms and successfully implemented on an industrial XY table. The fuzzy sliding- mode controller is special type of *zy controller. By using the sliding surface, the f w z y rule is simpler and the entire rule base is more compact. Thus, more easily for applying self-learning schemes. The real-coded genetic algorithm uses the internal floating-point representation of the computer system. With this advantage, the finite resolution problem of traditional genetic algorithm has been solved. The experimental results show the success of this approach.

1. Introduction

Precision positioning is very important in advanced industry. Especially for IC fabrication, the more finer the resolutions means the more circuits that can be condensed into one single chip. This also means faster, lower power and cheaper electrical product that can be produced. But to increase the precision of the positional machine is not an easy task. Friction and backlash are two nonlinear phenomena found in general mechanical systems. The backlash existed in the gears will cause nonlinear behavior while the direction reversal has happened. The friction, also referred as stick-slip friction, caused by the relative movement of the two contacting surfaces is also a big problem. The magnitude of the friction is a random variable with respect to time and also is different form place to place. In conclusion, the friction is time varying and position dependent, so it is very difficult to compensate.

There are a lot of references for compensation of the friction. Among them, direct compensation for friction is used in most of the researcher [ 11. But this approach is not necessary work if the parameters of the friction model are not correctly evaluated. Some adaptive control algorithm [2] developed for solving this problem. And altematively, There are more control schemes, such as robust control [3], fuzzy control and neural network [4].

Model-based control design strategies have been used to solve most of the automatic control problems in the classical control theory. But in the real world, there are a lot of complex industrial processes whose available models can not be easily developed. Hence, design a model-based controller to control such ill-defined systems becomes a very tough job. Skilled operators, however, can control the systems successfully without keeping any mathematical model in mind. Fuzzy logic controller (FLC), a controller with linguistic rules that works like human thinking, has become an extensively researched topic in the last three decades. By organizing human expertise into fuzzy IF-THEN rules, an FLC can be constructed to control complex or ill-defmed systems like human experts do. Knowledge acquisition therefore becomes the most important task in the FLC design.

The fuzzy sliding mode controller (FSMC) is a special type of fuzzy controller. The fuzzy rule is simpler and the entire rule base is more compact, the speed of fuzzy inference of FSMC therefore is faster than that of conventional FLC. In this paper, a FSMC with automatic knowledge acquisition through Real-coded Genetic Algorithm (RGA) is applied to solve this nonlinear compensation problem. Genetic training of

fuzzy

membership functions gathers and compensates the nonlinear behaviors through repetitive learning process. Good parameter pattems are collected and combined step by step, To cope with real parameter changing, floating- point coding other than fix-point coding is employed to resolve the coding resolution problem. Successful experimental results also gives to support this methodology.

This paper is organized as follows. Section 2 is brief description of the plant and the motivation for this research. Next, Section 3 presents the methodology of the floating-point genetic algorithm. In Section 4 the real- coded genetic algorithm combines with fuzzy sliding mode control for self-tuning is discussed. Further, Section 5 presents the enhancements added to the XY tables, preparations for the experiment and the experimental results. Finally, Section 6 gives the conclusions.

(2)

2. Hardware Description and Motivation

The experimental hardware, XY table, and the motivation of this research are introduced in this section.

The DC-motor-driven XY table (Figure 1) was manufactured by NSK Inc. Two low-noise linear amplifiers were used to apply the driving force. The soecifications of the tables are listed in table 1.

Backlash 0.001”

The stroke defi ed is the available travel length of the table. The XY table had 200mm stroke in each axis. The definition of the 5mm pitch is the advancing distance in correspondent axis when the motor makes one turn. Form the certification of the manufacturer, the backlash was 1,u and the repeatability was 3p.

A sinusoidal voltage signal was injected into the

motor and the output position signal measured could be used to calculate the behavior of the friction. By labeling voltage injected as x-axis and velocity calculated as y-axis, The characteristic of the friction is now easily depicted from figure 2. Moreover, Due to imperfect alignment during manufacturing, the magnitude of the friction force may have positional dependency with cycle distance equal to one pitch. Since the reasons presented above, the friction force is hard to model very accurately.

The XY table with friction behavior as describe above is hard to control accurately. Nonlinear, position dependent and time-varying are the characteristics of friction as obtained from experimental experiences. Moreover, the more the positioning resolution increases the more difficulties to estimate the friction-model parameters. Thus, compensations for the friction are even harder. Intelligent control that will aggregate from previous experiences to optimize the control efforts is

proposed. In this paper, the real-coded genetic algorithm is used for turning the

fuzzy

sliding mode controller (FSMC).

Figure 2. Friction characteristics of the table

3. Real-Coded Genetic Algorithm (RGA)

In

the traditional GAS, the natural parameter set of

the optimization problem needs to be coded as a finite length string. This operation maps a real quantity to a fixed length binary string. However, it will cause some information lost due to truncation. Furthermore, one must face a trade-off problem between the length of the coding string and the resolution of the parameter value. To increase the resolution, a longer binary string must be chosen and hence, will slow down the convergence rate.

RGAs [5-61 have been proposed to overcome the aforementioned problem. RGAs use real numbers for computation, and there are no encoding and decoding operations involved. Thus, theoretically, there will be no resolution problems. But in all computer systems, a real number is implemented by finite and discrete floating- point coding. In this paper, the lEEE 754 floating standard is used as the coding format [7]. Below are three important operations defined for the genetic algorithm that used in our optimization scheme? Reproduction, crossover and mutation will be discussed separately. 3.1 Reproduction

Reproduction is a process based on the principle of survival of the fittest. Individual strings are copied according to their fitness (objective) function values. The strings with a higher fitness value have a higher probability of contributing one or more offspring in the next generation. To achieve this, firstly, we must define the fitness function, which can be an appropriate nonlinear, positive definite function. Then individual fitness is calculated and normalized with the sum of all fitness values. The normalized fitness of the string is usually defined to be its survival probability in next generation.

(3)

3.2 Crossover 4.1 System Description Crossover provides a mechanism for individual

strings to exchange information via a probabilistic process. Once the reproduction operator is applied, the members in the mating pool are allowed to mate with one another. In each generation, If there are n parameters needed to be determined, we define the parents Ri E R" and the children R, E R"

,

i = 42

.

The crossover operation can be shown by following equation.

R, = R, + k , x ( R , - R I )

R, = R I + k , x ( R , - R l ) (1)

1

- 2 < k , , k , I1

The ranges of k l and k2 are determined from heuristics. Values other than -2 and 1 were tested but no significant differences were found.

3.3

Mutation

For the mutation part, the operation is more like in a binary-coded GA. At each iteration, every gene is subject to a random change with probability of the pre-assigned mutation rate. In the binary-coded case, a mutation operator changes a bit from 0 to 1 or vice versa. There is only a little difference; that is, the mutation rate should be different in different fields. In the exponent part mutation rate should be lower, because the exponent part will have strongest effect on the coded values. Sudden change of these values will cause abrupt change in the parameter fields, which will lead to loss of some established good schemata, and cause longer convergence time. The operation will not benefit search sequence and should be avoided. In the mantissa part, mutation rate could be raised to increase the ability to explore.

4.

RGA based FSMC

This section proposed strategies that apply genetic algorithms to search suitable rule bases for

fuzzy

controllers. To utilize GAS for

fuzzy

rules extracting, it would encounter following problems: If the fuzzy

controller is a conventional FLC, then whereas the input variables or linguistic labels increase, it will lead to exponentially increase the number of rules. Consequently, the chromosome length of GAS will increase exponentially.

An FSMC[S], which is based on sliding mode

control (SMC) and fuzzy logic, has better properties and is more suitable for genetic learning than a conventional FLC. Therefore, an FSMC is used in the proposed self- leaming fuzzy control system instead of an FLC.

Consider a class of nonlinear systems with the following error dynamics:

f ( e , e,

. . .

, e("-1) )

+

g(e,

e,

. . .

, e(''-') )u ( 2 )

=

where e € % is the system error; U E % is the control input;f(.) is an unknown continuous function with known upper bound, i.e. ~f

I<

f ; g(.) is

an unknown

positive definite function with known lower bound, i.e. 0 < g , I g . Actually, equation (2) represents a general uncertain nonlinear dynamic system.

Define xi = e('-'), i = 1,2,

...

, n, then (2) can be represented by the following state representation:

XI = x 2 x* = x j

(3)

1:

X,'

=

f ( x )

+ g(x)u

where 5 = [ x , x2

. . .

x ,

3'

E 93" is the state vector. 4.2 Fuzzy Sliding Mode Control

The first step in both SMC and FSMC design is to define a sliding function:

(4)

T

where

c

= [c, c2

...

c,lT E 93" is coefficient vector of sliding surface that has to be properly determined..

The fuzzy control law defined from the following

fuzzy

sliding mode control rule base:

R I : IFsisS,(m,,a,) T H E N u f is U J ( q J ) ( 5 )

where j = l , 2 ,..., N , and

N

is the number of rules; S, s are the input linguistic labels, they are simply assigned as Gaussian-shaped functions here and hereafter, i.e.. ps, (s)=exp

-

fs-mJy);

-

U . s are the output linguistic labels, especially, they are assigned to be fuzzy

1 , u = 9 ,

0 , U f V I

singleton in this paper, i e . , p ( U ) =

U ,

Suppose that the singleton fuzzification and the weighted average defuzzification methods are applied, then the control output of ( 5 ) is given by:

U f ( 4 = fT&) (6)

(4)

Without loss of generality, assume that

L, = L f o r a l l i . Then the number of rules in a

conventional FLC with complete rule base is given by N = L"

.

On the other hand, if the states are combined into a single variable s, the number of rules in an FSMC with complete rule base ( 5 ) is given by N = L ..This fact presents that the number of fuzzy rules in an FLC will grow exponentially once the number of either input variables n or linguistic labels L increase. However, the number of rules in an FSMC is in proportion to the number of input linguistic labels L

For finding the optimal rule parameters, the RGA- based learning schemes are presented to learn the

fuzzy

control rule base (5). Such kinds of FSMCs are denoted as RGA-based FSMCs. To improve the performance, the genetic algorithm with elitist model was adopted. Its basic principle is to always include the most fitted individual in the population. The operations are: if the best individual generated up to generation h is not in the population of

the new generation of h+l, then select one member from the new population and replace it with the elitist of the old population.

Constructing a parameter space to be searched by RGAs required transferring the fuzzy rule base ( 5 ) to a parameter representation. Assume that

X,

, X , , X , are

the search space of m s, oJ s, qJ s , respectively; M is

the population size; h is the number of generation. The fuzzy control law of RGA-based FSMC is

given by ( 6 ) with both adjustable consequence part, q , and premise part, p(s)

.

Both m, s and o, s in the IF part and q, s in the THEN part of (5) are adjusted during the learning period. Hence, the parameter vector to be learned by genetic algorithm,

@ = [ E 0 9 - ] = [ m l m , . . . m N o l o , . . . c r , q l q z . . . ~ N ] T

Every individual in a population corresponds to an FSMC candidate that has its parameters are stacked into a vector. The population size is heuristically selected to be

M. - -

,

is defined as: T T T T

4.2

RGA-based FS

Basically, the learning procedure of RGA-based FSMC is described in [SI. At fist, 3M initial parameter vectors were randomly generated,

""(h) = [m,")(h)mz("(h)...m,("(h)]T ( h ) = [PI(') ( h ) (h)

. . .

O N ( ' ) (h)]T

-

q(') ( h ) = [ q l ( ' ) ( h ) f&(')(h) ' * q/') (h)]T where m , ( ' ) ( h ) E X m , o J (1) ( h ) e X c andpJ")(h)EX, (i = 1, 2,

...,

M , j = 1,2, ...,

N>.

by [email protected] fuzzy controller became

The i-th candidate of RGA-based FSMC is denoted

R,'" : I F S ~ ~ s ~ ( ' ) ( ~ , ( ' ) , ~ , ( ' ) ) T H E N ~ ~ isul(')(q1('))

R ~ ( ' ) : IFS is s2(')(mZ('), 02(')) THEN u f is

u2(')(q2('))

R ~ ( ' ) : I F S ~ ~ s ~ ( ' ) ( ~ ~ ( ' ) , o ~ ( ' ) ) T H E N ~ , isuN(')(qN('))

S J ( ' ) sand UJ(I) s are unknown linguistic labels:

mJ(') s, U,") s and q,") s are adjustable parameters that manipulated by RGA.

The RGA could be used for evaluating and optimizing the parameters after that. The fitness function,

F, is defined in the following intuition: a controller which

drives the state to reach the sliding surface as fast as possible without consuming too much control energy and then keep the state onto the surface as close as possible gets a higher score, i. e.

I~

J , =

5

f , .(+ck)ll+

+oil)

( 7 4

k = l

F = 1/(J, + E , , ) (7b)

Where

t ,

denotes the reach time of sliding mode; k

denotes the iteration instance. Finally, E~ is a small

positive constant used to avoid the numerical error of divided by zero.

The genetic operators, i.e. reproduction, crossover and mutation, then were to applied to generate a new population P(h+l), which is always known as the offspring of P(h). The elitistism was used for preserving the best-fitted individuals in each generation. The experiment was then conducted for every of them to calculate their fitness values.

The stop criticism for the experiment was depending on users. The best parameters for controller could never be discovered, but the optimized parameters with better performance could be found. The users should decide when to stop, at once an ideal solution had been found.

5.Experimental

Setup

and Results

Before conducting experiment, the apparatus, XY table, had been enhanced. The 1.25pm encoder of the motor as in Table 1 was replaced by a 0 . 1 ~ laser scale.

1250

(5)

Limit switches was installed at table movement extremes to detect any abnormal actions. The signal connected to an electrical protecting circuit that would tum off system power when extreme conditions happened. Also, an automatic computer program was developed to handle the data gathered. Detailed descriptions of them are discussed separately in the following.

~

Crossover Rate

Mutation Rate (Exponent Part) Mutation Rate (Mantissa Part)

5.1

Position Sensor (Laser Scale)

1

.o

0.001

0.01 High precision control depends on high-resolution

sensors attached on the object plant. It is a very important part of the precision system. Stable and reliable position sensors are recommended. Many precision system use laser as the position sensing device, because laser light has good stability for its' wavelength and this could be used as a reference base.

The XY table has encoder attached to the dc motors. But this position is not the real position of the moving table. Because, the table is not a rigid body, so there must exist some dynamics between the rotating shaft and the plate of the moving table. To take this dynamics into

consideration, a direct measurement that translates the movement of the moving table is required. To accomplish this, laser scale is mounted on the table. As shown in Figure 1, the X Y table is equipped with a 0.1 p m laser scale manufactured by FUTABA on both axes. With the help of these measurement devices, the resolution of the tables has been upgraded to sub-micron level. Table2 is the specifications of the laser scales used in XY table.

Resolution

Iacturer ~ - _. ~~

I

11

Laser Scale Tvoe

I

FM20WA

11

0.1 p

It

Readout Length

I

200"

II

- -

5.2

Protection Circuit

In order to prevent any damage of these high precision devices, a special designed logic circuit and limit switches are added at both ends of the tables. When the moving plate reaches the ends on both sides of the table, the limit switch installed will cut off the power and stop the dc motors for further movements and this will prevent extra damages to the tables. Furthermore, an emergency stop button is added for operator to stop the whole system at any time in the learning process.

These devices act as a very important role during experiments. In the development period of the prototype controller, improperly designed controller often leads to an unstable system. In this case, permanent damages will occur if the weak parts in the system have not been protected in advance.

5.3 Computer Software and Hardware

A 486 IBM Compatible Personal Computer, equipped with an interface card to received the position feedback, and a D/A converter to send control command

to the dc servo, is used to implement the core of the controller. The control program is implemented as an interrupt that been triggered by a timer. In every sample period, the interrupt subroutine will read the position from the laser scale, calculate the error and evaluate the fitness for the output control command, then the signal is send to D / A converter to control the dc servo. The error of the

position feedback in each time step will be recorded for the evaluation of the fitness value.

Figure 3 is the computer program structure that has been implemented. Table3 below are some specification that used in the RGA.

I I

Figure 3 Software System Diagram

The experimental results are shown in Figure 4 to Figure 7. The fitness function, Figure 4, indicates the

RGA-based fizzy controller performs better and better

(6)

reduced to zero. To view the effect in tiny motion, Figure 6 plots the error from 0.15 sec. to 2 sec. We can see the steady state error is - 8 x lo4”, or equivalently, -0.8

P . E E i

:

2

0 .-

-

.- -2 4 - - 2 - - 0 - - - - I I I I I I 2 -4 0 0.5 1 1.5 Time, sec

Figure 6. The position error from 0.15 sec. to 2 sec.

I I I

6 .

Conclusion

The RGA-based FSMC was applied to a high precision positioning system. An XY-table with a high resolution laser scale (0.1 p ) was used as a demonstrated plant. To avoid the truncation problem that usually presented in the conventional genetic algorithms, a read-coded genetic algorithm that uses floating-point code was employed. The experimental results shown the practicability of proposed self-learning control strategy.

Reference

Armstrong, B., Dupont, P., and Canudas, C, “A Survey of Models, Analysis Tools and Compensation Methods for the Control of Machines with Friction,”

Automatica, Vol. 30, No. 7, pp. 1083-1138, 1994.

Yang, S., and Tomizuka, M., “Adaptive Pulse Width Control for Precise Positioning under the Inference of Stiction and Coulomb Friction,” Transactions of

the ASME Journal of Dynamic System, Measurement and Control, Vol. 110, pp. 221-227, 1988.

Mittal, S., and Menq, C. H., “Robust Compensation Techniques for DC Servomechanisms Subject to Stiction and Parametric Uncertainties Using Sliding Mode Estimation,” Proceedings of the American

Control Conference, Seattle, Washington, FA 14-

Ciliz, M. K., and Tomizuka, M., “Modeling and Compensation of Friction Uncertainties in Motion Control: A Neural Network Based Approach,”

Proceedings of the American Control Conference, Seattle Washington, FA 1 3 - 9 3 pp. 3269-3273,

1995.

A. Wright, “Genetic Algorithms for Real Parameter Optimization”, In Foundations of Genetic Algorithms, G. J. E. Rawlins (editor), Morgan Kaufmann, San Mateo, CA, pp. 205-218, 1991.

H. Muhlenbein, M. Schomish and J. Born, “The Parallel Genetic Algorithm as Function Optimizer”,

Proceedings of the forth Conference on Genetic Algorithms, Morgan Kauhann, pp. 271-278, 1991.

Pai-Yi Huang and Yung-Yaw Chen, “Design of PID Controller for Precision Positioning Table Using Genetic Algorithms”, accepted by IEEE Conference on Decision and Control 1997.

Lin, S. C. and Y. Y . Chen, Design of self-learning

fuzzy

sliding mode controller based on genetic algorithms, Fuzzy Sets and Systems 86, 139-153,

1997.

10135 pp. 3306-3310, 1995.

The genetic algorithm with the elitist model indeed behaves as an efficient searching tool for self-extracting the fuzzy rules of FSMCs.

數據

Figure 2. Friction characteristics of the table
Figure  3  is the computer program structure that has  been  implemented. Table3 below  are  some  specification  that used in the RGA
Figure 6. The position error from 0.15 sec. to 2 sec.

參考文獻

相關文件

Algorithm Design Methods Enumeration.. by Chin

Note that if the server-side system allows conflicting transaction instances to commit in an order different from their serializability order, then each client-side system must apply

 “More Joel on Software : Further Thoughts on Diverse and Occasionally Related Matters That Will Prove of Interest to Software Developers, Designers, and Managers, and to Those

Keywords: pattern classification, FRBCS, fuzzy GBML, fuzzy model, genetic algorithm... 第一章

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,

This research is to integrate PID type fuzzy controller with the Dynamic Sliding Mode Control (DSMC) to make the system more robust to the dead-band as well as the hysteresis

Kuo, R.J., Chen, C.H., Hwang, Y.C., 2001, “An intelligent stock trading decision support system through integration of genetic algorithm based fuzzy neural network and

Menz-Ru Huang, Ruey-Gwo Chung, Tung-Shou Chen, Hsuan-Yi Cheng, Yung-Ching Lin (2007), “An Analysis of Government Subsidies Enterprise Training Based On CDC Algorithm,”