Challenge: Fuzzy Inference System
Swipe to start coding
You are building a mini fuzzy inference system that determines fan speed based on temperature and humidity.
Your goal is to:
- fuzzify crisp inputs;
- evaluate fuzzy rules using logical operators;
- aggregate rule outputs;
- compute a final crisp value using centroid defuzzification.
Instructions
-
Use the provided membership functions for:
- temperature;
- humidity;
- fan speed.
-
Fuzzify the given inputs:
temperature = 28;humidity = 65.
-
Evaluate the following fuzzy rules:
- Rule 1: IF temperature is Hot OR humidity is Humid THEN fan speed is High;
- Rule 2: IF temperature is Cool AND humidity is Dry THEN fan speed is Low.
-
Aggregate the rule outputs over the range
0to80. -
Compute the final fan speed using centroid defuzzification.
-
Store the result in the variable
fan_speed.
Solution
Thanks for your feedback!
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 6.67
Challenge: Fuzzy Inference System
Swipe to show menu
Swipe to start coding
You are building a mini fuzzy inference system that determines fan speed based on temperature and humidity.
Your goal is to:
- fuzzify crisp inputs;
- evaluate fuzzy rules using logical operators;
- aggregate rule outputs;
- compute a final crisp value using centroid defuzzification.
Instructions
-
Use the provided membership functions for:
- temperature;
- humidity;
- fan speed.
-
Fuzzify the given inputs:
temperature = 28;humidity = 65.
-
Evaluate the following fuzzy rules:
- Rule 1: IF temperature is Hot OR humidity is Humid THEN fan speed is High;
- Rule 2: IF temperature is Cool AND humidity is Dry THEN fan speed is Low.
-
Aggregate the rule outputs over the range
0to80. -
Compute the final fan speed using centroid defuzzification.
-
Store the result in the variable
fan_speed.
Solution
Thanks for your feedback!
single