Professional Documents
Culture Documents
Fuzzy Logic - Lógica Difusa
Fuzzy Logic - Lógica Difusa
Fuzzy Logic
Is a method of reasoning that resembles human reasoning. This aproach is similar to how humans perform
decision making. And it involves all intermediate possibilities between YES and NO.
Certainly yes
Posibbly yes
Cannot say
Possibly no
Certainly no
Crisp sets are those number arrays that represents the data.
Fuzzification is the process where the input crisp set is transformed into a fuzzy set according to the
membership functions.
Membership functions are made to process the data into information with imprecision and uncertaninty.
Fuzzy sets (1) are the arrays that were transformed from crisp sets.
Inference Engine is the step where the input fuzzy set is reinterpreted to a new fuzzy set, based on the rule
base.
Rule base are rules that sets possible outcomes based on input crisp sets; suppervised by an expert.
Fuzzy sets (2) are the arrays that were transformed after applying rule base.
Defuzzifier is the process were the fuzzy set (2) pass through another membership functions to translate it into a
crisp set.
Spray ("Atomizado")
1) Linguistic variables:
2) Base rules:
IF humidity IS dry THEN increase bomb pressure OR close burner damper OR decrease set point.
IF humidity IS dry THEN increase bomb pressure AND close burner damper OR decrease set point.
IF humidity IS wet THEN decrease bomb pressure OR open burner damper OR increase set point.
IF humidity IS wet THEN decrease bomb pressure AND open burner damper OR increase set point.
3.1) Values:
import numpy as np
import matplotlib.pyplot as plt
###################################################
############################## - Linguistic values
###################################################
dry_membership_degree = [1, 1, 0]
ok_membership_degree = [0, 1, 1, 0]
wet_membership_degree = [0, 1, 1]
###################################################
###################### - Input Membership functions
###################################################
plt.show()