Fuzzy logic implementation using python scikit-fuzzy
Example -
Create a fuzzy rule-based system for Washing Machine.
Input Variables - degree_of_dirt and type_of_dirt - (ranging between 1 to 100)
Rules -
- If dirtness_of_clothes is Large and type_of_dirt is Greasy then wash_time is VeryLong
- If dirtness_of_clothes is Medium and type_of_dirt is Greasy then wash_time is Long
- If dirtness_of_clothes is Small and type_of_dirt is Greasy then wash_time is Long
- If dirtness_of_clothes is Large and type_of_dirt is Medium then wash_time is Long
- If dirtness_of_clothes is Medium and type_of_dirt is Medium then wash_time is Medium
- If dirtness_of_clothes is Small and type_of_dirt is Medium then wash_time is Medium
- If dirtness_of_clothes is Large and type_of_dirt is NotGreasy then wash_time is Medium
- If dirtness_of_clothes is Medium and type_of_dirt is NotGreasy then wash_time is Short
- If dirtness_of_clothes is Small and type_of_dirt is NotGreasy then wash_time is VeryShort