3. For a discrete fuzzy control system with the following fuzzy rule-base, both of the representative values of a room temperature 'x' and an outside temperature 'y' are [0, 10, 20, 30, 40, 50] °C, and the representative cooling motor current 'z' is [0, 1.0, 2.0, 3.0] amperes. Use the simplified method of fuzzy inference engine in order to obtain the crisp motor current 'z*'. (Use the "fis" data structure in Matlab or a similar one in Python Libraries)
1) Find the crisp z*, when the room temp. is 30°C, and the outside temp. is 20°C.
2) Find the crisp z*, when the room temp. is 20°C, and the outside temp. is 40°C.
RULE1: IF (x is HIGH [0, 0.1, 0.3, 0.5, 0.7, 1]) AND (y is LOW [1, 0.7, 0.5, 0.3, 0.1, 0]) THEN (z is MEDIUM [z = 2.0 (A)])
RULE2: IF (x is HIGH [0, 0.1, 0.3, 0.5, 0.7, 1]) AND (y is HIGH [0, 0.1, 0.3, 0.5, 0.7, 1]) THEN (z is FAST [z = 4.0 (A)])
RULE3: IF (x is LOW [1, 0.7, 0.5, 0.3, 0.1, 0]) AND (y is LOW [1, 0.7, 0.5, 0.3, 0.1, 0]) THEN (z is STOP [z = 0 (A)])
3. For a discrete fuzzy control system with the following fuzzy rule-base, both of the representative values of a room temperature 'x' and an outside temperature 'y' are [0, 10, 20, 30, 40, 50] °C, and the representative cooling motor current 'z' is [0, 1.0, 2.0, 3.0] amperes. Use the simplified method of fuzzy inference engine in order to obtain the crisp motor current 'z*'. (Use the "fis" data structure in Matlab or a similar one in Python Libraries)
1) Find the crisp z*, when the room temp. is 30°C, and the outside temp. is 20°C.
2) Find the crisp z*, when the room temp. is 20°C, and the outside temp. is 40°C.
RULE1: IF (x is HIGH [0, 0.1, 0.3, 0.5, 0.7, 1]) AND (y is LOW [1, 0.7, 0.5, 0.3, 0.1, 0]) THEN (z is MEDIUM [z = 2.0 (A)])
RULE2: IF (x is HIGH [0, 0.1, 0.3, 0.5, 0.7, 1]) AND (y is HIGH [0, 0.1, 0.3, 0.5, 0.7, 1]) THEN (z is FAST [z = 4.0 (A)])
RULE3: IF (x is LOW [1, 0.7, 0.5, 0.3, 0.1, 0]) AND (y is LOW [1, 0.7, 0.5, 0.3, 0.1, 0]) THEN (z is STOP [z = 0 (A)])