Nt1310 Unit 5 Lab Essay

90 Words1 Pages
{Objective Function} f$(X)$, X= (x1, x2, x3, x4 $...$xd) \Generate the initial population of n fireflies, Xi, i = 1, 2, $...$, n \Light intensity Ii at Xi is determined by f (Xi) \Define the light absorption coefficient $gamma$ \While (t $<$Ij) \ hspace{2cm} Move firefly i towards j; \ hspace{1cm}End if \ hspace{1cm}Vary attractiveness with distance i via exp[- $ gamma r^{2}$] \ hspace{1cm}End for j \ hspace{1cm}End for i \ hspace{1cm}Rank the fireflies and find the current global best solution g* \End while \Post-process the results \

More about Nt1310 Unit 5 Lab Essay