15
Fuzzy Logic Dinesh Ganotra

Fuzzy Logic

  • Upload
    edana

  • View
    24

  • Download
    0

Embed Size (px)

DESCRIPTION

Dinesh Ganotra. Fuzzy Logic. What could go in the black box? Any number of things: fuzzy systems, linear systems, expert systems, neural networks, differential equations, interpolated multidimensional lookup tables, or even a spiritual advisor. - PowerPoint PPT Presentation

Citation preview

Page 1: Fuzzy Logic

Fuzzy Logic

Dinesh Ganotra

Page 2: Fuzzy Logic
Page 3: Fuzzy Logic

What could go in the black box? Any number of things: fuzzy systems, linear systems, expert systems, neural networks, differential equations, interpolated multidimensional lookup tables, or even a spiritual advisor.

Page 4: Fuzzy Logic

In almost every case you can build the same product without fuzzy logic, but fuzzy is faster

and cheaper.

Page 5: Fuzzy Logic

Tipper problem

Page 6: Fuzzy Logic
Page 7: Fuzzy Logic

Classical or normal sets wouldn't tolerate this kind of thing. Either you're in or you're out. Human experience suggests something different, though: fence sitting is a

part of life.

Page 8: Fuzzy Logic

In fuzzy logic, the truth of any statement becomes a matter of degree.

A fuzzy set admits the possibility of partial membership in it.

Page 9: Fuzzy Logic
Page 10: Fuzzy Logic

Fuzzy Logic

AND(A,B) Min(A,B) OR (A,B) Max(A,B) NOT(A) 1-A

Membership function Set [1 3 5] MF[0.1 0.9 0.5]

Page 11: Fuzzy Logic

Q: Is Saturday a weekend day? A: 1 (yes, or true) Q: Is Tuesday a weekend day? A: 0 (no, or false) Q: Is Friday a weekend day? A: 0.8 (for the most part yes, but not completely) Q: Is Sunday a weekend day? A: 0.95 (yes, but not quite as much as Saturday).

Page 12: Fuzzy Logic

Main functions in matlab for fuzzy Logic implementation

fuzzy filename var = readfis('filename.fis') evalfis([input1 input2 ...], var)

anfis(tranDat)% Last column is output

Page 13: Fuzzy Logic

F V M 1 1 40 2 5 45 5 5 50 10 10 95 9 9 93 9 8 92 9 7 85 8 9 86 2 3 42 1 10 80 10 1 80

02

46

810

0

5

1020

40

60

80

100

vivafi le

Pra

c M

arks

Page 14: Fuzzy Logic

[center,U,obj_fcn] = fcm(data,cluster_n)

The membership function matrix U contains the grade of membership of each DATA point in each cluster.

Page 15: Fuzzy Logic

Mamdani and Sugeno fuzzy logic

Sugeno output membership functions are either linear or constant

...

endless