Fuzzy Sets and Control Fuzzy Logic The definition

  • Slides: 17
Download presentation
Fuzzy Sets and Control

Fuzzy Sets and Control

Fuzzy Logic The definition of Fuzzy logic is a form of multi-valued logic derived

Fuzzy Logic The definition of Fuzzy logic is a form of multi-valued logic derived from fuzzy set theory to deal with reasoning that is approximate rather than precise. Degree of Truths and probabilities range between 0 and 1. From Wikipedia

An example of Fuzzy Reasoning Fuzzy Set Theory defines Fuzzy Operators on Fuzzy Sets.

An example of Fuzzy Reasoning Fuzzy Set Theory defines Fuzzy Operators on Fuzzy Sets. The problem in applying this is that the appropriate Fuzzy Operator may not be known. For this reason, Fuzzy logic usually uses IF-THEN rules, or constructs that are equivalent, such as fuzzy associative matrices. Rules are usually expressed in the form: IF variable IS property THEN action For example, an extremely simple temperature regulator that uses a fan might look like this: IF temperature IS very cold THEN stop fan IF temperature IS cold THEN turn down fan IF temperature IS normal THEN maintain level IF temperature IS hot THEN speed up fan Notice there is no "ELSE". All of the rules are evaluated, because the temperature might be "cold" and "normal" at the same time to different degrees. The AND, OR, and NOT operators of boolean logic exist in fuzzy logic, usually defined as the minimum, maximum, and complement; when they are defined this way, they are called the Zadeh operators, because they were first defined as such in Zadeh's original papers. So for the fuzzy variables x and y: NOT x = (1 - truth(x)) x AND y = minimum(truth(x), truth(y)) From Wikipedia x OR y = maximum(truth(x), truth(y))

Fuzzy Set Definition The definition of a fuzzy set is given by the membership

Fuzzy Set Definition The definition of a fuzzy set is given by the membership function elements of the universe of discourse U, can belong to the fuzzy set with any value between 0 and 1. The degree of membership of an element u when the universe of discourse U, is discrete and finite, it is given for a fuzzy set A by

Fuzzy Set Operations The union of two fuzzy sets The intersection of two fuzzy

Fuzzy Set Operations The union of two fuzzy sets The intersection of two fuzzy sets The complement of fuzzy set is defined by

Properties of Set Operations Most of the properties that hold for classical sets (e.

Properties of Set Operations Most of the properties that hold for classical sets (e. g. , commutativity, associativity and idempotence) hold also for fuzzy sets except for following two properties: Law of contradiction the intersection of a fuzzy set and its complement results in a fuzzy set with membership values of up to ½ and thus does not equal the empty set (as in the case of classical sets) Law of excluded middle

Intelligent Control • An intelligent control system is one in which a physical system

Intelligent Control • An intelligent control system is one in which a physical system or a mathematical model of it is being controlled by a combination of a knowledge-base, approximate (humanlike) reasoning, and/or a learning process structured in a hierarchical fashion. • Under this simple definition, any control system which involves fuzzy logic, neural networks, expert learning schemes, genetic algorithms, genetic programming or any combination of these would be designated as intelligent control.

Fuzzy Control • A fuzzy controller consists of three operations: (1) fuzzification, (2) inference

Fuzzy Control • A fuzzy controller consists of three operations: (1) fuzzification, (2) inference engine, and (3) defuzzification. • A common definition of a fuzzy control system is that it is a system which emulates a human expert. In this situation, the knowledge of the human operator would be put in the form of a set of fuzzy linguistic rules. • The human operator observes quantities by observing the inputs, i. e. , reading a meter or measuring a chart, and performs a definite action (e. g. , pushes a knob, turns on a switch, closes a gate, or replaces a fuse) thus leading to a crisp action • The human operator can be replaced by a combination of a fuzzy rule-based system (FRBS) and a block called defuzzifier. The input sensory (crisp or numerical) data are fed into FRBS where physical quantities are represented or compressed into linguistic variables with appropriate membership functions. • These linguistic variables are then used in the antecedents (IF-Part) of a set of fuzzy rules within an inference engine to result in a new set of fuzzy linguistic variables or consequent (THEN-Part). Variables are combined and changed to a crisp (numerical) output.

Fuzzy Control Architecture member ship values Fuzzy Controller Defuzzifier Rule Engine real numbers Fuzzifier

Fuzzy Control Architecture member ship values Fuzzy Controller Defuzzifier Rule Engine real numbers Fuzzifier System real numbers fuzzy sets

Simple Rules – if antecedent then consequent Ex: fuzzy. Control. For. Dec fuzzifier –

Simple Rules – if antecedent then consequent Ex: fuzzy. Control. For. Dec fuzzifier – accepts real number inpuit and outputs its membership common domain input, x consequent- cuts tts fuzzy set and computes its area and moment defuzzifier – accumulates the areas and moments and outputs the centroid

Simple Rule Controller fuzzy. Control. For. Dec provides the negative feedback to stabilize the

Simple Rule Controller fuzzy. Control. For. Dec provides the negative feedback to stabilize the integrator

Composite Rules – if antecedent 1 and antecedent 2 then consequent Example: fuzz. Control.

Composite Rules – if antecedent 1 and antecedent 2 then consequent Example: fuzz. Control. For 2 To 1 And. Fn outputs minimum of inputs x common domain input, x v common domain input, v

Composite. Rule Controller fuzzy. Control. For 2 T o 1 provides the control to

Composite. Rule Controller fuzzy. Control. For 2 T o 1 provides the control to settle the spring at zero

Linear Time Invariant Models

Linear Time Invariant Models

Inverted Pendulum Fuzzy Control Linearized inverted pendulum on a cart fuzzy. Control. For 2

Inverted Pendulum Fuzzy Control Linearized inverted pendulum on a cart fuzzy. Control. For 2 To 1 provides the control to keep the stick stable

Modeling the Inverted Pendulum Source: http: //www. engin. umich. edu/group/ctm/examples/pend/invpen. html Moment of Inertia:

Modeling the Inverted Pendulum Source: http: //www. engin. umich. edu/group/ctm/examples/pend/invpen. html Moment of Inertia: http: //hyperphysics. phy-astr. gsu. edu/hbase/mi 2. html#rlin M mass of the cart 0. 5 kg m mass of the pendulum 0. 5 kg b friction of the cart 0. 1 N/m/sec l length to pendulum center of mass 0. 3 m I inertia of the pendulum 0. 006 kg*m^2 F force applied to the cart x cart position coordinate theta pendulum angle from vertical

Inverted Pendulum – Swing Up Non-linear Model source: http: //www. control. lth. se/publications/fulldocs/ast_fur 96.

Inverted Pendulum – Swing Up Non-linear Model source: http: //www. control. lth. se/publications/fulldocs/ast_fur 96. pdf detect when angle reaches turn-off level detect when pendulum stops rising reset theta to 0 when reach 2*pi starting from hanging configuration, rod can be made to reach inverted configuration with sufficient force acting until horizontal line is reached