11 Inverted Pendulum Emily Hamilton ECE Department, University of Minnesota Duluth December 21, 2009 ECE 5831 - Fall 2009.

Slides:



Advertisements
Similar presentations

Advertisements

Fuzzy Inference Systems. Review Fuzzy Models If then.

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 Expert System. Basic Notions 1.Fuzzy Sets 2.Fuzzy representation in computer 3.Linguistic variables and hedges 4.Operations of fuzzy sets 5.Fuzzy.
Fuzzy Logic E. Fuzzy Inference Engine. “antecedent” “consequent”
A Fuzzy-Based Assessment Model for Faculty Performance Evaluation Mohammed Onimisi Yahaya College of Computer Sciences and Engineering King Fahd University.
Chapter 2 Fuzzy Control.
Fuzzy Logic Control Systems Ken Morgan ENGR 315 December 5, 2001.
Fuzzy Expert System.
Fuzzy Logic E. Fuzzy Inference Engine. “antecedent” “consequent”
Fuzzy Logic Samson Okoh Engr 315 Fall Introduction  Brief History  How it Works –Basics of Fuzzy Logic  Rules –Step by Step Approach of Fuzzy.
Chapter 18 Fuzzy Reasoning.
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.
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).
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.
GreenHouse Climate Controller Fuzzy Logic Programing Greenhouse Climate Controller Using Fuzzy Logic Programming Anantharaman Sriraman September 2, 2003.
Hybrid intelligent systems:
Fuzzy Rules 1965 paper: “Fuzzy Sets” (Lotfi Zadeh) Apply natural language terms to a formal system of mathematical logic
© Negnevitsky, Pearson Education, Lecture 11 Neural expert systems and neuro-fuzzy systems Introduction Introduction Neural expert systems Neural.
 Negnevitsky, Pearson Education, Lecture 5 Fuzzy expert systems: Fuzzy inference n Mamdani fuzzy inference n Sugeno fuzzy inference n Case study.
