Research Article
Robustness of the Storage in Cloud Data Centers Based on Simple Swarm Optimization Algorithm
Algorithm 3
Flowchart of the proposed method.
| (1) | for each particle do | | (2) | Initialize particle | | (3) | end For | | (4) | do | | (5) | for each particle do | | (6) | Calculate fitness value of the particle fp | | (7) | Updating particle’s best fitness value so far | | (9) | If fp is better than p_Best | | (10) | set current value as the new p_Best | | (11) | end for | | (12) | Updating population’s best fitness value so far | | (13) | Set g_Best to the best fitness value of all particles | | (14) | for each particle | | (15) | Calculate particle velocity according to equation (1) | | (16) | Update particle position according to equation (2) | | (17) | end for | | (18) | while maximum iterations OR | | (19) | minimum error criteria is not attained |
|