Research Article
Automatic Implementation of Fuzzy Reasoning Spiking Neural P Systems for Diagnosing Faults in Complex Power Systems
Pseudocode 3
The fuzzy inference algorithm.
| Input: The fuzzy truth values of the input proposition neurons | | Output: The fuzzy truth value of the output proposition neurons | | 1: Set stop condition: ; | | 2: Set reasoning step: ; | | 3: while () do | | 4: for each input neurons () or proposition neurons () do | | 5: if the condition of fire is satisfied then | | 6: Compute the fuzzy value vector , ; | | 7: if this proposition neurons have a postsynaptic neuron then | | 8: Transmits a spike to the next rule neuron; | | 9: else | | 10: this proposition neurons only accumulates spike values; | | 11: end if | | 12:end if | | 13: end for | | 14: for each rule neurons do | | 15: if the condition of fire is satisfied then | | 16: Compute the fuzzy truth value vector , ; | | 17: Transmits a spike to the next proposition neuron; | | 18: end if | | 19: end for | | 20: ; | | 21: end while |
|