Lec 34 Fuzzy Logic Control (II)

Slides:



Advertisements
Similar presentations
Graphical Technique of Inference
Advertisements

Intro. ANN & Fuzzy Systems Lecture 33 Fuzzy Logic Control (I)
Fuzzy Inference Systems
 Negnevitsky, Pearson Education, Lecture 5 Fuzzy expert systems: Fuzzy inference n Mamdani fuzzy inference n Sugeno fuzzy inference n Case study.
AI – CS364 Fuzzy Logic Fuzzy Logic 3 03 rd October 2006 Dr Bogdan L. Vrusias
Fuzzy Logic and its Application to Web Caching
Fuzzy Inference and Defuzzification
Fuzzy logic Fuzzy Expert Systems Yeni Herdiyeni Departemen Ilmu Komputer.
Fuzzy Logic E. Fuzzy Inference Engine. “antecedent” “consequent”
Case Study Container Crane Control. Objectives of Ports For delivery of goods through containers transported by cargo ships. Example is PTP in Johore,
EEE-8005 Industrial automation SDL Module leader: Dr. Damian Giaouris Room: E3.16 Phone: Module Leader.
Fuzzy Logic Control Lect 5 Fuzzy Logic Control Basil Hamed
Fuzzy Logic Based on a system of non-digital (continuous & fuzzy without crisp boundaries) set theory and rules. Developed by Lotfi Zadeh in 1965 Its advantage.
Fuzzy Expert System.
Fuzzy Logic E. Fuzzy Inference Engine. “antecedent” “consequent”
11 Inverted Pendulum Emily Hamilton ECE Department, University of Minnesota Duluth December 21, 2009 ECE Fall 2009.
Chapter 18 Fuzzy Reasoning.
Ming-Feng Yeh General Fuzzy Systems A fuzzy system is a static nonlinear mapping between its inputs and outputs (i.e., it is not a dynamic system).
The Equivalence between fuzzy logic controllers and PD controllers for single input systems Professor: Chi-Jo Wang Student: Nguyen Thi Hoai Nam Student.
Teachers Name : Suman Sarker Telecommunication Technology Subject Name : Computer Controller System & Robotics Subject Code : 6872 Semester :7th Department.
Fuzzy Logic. Priyaranga Koswatta Mundhenk and Itti, 2007.
GreenHouse Climate Controller Fuzzy Logic Programing Greenhouse Climate Controller Using Fuzzy Logic Programming Anantharaman Sriraman September 2, 2003.
Fuzzy Expert Systems. 2 Fuzzy Logic Four types of fuzzy logics Classic logic Crisp setence: Height(John, 180) → Weight(John, 60) Crisp data: Height(John,
Fuzzy Rules 1965 paper: “Fuzzy Sets” (Lotfi Zadeh) Apply natural language terms to a formal system of mathematical logic
Lecture 5 Fuzzy expert systems: Fuzzy inference Mamdani fuzzy inference Mamdani fuzzy inference Sugeno fuzzy inference Sugeno fuzzy inference Case study.
 Negnevitsky, Pearson Education, Lecture 5 Fuzzy expert systems: Fuzzy inference n Mamdani fuzzy inference n Sugeno fuzzy inference n Case study.
Fuzzy expert systems Chapter #9.
Fuzzy Inference (Expert) System
Ming-Feng Yeh Fuzzy Control The primary goal of control engineering is to distill and apply knowledge about how to control a process so that the.
Neural-Network-Based Fuzzy Logical Control and Decision System 主講人 虞台文.
Fuzzy Systems Michael J. Watts
Fuzzy Sets and Control. Fuzzy Logic The definition of Fuzzy logic is a form of multi-valued logic derived frommulti-valued logic fuzzy setfuzzy set theory.
Fuzzy Inference Systems. Fuzzy inference (reasoning) is the actual process of mapping from a given input to an output using fuzzy logic. The process involves.
PART 9 Fuzzy Systems 1. Fuzzy controllers 2. Fuzzy systems and NNs 3. Fuzzy neural networks 4. Fuzzy Automata 5. Fuzzy dynamic systems FUZZY SETS AND FUZZY.
“Principles of Soft Computing, 2 nd Edition” by S.N. Sivanandam & SN Deepa Copyright  2011 Wiley India Pvt. Ltd. All rights reserved. CHAPTER 12 FUZZY.
Fuzzy systems. Calculate the degree of matching Fuzzy inference engine Defuzzification module Fuzzy rule base General scheme of a fuzzy system.
Fuzzy Inference Systems
Fuzzy Expert System Fuzzy Inference دكترمحسن كاهاني
Homework 5 Min Max “Temperature is low” AND “Temperature is middle”
Lecture 32 Fuzzy Set Theory (4)
Chapter 10 Fuzzy Control and Fuzzy Expert Systems
1 Lecture 4 The Fuzzy Controller design. 2 By a fuzzy logic controller (FLC) we mean a control law that is described by a knowledge-based system consisting.
Intro. ANN & Fuzzy Systems Lecture 16. Classification (II): Practical Considerations.
Chapter 10 FUZZY CONTROL Chi-Yuan Yeh.
© Negnevitsky, Pearson Education, Lecture 5 Fuzzy expert systems: Fuzzy inference Mamdani fuzzy inference Mamdani fuzzy inference Sugeno fuzzy inference.
Chapter 13 (Continued) Fuzzy Expert Systems 1. Fuzzy Rule-based Expert System 2.
Fuzzy Logic Control What is Fuzzy Logic ? Logic and Fuzzy Logic
Artificial Intelligence CIS 342
An Article Review by Matthew D. Schrieber
Fuzzy Systems Michael J. Watts
A great man who created a complete new mathematics with many practical applications.
Fuzzy expert systems Fuzzy inference Mamdani fuzzy inference
Fuzzy Logic Control Lect 5 Fuzzy Logic Control Basil Hamed Electrical Engineering Islamic University of Gaza.
Stanisław H. Żak School of Electrical and Computer Engineering
Homework 8 Min Max “Temperature is low” AND “Temperature is middle”
Introduction to Fuzzy Logic
Fuzzy logic Introduction 3 Fuzzy Inference Aleksandar Rakić
Dr. Unnikrishnan P.C. Professor, EEE
منطق فازی.
Dr. Unnikrishnan P.C. Professor, EEE
Lecture 35 Fuzzy Logic Control (III)
FUZZIFICATION AND DEFUZZIFICATION
Homework 9 Min Max “Temperature is low” AND “Temperature is middle”
Lecture 5 Fuzzy expert systems: Fuzzy inference
Fuzzy Logic Colter McClure.
Dr. Unnikrishnan P.C. Professor, EEE
Fuzzy Logic Bai Xiao.
Fuzzy Inference Systems
Fuzzy Logic Based on a system of non-digital (continuous & fuzzy without crisp boundaries) set theory and rules. Developed by Lotfi Zadeh in 1965 Its advantage.
Lecture 35 Fuzzy Logic Control (III)
Presentation transcript:

Lec 34 Fuzzy Logic Control (II)

Outline Control Rule Base Fuzzy Inference Defuzzification FLC Design Procedures (C) 2001-2003 by Yu Hen Hu

Control Rule Base General form of rule: IF x1 is A1 AND • • • AND xM is AM, Antecedent THEN y1 is B1 AND • • • AND yN is BN, Consequent The rule base form a fuzzy partition of the multi-dimensional space. For example: (Rule IV) IF x is A2, AND y is B1, THEN u is C4. Total 9 rules can be defined. Often not all possible rules need to be defined explicitly. (C) 2001-2003 by Yu Hen Hu

Inference Engine When input variables are fuzzified, Each rule in the rule base will try to determine its degree of activation using min-max or correlation-max method. For rules which has a non-zero activation value, the output fuzzy variables will be combined (fuzzy union) yielding a resultant fuzzy set. (C) 2001-2003 by Yu Hen Hu

Fuzzy Inference (C) 2001-2003 by Yu Hen Hu

Defuzzification The Center of Area (COA) Method (2) The Mean of Maximum (MOM) Method Define B’max= {y| µB'(y)  µB'(y') for y' B'} to be the set of y in B' where µB'(y) reaches maximum. (C) 2001-2003 by Yu Hen Hu

Defuzzification (3) When outputs are functions of the inputs For example, Y = fi(X) where 1  i  n is the index for the rules. Then Rule Weighting wi – The weighting of each rule may be set so that some rules carry more influence than others. The weighting will take effect during defuzzification. (C) 2001-2003 by Yu Hen Hu

A Dog Chases Cat Example Cat travels east bound at a constant speed v. Dog travels at a pursuit direction that has an angle of azi(t) from north (clockwise direction is positive angle) with a constant speed w (> v). The angle between the line-of-sight direction from dog to cat and the dog’s current pursuit direction is ang(t). Goal: to line up the dog’s pursuit direction to that of the line-of-sight direction. Since the dog runs faster (in this example), it will eventually catch up the cat! y D(t) C(t) ang(t) azi(t) Dog pursuit direction x Line-of-sight direction (C) 2001-2003 by Yu Hen Hu

Dog Chases Cat Control Model Dependent dynamic variables (functions of state variables): ang(t) = atan (xcat(t)-xdog(t))/(ycat(t)-ydog(t)) – azi(t) Control goal: Given ang(t), to minimize ang(t+1) by applying appropriate control input dz(t) to update azi(t+1). Variable types: State variables C(t), D(t) (cat’s and dog’s positions) and azi(t) shall remain crisp variables. dz(t) (control input) and ang(t) (derived from state variables) will be fuzzified to facilitate fuzzy logic control. (C) 2001-2003 by Yu Hen Hu

Control Law Strategy Control Law: (proportional control) dz(t+1) = K•ang(t) Question: How to choose the most appropriate value of the proportion constant K? Observe that this system is nonlinear in nature, conventional PID design technique will be difficult to apply. Extensive simulation, trial-and-error will be needed! (C) 2001-2003 by Yu Hen Hu

FLC Design Procedures Step 1. Establish a mathematical model. Plant: Identify State variables (input to the controller) and control input variables (output of the controller) for the model. Characterize the type of these variables (fuzzy or crisp?) . Specify the control objective. Plant: 5 state variables: C(t) = (xcat(t), ycat(t)), D(t) = (xdog(t), ydog(t)), azi(t), one (control) input variable dz(t) xcat(t+1) = xcat(t) + v1; ycat(t+1) = ycat(t) xdog(t+1) = xdog(t) + w•sin(azi(t+1)); ydog(t+1) = ydog(t) + w•cos(azi(t+1)); azi(t+1) = azi(t) + dz(t) 1 (C) 2001-2003 by Yu Hen Hu

FLC Design Procedure Step 2. Fuzzification: Fuzzy decomposition of the range of each fuzzy variable. Specify the range of each fuzzy variable, and then devise a set of linguistic variables. It is important that the supports of adjacent linguistic variables overlap so that more than one fuzzy rules may be fired. The shape of membership function may be chosen empirically based on pdf of experimental data or heuristically. (C) 2001-2003 by Yu Hen Hu

Fuzzification for DCC example Both ang(t) and dz(t) will share the same set of linguistic variables: LN, SN, ZO, SP, LP The dynamic ranges of the supports (universe of discourse) of these two fuzzy variables however, are different. dz(t): -30o to 30o ang(t): -180o to 180o These choices may be due to physical constraints and other prior knowledge. They may need fine-tuning too. In this example, the range difference is determined by the proportional control law constant K. LN SN ZO SP LP dz ang -180 -45 0 45 180 -30 -15 0 15 30 (C) 2001-2003 by Yu Hen Hu

FLC Design Procedures Step 3. Devise fuzzy control rules Rules can be represented conveniently as a table if there are two input fuzzy variables. A simple rule base for the DCC example that has only one input fuzzy variable ang(t) and one control (output) variable dz(t+1). The scalar in front of each rule indicates the relative weighting of that rule. (1.0) If ang(t) is LN, Then dz(t+1) is LN. (1.0) If ang(t) is SN, Then dz(t+1) is SN. (1.0) If ang(t) is ZO, Then dz(t+1) is ZO. (1.0) If ang(t) is SP, Then dz(t+1) is SP. (1.0) If ang(t) is LP, Then dz(t+1) is LP. (C) 2001-2003 by Yu Hen Hu