Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

CS607

Assignment No 2
Solution Fall 2024
Muhammad Hamza
Student ID: BC200413871

Question # 1:
(A)

Create membership functions for each input variable.

For Temperature:

For Humidity:
For Occupation:

(B)

Create membership functions for the output variable.

For AC Power:
Question # 2:

Define a set of fuzzy rules based on the input conditions to determine the
appropriate AC power level.

Answer:

Based on the inputs. The rules are as follow:

1. If Temperature is Low and Humidity is Low and Number of Occupants is


Few then AC Power Level is Low.
2. If Temperature is Medium and Humidity is Medium and Number of
Occupants is Moderate then AC Power Level is Medium.
3. If Temperature is High and Humidity is High and Number of Occupants is
Many then AC Power Level is High.
4. If Temperature is Medium and Humidity is Low and Number of Occupants
is Few then AC Power Level is Medium.
5. If Temperature is High and Humidity is Low and Number of Occupants is
Few then AC Power Level is Medium.
6. If Temperature is Low and Humidity is Medium and Number of Occupants
is Moderate then AC Power Level is Medium.
7. If Temperature is Low and Humidity is High and Number of Occupants is
Many then AC Power Level is High.
8. If Temperature is Medium and Humidity is High and Number of Occupants
is Many then AC Power Level is High.
9. If Temperature is High and Humidity is Medium and Number of Occupants
is Moderate then AC Power Level is Medium.

You might also like