Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Computational Logic
Ning Chen(ningchen74@yahoo.com)
1
Universidade Nova de Lisboa
What is Matlab?
2
Universidade Nova de Lisboa
3
Universidade Nova de Lisboa
Membership Function
4
Universidade Nova de Lisboa
5
Universidade Nova de Lisboa
6
Universidade Nova de Lisboa
Fuzzy Rules
z Fuzzy sets and fuzzy operators are the subjects and verbs of
fuzzy logic. These if-then rule statements are used to formulate
the conditional statements that comprise fuzzy logic.
z A single fuzzy if-then rule assumes the form: if x is A then y is B,
where A and B are linguistic values defined by fuzzy sets on the
ranges (universes of discourse) X and Y, respectively. The if-part
of the rule “x is A” is called the condition or premise, while the
then-part of the rule “y is B” is called the consequent or
conclusion.
z More examples
z If service is good then tip is average
z if sky is gray and wind is strong then barometer is falling.
z if temperature is cold then hot water valve is open and cold water
valve is shut
8
Universidade Nova de Lisboa
9
Universidade Nova de Lisboa
10
Universidade Nova de Lisboa
11
Universidade Nova de Lisboa
12
Universidade Nova de Lisboa
13
Universidade Nova de Lisboa
14
Universidade Nova de Lisboa
Step 5: Defuzzify
15
Universidade Nova de Lisboa
16
Universidade Nova de Lisboa
z The FIS Editor: handle the high-level issues for the system: How
many input and output variables? What are their names?
z The Membership Function Editor: define the shapes of all the
membership functions associated with each variable.
z The Rule Editor: edit the list of rules that defines the behavior of
the system.
z The Rule Viewer: display the fuzzy inference diagram. It can
show (for example) which rules are active, or how individual
membership function shapes are influencing the results.
z The Surface Viewer: display the dependency of one of the
outputs on any one or two of the inputs—that is, it generates and
plots an output surface map for the system.
17
Universidade Nova de Lisboa
18
Universidade Nova de Lisboa
19
Universidade Nova de Lisboa
20
Universidade Nova de Lisboa