Content deleted Content added
Michaelmalak (talk | contribs) Undid revision 670165165 by 31.56.175.209 (talk) WP:ALSO |
DarkAvenger (talk | contribs) →Algorithm description: Moved evaluation and attractiveness inside of 'if' loop. |
||
Line 25:
'''if''' (<math>I_j>I_i </math>),
move firefly i towards j;
Vary attractiveness with distance r via <math> \exp(-\gamma \; r) </math>;▼
Evaluate new solutions and update light intensity;▼
'''end if'''
▲ Vary attractiveness with distance r via <math> \exp(-\gamma \; r) </math>;
▲ Evaluate new solutions and update light intensity;
'''end for''' j
'''end for''' i
|