Institute for Advanced Management Systems Research Department of Information Technologies Åbo Akademi University. Fuzzy Logic Controllers - Tutorial

Similar documents
Lecture 06. (Fuzzy Inference System)

is implemented by a fuzzy relation R i and is defined as

Hamidreza Rashidy Kanan. Electrical Engineering Department, Bu-Ali Sina University

Introduction to Intelligent Control Part 6

FUZZY CONTROL CONVENTIONAL CONTROL CONVENTIONAL CONTROL CONVENTIONAL CONTROL CONVENTIONAL CONTROL CONVENTIONAL CONTROL

Fuzzy Control Systems Process of Fuzzy Control

Intelligent Systems and Control Prof. Laxmidhar Behera Indian Institute of Technology, Kanpur

Chapter 1 Similarity Based Reasoning Fuzzy Systems and Universal Approximation

INTELLIGENT CONTROL OF DYNAMIC SYSTEMS USING TYPE-2 FUZZY LOGIC AND STABILITY ISSUES

Towards Smooth Monotonicity in Fuzzy Inference System based on Gradual Generalized Modus Ponens

Rule-Based Fuzzy Model

CHAPTER V TYPE 2 FUZZY LOGIC CONTROLLERS

EFFECT OF VARYING CONTROLLER PARAMETERS ON THE PERFORMANCE OF A FUZZY LOGIC CONTROL SYSTEM

Reduced Size Rule Set Based Fuzzy Logic Dual Input Power System Stabilizer

Fundamentals. 2.1 Fuzzy logic theory

On-line control of nonlinear systems using a novel type-2 fuzzy logic method

EEE 8005 Student Directed Learning (SDL) Industrial Automation Fuzzy Logic

Lecture 1: Introduction & Fuzzy Control I

Handling Uncertainty using FUZZY LOGIC

Learning from Examples

Algorithms for Increasing of the Effectiveness of the Making Decisions by Intelligent Fuzzy Systems

Uncertain System Control: An Engineering Approach

Fuzzy Logic Controller Based on Association Rules

2010/07/12. Content. Fuzzy? Oxford Dictionary: blurred, indistinct, confused, imprecisely defined

Interval Type-2 Fuzzy Logic Systems Made Simple by Using Type-1 Mathematics

FUZZY LOGIC CONTROL of SRM 1 KIRAN SRIVASTAVA, 2 B.K.SINGH 1 RajKumar Goel Institute of Technology, Ghaziabad 2 B.T.K.I.T.

Enhancing Fuzzy Controllers Using Generalized Orthogonality Principle

Fuzzy Controller. Fuzzy Inference System. Basic Components of Fuzzy Inference System. Rule based system: Contains a set of fuzzy rules

Islamic University of Gaza Electrical Engineering Department EELE 6306 Fuzzy Logic Control System Med term Exam October 30, 2011

Computational Intelligence Lecture 20:Neuro-Fuzzy Systems

CONTROL SYSTEMS, ROBOTICS AND AUTOMATION Vol. XVII - Analysis and Stability of Fuzzy Systems - Ralf Mikut and Georg Bretthauer

Approximation Capability of SISO Fuzzy Relational Inference Systems Based on Fuzzy Implications

Circuit Implementation of a Variable Universe Adaptive Fuzzy Logic Controller. Weiwei Shan

Classical Set Theory. Outline. Classical Set Theory. 4. Linguistic model, approximate reasoning. 1. Fuzzy sets and set-theoretic operations.

This time: Fuzzy Logic and Fuzzy Inference

A Hybrid Approach For Air Conditioning Control System With Fuzzy Logic Controller

CHAPTER 4 FUZZY AND NEURAL NETWORK FOR SR MOTOR

Fuzzy control systems. Miklós Gerzson

Chapter 2 Introduction to Fuzzy Systems

CHAPTER 5 FREQUENCY STABILIZATION USING SUPERVISORY EXPERT FUZZY CONTROLLER

CHAPTER 7 MODELING AND CONTROL OF SPHERICAL TANK LEVEL PROCESS 7.1 INTRODUCTION

Comparison of Necessary Conditions for Typical Takagi Sugeno and Mamdani Fuzzy Systems as Universal Approximators

1. Brief History of Intelligent Control Systems Design Technology

