Research Article
Congestion Control and Prediction Schemes Using Fuzzy Logic System with Adaptive Membership Function in Wireless Sensor Networks
Algorithm 2
Membership adjustment using BAT.
Objective function f(x) = | Initial population size | Initial maximum iterations , pulse rate , loudness , velocity vi. | Define pulse frequency | while () | Generate new solutions by adjusting | Update vi and | if (rand() → ) | Select a solution and generate a local solution | end if | Generate a new solution with a random flying pattern | if (rand() < & < ) | Accept new solution | Increase and decrease | end if | Rank the bats and find the optimal using ED | end while |
|