Sei sulla pagina 1di 6

International Journal of Electrical Electronics & Computer Science Engineering

Volume 5, Issue 2 (April, 2018) | E-ISSN : 2348-2273 | P-ISSN : 2454-1222


Available Online at www.ijeecse.com

Designing the Controller Based on the Approach of Hedge Algebras and


Optimization through Genetic Algorithm
Duy Nguyen Tien1, Trung Ngo Kien2
1
Falcuty of Electronics, Thai Nguyen University of Technology, Thai Nguyen, Vietnam
1
Falcuty of Electrical Engineering, Thai Nguyen University of Technology, Thai Nguyen, Vietnam
1
duy.infor@tnut.edu.vn, 2trungokien@tnut.edu.vn

Abstract: The application of Hedge - Algebra in control and When designing a controller based on a linguistic rule,
automation is a new approach and has had remarkable
it is important to ensure a semantic order relationship
results in recent years. However, on methodology, there are
many issues that need to be studied extensively to show the between linguistic elements. HA (Hedge Algebra) [9],
effectiveness of this approach. For that purpose, in this [10] is an algebraic structure on the domain of linguistic
paper we present a method of using approximate reasoning values whose semantics assure order relations. There
for the design of the controller which is given by the are many applications that have been developed based
linguistic rule. The object chosen for that study was the on this theory such as data mining, clustering,
furnace. Through simulation, the results were evaluated and classification, fuzzy database, control, … [3] - [8]. In
compared with the PI controller showing that the controller addition, the advantages of applying the HA in control
by Hedge algebra worked very efficiently, especially with the field have been internationally published [13]. HA
controller whose parameters were adjusted by the algorithm
allows building a model calculation for LRBS
genetic.
(Linguistic Rule Base System of the controller) - based
Keywords: Hedge Algebra, PI controller, Fuzzy controller, controllers that have been targeted by researchers in the
Genetic Algorithm, Heat Control. field of control and automation. According to the HA,
linguistic terms are computed based on their semantic
I. INTRODUCTION
value which is always order and suitable for
For industrial automation systems, the classical constructing computational models in approximation
controllers PID are often chosen for their simplicity and problems. In addition to using the advantages of the
ability to meet quality indicators. However, the PID fuzzy system, the HA controllers to promote the
controller is not flexible because the coefficients Kp, Ki, advantages of computation based on the semantic
Kd are unchanged during system operation. This is a validity of the language and useful to avoid
major disadvantage of PID controllers, especially with identification mathematical model.
nonlinear systems. In order to improve the quality of
In this paper, with the aim of introducing a new
control, especially for nonlinear systems, new control
computational tool, we propose an application method
methods have been investigated by scientists, such as
of HA to design the controller by the linguistic rule [4] -
the use of fuzzy set for adjustment to adjust Kp, Ki, Kd
[8].
of PID controllers, controllers based on fuzzy logic [1],
neural networks [2], etc. II. APPLICATION OF THE HEDGE ALGEBRA IN
Fuzzy logic [1] shows that there are many advantages in THE CONTROL
the field of control with objects in which input/output
Suppose we have a set of linguistic values of a certain
information is unclear, uncertain and without knowing
linguistic variable which includes
the mathematical model of the object [3] - [8]. Fuzzy
logic allows the modeling of a controller to be
constructed that is visually controlled by a set of
These linguistic
linguistic rules. However, it also has certain limitations.
values appears in linguistic rule bases of approximation
The Fuzzy Logic Controller (FLC) often requires a
problems based on knowledge. Thus, it is necessary to
large computing time [7]. The design also depends on
have a strict computational structure which preserves
the designer’s experience and understanding of the
the inherent order of the linguistic values. From this we
system. The use of fuzzy sets to represent the semantics
can calculate the semantic relationship of the linguistic
of language is limited by the fact that there is a lack of
values in the rules.
strong binding relations between fuzzy set and
semantics. The choice of shape and location of fuzzy HA [9], [10] is an orderly mathematical structure of the
sets is primarily based on experience. According to the set of linguistic terms, the order relations are defined by
fuzzy logic, there are many options for t-norm operator, the semantics of the linguistic terms in this aggregation.
t-conorm, drag, defuzzification, etc., which greatly Quantifying the semantic validity of linguistic terms
affect the output result of the controller. These through semantic quantitative mapping functions -
limitations cause the inability to accurately depict the SQMs (Semantic Quantitative Mapping functions) [11]
computational model of the inference set against the allows a full description of the model of the rule set and
control rule set in some practical applications. the approximation reasoning process in a close and
189
International Journal of Electrical Electronics & Computer Science Engineering
Volume 5, Issue 2 (April, 2018) | E-ISSN : 2348-2273 | P-ISSN : 2454-1222
Available Online at www.ijeecse.com