Modeling and Control Based on Generalized Fuzzy Hyperbolic Model

ABSTRACT I. INTRODUCTION II. FUZZY MODEL SRUCTURE

5. Lecture Fuzzy Systems

Models for Inexact Reasoning. Fuzzy Logic Lesson 8 Fuzzy Controllers. Master in Computational Logic Department of Artificial Intelligence

A Residual Gradient Fuzzy Reinforcement Learning Algorithm for Differential Games

Adaptive fuzzy observer and robust controller for a 2-DOF robot arm Sangeetha Bindiganavile Nagesh

ME 534. Mechanical Engineering University of Gaziantep. Dr. A. Tolga Bozdana Assistant Professor

Computational Intelligence Lecture 6:Fuzzy Rule Base and Fuzzy Inference Engine

Prediction of Ultimate Shear Capacity of Reinforced Normal and High Strength Concrete Beams Without Stirrups Using Fuzzy Logic

A Boiler-Turbine System Control Using A Fuzzy Auto-Regressive Moving Average (FARMA) Model

OUTLINE. Introduction History and basic concepts. Fuzzy sets and fuzzy logic. Fuzzy clustering. Fuzzy inference. Fuzzy systems. Application examples

TEMPERATUTE PREDICTION USING HEURISTIC DATA MINING ON TWO-FACTOR FUZZY TIME-SERIES

Intro. ANN & Fuzzy Systems. Lec 34 Fuzzy Logic Control (II)

APPLICATION OF AIR HEATER AND COOLER USING FUZZY LOGIC CONTROL SYSTEM

Fuzzy Systems. Fuzzy Control

A New Method to Forecast Enrollments Using Fuzzy Time Series

Fuzzy Gain Scheduling and Tuning of Multivariable Fuzzy Control Methods of Fuzzy Computing in Control Systems

Fuzzy relation equations with dual composition

Adaptive Non-singleton Type-2 Fuzzy Logic Systems: A Way Forward for Handling Numerical Uncertainties in Real World Applications

FUZZY CONTROL OF CHAOS

Temperature Prediction Using Fuzzy Time Series

Fuzzy Linguistic Controllers Applied to Decouple Control Loop Effects

Fuzzy Control of a Multivariable Nonlinear Process

Fuzzy Logic. An introduction. Universitat Politécnica de Catalunya. Departament de Teoria del Senyal i Comunicacions.

Water Quality Management using a Fuzzy Inference System

EXCITATION CONTROL OF SYNCHRONOUS GENERATOR USING A FUZZY LOGIC BASED BACKSTEPPING APPROACH

DESIGN AND ANALYSIS OF TYPE-2 FUZZY LOGIC SYSTEMS WU, DONGRUI

Fuzzy Controller of Switched Reluctance Motor

Stability in multiobjective possibilistic linear programs

Fuzzy Logic Notes. Course: Khurshid Ahmad 2010 Typset: Cathal Ormond

Fuzzy Control. PI vs. Fuzzy PI-Control. Olaf Wolkenhauer. Control Systems Centre UMIST.

Fuzzy logic Fuzzyapproximate reasoning

A linguistic fuzzy model with a monotone rule base is not always monotone

A New Method for Forecasting Enrollments based on Fuzzy Time Series with Higher Forecast Accuracy Rate

Modelling and Control Strategy of Induction Motor Using Fuzzy Logic Control Technique

FUZZY TRAFFIC SIGNAL CONTROL AND A NEW INFERENCE METHOD! MAXIMAL FUZZY SIMILARITY

FUZZY CONTROL OF CHAOS

This time: Fuzzy Logic and Fuzzy Inference

General-Purpose Fuzzy Controller for DC/DC Converters

Civil Engineering. Elixir Civil Engg. 112 (2017)

Intelligent Optimal Control of a Heat Exchanger Using ANFIS and Interval Type-2 Based Fuzzy Inference System

A Study on the Fuzzy Modeling of Nonlinear Systems Using Kernel Machines

Financial Informatics XI: Fuzzy Rule-based Systems

OPTIMAL CAPACITOR PLACEMENT USING FUZZY LOGIC

Adaptive Fuzzy Logic Power Filter for Nonlinear Systems

Lyapunov Function Based Design of Heuristic Fuzzy Logic Controllers

