0% found this document useful (0 votes)
17 views

1. Assignment-Fuzzy inference problem (2)

The document outlines a series of fuzzy logic assignments for a CSE440 course, focusing on fuzzy rules, variables, and calculations related to arrival time, velocity, and fruit ripeness. It includes tasks such as determining fuzzy variables, drawing fuzzy graphs, evaluating rules using Mamdani inference, and applying centroid defuzzification methods. Additionally, it discusses applications of fuzzy logic in regulating water temperature and provides specific scenarios for analysis.

Uploaded by

dev.imyuki0
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

1. Assignment-Fuzzy inference problem (2)

The document outlines a series of fuzzy logic assignments for a CSE440 course, focusing on fuzzy rules, variables, and calculations related to arrival time, velocity, and fruit ripeness. It includes tasks such as determining fuzzy variables, drawing fuzzy graphs, evaluating rules using Mamdani inference, and applying centroid defuzzification methods. Additionally, it discusses applications of fuzzy logic in regulating water temperature and provides specific scenarios for analysis.

Uploaded by

dev.imyuki0
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Summer-2024

CSE440
Assignment#1
1. Consider the following fuzzy rules.

Rule 1: If Speed is slow or distance is far then arrival time is late


Rule 2: If Speed is average and distance is average then arrival time is normal
Rule 3: If Speed is fast and distance is short the arrival time is fast

𝜇𝑆𝑝𝑒𝑒𝑑(𝑠𝑙𝑜𝑤) = 0.4 𝜇𝑑𝑖𝑠𝑡𝑎𝑛𝑐𝑒(𝑓𝑎𝑟) = 0.7


Given the membership value for each of the input are as follow.

𝜇𝑆𝑝𝑒𝑒𝑑(𝑎𝑣𝑒𝑟𝑎𝑔𝑒) = 0.6 𝜇𝑑𝑖𝑠𝑡𝑎𝑛𝑐𝑒(𝑎𝑣𝑒𝑟𝑎𝑔𝑒) = 0.2


𝜇𝑠𝑝𝑒𝑒𝑑(𝑓𝑎𝑠𝑡) = 0.1 𝜇𝑑𝑖𝑠𝑡𝑎𝑛𝑐𝑒(𝑠ℎ𝑜𝑟𝑡) = 0.9

a) Based on the given rules, list the fuzzy variables and fuzzy values.

Fuzzy variable Fuzzy values


Speed • Slow
• Average
• Fast
Distance • Far
• Average
• Short
Arrival time • Late
• Normal
• Fast

𝜇𝐴𝑟𝑟𝑖𝑣𝑎𝑙 𝑇𝑖𝑚𝑒(𝑓𝑎𝑠𝑡) = k1(35)


b) Assume the following singleton values.

𝜇𝐴𝑟𝑟𝑖𝑣𝑎𝑙 𝑇𝑖𝑚𝑒(𝑛𝑜𝑟𝑚𝑎𝑙) = k2(65)


𝜇𝐴𝑟𝑟𝑖𝑣𝑎𝑙 𝑇𝑖𝑚𝑒(𝑙𝑎𝑡𝑒) = k3(80)
Calculate the crisp value using weighted average.

c) Based on the following fuzzy sets, draw the fuzzy graphs.

Speed is slow: (0/0, 1/0, 1/40, 0/60) km/h


Speed is average: (0/55, 1/65, 0/80) km/h
Speed is fast: (0/70, 1/80, 1/100, 0/100) km/h
Distance is short: (0/0, 1/0, 1/50, 0/100) km
Distance is average: (0/0, 0/70, 1/120, 0/160) km
Distance is far: (0/150, 1/180, 1/200, 0/200) km

2. Consider the following fuzzy rules:

Rule 1: IF Temperature is normal


OR Pressure is low
THEN Velocity is low
Rule 2’: IF Temperature is normal
AND Pressure is normal
THEN Velocity is medium
Rule 3’: IF Temperature is low
THEN Velocity is low

Based on the above rules, answer the following questions:

a) Determine the fuzzy variables and its values.

Fuzzy variable Fuzzy values


Temperature • Normal
• Low
Pressure • Low
• Normal
Velocity • Low
• Medium

b) Draw the fuzzy graph for the following fuzzy sets.

Temperature Low {0/0, 1/0, 1/20, 0/45}


Normal {0/20, 1/50, 0/80}
High {0/55, 1/70, 1/80,1/100}
Pressure Low {0/0, 1/25, 0/50}
Normal {0/25, 1/50, 0/75}
High {0/50, 1/75, 0/100}

c) Consider fuzzy set of velocity below:


Low = {0/0, 1/25, 0/50}
Medium = {0/25, 1/50, 0/75}
High = {0/50, 1/75, 0/100}

𝜇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.

3. Consider a fuzzy inference system given by the following rules:

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.

Fuzzy sets for linguistic variable Color


Fuzzy sets for linguistic variable Texture

Fuzzy sets for linguistic variable Fruit Ripeness


i. Fuzzify the input if given that the input color is 7 and texture is 6.
ii. Evaluate the relevant rules using Mamdani style of max-min inference. Show the aggregation
in the graph.
iii. Use centroid defuzzification method to determine the crisp output value for the fruit ripeness.

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.

Fuzzy sets for linguistic variable: water temperature

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

FUZZY SETS OF TEMPERATURE


FUZZY SETS OF PRESSURE

FUZZY SETS OF VELOCITY

You might also like