reasonable way [3] - [7]. 3) Normalization: standardize values of the variables in


the semantic domain.
4) IRMd (Interpolation Reasoning Method):
Interpolation on the “hyper-surface” .
5) Denormalization: convert semantic control value to
… the domain of variable real value of the output
variable.
Steps of designing the controller based on hedge
As , and are linguistic variables, each algebra as follows:
linguistic variable belongs to the base space and 1) Step 1: Identify I/O variables, their variation
the linguistic variable is in the base space ; , domains, and control rules with linguistic elements
( ) are the linguistic values in HA.
that belong to the corresponding base space. Each rule 2) Step 2: Select the structure ,( ) and
"If ... then", identifies a "fuzzy point" in the for variables and Determine the fuzzy
. parameter of generating elements, hedges and the
Then (Eq. 1) can be considered as a “hyper-surface” of sign ralationship between the hedges.
in this space. According to the approaching of the 3) Step 3: Compute quantitative semantic values for
HA theory, we construct the HA structure for linguistic linguistic labels in the rule set. Construct the “hyper-
variables and use the SQMs function to convert each surface” .
fuzzy point to a real point in the semantic space 4) Step 4: Select the interpolation method on the
. Then, (Eq. 1) is represented respectively as a “hyper-surface” .
real “hyper-surface” . It is likely to consider the 5) Step 5: Optimize the parameters of the controller.
real “hyper-surface” as the mathematical
representation of the LRBS in which each fuzzy III. OPTIMIZING THE PARAMETER OF THE
(linguistic value) of the fuzzy variable (linguistic CONTROLLER BASED ON GENETIC
variable) has been quantified into their semantic values
(QRBS - Quantified Rule Base System). ALGORITHM
Suppose that real inputs belong to the corresponding Genetic Algoritm (GA) is a method which find
base space, the input values of the controller solutions randomly for overall structure based on the
, use the normalization of those values process of natural evolution. Genetic algorithms are part
in the value domain of HA we have of the broader class of evolutionary algorithms. Genetic
respectively. The approximation algorithms imitate the same mechanisms as those found
reasoning problem is carried on by the interpolation in nature (including reproduction, breeding and
mutation) to find the best solution [14].
method on . The interpolation value received in
the domain is the quantitative semantic value of By starting at some independent and parallel search
the output linguistic variable that is transferred to the points, GA avoids extreme local extremes as well as
real variable domain (base space of the variable) of convergence to secondary optimization solutions. As a
the output control value by denormalization. The model result, GA has been shown to be able to locate high
of the controller based on HA approaching is described performance areas in complex spaces without the
in Fig. 1. hassles involved in the dimension of space such as
gradient techniques or optimization search methods
LRBS based on information about derivatives.
GA enforcement is usually initiated with a random
QRBS
( ) population of 50 to several hundred individuals,
depending on the problem. Each individual is an
Normalization IRMd Denormalization optimal set of parameters, usually represented by a real
or binary number sequence and is called a chromosome.
Each parameter corresponds to a segment of the
Fig. 1 Controller’s Diagram Based on HA Approach
chromosome, called the gene. Replication and mutation
In Fig. 1, the components are included: processes occur randomly to exchange and transfer
1) LRBS: Linguistic Rule Base System of the information of genes. Adaptation of the next
controller. generations always inherit the adaptation of the
previous generation.
2) QRBS: Quantifying rule based system of linguistic
values which is computed by mapping function The assessment of an individual's adaptation is
SQM ( ). measured by a finess function, called the finess value.
Normally, in optimization problems, the optimal goal is
190
International Journal of Electrical Electronics & Computer Science Engineering
Volume 5, Issue 2 (April, 2018) | E-ISSN : 2348-2273 | P-ISSN : 2454-1222
Available Online at www.ijeecse.com

