0% found this document useful (0 votes)
6 views

Fuzzy

Fuzzy logic is a reasoning framework that allows for degrees of truth, contrasting with traditional Boolean logic's binary true/false approach. It is widely applied in various fields such as aerospace, automotive, business, and electronics for tasks like temperature control and decision-making support. The document outlines the process of fuzzy logic, including defining inputs and outputs, fuzzification, rule evaluation, and provides an example of estimating a tip based on food and service quality.

Uploaded by

Farah Reefa
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

Fuzzy

Fuzzy logic is a reasoning framework that allows for degrees of truth, contrasting with traditional Boolean logic's binary true/false approach. It is widely applied in various fields such as aerospace, automotive, business, and electronics for tasks like temperature control and decision-making support. The document outlines the process of fuzzy logic, including defining inputs and outputs, fuzzification, rule evaluation, and provides an example of estimating a tip based on food and service quality.

Uploaded by

Farah Reefa
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 32

Fuzzy logic

Fuzzy logic

Fuzzy logic is a type of logic that deals with degrees of truth,


rather than the traditional "true" or "false" (0 or 1) of Boolean
logic.
■ Boolean logic uses sharp distinctions. It forces us
to draw lines between members of a class and
non- members. For instance, we may say, Tom is
tall because his height is 181 cm. If we drew a line
at 180 cm, we would find that David, who is 179
cm, is small. Is David really a small man or we
have just drawn an arbitrary line in the sand?
■ Fuzzy logic reflects how people think. It attempts
to model our sense of words, our decision making
and our common sense. As a result, it is leading to
new, more human, intelligent systems.
Operations of fuzzy sets
The classical set theory developed in the late 19th
century by Georg Cantor describes how crisp sets can
interact. These interactions are called operations.
Fuzzy logic Control:

Fuzzy logic is applied with great success in various control


application. Almost all the consumer products have fuzzy
control. Some of the examples include controlling your
room temperature with the help of air-conditioner,
anti-braking system used in vehicles, control on traffic
lights, washing machines, large economic systems, etc.
Fuzzy Logic Applications
• Aerospace
– Altitude control of spacecraft, satellite altitude control, flow
and mixture regulation in aircraft deiceing vehicles.
• Automotive
– Trainable fuzzy systems for idle speed control, shift
scheduling method for automatic transmission, intelligent
highway systems, traffic control, improving efficiency of
automatic transmissions
Fuzzy Logic Applications (Cont.)
• Business
– Decision-making support systems, personnel evaluation in a
large company
• Chemical Industry
– Control of pH, drying, chemical distillation processes, polymer
extrusion production, a coke oven gas cooling plant
Fuzzy Logic Applications (Cont.)
• Defense
– Underwater target recognition, automatic target recognition
of thermal infrared images, naval decision support aids,
control of a hypervelocity interceptor, fuzzy set modeling of
NATO decision making.
• Electronics
– Control of automatic exposure in video cameras, humidity in a
clean room, air conditioning systems, washing machine
timing, microwave ovens, vacuum cleaners.
Step 1: Define Inputs and Output
Inputs:

1. Food Quality – range: 0 (very bad) to 10 (very good)

2. Service Quality – range: 0 (very bad) to 10 (very good)

Output:

● Tip (%) – range: 0% to 25%

This is the real-world setup: two things affect the tip — food and service. You rate them
(like 7/10), and the system tells you how much to tip.
Step 2: Fuzzification
Example Input:

Let’s assume:

● Food = 7

● Service = 9

We now calculate how much each input belongs to each fuzzy set using simple triangle math.
Food = 7

Let’s look at the triangles for food:

● Bad → Ends at 5 → So 7 = 0

● Decent:

○ Triangle from 3 to 7, peak at 5

○ Use formula:
If x ≥ 5 → slope down:
Decent=(7−x)/7−5)=(7-7)/(7-5)=0
● Good:

○ Triangle from 5 to 10, peak at 10

○ Use formula:
Good=(x−5)/(10−5)=(7−5)/(10-5)=0.4

So:

● Bad = 0

● Decent = 0

● Good = 0.4
Service = 9

Now same logic for service:

● Poor → Ends at 5 → 0

● Average → Ends at 7 → 0

● Excellent:

○ Triangle from 5 to 10, peak at 10

○ Use formula:
Excellent=(9−5)/(10−5)=0.8

So:

● Poor = 0

● Average = 0

● Excellent = 0.8
Step 3: Define Fuzzy Rules
Step 4: Rule Evaluation (Inference)
We now apply the fuzzy rules using fuzzy logic (AND = min, OR = max):

Rule 1: (service is poor OR food is bad)

● Service poor = 0

● Food bad = 0
→ Max(0, 0) = 0 → So tip is low = 0

Rule 2: (service is average)

● Service average = 0 → So tip is medium = 0 [here, tip is medium = Service average]

Rule 3: (service is excellent AND food is good)

● Service excellent = 0.8

● Food good = 0.4


→ Min(0.8, 0.4) = 0.4 → So tip is high = 0.4
Result

Estimated Tip≈Peak×Firing Strength =22×0.4=8.8

Normalize the Result=Final Tip=8.8/0.4=22%


Reference:
1.Internet

You might also like