Fuzzy Logic and Computing with Words. Ning Xiong. School of Innovation, Design, and Engineering Mälardalen University. Motivations

Simulation Results of a Switched Reluctance Motor Based on Finite Element Method and Fuzzy Logic Control

Design of Decentralized Fuzzy Controllers for Quadruple tank Process

ALTHOUGH many useful optimality-based controller designs

Fuzzy Logic and Fuzzy Systems

Type-2 Fuzzy Logic Control of Continuous Stirred Tank Reactor

Designing Type-1 Fuzzy Logic Controllers via Fuzzy Lyapunov Synthesis for Nonsmooth Mechanical Systems

Fuzzy Local Trend Transform based Fuzzy Time Series Forecasting Model

TYPE-2 fuzzy sets (T2 FSs), originally introduced by

type-2 fuzzy sets, α-plane, intersection of type-2 fuzzy sets, union of type-2 fuzzy sets, fuzzy sets

THE FORMAL TRIPLE I INFERENCE METHOD FOR LOGIC SYSTEM W UL

Transcription:

Institute for Advanced Management Systems Research Department of Information Technologies Åbo Akademi University Directory Table of Contents Begin Article Fuzzy Logic Controllers - Tutorial Robert Fullér c 2010 November 4, 2010 rfuller@abo.fi

Table of Contents 1. A basic feedback system 2. Fuzzy logic controller 3. Defuzzification methods 4. Effectivity of fuzzy logic control systems.

3 1. A basic feedback system Conventional controllers are derived from control theory techniques based on mathematical models of the open-loop process, called system, to be controlled. The purpose of the feedback controller is to guarantee a desired response of the output y. The process of keeping the output y close to the setpoint (reference input) y, despite the presence disturbances of the system parameters, and noise measurements, is called regulation. The output of the controller (which is the input of the system) is the control action u.

The seminal work by L.A. Zadeh (1973) on fuzzy algorithms introduced the idea of formulating the control algorithm by logical rules. Section 1: A basic feedback system 4 The general form of the discrete-time control law is u(k) = f(e(k), e(k 1),..., e(k τ), u(k 1),..., u(k τ)) providing a control action that describes the relationship between the input and the output of the controller. e represents the error between the desired setpoint y and the output of the system y, parameter τ defines the order of the controller, f is in general a nonlinear function.

f is in general a nonlinear function. 5 y* e Controller u System y A basic feedback control system.. Figure 1: A basic feedback control system. The seminal work by L.A. Zadeh (1973) on fuzzy L.A. algorithms Zadeh, introduced Outline ofthe a new ideaapproach of formulating to the the analysis ofcontrol complex algorithm systems byand logical decision rules. processes, IEEE Transanctins on Systems, Man and Cybernetics, 3(1973) 28-2 44. 2. Fuzzy logic controller In a fuzzy logic controller (FLC), the dynamic behavior of a fuzzy system is characterized by a set of linguistic description

Section 2: Fuzzy logic controller 6 rules based on expert knowledge. The expert knowledge is usually of the form IF (a set of conditions are satisfied) THEN (a set of consequences can be inferred). Since the antecedents and the consequents of these IF-THEN rules are associated with fuzzy concepts (linguistic terms), they are often called fuzzy conditional statements. In our terminology, a fuzzy control rule is a fuzzy conditional statement in which the antecedent is a condition in its application domain and the consequent is a control action for the system under control. Basically, fuzzy control rules provide a convenient way for expressing control policy and domain knowledge.

Section 2: Fuzzy logic controller 7 Furthermore, several linguistic variables might be involved in the antecedents and the conclusions of these rules. When this is the case, the system will be referred to as a multiinput-multi-output (MIMO) fuzzy system. For example, in the case of two-input-single-output (MISO) fuzzy systems, fuzzy control rules have the form R 1 : if x is A 1 and y is B 1 then z is C 1 also R 2 : if x is A 2 and y is B 2 then z is C 2 also... also R n : if x is A n and y is B n then z is C n where x and y are the process state variables, z is the control

