Fuzzy Logic Ppt

39
FUZZY LOGIC T.C.Kanish Assistant Professor (Sr.) VIT University

Transcript of Fuzzy Logic Ppt

Page 1: Fuzzy Logic Ppt

FUZZY LOGIC T.C.KanishAssistant Professor (Sr.)VIT University

Page 2: Fuzzy Logic Ppt

OVERVIEWWhat is Fuzzy Logic?

Where did it begin?What is MatLab Fuzzy Logic Toolbox For?Fuzzy Logic in Control SystemsOverview: Fuzzy Inference Systems

Fuzzy Set ConceptFuzzy RulesMembership functionsHow it works

Building Systems: An ExampleDemoDiscussion

Page 3: Fuzzy Logic Ppt

WHAT IS FUZZY LOGIC?

Definition of fuzzy

Fuzzy – “not clear, distinct, or precise; blurred”

Definition of fuzzy logic

A form of knowledge representation suitable for

notions that cannot be defined precisely, but which

depend upon their contexts.

Page 4: Fuzzy Logic Ppt

FUZZY LOGIC

“As complexity rises, precise statements lose meaning and meaningful statements lose

precision”

- Lotfi Zadeh

Page 5: Fuzzy Logic Ppt

FUZZY LOGIC COME FROM

Concept of Fuzzy Logic (FL) was conceived by LotfiZadeh, a professor at the University of California at Berkley, and presented not as a control methodology,

But as a way of processing data by allowing partial set membership rather than crisp set membership or non-membership

This approach to set theory was not applied to control systems until the 70's due to insufficient small-computer capability prior to that time.

Page 6: Fuzzy Logic Ppt

ORIGINS OF FUZZY LOGICTraces back to Ancient Greece

Lotfi Asker Zadeh ( 1965 )

First to publish ideas of fuzzy logic.

Professor Toshire Terano ( 1972 )

Organized the world's first working group on fuzzy

systems.

F.L. Smidth & Co. ( 1980 )

First to market fuzzy expert systems.

Page 7: Fuzzy Logic Ppt

FUZZY LOGICFL is a problem-solving control system methodology that lends itself to implementation in systems ranging from simple, small, embedded micro-controllers to large, networked, multi-channel PC or workstation-based data acquisition and control systems. It can be implemented in hardware, software, or a combination of both.FL provides a simple way to arrive at a definite conclusion based upon vague, ambiguous, imprecise, noisy, or missing input information. FL's approach to control problems mimics how a person would make decisions, only much faster.

Page 8: Fuzzy Logic Ppt

FUZZY LOGIC (Cont..)Fuzzy logic provides a method to formalize reasoning when dealing with vague terms. Traditional computing requires finite precision which is not always possible in real world scenarios. Not every decision is either true or false, or as with Boolean logic either 0 or 1. Fuzzy logic allows for membership functions, or degrees of truthfulness and falsehoods. or as with Boolean logic,

not only 0 and 1 but all the numbers that fall in between.

Page 9: Fuzzy Logic Ppt

TRADITIONAL REPRESENTATION OF LOGIC

Slow FastSpeed = 1Speed = 0

