TRADITIONAL REPRESENTATION OF LOGIC
Slow
Fast
Speed = 0
Speed = 1
bool speed; get the speed if ( speed == 0) {
|
//
|
speed is slow
|
|
}
|
|
else {
|
|
//
|
speed is fast
|
|
}
|
FUZZY LOGIC REPRESENTATION
Slowest
[ 0.0 – 0.25 ]
Slow
[ 0.25 – 0.50 ]
Fast
[ 0.50 – 0.75 ]
Fastest
[ 0.75 – 1.00 ]
FUZZY LOGIC REPRESENTATION CONT.
Slowest
Slow
float speed; get the speed
Fast
Fastest
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
|
|
}
|
Introduction
• Fuzzy Logic is used to provide mathematical rules and functions which permitted natural language queries.
• Fuzzy logic provides a means of calculating intermediate values between
absolute true and absolute false with resulting values ranging between 0.0 and
1.0.
• With fuzzy logic, it is possible to calculate the degree to which an item is a member.
|
•
|
Fuzzy logic deals with the degree of membership.
|
|
•
|
Fuzzy logic has been applied in many areas; it is
|
|
used in a variety of ways.
|
|
•
|
Household appliances such as dishwashers and washing machines use fuzzy logic to determine
|
|
the optimal amount of soap and the correct water
|
|
pressure for dishes and clothes.
|
|
•
|
Fuzzy logic is even used in self-focusing cameras.
|
|
•
|
Expert systems, such as decision-support and
|
meteorological systems, use fuzzy logic.
• For this reason, Fuzzy Logic has been compared to the human decision making
process.
• Conventional Logic (and computing systems for that matter) are by nature
related to the Boolean Conditions
(true/false).
• What Fuzzy Logic attempts to encompass is that area where a partial truth can be
established.
• In fuzzy set theory, although it is still possible to have an exact yes/no answer as to set membership, elements can now be partial members in a set.
Fuzzy Sets
• Fuzzy logic is a superset of Boolean (conventional) logic that handles the concept of partial truth, which is truth values between "completely true" and
"completely false". • This section of the fuzzy logic describes:
– Basic Definition of Fuzzy Set
– Similarities and Differences of Fuzzy Sets with Traditional Set Theory
– Examples Illustrating the Concepts of Fuzzy Sets
– Logical Operation on Fuzzy Sets – Hedging
•Notice in the figure that people whose ages are >= zero and <= 20 are complete members of the young set (that is, they have a membership value of one). •Also note that people whose ages are > 20 and < 30 are partial members of the young set. •For example, a person who is 25 would be young to the degree of 0.5. •Finally people whose ages are >= 30 are non-members of the young set.
Logical Operations on Fuzzy Sets
• Negation • Intersection • Union
Negation
the red line is a fuzzy set.
•
• To negate this fuzzy set, subtract the membership value in the fuzzy set from 1.
• For example, the membership value at 5 is one. In the negation, the membership value at 5 would be (1- 1=0) and if the membership value is 0.4 the membership value would be
(1-0.4=0.6).
Intersection
• In this figure, the red and green lines are fuzzy sets.
• To find the intersection of these sets take the minimum of the two membership values at each point on the x-axis.
• For example, in the figure the red fuzzy set has a membership of ZERO when x = 4 and the green fuzzy set has a membership of ONE when x = 4.
• The intersection would have a membership value of ZERO when x = 4 because the minimum of zero and one is zero.
Union
• To find the union of these sets take the maximum of the two membership values at each point on the x-axis.
• For example, in the figure the red fuzzy set has a membership of ZERO when x = 4
and the green fuzzy set has a membership of ONE when x = 4. The union would have
a membership value of ONE when x = 4
because the maximum of zero and one is One.
Limitation
|
•
|
Fuzzy logic cannot be used for unsolvable problems.
|
|
•
|
An obvious drawback to fuzzy logic is that it's not always
|
|
accurate. The results are perceived as a guess, so it may not be as widely trusted as an answer from classical logic. Certainly, though, some chances need to be taken. How else can dressmakers succeed in business by assuming
|
|
the average height for women is 5'6"?
|
|
•
|
Fuzzy logic can be easily confused with probability theory, and the terms used interchangeably. While they are similar concepts, they do not say the same things.
|
|
•
|
Probability is the likelihood that something is true. Fuzzy
|
logic is the degree to which something is true (or within a
membership set).
• Classical logicians argue that fuzzy logic is unnecessary. Anything that fuzzy logic is used for can be easily explained using classic logic. For example, True and False
are discrete. Fuzzy logic claims that there
can be a gray area between true and false.
• Fuzzy logic has traditionally low respectability. That is probably its biggest
problem. While fuzzy logic may be the
superset of all logic, people don't believe it. Classical logic is much easier to agree with because it delivers precision.
Muito mais do que documentos
Descubra tudo o que o Scribd tem a oferecer, incluindo livros e audiolivros de grandes editoras.
Cancele quando quiser.