You are on page 1of 1

Tutorial: Fuzzy Logic System – Fuzzy Inference

Given a fuzzy system with the following two rules:


Rule 1: Rule 2:
IF x is A1 IF x is A2
AND y is B1 OR y is B2
THEN z is C1 THEN z is C2

Suppose x0 and y0 are the sensor reading for linguistic input variables x and y and the
following membership functions for fuzzy sets A1, A2, B1, B2, C1 and C2 are given:

x−2 x−3
2 ≤x≤5 3≤x≤6
3 3
µA1(x) = µA2(x) =
8− x 9− x
5<x≤8 6<x≤9
3 3

y−4 y −5
4≤y≤7 5≤y≤8
3 3
µB1(y) = µB2(y) =
10 − y 11 − y
7<y≤10 8<y≤11
3 3

z −1 z −3
1≤z≤4 3≤z≤6
3 3
µC1(z) = 7−z µC2(z) = 9−z
4<z≤7 6<z≤9
3 3

Further assume that at time t1 we obtain the following sensor readings:


x0(t1) = 3 and y0(t1) = 7

From the information given above,


i. Sketch the membership functions A1, A2, B1, B2, C1 and C2 for x, y and z
ii. Determine the final output of the fuzzy system using Mamdani’s style
inference. Show all your calculations

You might also like