1. Assignment-Fuzzy inference problem (2)
1. Assignment-Fuzzy inference problem (2)
CSE440
Assignment#1
1. Consider the following fuzzy rules.
a) Based on the given rules, list the fuzzy variables and fuzzy values.
𝜇Temperature(low) = 0.0
Moreover,
𝜇Temperature(normal) = 0.5
𝜇Pressure(low) = 0.8
𝜇Pressure(normal) = 0.2
Evaluate the rules using Mamdani style of min-max inference. Draw a neat aggregation
graph for your answer.
Rule 1: If the color is dark and the texture is soft then the fruit is rotten.
Rule 2: If the color is average or the texture is average then the fruit is ripe.
Rule 3: If the color is light and texture is hard then the fruit is seed.
The fuzzy sets for all linguistic variables are given in the following graphs.
4. Regulating water temperature in shower head is one of many fuzzy logic applications. There are
two input variables involved, environment temperature (X) and water level (Y). Both of these inputs
will determine the temperature of the water (Z).
a) Sketch the graph of each fuzzy sets environment temperature (X) and water level (Y).
b) Fuzzify the input if given that the input environment temperature is 25° and water level is 10
litres.
c) Consider a fuzzy inference system given by the following rules:
Rule 1: If environment temperature is cold and water level is low then
water temperature is hot.
Rule 2: If environment temperature is cold or water level is high then
water temperature is medium.
Rule 3: If environment temperature is average or water level is low then
water temperature is cold.
Rule 4: If environment temperature is hot and water level is medium then
water temperature is cold.
Evaluate the relevant rules using Mamdani style of max-min inference. The fuzzy set for
water temperature (Z) is given in the following graph. Show the aggregation in the graph.
d) Use centroid defuzzification method to determine the crisp output value for the water
temperature.
5. Given the following rules, show the fuzzy inferences for all the rules and the aggregation
if temperature is 65 and pressure is 30 and calculate the COG.
IF temperature is normal
OR pressure is low
THEN velocity is medium
IF temperature is normal
AND pressure is normal
THEN velocity is low
IF temperature is high
THEN velocity is high