to minimize the target function. Through long-term


evolution and selection, adaptation to natural processes,
individuals will gradually adapt to the objective (Eq. 6)
function. Correspondingly, each instance will be an
optimal set of asymptotic parameters by fitness The parameters of the PI controller are calculated using
function. Here, the fitness function is calculated the experimental method Ziegler & Nichols:
according to the IAE (Integrated of The Absolute
Magnitude of the Error). The control system model is
often modeled on a discrete domain over time, so the B. The HA Controller
IAE standard is transformed into the below form:
The design of the HA controller is implemented
(Eq. 2)
according to the steps presented in the previous section
as follows:
Where: is the sample deviation at
the th simulation cycle, is the total number of data 1) Step 1: Identify input/output variables, their
samples of a simulation test. is the reference variation domains, and control rule set with linguistic
value at the input, in many mathematical problem this is elements in HA. The controller has 02 inputs:
a constant. is the true response value of the output - – control deviation, variation in the
on the control object. interval [-1, 1].
- – indicates the variable rate of e
IV. GENERALIZATION AND NUMBER in the range [-1, 1],
SYNTHESIS - Controller output is the control quantity to control
the voltage of the source, varying in the
A. The PI Classic Controller: interval = [-5, 5].
Heating equipment is an object which is widely used in The input/output linguistic variables include the
industry, medical and civil. In the industry, it is often following linguistic values:
used in heat treatment, melting ferrous and non-ferrous
metals. Industrial furnaces often use metal wire. In - .
other areas such as health or civil, the focus is on the
- .
kilns. Temperature is the quantity that needs to be
adjusted. In controlling, the furnace temperature (the Where:
furnace power) is usually done by controlling the power
, ,
supply.
, ,
In this paper, we use an object in Error! Reference .
source not found. with transfer function:
The control rule is considered to be an LRBS and
(Eq. 3) presented as the following table I:
Table I. Control Rule Set
Where:
– gain factor
– Time constant (seconds).
- Time delay (seconds).

(Eq. 4)

The control signal of the PI classic controller


described by:

(Eq. 5) 2) Step 2: Choose the structure of ,( )


and for the variables and . Identify the fuzzy
Where is the scale factor, is the integration parameter of the generating elements and the hedges
factor and is the control error. Based on (Eq. 5), - The set of generating elements .
turn it to to discrete domain, we have: - The set of hedges is chosen: và
.

191
International Journal of Electrical Electronics & Computer Science Engineering
Volume 5, Issue 2 (April, 2018) | E-ISSN : 2348-2273 | P-ISSN : 2454-1222
Available Online at www.ijeecse.com

- The fuzzy parameter of hedge algebra gives the


variable , and which include the fuzzy
measurement of the generating elements, the fuzzy
measurement of the hedges. According to the hedge
algebraic structure for the variables constructed
above, we need to choose the fuzzy measurement of
the negative elements
( )
the fuzzy measurement of the negative hedges
( ). The fuzzy
parameters are initially chosen as intuitive as in
Table II.
Table II. The Fuzzy Parameters Of HA
Fig. 2. Input/Output Relation Surface

0.50 0.50 0.50 Fig. 2 is , which corresponds to Table IV. It is a