Fuzzy Inference (Expert) System
TUSTP 2003 by Vasudevan Sampath by Vasudevan Sampath May 20, 2003 Intelligent Control of Compact Separation System Intelligent Control of Compact Separation.
Mobile Robot Navigation Using Fuzzy logic Controller
INVENTORY CONTROL AS IDENTIFICATION PROBLEM BASED ON FUZZY LOGIC ALEXANDER ROTSHTEIN Dept. of Industrial Engineering and Management, Jerusalem College.
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
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)
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.
“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.
Homework 5 Min Max “Temperature is low” AND “Temperature is middle”
AI Fuzzy Systems. History, State of the Art, and Future Development Sde Seminal Paper “Fuzzy Logic” by Prof. Lotfi Zadeh, Faculty in Electrical.
Chapter 10 Fuzzy Control and Fuzzy Expert Systems
Authors : Chun-Tang Chao, Chi-Jo Wang,
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.
Advanced Science and Technology Letters Vol.28 (EEC 2013), pp Fuzzy Technique for Color Quality Transformation.
S PEED CONTROL OF DC MOTOR BY FUZZY CONTROLLER MD MUSTAFA KAMAL ROLL NO M E (CONTROL AND INSTRUMENTATION)
A Presentation on Adaptive Neuro-Fuzzy Inference System using Particle Swarm Optimization and it’s Application By Sumanta Kundu (En.R.No.
VIDYA PRATISHTHAN’S COLLEGE OF ENGINEERING, BARAMATI.
Introduction to Fuzzy Logic and Fuzzy Systems
Fuzzy Logic Control What is Fuzzy Logic ? Logic and Fuzzy Logic
Artificial Intelligence CIS 342
Fuzzy Systems Michael J. Watts
FUZZY NEURAL NETWORKS TECHNIQUES AND THEIR APPLICATIONS
Fuzzy expert systems Fuzzy inference Mamdani fuzzy inference
Artificial Intelligence
Stanisław H. Żak School of Electrical and Computer Engineering
Fuzzy Logics.
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
Dr. Unnikrishnan P.C. Professor, EEE
فازی سازی و غیرفازی سازی
Homework 9 Min Max “Temperature is low” AND “Temperature is middle”
Lecture 5 Fuzzy expert systems: Fuzzy inference
Dr. Unnikrishnan P.C. Professor, EEE
Fuzzy Inference Systems
Fuzzy Logic KH Wong Fuzzy Logic v.9a.
Presentation transcript:

11 Inverted Pendulum Emily Hamilton ECE Department, University of Minnesota Duluth December 21, 2009 ECE Fall 2009

222 Fuzzy sets Fuzzy operations Conventional controller Performance objectives and evaluations Fuzzy controller Defining a rule base Fuzzification Inference engine Defuzzification Conclusion Overview

333 Fuzzy Controller Parts of fuzzy controller –Rule base: set of If-Then rules –Inference mechanism: combines rules to obtain the best control –Fuzzification interface: transforms linguistic inputs into fuzzy inputs –Defuzzification interface: transforms fuzzy outputs into linguistic terms

44 Fuzzy Sets Fuzzy set A defined by: A = {(x, A(x)) | x is in X} Where X is the set of elements in the set: X = {0, 1,…, n}

55 Fuzzy Sets X is also known as the universe of a fuzzy set A(x) is the membership function of x –Grade of membership of the set –Values in the range {0,1}

66 Fuzzy Operations Some Common Operations –Union –Intersection –Complement Take the fuzzy sets A and B for these examples. A = {{1,0.3}, {2,0.7}, {3,0.6}} B = {{1,0.4}, {2,0.1}, {3,0.9}}

77 Fuzzy Operations Union – represented by AUB –AUB = max(A(x), B(x))

88 Fuzzy Operations Intersection – represented by A ∩ B –A∩B = min(A(x), B(x))

99 Fuzzy Operations Complement – represented by A’(x) –A’(x) = 1 – A(x)

10 Common Membership Functions Triangular Trapezoidal Gaussian

11 Common Membership Functions Bell Sigmoid

12 Conventional Control System 12

13 Performance Objectives Disturbance rejection properties Insensitivity to plant parameter variations Stability Rise-time Overshoot Settling time Steady-state error 13

14 Technical Constraints Cost Computational complexity: Manufacturability Reliability Maintainability Adaptability Understandability Politics 14

15 Performance Evaluation Mathematical Evaluation –To prove that all performance objectives have been met –Relies on accuracy of mathematical model –Complex nonlinear mathematical models do not exist yet –Can be used to enhance confidence that control system will work properly 15

16 Performance Evaluation Simulation-Based Analysis –Simulation of actual system is built and tested with the control system –Can be more accurate than the mathematical model because system constraints and changes can be applied easily –Not perfectly accurate 16

17 Performance Evaluation Experimental Evaluation –Implementing the control system in the actual process –Can be helpful to find problems that would not have been found elsewhere –Can be risky 17

18 Fuzzy Control System

19 Defining a Rule Base Choose inputs and outputs Put knowledge into rules: –Use linguistic descriptions from experts for inputs and outputs –Relate the inputs and outputs with the experts’ knowledge –Create a table representing the rule base

20 Inverted Pendulum

21 Inverted Pendulum

22 Inverted Pendulum Rules If the angle q is positive and the velocity q ' is positive, then decrease a lot. If the angle q is positive and the velocity q ' is zero, then decrease. If the angle q is positive and the velocity q ' is negative, then do not apply. If the angle q is zero and the velocity q ' is positive, then decrease. If the angle q is zero and the velocity q ' is zero, then do not apply

23 Inverted Pendulum Rules If the angle q is zero and the velocity q ' is negative, then increase If the angle q is negative and the velocity q ' is positive, then do not apply. If the angle q is negative and the velocity q ' is zero, then increase. If the angle q is negative and the velocity q ' is negative, then increase a lot.

24 Inverted Pendulum Rule Table

25 Inverted Pendulum Fuzzy Controller

26 Membership Functions Evaluate the certainty of the linguistic values We use the certainties of the linguistic value to create out membership functions. Input values: –e(t) = π/4 –d/dt( e(t) ) = π/16 Membership function values: –A possmall (e(t)) = 1 –A zero (d/dt( e(t)) ) = A possmall (d/dt( e(t)) ) = 0.5

27 Fuzzification Example: Certainty of NegAngle –Angle, θ, is 45˚. F(45 ˚) = 0 –θ = -45 ˚. F(-45 ˚) = 0.4 –θ = -95 ˚. F(-95 ˚) = 1

28 Angle Membership Functions

29 Velocity Membership Functions

30 Output Membership Functions

31 Inference Engine Premise: the certainty of a rule in a situation. Ex: P(θ, d/dt(θ)) = 0.5 A rule is “on” if its certainty is greater than zero. The inference engine combines the recommendations of all rules that are “on” to find the control output.

32 Inference Engine 1.Determines relevance of each rule in the given situation using the premises 2.Draws information using the rule base and the inputs 32

33 Defuzzification 33 Defuzzification transfers the fuzzy output into a crisp value. This equation is used to defuzzifiy the outputs of the inference engine in the Center of Gravity (Area) inference engine. Each inference engine has its own equation for defuzzification.

34 Inverted Pendulum The crisp output value we receive using the Center of Area inference engine is units of force.

35 Conclusion Fuzzy sets Control system should meet performance objectives and pass evaluations Use expert knowledge to create inputs, outputs, and rule base. Fuzzify crisp inputs Inference engine uses rule base to decide control output Defuzzify output to crisp value

36 References [1] K. Passino, S. Yurkovich. Fuzzy Control Addison Wesley Longman, Inc. J. Jang, C. Sun. “Neuro-Fuzzy Modeling and Control.”

37 Questions?