Documente Academic
Documente Profesional
Documente Cultură
(ENG 504)
504)
Lecture 6
/
Email: amhm@zu.edu.eg / amhm162@gmail.com
Webpage: http://www.staff.zu.edu.eg/amhm/
Expert systems
Propositional logic
Predicate logic
2013/2014
Agenda
Expert systems
Propositional logic
Predicate logic
Fuzzy logic
Fuzzy Logic
2013/2014
Fuzzy Logic
2013/2014
Fuzzy Logic
The notion of fuzzy sets was introduced first by Lotfi Zadeh in 1965.
Fuzzy logic operations are based on operations over fuzzy sets.
Fuzzy propositions are no more true or false only, but they have grayness of
truth defined by the fuzzy values in them.
The fuzzy connectives are the same as in propositional logic.
The truth-values of the complex propositions are defined by the fuzzy
membership function.
2013/2014
2013/2014
2013/2014
Set Theory
2013/2014
Some concepts:
Given a set S:={2,3,5,7,11,13}
S1={2,7,13} is a subset of S, expressed as: S1 S
3 belongs to S, expressed as: x S
4 does not belong to S, expressed as: x S
For any set A, the characteristic function of A is defined by:
1, if x A
X A ( x) =
0, if x A
2013/2014
Some concepts:
Given two sets A, B, then
Intersection: A B = {c | c A and c B}
Union: A B = {c | c A or c B}
Difference: A-B= {c | c A and c B}
There are many other operations
Basic notion of measure on sets:
We can apply a certain function to all elements of a set, then each member
has a measure.
: A [0, ]
2013/2014
10
Example:
A={room1,room2,room3,room4}
represents the temperature, then
(room1)=27, (room2)=22, (room3)=29.5, (room4)=37 .
This measure has some characteristics like natural measure, trivial measure,
finite measure,.
Fuzzy Sets
2013/2014
11
S f = {s | s S and s is old }
Thus, Sf is a fuzzy set because the property old is not well defined and
cannot be precisely measured.
That means that if we have a person who is 40 years old, then it is not clear
that this person belongs to the set Sf or not.
Thus, to make the subset Sf well defined, we have to quantify the concept
old.
2013/2014
12
2013/2014
13
The 40-years old person cannot be excluded from the set Sf, nor included
completely.
Notice that:
In classical sets: all subsets and their main set share the same
membership function (0-1 valued).
Each fuzzy subset has its own characteristic membership function
(i.e., many fuzzy subsets can be constructed from the same set)
2013/2014
14
0, if s 0,
S (s) =
f
s
1 e , if s > 0.
2013/2014
15
2013/2014
16
High
low
very high
0.35
0.2
0
Temperature
5
15
20
100
Here we say that a 20-degree temperature is low with membership value 0.2,
and is very low with membership value 0.35.
Such propositions are not valid mathematically!, but it is OK within fuzzy sets.
Dr. A. Helmi Eng. Sys. Design and Analysis (ENG 504)
2013/2014
17
AB
AB
Intersection
Union
Complement
Fuzzy Systems
2013/2014
Fuzzy System
18
Fuzzy System
2013/2014
19
2013/2014
Fuzzification
20
2013/2014
DeFuzzification
21
2013/2014
Fuzzy rules
22
If variable is set Then action.
Examples:
If Temperature is very cold Then stop air conditioner.
If Temperature is normal Then adjust air conditioner.
If Temperature is hot Then start air conditioner.
2013/2014
2013/2014
23
Thanks
2013/2014