mathematical model that expresses the input/output
0.50 0.50 0.50 relationship of the controller.
- The sign of the generating elements, hedges and 4) Step 4: Select interpolation method: The
sign relations between the hedges is determined by interpolation method on is chosen as bi-liner
the semantic nature of the linguistic terms. For interpolation.
example, , . Moreover, it 5) Step 5: Optimize fuzzy parameters of the controller
can be seen that . It can be seen that the variable domain of input/output
. In additions, it is variables is symmetric. The semantics of the linguistic
similar to other linguistic elements, so we define the element is zero by itself. When mapping to the semantic
sign relation as in table III.
domain in the range [0,1], the semantic value
Table IIII. Sign Relation . Therefore, we stably choose for value variables,
We only need to optimize the fuzzy
measurement of the hedges. The set of hedges in the
hedge algebra is constructed by only two hedges, V
(Very) and L (Little). We have: (
). Therefore, we just need to optimize the fuzzy
measurement of the negative hedges , we will
3) Step 3: Compute quantitative semantic values for infer the fuzzy measurement of the positive hedges. We
linguistic labels in the rules. Construct “hyper-surface” have 3 HA structures for 3 variables , and .
in table IV. Correspondingly, we have three parameters to optimize
Table IIIV. QRBS of the Default Controller HAC alfa_e, alfa_ce and alfa_u. In theory, the fuzzy
measurement can be varied from 0 to 1. However, in
order to match the description of the language, we
0.1533 0.3763 0.5000 0.6238 0.8488 choose to search for the values of these parameters in
the interval [0.3, 0.7].
0.1533 0.1022 0.1022 0.2250 0.3762 0.5000
In the Matlab environment, GA is an existing function
0.3763 0.1022 0.2250 0.3762 0.5000 0.6238 as a tool that helps us to use it. In this study, we used
the ga() function in Matlab with the gene code by the
0.5000 0.2250 0.3762 0.5000 0.6238 0.7750
real number type double. The values set for GA include:
0.6238 0.3762 0.5000 0.6238 0.7750 0.8988 Population size, PopulationSize = 150; Generation =
450. The target function is used as in formula (Eq. 2).
0.8488 0.5000 0.6238 0.7750 0.8988 0.8988
The result gained the set of parameters for the controller
With the selected fuzzy parameters as in Table II and as shown in Table V.
the sign relationship between the hedges, between the
hedges and the elements as shown in Table III, using Table V. Optimal Parameters of the Controller HAC
the quantitative semantic function, we calculate the Based on GA
value quantitative semantic value of linguistic elements
in the rule table, we have Table IV.
0.312159 0.500708 0.696785

192
International Journal of Electrical Electronics & Computer Science Engineering
Volume 5, Issue 2 (April, 2018) | E-ISSN : 2348-2273 | P-ISSN : 2454-1222
Available Online at www.ijeecse.com

Based on the optimal fuzzy parameters found in Table


V, we compute the quantitative semantic values of the
linguistic classes of the rule table, we obtain the QRBS
table of the optimal controller HAC as shown in Table
VI and corresponding input/output relation surface in
Fig. 3.
Table VIV. QRBS of the Optimal Controller HAC

0.2366 0.3926 0.5000 0.6074 0.7634


Fig. 5. Graphical Response of the System
0.1246 0.0460 0.0460 0.1516 0.3944 0.5000 Some of the measured values after the simulation are
0.3750 0.0460 0.1516 0.3944 0.5000 0.6056 summarized in Table VII.

0.5000 0.1516 0.3944 0.5000 0.6056 0.8484 Table VIV. Simulation Result
0.6250 0.3944 0.5000 0.6056 0.8484 0.9540 HAC HAC
PI (Default (Optimization
0.8754 0.5000 0.6056 0.8484 0.9540 0.9540 Parameters) Parameters)

Rise Time 82 57.5 50


Overshoot 1.11 1.1093 1.0439
Settling Time 263 205 50
IAE 58.0182 45.5915 28.7490

It can be seen in the simulation results, the system


output response to the HA controller is better than the
PI controller. In particular, with the optimal parameters
obtained by GA, the HA controller provides better
control of the quality control criteria such as Rise Time,
Overshoot, Settling Time and IAE.
VI. CONCLUSION
Fig. 3. The Input/Output Relation Surface of the
In this paper, we mainly present the application of
Optimal Controller HAC
hedge algebra and genetic algorithms in the field of
V. SIMULATION RESULTS control. For control problems in which control rules are
given by the LRBS, we can construct a controller with a
The system simulation model to PI-controller, HA- model of computing based on the hedge algebra.
controllers, and HA-controllers with optimized GA According to this approach, the representative structure
parameters was implemented in a Matlab/ Simulink of the LRBS is very tight, the number of computations
environment as shown in Fig. 4. With the time 600s and is not much, so it can perfectly response to systems that
input reference signal Step = 1 in the system simulation, require real-time response. The controller has just a few
we obtain the results of the response shown in Fig. 5. parameters so it is also convenient to optimize. To
optimize the controller effectively, we use GA.
By simulating the controller for the heater in Error!
Reference source not found., it can be seen that HA-
controllers work very well. The results show that
studying the application of hedge algebra in control is
an open field. In the future, it is essential to have more
practical researches on HA because of its advantages.

