Ming-Feng Yeh2-32 3. Fuzzy Control The primary goal of control engineering is to distill and apply knowledge about how to control a process so that the.

Slides:



Advertisements
Similar presentations
 Negnevitsky, Pearson Education, Lecture 5 Fuzzy expert systems: Fuzzy inference n Mamdani fuzzy inference n Sugeno fuzzy inference n Case study.
Advertisements

AI – CS364 Fuzzy Logic Fuzzy Logic 3 03 rd October 2006 Dr Bogdan L. Vrusias
Rulebase Expert System and Uncertainty. Rule-based ES Rules as a knowledge representation technique Type of rules :- relation, recommendation, directive,
Fuzzy Logic and its Application to Web Caching
Fuzzy Inference and Defuzzification
Fuzzy Expert System. Basic Notions 1.Fuzzy Sets 2.Fuzzy representation in computer 3.Linguistic variables and hedges 4.Operations of fuzzy sets 5.Fuzzy.
Case Study Container Crane Control. Objectives of Ports For delivery of goods through containers transported by cargo ships. Example is PTP in Johore,
6/9/2015Intelligent Systems and Soft Computing1 Lecture 5 Fuzzy expert systems: Fuzzy inference Mamdani fuzzy inference Mamdani fuzzy inference Sugeno.
Confidence Intervals for
Chapter 2 Fuzzy Control.
Automated rule Generation Maryam Mustafa Sarah Karim
Fuzzy Expert System.
Fuzzy Logic Samson Okoh Engr 315 Fall Introduction  Brief History  How it Works –Basics of Fuzzy Logic  Rules –Step by Step Approach of Fuzzy.
11 Inverted Pendulum Emily Hamilton ECE Department, University of Minnesota Duluth December 21, 2009 ECE Fall 2009.
Chapter 18 Fuzzy Reasoning.
Let remember from the previous lesson what is Knowledge representation
1 Chapter 18 Fuzzy Reasoning. 2 Chapter 18 Contents (1) l Bivalent and Multivalent Logics l Linguistic Variables l Fuzzy Sets l Membership Functions l.
Lecture 10 Comparison and Evaluation of Alternative System Designs.
Copyright © 2010 Pearson Education, Inc. Chapter 19 Confidence Intervals for Proportions.
WELCOME TO THE WORLD OF FUZZY SYSTEMS. DEFINITION Fuzzy logic is a superset of conventional (Boolean) logic that has been extended to handle the concept.
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).
Introduction to Rule-Based Systems, Expert Systems, Fuzzy Systems Introduction to Rule-Based Systems, Expert Systems, Fuzzy Systems (sections 2.7, 2.8,
Rule-Based Fuzzy Model. In rule-based fuzzy systems, the relationships between variables are represented by means of fuzzy if–then rules of the following.
Fuzzy Sets Introduction/Overview Material for these slides obtained from: Modern Information Retrieval by Ricardo Baeza-Yates and Berthier Ribeiro-Neto.
Fuzzy Control –Configuration –Design choices –Takagi-Sugeno controller.
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.
1 Utilizing fuzzy logic and trend analysis for effective intrusion detection Author: Martin Botha and Rossouw von Solms Source: Computers & Security Vol.
 Definition Definition  Bit of History Bit of History  Why Fuzzy Logic? Why Fuzzy Logic?  Applications Applications  Fuzzy Logic Operators Fuzzy.
How Science Works The following PowerPoint is aimed at enhancing skills learnt at GCSE when performing experiments. Pupils must commit the terminology.
Fuzzy Inference (Expert) System
Mobile Robot Navigation Using Fuzzy logic Controller
Fuzzy Systems Michael J. Watts
Lógica difusa  Bayesian updating and certainty theory are techniques for handling the uncertainty that arises, or is assumed to arise, from statistical.
Lec 34 Fuzzy Logic Control (II)
CS344: Introduction to Artificial Intelligence (associated lab: CS386) Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture–4: Fuzzy Control of Inverted.
1 Lecture 4-2 Fuzzy Controller Design. 2 How do we design a fuzzy controller? Fuzzy control system design essentially amounts to (1) choosing the fuzzy.
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 دكترمحسن كاهاني
Universal fuzzy system representation with XML Authors : Chris Tseng, Wafa Khamisy, Toan Vu Source : Computer Standards & Interfaces, Volume 28, Issue.
Chapter 10 Fuzzy Control and Fuzzy Expert Systems
Chapter 19. Fuzzy Reasoning
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.
Chapter 10 FUZZY CONTROL Chi-Yuan Yeh.
Type-2 Fuzzy Sets and Systems. Outline Introduction Type-2 fuzzy sets. Interval type-2 fuzzy sets Type-2 fuzzy systems.
© Negnevitsky, Pearson Education, Lecture 5 Fuzzy expert systems: Fuzzy inference Mamdani fuzzy inference Mamdani fuzzy inference Sugeno fuzzy inference.
Artificial Intelligence Logical Agents Chapter 7.
Knowledge Representation Techniques
Artificial Intelligence CIS 342
Fuzzy Systems Michael J. Watts
Chapter Functions.
Fuzzy expert systems Fuzzy inference Mamdani fuzzy inference
Artificial Intelligence
Fuzzy Logic and Fuzzy Sets
Homework 8 Min Max “Temperature is low” AND “Temperature is middle”
Fuzzy logic Introduction 3 Fuzzy Inference Aleksandar Rakić
Fuzzy System Structure
Dr. Unnikrishnan P.C. Professor, EEE
Homework 9 Min Max “Temperature is low” AND “Temperature is middle”
Lecture 5 Fuzzy expert systems: Fuzzy inference
How Science Works The following PowerPoint is aimed at enhancing skills learnt at GCSE when performing experiments. Pupils must commit the terminology.
Fuzzy Inference Systems
Fuzzy Logic KH Wong Fuzzy Logic v.9a.
Presentation transcript:

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 resulting control system will reliably and safely achieve high-performance operation. This section shows how fuzzy logic provides a methodology for representing and implementing our knowledge about how best to control a process.

Ming-Feng Yeh2-33 A Tutorial Introduction The fuzzy controller is to be designed to automate how a human expert who is successful at this task would control the system. Human-in-the-loop to control the pendulum

Ming-Feng Yeh2-34 Choosing Procedure First, the expert tells us (the designer of the fuzzy controller) what information she or he will use as inputs to the decision-making process. Next, we must identify the controlled variable. You want to make sure that the controller will have the proper information available to be able to make good decisions and have proper inputs to be able to steer the system in the directions needed to be able to achieve high-performance operation.

Ming-Feng Yeh2-35 Choosing Procedure (cont.) Once the fuzzy controller inputs and outputs are chosen, you must determine what the reference inputs are. For the inverted pendulum: the control variable: the force (u) the reference input: r = 0 After all the inputs and outputs are defined for the fuzzy controller, we can specify the fuzzy control system.

Ming-Feng Yeh2-36 Fuzzy Control System

Ming-Feng Yeh2-37 Putting Control Knowledge into Rule-Bases The human expert shown in Fig. 2.3 provides a description of how best to control the plant in some natural language (e.g., English). We seek to take this “linguistic” description and load it into the fuzzy controller, as in Fig. 2.4.

Ming-Feng Yeh2-38 Linguistic Variables Linguistic variables describe each of the time- varying fuzzy controller inputs and outputs. error: e(t), change-in-error: de(t)/dt, force: u(t) The choice of the linguistic variables has no impact on the way that the fuzzy controller operates; it is simply a notation that helps to facilitate the construction of the fuzzy controller via fuzzy logic.

Ming-Feng Yeh2-39 Linguistic Values Linguistic values that linguistic variables take on over time change dynamically. neglarge (NL, negative large in size): -2 negsmall(NS): -1, zero (ZR): 0 possmall (PS, positive small in size): +1 poslarge (PL): +2

Ming-Feng Yeh2-40 How to Quantify Knowledge For the inverted pendulum r = 0 and e = r – y so that e = –y and de/dt = –dy/dt. “error is poslarge”: the pendulum is at a significant angle to the left of the vertical. “error is negsmall”: the pendulum is just slightly to the right of the vertical. “error is zero”: the pendulum is very near the vertical position.

Ming-Feng Yeh2-41 Quantification Statements The pendulum is moving counterclockwise. “error is poslarge and change-in-error is possmall”: the pendulum is at the significant angle to the left of the vertical and, since dy/dt <0, the pendulum is moving away from the upright position. “error is negsamll and change-in-error is possmall”: the pendulum is slightly to the right of the vertical and, since dy/dt <0, the pendulum is moving toward the upright position.

Ming-Feng Yeh2-42 Fuzzy Rules (a) If error is neglarge and change-in-error is neglarge Then force is poslarge. (b) If error is zero and change-in-error is possmall Then force is negsmall. (c) If error is poslarge and change-in-error is negsmall Then force is negsmall.

Ming-Feng Yeh2-43 Linguistic Rules A linguistic rule is formed solely from linguistic variables and values. Since linguistic values are not precise representations of the underlying quantities that they describe, linguistic rules are not precise either. Linguistic rules are simply abstract ideas about how to achieve good control that could mean somewhat different things to different people.

Ming-Feng Yeh2-44 Form of Linguistic Rules General form: If premise Then consequent The premises (antecedents) are associated with the fuzzy controllers inputs. The consequents (actions) are associated with the fuzzy controllers outputs. Each premise (or consequent) can be composed of the conjunction (e.g., and, or) of several “terms”.

Ming-Feng Yeh2-45 Rule Bases (Tables) For the pendulum problem, with two inputs and five linguistic values for each of these, there are at most 5 2 = 25 possible rules. Tabular representation of linguistic rules: neglarge: -2 negsmall: -1 zero: 0 possmall: +1 poslarge: +2

Ming-Feng Yeh2-46 Membership Functions for Inputs and Output For the inputs e(t) and de(t)/dt, the outmost membership functions “saturate” at a value of one. For the output u, the outmost membership functions cannot be saturated for the fuzzy system to be properly defined.

Ming-Feng Yeh2-47 Fuzzification Fuzzification process as the act of obtaining a value of an input variable and finding the numerical values of the membership function(s) that are defined for that variable. The membership function values as an “encoding” of the fuzzy controller numeric input values.

Ming-Feng Yeh2-48 Inference Process The premises of all the rules are compared to the controller inputs to determine which rules apply to the current situation. This “matching” process involves determining the certainty that each rule applies. The conclusions are determined using the rule that have been determined to apply at the current time. The conclusions are characterized with a fuzzy set (or sets) that represents that the input to the plant should take on various values.

Ming-Feng Yeh2-49 Premise Quantification via Fuzzy Logic “error is zero and change-in-error is possmall”

Ming-Feng Yeh2-50 Certainty of Premise If error is zero and change-in-error is possmall Then force is negsmall. Minimum: Product: Consider all possible e(t) and de(t)/dt values, we will obtain a multidimensional membership function

Ming-Feng Yeh2-51 Determining Which Rules Are On Determining the applicability of each rule is called “matching.” A rule is “on at time t ” if its premise membership function The inference mechanism seeks to determine which rules are on to find out which rules are relevant to the current situation.

Ming-Feng Yeh2-52 Numerical Example The rules that have the premise terms “error is zero” “change-in-error is zero” “change-in-error is possmall” are on.

Ming-Feng Yeh2-53 Determining Which Rules Are On If error is zero and change-in-error is zero Then force is zero. If error is zero and change-in-error is possmall Then force is negsmall. We have at most two membership functions overlapping, we will never have more than four rules on at one time.

Ming-Feng Yeh2-54 Inference Step: Determining Conclusions Rule 1: If error is zero and change-in-error is zero Then force is zero. We are 0.25 certain that this rule applies to the current situation. The rule indicates that if its premise is true then the action indicated by its consequent should be taken.

Ming-Feng Yeh2-55 Determining Conclusion The membership function for the conclusion reached by rule (1) is given by min. operation: chop off the top

Ming-Feng Yeh2-56 Recommendation from One Rule The membership function of the implied fuzzy set for rule (1): The justification for the use of the minimum (product) operator to represent the implication is that we can be no more certain about our consequent than our premise.

Ming-Feng Yeh2-57 Recommendation from Another Rule Rule 2: If error is zero and change-in-error is possmall, Then force is negsmall. The membership function of the implied fuzzy set for rule (2):

Ming-Feng Yeh2-58 Converting Decisions into Actions Defuzzification operates on the implied fuzzy sets produced by inference mechanism and combines their effects to provide the “most certain” controller output (plant input). Defuzzification as “decoding” the fuzzy set information produced by the inference process (i.e., the implied fuzzy sets) into numerical fuzzy controller outputs.

Ming-Feng Yeh2-59 Combining Recommendations

Ming-Feng Yeh2-60 Center of Gravity Defuz. : the center of the membership function of the consequent of rule (i) : the area under the membership function

Ming-Feng Yeh2-61 Range of Defuzzification Value

Ming-Feng Yeh2-62 Center-Average Defuz. Use the product to represent the implication

Ming-Feng Yeh2-63 COG Defuzzification The area of the implied fuzzy set is generally proportional to since it used to chop the top of (minimum) or scale (product) the triangular output membership function when COG is used for our example.

Ming-Feng Yeh2-64 Graphical Depiction