bool speed; get the speed if ( speed == 0) {

// speed is slow} else {

// speed is fast}

Page 10: Fuzzy Logic Ppt

FUZZY LOGIC REPRESENTATIONSlowest

For every problem must represent in terms of fuzzy sets.

[ 0.0 – 0.25 ]

Slow[ 0.25 – 0.50 ]

Fast[ 0.50 – 0.75 ]

Fastest[ 0.75 – 1.00 ]

Page 11: Fuzzy Logic Ppt

FUZZY LOGIC REPRESENTATION CONT.

Slowest Fastestfloat speed; get the speed if ((speed >= 0.0)&&(speed < 0.25)) {

// speed is slowest} else if ((speed >= 0.25)&&(speed < 0.5)) {

// speed is slow}else if ((speed >= 0.5)&&(speed < 0.75)) {

// speed is fast}else // speed >= 0.75 && speed < 1.0 {

// speed is fastest}

Slow Fast

Page 12: Fuzzy Logic Ppt

FUZZY MATHEMATICS

Fuzzy Numbers – almost 5, or more than 50

Fuzzy Geometry – Almost Straight Lines

Fuzzy Algebra – Not quite a parabola

Fuzzy Calculus

Fuzzy Graphs – based on fuzzy points

Page 13: Fuzzy Logic Ppt

FUZZY LOGIC VS. NEURAL NETWORKS

How does a Neural Network work?

Both model the human brain.

Fuzzy Logic

Neural Networks

Both used to create behavioral

systems.

Page 14: Fuzzy Logic Ppt

FUZZY OPERATIONS

A B

A ∧ B A ∨ B ¬A

Page 15: Fuzzy Logic Ppt

CONTROLLER STRUCTURE

FuzzificationScales and maps input variables to fuzzy sets

Inference MechanismApproximate reasoningDeduces the control action

DefuzzificationConvert fuzzy output values to control signals

Page 16: Fuzzy Logic Ppt

SIMPLE FUZZY CONTROLLER

Page 17: Fuzzy Logic Ppt

FUZZY LOGIC IN CONTROL SYSTEMS

Fuzzy Logic provides a more efficient and

resourceful way to solve Control Systems.

Some Examples

Temperature Controller

Anti – Lock Break System ( ABS )

Page 18: Fuzzy Logic Ppt

SIMPLE TEMPARTURE CONTROL

Fuzzy based Temperature controller

Page 19: Fuzzy Logic Ppt

RULE BASE

Air TemperatureSet cold {50, 0, 0}Set cool {65, 55, 45}Set just right {70, 65, 60}Set warm {85, 75, 65}Set hot {∞, 90, 80}

Fan Speed

o Set stop {0, 0, 0}o Set slow {50, 30, 10}o Set medium {60, 50, 40}o Set fast {90, 70, 50}o Set blast {∞, 100, 80}

Page 20: Fuzzy Logic Ppt

RULES

Air Conditioning Controller Example:

IF Cold then StopIf Cool then SlowIf OK then MediumIf Warm then FastIF Hot then Blast

Page 21: Fuzzy Logic Ppt

FUZZY AIR CONDITIONER

Stop

Slow

Medium

Fast

B

last

0

10

20

30

40

50

60

70

80

90

100

0

1

45 50 55 60 65 70 75 80

0

Cold

Cool

85 90

Just

Rig

ht

W

arm

Hot

if Coldthen Stop

IF CoolthenSlow

If Just Rightthen

Medium

If WarmthenFast

If HotthenBlast

Page 22: Fuzzy Logic Ppt

MAPPING INPUTS TO OUTPUTS1

Stop

Slow

Medium

Fast

B

last

0

10

20

30

40

50

60

70

80

90

100

0

1

45 50 55 60 65 70 75 80

0

Cold

Cool

85 90

Just

Rig

ht

W

arm

Hot

t

Page 23: Fuzzy Logic Ppt

TEMPERATURE CONTROLLERThe problem

Change the speed of a heater fan, based off the room temperature and humidity.

A temperature control system has four settingsCold, Cool, Warm, and Hot

Humidity can be defined by:Low, Medium, and High

Using this we can define the fuzzy set.

Page 24: Fuzzy Logic Ppt

BENEFITS OF USING FUZZY LOGIC

Page 25: Fuzzy Logic Ppt

ANTI LOCK BREAK SYSTEM ( ABS )Nonlinear and dynamic in natureInputs for Intel Fuzzy ABS are derived from

Brake4 WDFeedbackWheel speedIgnition

Outputs PulsewidthError lamp

Page 26: Fuzzy Logic Ppt

FUZZY LOGIC IN OTHER FIELDS

Business

Hybrid Modeling

Expert Systems

Page 27: Fuzzy Logic Ppt

FUZZY LOGIC USING MATLAB

Page 28: Fuzzy Logic Ppt

PRIMARY GUI Tools

We can use five primary GUI tools for building, editing, and observing fuzzy inference systems in the toolbox

Fuzzy Inference System (FIS) EditorMembership Function EditorRule EditorRule ViewerSurface Viewer

Page 29: Fuzzy Logic Ppt

PRIMARY GUI TOOLS

Page 30: Fuzzy Logic Ppt

User Interface Layout: Getting Started

Page 31: Fuzzy Logic Ppt

User Interface Layout: FIS Editor

Page 32: Fuzzy Logic Ppt

UI Layout: MF Editor - Service

Page 33: Fuzzy Logic Ppt

UI LAYOUT: MF EDITOR -FOOD

Page 34: Fuzzy Logic Ppt

UI Layout: MF Editor - Tip

Page 35: Fuzzy Logic Ppt

User Interface Layout: Rule Editor

Page 36: Fuzzy Logic Ppt

User Interface Layout: Rule Viewer

Page 37: Fuzzy Logic Ppt

User Interface Layout: Surface Viewer

Page 38: Fuzzy Logic Ppt

CONCLUSION

Fuzzy logic provides an alternative way to

represent linguistic and subjective attributes of

the real world in computing.

It is able to be applied to control systems and

other applications in order to improve the

efficiency and simplicity of the design process.

Page 39: Fuzzy Logic Ppt