VII. REFERENCES
[1] Zadeh L. A., “Fuzzy sets,” Inform. and Control,
vol. 8, pp. 338-353, 1965.
[2] M. Ren, J. M. F. Wang, Y. Ren, “Application of
Fig. 4. Simulink Diagram for System Simulation Fuzzy Neural Network PID Controller in Sewage
193
International Journal of Electrical Electronics & Computer Science Engineering
Volume 5, Issue 2 (April, 2018) | E-ISSN : 2348-2273 | P-ISSN : 2454-1222
Available Online at www.ijeecse.com

Treatment,” Journal of Jilin University Linguistic Values Based Intelligent Information


(Information Science Edition), vol. 29, no. 6, pp. Processing: Theory, Methods, and Application,
595-599, 2011. Atlantis Computational Intelligent Systems,
Volume 1, ISSN: 1875-7650, 2009.
[3] Kevin M. Passino, Stephen Yurkovich, Fuzzy
Control, An Imprint of Addison-Wesley Longman, [14] Goldberg D.E, Genetic Algorithms in Search,
Inc, 1998. Optimization, and Machine Learning, Addison-
Wesley, 1989.
[4] N.C.Ho, V.N.Lan and L.X.Viet, “Quantifying
Hedge Algebra, Interpolative reasoning method [15] Seyed Kamaleddin Mousavi Mashhadi, Mehdi
and its application to some problems of fuzy Zahiri Savzevar, Jamal Ghobadi Dizaj Yekan,
control”, Wseas Transactons on Computer, vol. 5, “Simulation of Temperature Controller for an
no. 11, pp. 2519-2529, 2006. Injection Mould Machine using Fuzzy Logic,”
Journal of mathematics and computer Science,
[5] Nguyen Cat Ho, Vu Nhu Lan, Le Xuan Viet,
Vol. 7, pp. 33-42, 2013.
“Optimal hedge-algelbras-based controller: Design
and application,” Fuzzy Sets and Systems, vol.
159, 968-989, 2008.
[6] C.H. Nguyen, D.A. Nguyen, N.L. Vu, “Fuzzy
Controllers Using Hedge Algebra Based
Semantics of Vague Linguistic Terms,” in: D.
Vukadinović (Ed.), Fuzzy Control Systems, Nova
Science Publishers, Hauppauge, pp. 135-192,
2013.
[7] Dinko Vukadinović, Mateo Bašić, Cat Ho
Nguyen, Nhu Lan Vu, Tien Duy Nguyen, “Hedge-
Algebra-Based Voltage Controller for a Self-
Excited Induction Generator,” Control
Engineering Practice, vol. 30, pp. 78-90, 2014.
[8] Hai-Le Bui , Cat-Ho Nguyen, Nhu-Lan Vu, Cong-
Hung Nguyen, “General design method of hedge-
algebras-based fuzzy controllers and an
application for structural active control,” Applied
Intelligence. DOI 10.1007/s10489-014-0638-6. ©
Springer Science+Business Media New York
2015.
[9] Ho N.C., Wechler W., “Hedge algebra: An
algebraic approach to structures of sets of
linguistic truth values,” Fuzzy Sets and Systems,
vol. 35, pp. 281-293, 1990.
[10] Ho N.C., Wechler W., “Extended hedge algebras
and their application to fuzzy logic,” Fuzzy set and
system, vol. 52, pp. 259-281, 1992.
[11] N.C. Ho, N.V. Long, “Fuzziness measure on
complete hedge algebras and quantifying
semantics of terms in linear hedge algebras,”
Fuzzy Sets and Systems, 158(4), pp. 452-471,
2007.
[12] N.C.HO, V.N.LAN and L.X.VIET, “Quantifying
Hedge Algebra, Interpolative reasoning method
and its application to some problems of fuzy
control,” Wseas Transactons on Computer, 5(11),
pp. 2519-2529, 2006.
[13] Zheng Pei, Da Ruan, Jun Liu, Yang Xu, “Chapter
3: Hedge Algebras of Linguistic Values,”

194

Potrebbero piacerti anche