 A common algorithm is

Since the fuzzy system output is a consensus of all of the inputs and all of the rules, fuzzy logic systems can be well behaved when input values are not available or are not trustworthy.Weightings can be optionally added to each rule in the rulebase and weightings can be used to regulate the degree to which a rule affects the output values.These rule weightings can be based upon the priority, reliability or consistency of each rule.