Article
Optimal fuzzy control of an inverted pendulum
Journal of Vibration and Control 18(14) 2097–2110 ! The Author(s) 2011 Reprints and permissions: sagepub.co.uk/journalsPermissions.nav DOI: 10.1177/1077546311429053 jvc.sagepub.com
Hai-Le Bui1, Duc-Trung Tran1 and Nhu-Lan Vu2
Abstract In this paper, three controllers, including OFCHA (optimal fuzzy control using hedge algebras – HAs), FCHA (fuzzy control using HAs) and CFC (conventional fuzzy control) are designed. Attention is paid to the stability in the vertical position of a damped-elastic-jointed inverted pendulum subjected to a time-periodic follower force. The different values of the angular coefficient of the follower force are considered. Simulation results are exposed to illustrate the effect of OFCHA in comparison with FCHA and CFC.
Keywords Genetic algorithm, hedge algebras, inverted pendulum, optimal fuzzy control, periodic follower force Received: 18 March 2010; accepted: 5 September 2011
1. Introduction Fuzzy set theory introduced by Zadeh (1965) has provided a mathematical tool useful for modeling uncertain (imprecise) and vague data and has been presented in many real situations. As typical unstable nonlinear models, pendulum systems are often used as a benchmark for verifying the effect of a new control method because of the simplicity of the structure. Recently, many researches on the stabilization of pendulum systems have been done. Yi and Yubazaki (2000) presented a fuzzy controller for the stabilization control of inverted pendulum systems based on Single Input Rule Modules (SIRMs) dynamically connected to a fuzzy inference model. The fuzzy controller has four input items, each with a SIRM and a dynamic importance degree. Yi et al. (2002) presented a fuzzy controller with six input items and one output item for stabilizing a paralleltype double-inverted pendulum system based on SIRMs dynamically connected to a fuzzy inference model. Becerikli and Celikb (2007) presented a fuzzy controller for an inverted pendulum system in two stages: investigation of fuzzy control system modeling methods and solution of the ‘Inverted Pendulum Problem’ by using Java programming with Applets for internet-based control education. Tao et al. (2008) proposed a fuzzy hierarchical swing-up and sliding
position controller for the swing-up and position controls of an inverted pendulum–cart system that includes a fuzzy switching controller, a fuzzy swing-up controller and a twin-fuzzy-sliding-position controller. Li and Xu (2009) investigated the adaptive fuzzy logic control of dynamic balance and motion for wheeled inverted pendulums with parametric and functional uncertainties. The proposed adaptive fuzzy logic control, based on the physical properties of wheeled inverted pendulums, makes use of a fuzzy logic engine and a systematic online adaptation mechanism to approximate the unknown dynamics. Sinha and Butcher (1997) used a technique that employs both Picard iteration and expansion in shifted Chebyshev polynomials to symbolically approximate the fundamental solution matrix for linear time-periodic dynamical systems of arbitrary dimension explicitly as a function of the system
1 Department of Mechanics of Materials, School of Mechanical Engineering, Hanoi University of Technology, Hanoi, Vietnam 2 Institute of Information Technology, Vietnam Academy of Science and Technology, Hanoi, Vietnam
Corresponding author: Hai-Le Bui, Department of Mechanics of Materials, School of Mechanical Engineering, Hanoi University of Science and Technology, No 1 – Dai Co Viet Road, Hanoi, Vietnam Email:
[email protected]
2098 parameters and time. A double-inverted pendulum subjected to a periodic follower force was considered as an example. Gala´n et al. (2005) studied a chain of identical pendulums coupled with damped elastic joints subject to vertical sinusoidal forcing of its base. Particular attention was paid to the stability of the upright equilibrium configuration with a view to understanding recent experimental results on the stabilization of an unstable stiff column under parametric excitation. Ma and Butcher (2005) presented a stability analysis for elastic columns under the influence of periodically varying follower forces whose orientation is retarded, that is, dependent on the position of the system at a previous time. Mailybaev and Seyranian (2009) studied the stability of a linear vibrational system with multiple degrees of freedom subjected to parametric excitation. A double-inverted pendulum subjected to periodic excitation of support was considered as an example. Hedge algebras (HAs) were introduced and have been investigated since 1987 (Ho and Wechler, 1990, 1992; Ho and Nam, 2002; Ho, 2007; Ho and Long, 2007; Ho et al., 2008). The authors of HAs discovered that linguistic values can formulate an algebraic structure (Ho and Wechler, 1990, 1992) and that the algebraic structure is a Complete Hedge Algebras Structure (Ho, 2007; Ho and Long, 2007) with a main property being that the semantic order of linguistic values is always guaranteed. It is even a rich enough algebraic structure (Ho and Nam, 2002) to describe completely reasoning processes. HAs can be considered as a mathematical order-based structure of term-domains, the ordering relation of which is induced by the meaning of linguistic terms in these domains. It is shown that each term-domain has its own order relation induced by the meaning of terms, called the semantically ordering relation. Many interesting semantic properties of terms can be formulated in terms of this relation and some of these can be taken to form an axioms system of HAs. These algebras form an algebraic foundation to study a type of fuzzy logic, called linguistic-valued logic, and provide a good mathematical tool to define and investigate the concept of fuzziness of vague terms and the quantification problem and some approximate reasoning methods. In Ho et al. (2008), HA theory began applying to fuzzy control and it provided very much better results than fuzzy control alone. The studied object in Ho et al. (2008), which is a single-undeformable pendulum without external loads, where its state equations are solved by the Euler method with a sample time of one second, is too simple to evaluate completely its control effect. That reason suggests to us, in this paper, applying HAs and the GA (genetic algorithm) in active fuzzy control of a structure, which is a damped-elastic-jointed inverted pendulum subjected to a time-periodic
Journal of Vibration and Control 18(14) follower force with three controllers (conventional fuzzy control (CFC), fuzzy control using hedge algebras (FCHA) and optimal fuzzy control using hedge algebras (OFCHA)), in order to compare their control effect.
2. The damped-elastic-jointed inverted pendulum The diagram of the system is shown in Figure 1. An inverted pendulum of length l has a concentrated mass m at its end. A spring (of constant stiffness k) and a damper (of constant damping factor c) connect the inverted pendulum to a fixed base to avoid a large rotation angle ’. A periodic follower force (F ¼ P1 þ P2cos !t) acts on the mass m and makes an angle ’ with the vertical axis. A control moment u, applied at the base of the inverted pendulum, brings the angle ’ to zero position. The kinetic energy T, the potential energy and the dissipative function of the system can be expressed in the following forms (Gala´n et al., 2005): 1 1 T ¼ mðx_ 2m þ y_2m Þ ¼ m’_ 2 l2 2 2
ð1Þ
1 1 ¼ mgym þ k’2 ¼ mgl cos ’ þ k’2 2 2
ð2Þ
1 ¼ c’_ 2 2
ð3Þ
γϕ F
m
u y
l
ϕ k c
x
Figure 1. Configuration of the inverted pendulum system.
Bui et al.
2099
where xm ¼ l sin ’, ym ¼ l cos ’ and g is the gravity acceleration. Using the Lagrange equations of the second type: d @T @T @ @ ¼ þM dt @’_ @’ @’ @’_
ð4Þ
The differential equation of motion for this system can then be written in the form: ml2 ’€ þ c’_ þ k’ mgl sin ’ ¼ u þ Fl sinð’ ’Þ
ð5Þ
_ T , Equation (5) can be Denoting ½x1 , x2 T ¼ ½’, ’ rewritten into state-space form as x_ 1 ¼ ’_ ¼ x2 k g x1 þ sin x1 ml2 l Fl sinðx1 x1 Þ c u þ 2 x2 þ 2 ml2 ml ml
x_ 2 ¼ ’€ ¼
ð6Þ
Equations (6) could be solved by using the fourthorder Runge–Kutta method (Chapra and Canale, 2006).
3. Fuzzy control using hedge algebras and optimal fuzzy control using hedge algebras In this section, the basic content of FCHA and OFCHA are described based on Ho and Wechler (1990, 1992), Ho and Nam (2002), Ho (2007), Ho and Long (2007) and Ho et al. (2008).
3.1. Algebraic structure of term-domains To easily understand the algebraic approach to fuzzy control problems, it is necessary to recall some concepts of HAs. The algebraic approach to term-domains of linguistic variables is to discover the algebraic structure of term-domains induced by the natural term meaning. For instance, by the term meaning we can observe that extremely small < very small < small < approximately small < little small < big < very big < extremely big . . . So, we have a new viewpoint: term-domains can be modeled by a poset (partially ordered set), a semantics-based order structure. Consider TRUTH as a linguistic variable X and let X be its terms-set. Assume that its linguistic hedges used to express the truth are Extremely, Very, Approximately, Little, which for short are denoted correspondingly by E, V, A and L, and its primary terms are false and true. Then, X ¼ {true, V true, E true, EA true, A true, LA true, L true, L false, false, A false, V false, E false. . .} [ {0, W, 1} is a term-domain of X ,
where 0, W and 1 are specific constants called absolutely false, neutral and absolutely true, respectively. According to Zadeh (1965), X can be produced by a context-free grammar and it may be finite or infinite. In general, its elements are of the form hn,. . .h1x, where h1,. . .,hn 2 H. Now, we discover an inherent semantics-based order structure of each term-domain. This structure can be axiomatized, based on the semantic properties of termdomains that can be expressed in terms of the relation of X , called the semantics-based ordering relation. A term-domain X can be ordered based on the following observations. - Each primary term has a sign that expresses a semantic tendency. For instance, true has a tendency of ‘going up’, called positive one, and it is denoted by cþ, while false has a tendency of ‘going down’, called negative one, denoted by c. In general, we always have cþ c, semantically. - Each hedge has also a sign. It is positive if it increases the semantic tendency of the primary terms and negative if it decreases this tendency. For instance, V is positive with regard to both primary terms, while L has a reverse effect and hence it is negative. Denote by H the set of all negative hedges and by Hþ the set of all positive ones of X . If both hedges h and k belong to Hþ or H together, then it may happen that one of these hedges may modify the terms more strongly than the other. For example, we have L, A 2 H and L A, since Lfalse Afalse false. Note that I A and I V, where I is the identity on X. So, Hþ and H become posets under the relation , where the notation causes no confusion because Hþ, H and X are assumed to be disjoint. - Further, we observe that each hedge may increase or decrease the semantic intensity of any other one. For instance, we have false very approximately false approximately false, which shows that very decreases the intensity of approximately. If k decreases the semantic intensity of h, it is said to be negative with regard to h. Conversely, if k increases the semantic intensity of h, it is positive with regard to h. This is called the PN-property of hedges. - An important semantic property of hedges is the socalled heredity of hedges, which stems from the fact that for every h, the term hx inherits the meaning of x. This property may also be formulated in term of : if the meaning of hx and kx can be expressed by hx kx, then we have h’hx k’kx, which says that h’ and k’ preserve the relative meaning of hx and kx and hence they cannot change the semantic-based order relationship between hx and kx. So, as a
2100 consequence, the inequality H(hx) H(kx) follows from hx kx, where H(y) ¼ {hn. . .h1y: 8h1,. . ., hn 2 H, 8n 2 N}. Assume that there is a semantics-based ordering relation defined on X. So, X can be considered formally as an abstract algebra AX ¼ (X, G, C, H, ), where G ¼ {c, cþ}, C ¼ {0, W, 1}, H ¼ Hþ [ H is the set of unary operations (Hþ is the set of all positive hedges and H is the set of all negative ones), X\C ¼ H(G) is the set generated from G - and is a partially ordering relation on X. We have: (i) h > x if kx < x, for all h 2 Hþ, k 2 H; (ii) if h < k then (hx > x ) kx > x) and (x > hx ) hx > kx); (iii) if 9x (x < hx < khx or x > hx > khx) then {(y < hy ) y < hy < ky) and (hy < y ) khy < hy < y)} for all y; (iv) if 9x (x < khx < hx or x > khx > hx) then {(y < hy ) y < khy < hy) and (hy < y ) hy < khy < y)} for all y.
3.2. Fuzziness measure of vague terms and hedges of term-domains We can consider the structure of HAs as a qualitative model of the relative meaning of terms in a termdomain of a linguistic variable. However, in applications we often have to deal with quantitative quantities and, therefore, there is a natural demand to investigate the quantification problem of term meanings of HAs. In order to quantify HAs, first we study the notion of fuzziness and the fuzziness measure of linguistic terms. Then, we define the notion of semantically quantifying mappings (SQMs) and show a close relation between the fuzziness measure of terms and the SQMs. Fuzziness of vague terms is a concept that is very difficult and there are many different approaches to define this concept in the fuzzy sets framework, in which the fuzziness of a vague term is, of course, defined by taking full advantage of the shape of the fuzzy set that represents its meaning. In addition, fuzzy sets are very subjective and, hence, these definitions depend merely on the specific designed fuzzy sets, while fuzziness is a more general characteristic of the own linguistic terms. HAs provide an appropriate formal basis to define this concept, since they model immediately the semantics of term-domains. Putting in mind that elements of H(x) still express a certain meaning stemming from x, we can interpret the set H(x) as a model of the fuzziness of the term x. Hence, the ‘size’ of the set H(x) is used to measure the fuzziness degree of x. Let the reference
Journal of Vibration and Control 18(14) domain of a linguistic variable X be a real interval [a, b]. Since, by a linear transformation, the domain [a, b] can be transformed into [0, 1], we can assume for normalization that the reference domains of all physical linguistic variables are the common unit interval [0, 1], called the semantic domain of linguistic variables. In fuzzy control, it is natural to require that fuzzy sets be transformed into [0, 1]. It allows taking a mapping f from X into [0, 1] into consideration, which preserves the ordering relation on X. Then, the ‘size’ of set H(x), for x 2 X, can be measured by the diameter of f(H(x)) [0, 1], which will be considered as a measure of fuzziness of x. An fm: X ! [0, 1] is said to be a fuzziness measure of terms in X if: P . (fm1) fm(c) þ fm(cþ) ¼ 1 and h2H fmðhuÞ ¼fmðuÞ, 8u 2 X; in this case fm is called complete; . (fm2) for the constants 0, W and 1, fm(0) ¼ fm(W) ¼ fm(1) ¼ 0; fmðhyÞ . (fm3) 8x, y 2 X, 8h 2 H, fmðhxÞ fmðxÞ ¼ fmð yÞ , that is, this proportion does not depend on specific elements and, hence, it is called the fuzziness measure of the hedge h and denoted by m(h). The condition (fm1) means that the primary terms and hedges under consideration are complete for modeling the semantics of the whole real interval of a physical variable. That is, except the primary terms and hedges under consideration, there are no more primary terms and hedges. The condition (fm2) is intuitively evident. The condition (fm3) seems also to be natural in the sense that applying a hedge h to different vague concepts, the relative modification effect of h is the same, that is, this proportion does not depend on terms they apply to. We assume that H ¼ {h–1,. . .,h–q}, where h–1 < h–2 p then X j ðhj xÞ ¼ ðxÞ þ Signðhj xÞ fmðhj xÞ i6¼pþ1 0:5ð1 Signðhj xÞSignðhi hj xÞð ÞÞ fmðhj xÞ :
3.4. Optimal FCHA The main aim of a control problem is to regulate the controlled object into its stable state or to minimize a goal function defined on the whole controlled process. In order to find the optimal parameters for designing a fuzzy controller, we have to examine an optimal problem for the whole controlled process. (1) Determine the control problem. Suppose that we have a fuzzy control problem of an application for which we can determine the following factors: - a Fuzzy Associative Memory (FAM) table with linguistic descriptions, which represents an expert knowledge of the application domain for defining the state and control action values of the controlled object in every control cycle; - establish a discrete control model, denoted by CM, which defines the computation relationship between numeric-valued states of the controlled object and numeric-valued control actions in each control cycle; - a criterion for evaluating the effectiveness of the control method: goal function g(x1, . . . , xm), where x1, x2, . . . , xm and u can be computed by formulas defined by the established CM. (2) Construct an optimal control algorithm based on SQMs. This step consists of the following tasks: - considering SQMs of the linguistic variables of the states of the controlled object and the control action as design variables and determining their intervals;
2102
Journal of Vibration and Control 18(14)
- constructing a fitness algorithm to evaluate the fitness level of the parameters for the GA based on the calculation of the state values of the controlled object and the control action. - optimizing the parameters using the GA.
4.1. Conventional fuzzy control of the inverted pendulum In this section, the CFC of the inverted pendulum is designed (Ross, 2004) with nine control rules.
4.1.1. Constructing the membership functions. The 4. Fuzzy control systems of the inverted pendulum The inverted pendulum fuzzy control system is based on the closed-loop fuzzy system shown in Figure 2. To control the system, we assume the universe of discourse for the two state variables to be – 1 rad x1 1 rad and –2 rad/s x2 2 rad/s. The universe of discourse for the control moment is –50 Nm u 50 Nm.
x1 = ϕ . x2 = ϕ
membership functions x1, x2 and u on their universes, that are, for the values negative big (NB), negative (N), zero (Z), positive (P), positive big (PB) are constructed as shown in Figures 3–5, respectively.
4.1.2. Constructing the rule base. After the stage of constructing membership functions, we construct the FAM table for the rule bases, which is shown in Table 1. Then we determine the fuzziEcation method with a Singleton FuzziEer, an inference system with the
x1 = ϕ
γϕ γϕ FF
FUZZY CONTROLLER
u
uu
.
x2 = ϕ
mm
y
ϕϕ ll kk cc
xx
Figure 2. The inverted pendulum fuzzy control system.
N
NB
P
Z
1
Z
1
P
PB
u (Nm)
x1(rad) –1
N
–50
–25
0
50
25
1
0
Figure 5. Output u, partitioned. Figure 3. Input x1, partitioned.
Table 1. Fuzzy Associative Memory table for the inverted pendulum fuzzy control system rule base N
P
Z
1
x2 x2(rad/s)
–2
0
Figure 4. Input x2, partitioned.
2
x1
N
Z
P
N Z P
NB N Z
N Z P
Z P PB
Bui et al.
2103
Fuzzy Rule Base 9 Rules
x 1, x 2 Fuzzifier
Centroid Method u Defuzzifier
Fuzzy Inference Engine (Mamdani Method)
Figure 6. Methods of the conventional fuzzy control system.
Table 2. Terms transformation NB
N
Z
P
PB
Very small
Small
W
Large
Very large
Mamdani Method, and the defuzziEcation method with a centroid for this fuzzy control system, as shown in Figure 6.
4.2. Fuzzy control using hedge algebras of the inverted pendulum Table 3. Semantic Associative Memory table x2s x1s
Small
W
Large
Small W Large
Very small Small W
Small W Large
W Large Very large
Table 4. Parameters of semantically quantifying mappings for the inverted pendulum control problem Very small
Small
W
Large
Very large
0.125
0.25
0.5
0.75
0.875
Table 5. Semantic Associative Memory table with semantically quantifying mappings x2s
In this section, the fuzzy controller using HAs is designed. The original FAM table for this problem is defined by a knowledge domain given in Table 1. Now, we need to determine HAs for the linguistic variables occurring in Table 1 (nine control rules). They are linguistic variables x1s and x2s for the state variables x1 and x2 of the controlled object, and us for the control moment u. The HAs are defined as follows: the set of primary terms: C ¼ {0, small, W, large, 1} ¼ {0, c, W, cþ, 1}; W ¼ 0.5; the set of hedges: H ¼ {H, Hþ} ¼ {Little, Very} ¼ {h–1, h1}. Hence, p ¼ 1; q ¼ 1. However, as above, the terms occurring in Table 1 are not compatible with the semantic domain [0, 1], so we have to transform them into the new terms defined by the transformation, given in Table 2. Hence, the given FAM table (Table 1) is transformed into the Semantic Associative Memory (SAM) table (Table 3). Then, fuzziness measures of the hedges H (m) and the primary terms C (fm) are determined as follows: mðLittleÞ ¼ mðh1 Þ ¼ ¼ 0:5; mðVeryÞ ¼ ðh1 Þ ¼ ¼ 0:5
x1s
Small: 0.25
W: 0.5
Large: 0.75
Small: 0.25 W: 0.5 Large: 0.75
Very small: 0.125 Small: 0.25 W: 0.5
Small: 0.25 W: 0.5 Large: 0.75
W: 0.5 Large: 0.75 Very large: 0.875
Domain of x1 –1
0
1
0.25
W
0.75
Domain of x1s
Figure 7. Transformation: x1 to x1s.
fmðsmall Þ ¼ W ¼ 0:5; fmðl arg eÞ ¼ 1 fmðsmall Þ ¼ 0:5 The SQMs are determined and are shown in Table 4. In the same way, we have the SAM table with SQMs, as shown in Table 5. The semantizations for each linguistic variable are defined by the transformations given in Figures 7–9. The new terminology ‘semantization’ was defined and accepted in Ho et al. (2008). The Quantifying Semantic Curve (QSC) is linearly established through the points corresponding to the control rules shown in Table 5, as shown in Figure 10.
2104
Journal of Vibration and Control 18(14)
4.3. Optimal fuzzy control using hedge algebras of the inverted pendulum
5. Results and discussion
The values of linguistic variables shown in Table 5 are now considered as design variables; their intervals are determined so as to ensure the semantic order of SQMs, as shown in Table 6. The goal function G is defined as follows:
G¼
n X x21 ðiÞ þ x22 ðiÞ ¼ min
ð7Þ
i¼0
where n is the number of control cycles. The parameters of the optimal algorithm using the GA are defined as follows (ChipperEeld et al., 1994): number of individuals per subpopulations: NIND ¼ 10; number of generations: MAXGEN ¼ 1000; recombination probability: GGAP ¼ 0.8; number of variables: NVAR ¼ 5; and fidelity of solution: PRECI ¼ 10.
Domain of x2 –2
0
2
0.25
W
0.75
Domain of x2s
Domain of u 0
0.125
W
e¼
pffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi ’2 þ ’_ 2 ¼ x21 þ x22
ð8Þ
The values of x1, x2, u and e obtained from OFCHA, FCHA and CFC corresponding to the studied cases are shown in following sections.
Table 6. The interval parameters of semantically quantifying mappings [Very small]
[Small]
[W]
[Very large]
[Large]
0–0.1875 0.1876–0.375 0.3751–0.625 0.6251–0.8125 0.8126–1
Figure 8. Transformation: x2 to x2s.
–50
In order to study the changing rule of x1, x2 and u using CFC, FCHA and OFCHA, the following numerical values are used for simulations: m ¼ 2 kg, k ¼ 2 Nm, l ¼ 1.5 m, Pl ¼ 10 N, P2 ¼ 1 N, c ¼ 0.005 Nms, ! ¼ p/2 and g ¼ 9.81 m/s2, the sample time t ¼ 0.01 s. The initial conditions are x1(0) ¼ 0.6 rad and x2(0) ¼ 1 rad/s. Three studied cases with different values of angular coefficient of the follower force (external factor) are listed in Table 7. The error signal e, which expresses the state of the pendulum, is defined as follows:
Table 7. Three studied cases
50 Domain of us 0.875
Notation
Case 1
Case 2
Case 3
0.1
0.5
0.9
Figure 9. Transformation: u to us.
1 1 0.8 0.8 us
0.6 0.6 us
0.4 0.4 0.2 The optimal QSC of Case 1
0.2 0 0
0 0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.1
0.2
0.3
0.4
0.5
0.6
0.7
x1s×x2s
x1s×x2s
Figure 10. Quantifying semantic curve.
Figure 11. The optimal Quantifying Semantic Curve (QSC) of Case 1.
Bui et al.
2105
0.8
x1, rad (Case 1: γ = 0.1)
OFCHA
0.6
FCHA 0.4
CFC
0.2 0 –0.2 –0.4 0
1
2
3
4
5
Time t, s
Figure 12. The angle x1, rad (Case 1: ¼ 0.1).
1 x2, rad/s (Case 1: γ = 0.1)
0.5 0 OFCHA
–0.5
FCHA –1
CFC
–1.5 0
1
2
3
4
5
Time t, s
Figure 13. The angular velocity x2, rad/s (Case 1: ¼ 0.1).
40 OFCHA
30
u, Nm (Case 1: γ = 0.1)
FCHA 20
CFC
10 0 –10 –20 0
1
2
3 Time t, s
Figure 14. The control moment u, Nm (Case 1: ¼ 0.1).
4
5
2106
Journal of Vibration and Control 18(14)
5.1. Results corresponding to Case 1 ( ¼ 0.1)
5.4. Discussion
The optimal QSC of Case 1 is shown in Figure 11. The values of x1, x2, u and e obtained from OFCHA, FCHA and CFC corresponding to Case 1 are shown in Figures 12–15.
From the all studied cases, the results obtained from OFCHA are better than those of FCHA and CFC; the system is stabilized, although a small vibration appears during the stabilization process. In Case 1 ( ¼ 0.1, Figures 12–15), the complete stabilization (e < 0.001) times are 3.1, 4 and 4.3 s corresponding to OFCHA, FCHA and CFC, respectively. The maximum control moments are about 34, 32 and 17 Nm corresponding to OFCHA, FCHA and CFC, respectively. In Case 2 ( ¼ 0.5, Figures 17–20), the complete stabilization times are 3.9, 4.2 and 4.5 s corresponding to OFCHA, FCHA and CFC, respectively. The maximum control moments are about 33, 32 and 17 Nm corresponding to OFCHA, FCHA and CFC, respectively. In Case 3 ( ¼ 0.9, Figures 22–25), the complete stabilization times are 3.5, 3.6 and 4.8 s corresponding to OFCHA, FCHA and CFC, respectively. The maximum control moments are about 33, 32 and 17 Nm corresponding to OFCHA, FCHA and CFC, respectively.
5.2. Results corresponding to Case 2 ( ¼ 0.5) The optimal QSC of Case 2 is shown in Figure 16. The values of x1, x2, u and e obtained from OFCHA, FCHA and CFC corresponding to Case 2 are shown in Figures 17–20.
5.3. Results corresponding to Case 3 ( ¼ 0.9) The optimal QSC of Case 3 is shown in Figure 21. The values of x1, x2, u and e obtained from OFCHA, FCHA and CFC corresponding to Case 3 are shown in Figures 22–25.
1.5
1
1.2
0.8
FCHA
0.9
CFC
0.6 us
e (Case 1: γ = 0.1 )
OFCHA
0.6
0.4 0.3 0.2
0 0
1
2
3
4
The optimal QSC of Case 2
5 0
Time t, s
0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
x1s×x2s
Figure 15. The error e (Case 1: ¼ 0.1).
Figure 16. The optimal Quantifying Semantic Curve (QSC) of Case 2.
0.8 x1, rad (Case 2: γ = 0.5)
OFCHA
0.6
FCHA 0.4 CFC 0.2 0 –0.2 –0.4 0
1
2
3 Time t, s
Figure 17. The angle x1, rad (Case 2: ¼ 0.5).
4
5
Bui et al.
2107
x2, rad/s (Case 2: γ = 0.5)
1 0.5 0 OFCHA
–0.5
FCHA
–1
CFC
–1.5 0
1
2
3
4
5
Time t, s
Figure 18. The angular velocity x2, rad/s (Case 2: ¼ 0.5).
40 u, Nm (Case 2: γ = 0.5)
OFCHA
30
FCHA
20
CFC
10 0 –10 –20 0
1
2
3
4
5
Time t, s
Figure 19. The control moment u, Nm (Case 2: ¼ 0.5).
1.5
e (Case 2: γ = 0.5)
OFCHA
1.2
FCHA
0.9
CFC
0.6 0.3 0 0
1
2
3 Time t, s
Figure 20. The error e (Case 2: ¼ 0.5).
4
5
2108
Journal of Vibration and Control 18(14)
The control moments of CFC in all studied cases are relatively rough. The results indicate that the angular coefficient of the follower force has little influence on the control performance.
1 0.8
us
0.6 0.4 0.2 The optimal QSC of Case 3
0 0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
x1s×x2s
Figure 21. The optimal Quantifying Semantic Curve (QSC) of Case 3.
6. Conclusions In the present work, a new fuzzy controller based on HAs is applied for the stabilization control of a damped-elastic-jointed inverted pendulum with periodic follower force. The main results are summarized as follows. The contributions of the paper are that HAs and the GA are successfully applied in optimal fuzzy control for stabilizing a damped-elastic-jointed inverted pendulum subjected to a time-periodic follower force. It is clear that the OFCHA and FCHA are simpler, more effective, offer higher control quality and are more understandable in comparison with the method based on CFC. The algebraic approach to term-domains of linguistic variables is quite different from the fuzzy sets one in the representation of the meaning of linguistic terms and the methodology of solving the fuzzy multiple conditional reasoning problems. It allows one to linearly
x1, rad (Case 3: γ = 0.9)
0.8 OFCHA
0.6
FCHA
0.4
CFC
0.2 0 –0.2 –0.4
0
1
2
3
4
5
Time t, s
Figure 22. The angle x1, rad (Case 3: ¼ 0.9).
x2, rad/s (Case 3: γ = 0.9)
1 0.5 0 –0.5
OFCHA FCHA
–1
CFC
–1.5 0
1
2
3 Time t, s
Figure 23. The angular velocity x2, rad/s (Case 3: ¼ 0.9).
4
5
Bui et al.
2109
40
u, Nm (Case 3: γ = 0.9)
OFCHA
30
FCHA
20 CFC
10 0 –10 –20 0
1
2
3
4
5
Time t, s
Figure 24. The control moment u, Nm (Case 3: ¼ 0.9).
1.5 OFCHA
1.2 e (Case 3: γ = 0.9)
FCHA
0.9
CFC
0.6 0.3 0 0
1
2
3
4
5
Time t, s
Figure 25. The error e (Case 3: ¼ 0.9).
establish the QSC through the points corresponding to the control rules. The semantic order is always guaranteed. In fuzzy logic, many important concepts, such as fuzzy set, T-norm, S-norm, intersection, union, complement, composition, etc., are used in approximate reasoning. This is an advantage for the process of flexible reasoning, but there are too many factors, such as shape and number of membership function, defuzzification method, etc., influencing the precision of the reasoning process and it is difficult to optimize. Those are subjective factors that cause error in determining the values of control process. Meanwhile, approximate reasoning based on HAs, from the beginning, does not use the fuzzy set concept and its precision is obviously not influenced by this concept. Therefore, the method based on HAs does not need to determine the shape and number of membership functions, neither does it need to solve the defuzzification problem. Moreover, in calculation, while there is a large number of membership
functions, the number of calculations based on fuzzy control increases quickly, while the number of calculations based on HAs does not increase much with very simple calculations. With these above advantages, it is definitely possible to use HA theory for many different controlling problems. Acknowledgements The authors would like to thank reviewers for their useful comments.
Funding This work was supported by the Vietnam National Foundation for Science & Technology Development (NAFOSTED).
References Becerikli Y and Celikb BK (2007) Fuzzy control of inverted pendulum and concept of stability using Java application. Mathematical and Computer Modelling 46: 24–37.
2110 Chapra SC and Canale RP (2006) Numerical Methods for Engineers. New York: McGraw-Hill. ChipperEeld A, Fleming P, Pohlheim H and Fonseca C (1994) Genetic Algorithm Toolbox. Sheffield, UK: Department of Automatic Control and Systems Engineering, University of Sheffield. Gala´n J, Fraser WB, Acheson DJ and Champneys AR (2005) The parametrically excited upside-down rod: an elastic jointed pendulum model. Journal of Sound and Vibration 280: 359–377. Ho NC (2007) A topological completion of reEned hedge algebras and a model of fuzziness of linguistic terms and hedges. Fuzzy Sets and Systems 158: 436–451. Ho NC, Lan VN and Viet LX (2008) Optimal hedge-algebrasbased controller: design and application. Fuzzy Sets and Systems 159: 968–989. Ho NC and Long NV (2007) Fuzziness measure on complete hedge algebras and quantifying semantics of terms in linear hedge algebras. Fuzzy Sets and Systems 158: 452–471. Ho NC and Nam HV (2002) An algebraic approach to linguistic hedges in Zadeh’s fuzzy logic. Fuzzy Sets and Systems 129: 229–254. Ho NC and Wechler W (1990) Hedge algebras: an algebraic approach to structure of sets of linguistic truth values. Fuzzy Sets and Systems 35: 281–293. Ho NC and Wechler W (1992) Extended hedge algebras and their application to fuzzy logic. Fuzzy Sets and Systems 52: 259–281.
Journal of Vibration and Control 18(14) Li Z and Xu C (2009) Adaptive fuzzy logic control of dynamic balance and motion for wheeled inverted pendulums. Fuzzy Sets and Systems 160: 1787–1803. Ma H and Butcher EA (2005) Stability of elastic columns with periodic retarded follower forces. Journal of Sound and Vibration 286: 849–867. Mailybaev AA and Seyranian AP (2009) Stabilization of statically unstable systems by parametric excitation. Journal of Sound and Vibration 323: 1016–1031. Ross TJ (2004) Fuzzy Logic with Engineering Applications. West Sussex, England: John Wiley & Sons. Sinha SC and Butcher EA (1997) Symbolic computation of fundamental solution matrices for linear time-periodic dynamical systems. Journal of Sound and Vibration 206: 61–85. Tao CW, Taur JS, Wanga CM and Chena US (2008) Fuzzy hierarchical swing-up and sliding position controller for the inverted pendulum–cart system. Fuzzy Sets and Systems 159: 2763:2784. Yi J and Yubazaki N (2000) Stabilization fuzzy control of inverted pendulum systems. Artificial Intelligence in Engineering 14: 153–163. Yi J, Yubazaki N and Hirota K (2002) A new fuzzy controller for stabilization of parallel-type double inverted pendulum system. Fuzzy Sets and Systems 126: 105–119. Zadeh LA (1965) Fuzzy sets. Information and Control 8: 338–353.