Section 2: Fuzzy logic controller 8 variable, A i, B i, and C i are linguistic values of the linguistic vatiables x, y and z in the universes of discourse U, V, and W, respectively, and an implicit sentence connective also links the rules into a rule set or, equivalently, a rule-base. We can represent the FLC in a form similar to the conventional control law u(k) = F (e(k), e(k 1),..., e(k τ), u(k 1),..., u(k τ)) where the function F is described by a fuzzy rule-base. However it does not mean that the FLC is a kind of transfer function or difference equation. The knowledge-based nature of FLC dictates a limited usage of the past values of the error e and control u because it is rather unreasonable to expect meaningful linguistic statements

Section 2: Fuzzy logic controller 9 for e(k 3), e(k 4),..., e(k τ). A typical FLC describes the relationship between the change of the control u(k) = u(k) u(k 1) on the one hand, and the error e(k) and its change e(k) = e(k) e(k 1). on the other hand. Such control law can be formalized as u(k) = F (e(k), (e(k)) and is a manifestation of the general FLC expression with τ = 1. The actual output of the controller u(k) is obtained from the

Section 2: Fuzzy logic controller 10 previous value of control u(k 1) that is updated by u(k) u(k) = u(k 1) + u(k). This type of controller was suggested originally by Mamdani and Assilian in 1975 and is called the Mamdani-type FLC. A prototypical rule-base of a simple FLC realising the control law above is listed in the following R 1 : R 2 : R 3 : R 4 : R 5 : If e is positive and e is near zero then u is positive If e is negative and e is near zero then u is negative If e is near zero and e is near zero then u is near zero If e is near zero and e is positive then u is positive If e is near zero and e is negative then u is negative So, our task is the find a crisp control action z 0 from the fuzzy rule-base and from the actual crisp inputs x 0 and y 0 :

f is in general a nonlinear function. Section 2: Fuzzy logic controller 11 y* e Controller u System y A basic feedback control system.. Figure 2: Membership functions for the error. The seminal work by L.A. Zadeh (1973) on fuzzy algorithms R 1 : if introduced x is A 1 and theyidea is B 1 ofthen formulating z is C 1 the control also algorithm by logical rules. R 2 : if x is A 2 and2y is B 2 then z is C 2 also... also R n : if x is A n and y is B n then z is C n input x is x 0 and y is y 0 output z 0

Section 2: Fuzzy logic controller 12 Of course, the inputs of fuzzy rule-based systems should be given by fuzzy sets, and therefore, we have to fuzzify the crisp inputs. Furthermore, the output of a fuzzy system is always a fuzzy set, and therefore to get crisp value we have to defuzzify it. Fuzzy logic control systems usually consist from four major parts: Fuzzification interface, Fuzzy rule-base, Fuzzy inference machine and Defuzzification interface. A fuzzification operator has the effect of transforming crisp data into fuzzy sets. In most of the cases we use fuzzy singletons as fuzzifiers fuzzifier(x 0 ) := x 0 where x 0 is a crisp input value from a process.

where x 0 is a crisp input value from a process. Section 2: Fuzzy logic controller 13 crisp x in U Fuzzifier fuzzy set in U Fuzzy Inference Engine Fuzzy Rule Base fuzzy set in V Defuzzifier crisp y in V Fuzzy logic controller. Figure 3: Fuzzy logic controller. 9 Suppose now that we have two input variables x and y. A fuzzy

Section 2: Fuzzy logic controller 14 control rule R i : if (x is A i and y is B i ) then (z is C i ) is implemented by a fuzzy implication R i and is defined as R i (u, v, w) = [ A i (u) and B i (v) ] C i (w) where the logical connective and is implemented by the minimum operator, i.e. [ Ai (u) and B i (v) ] C i (w) = [ Ai (u) B i (v) ] C i (w) = min{a i (u), B i (v)} C i (w) Of course, we can use any t-norm to model the logical connective and. Fuzzy control rules are combined by using the sentence connective also.

Section 2: Fuzzy logic controller 15 Since each fuzzy control rule is represented by a fuzzy relation, the overall behavior of a fuzzy system is characterized by these fuzzy relations. In other words, a fuzzy system can be characterized by a single fuzzy relation which is the combination in question involves the sentence connective also. Symbolically, if we have the collection of rules R 1 : if x is A 1 and y is B 1 then z is C 1 also R 2 : if x is A 2 and y is B 2 then z is C 2 also also R n : if x is A n and y is B n then z is C n

Section 2: Fuzzy logic controller 16 The procedure for obtaining the fuzzy output of such a knowledge base consists from the following three steps: Find the firing level of each of the rules. Find the output of each of the rules. Aggregate the individual rule outputs to obtain the overall system output. To infer the output z from the given process states x, y and fuzzy relations R i, we usually apply the compositional rule of inference

Section 2: Fuzzy logic controller 17 R 1 : if x is A 1 and y is B 1 then z is C 1 R 2 : if x is A 2 and y is B 2 then z is C 2 R n : if x is A n and y is B n then z is C n fact : x is x 0 and y is ȳ 0 conseq. z is C where the consequence is computed by consequence = Agg (fact R 1,..., fact R n ).

Section 2: Fuzzy logic controller 18 That is, C = Agg( x 0 ȳ 0 R 1,..., x 0 ȳ 0 R n ) taking into consideration that x 0 (u) = 0, u x 0 and ȳ 0 (v) = 0, v y 0, the computation of the membership function of C is very simple: C(w) = Agg{A 1 (x 0 ) B 1 (y 0 ) C 1 (w),..., A n (x 0 ) B n (y 0 ) C n (w)} for all w W. The procedure for obtaining the fuzzy output of such a knowledge base can be formulated as

Section 2: Fuzzy logic controller 19 The firing level of the i-th rule is determined by A i (x 0 ) B i (y 0 ). The output of of the i-th rule is calculated by for all w W. C i(w) := A i (x 0 ) B i (y 0 ) C i (w) The overall system output, C, is obtained from the individual rule outputs C i by for all w W. C(w) = Agg{C 1,..., C n} Example 2.1. If the sentence connective also is interpreted as oring the rules by using minimum-norm then the membership function of the consequence is computed as

20 That is, C = ( x 0 ȳ 0 R 1 )... ( x 0 ȳ 0 R n ). C(w) = A 1 (x 0 ) B 1 (y 0 ) C 1 (w) A n (x 0 ) B n (y 0 ) C n (w) for all w W. 3. Defuzzification methods The output of the inference process so far is a fuzzy set, specifying a possibility distribution of control action. In the on-line control, a nonfuzzy (crisp) control action is usually required.

Section 3: Defuzzification methods 21 Consequently, one must defuzzify the fuzzy control action (output) inferred from the fuzzy control algorithm, namely: z 0 = defuzzifier(c), where z 0 is the nonfuzzy control output and defuzzifier is the defuzzification operator. Definition 3.1. Defuzzification is a process to select a representative element from the fuzzy output C inferred from the fuzzy control algorithm. The most often used defuzzification operators are Center-of-Area/Gravity. The defuzzified value of a fuzzy set C is defined as its fuzzy centroid: zc(z) dz W z 0 =. C(z) dz W

Section 3: Defuzzification methods 22 The calculation of the Center-of-Area defuzzified value is simplified if we consider finite universe of discourse W and thus discrete membership function C(w) zj C(z j ) z 0 = C(zj ). Center-of-Sums, Center-of-Largest-Area First-of-Maxima. The defuzzified value of a fuzzy set C is its smallest maximizing element, i.e. z 0 = min{z C(z) = max C(w)}. w Middle-of-Maxima. The defuzzified value of a discrete fuzzy set C is defined as a mean of all values of the uni-

z 0 = min{z C(z) = max C(w)}. Section 3: Defuzzification methods w 23 z 0 First-of-Maxima defuzzification method. Figure 4: First-of-Maxima defuzzification method. Middle-of-Maxima. The defuzzified value of verse a discrete of discourse, fuzzyhaving set Cmaximal is defined membership as a mean grades of all values of the universe of discourse, having z 0 = 1 N z j N 17 j=1 where {z 1,..., z N } is the set of elements of the universe W which attain the maximum value of C.

If C is not discrete then defuzzified value of a If Cfuzzy is not set discrete C defined then defuzzified as value of a fuzzy set C is defined as z 0 = G z G z 0 = z dz dz G dz dz G where where G denotes G denotes the set theof set maximizing of maximizing element element of C. of C. Section 3: Defuzzification methods 24 Middle-of-Maxima defuzzification method. Figure 5: Middle-of-Maxima defuzzification method. z 0 18 Max-Criterion. This method chooses an arbitrary value,

Section 3: Defuzzification methods 25 from the set of maximizing elements of C, i.e. z 0 {z C(z) = max C(w)}. w Height defuzzification The elements of the universe of discourse W that have membership grades lower than a certain level α are completely discounted and the defuzzified value z 0 is calculated by the application of the Centerof-Area method on those elements of W that have membership grades not less than α: z 0 = [C] α zc(z) dz [C] α C(z) dz. where [C] α denotes the α-level set of C as usually. Example 3.1. Consider a fuzzy controller steering a car in a way to avoid obstacles. If an obstacle occurs right ahead, the

Section 3: Defuzzification methods 26 plausible control action depicted in Figure could be interpreted as turn right or left. Both Center-of-Area and Middle-of-Maxima defuzzification methods results in a control action drive ahead straightforward which causes an accident. A suitable defuzzification method would have to choose between different control actions (choose one of two triangles in the Figure) and then transform the fuzzy set into a crisp value.

fication methods results in a control action drive ahead straightforward which causes an accident. 27 C z 0 Figure 6: Undesired result by Center-of-Area and Middle-of-Maxima defuzzification methods. Undisered result by Center-of-Area and Middle-of-Maxima defuzzification methods. 4. Effectivity of fuzzy logic control systems. Using A suitable the Stone-Weierstrass defuzzificationtheorem methodwang would(1992) have showed to choose that fuzzy between logic control different systems control ofactions the form(choose one of two triangles R i : if xinisthe A i Figure) and y isand B i then ztransform is C i, i = the 1,.. fuzzy., n set into a crisp value.

Section 4: Effectivity of fuzzy logic control systems. 28 with Gaussian membership functions Singleton fuzzifier [ A i (u) = exp 1 2 [ B i (v) = exp 1 2 [ C i (w) = exp 1 2 ( u αi1 β i1 ( v αi2 β i2 ( w αi3 β i3 ) 2 ], ) 2 ], ) 2 ], fuzzifier(x) := x, fuzzifier(y) := ȳ,

are universal approximators, i.e. they can approximate any continuous function on a compact set to arbitrary accuracy. Section 4: Effectivity of fuzzy logic control systems. 29 Product fuzzy conjunction [ Ai (u) and B i (v) ] = A i (u)b i (v) Product fuzzy implication (Larsen implication) [ Ai (u) and B i (v) ] C i (w) = A i (u)b i (v)c i (w) Centroid defuzzification method z = n i=1 α i3a i (x)b i (y) n i=1 A i(x)b i (y) where α i3 is the center of C i.

Section 4: Effectivity of fuzzy logic control systems. 30 Namely, Wang proved the following theorem L.-X. Wang. Fuzzy systems are universal approximators. In Proc. of the 1st IEEE Conf. on Fuzzy Systems, pages 1163-1170, San Deigo, CA, March 1992. Theorem 4.1. For a given real-valued continuous function g on the compact set U and arbitrary ɛ > 0, there exists a fuzzy logic control system with output function f such that sup g(x) f(x) ɛ. x U In 1995 Castro (Fuzzy logic contollers are universal approximators, IEEE Transactions on Syst. Man Cybernetics, 25(1995) 629-635.) showed that Mamdani s fuzzy logic controllers with R i : if x is A i and y is B i then z is C i, i = 1,..., n

Section 4: Effectivity of fuzzy logic control systems. 31 Symmetric triangular membership functions { 1 ai u /α i if a i u α i A i (u) = 0 otherwise { 1 bi v /β i if b i v β i B i (v) = 0 otherwise { 1 ci w /γ i if c i w γ i C i (w) = 0 otherwise Singleton fuzzifier fuzzifier(x 0 ) := x 0 Minimum norm fuzzy conjunction [ Ai (u) and B i (v) ] = min{a i (u), B i (v)}

Section 4: Effectivity of fuzzy logic control systems. 32 Minimum-norm fuzzy implication [ Ai (u) and B i (v) ] C i (w) = min{a i (u), B i (v), C i (w)} Maximum t-conorm rule aggregation Agg (R 1, R 2,, R n ) = max(r 1, R 2,, R n ) Centroid defuzzification method n i=1 z = c i min{a i (x), B i (y)} n i=1 min{a i(x)b i (y)} where c i is the center of C i. are also universal approximators.