Research Article
An Effective Hybrid Firefly Algorithm with Harmony Search for Global Numerical Optimization
Algorithm 2
Firefly algorithm. FA method.
Begin | Step 1. Initialization. Set ; define ; set step size and at . | Step 2. Evaluate the light intensity I determined by | Step 3. While G < MaxGeneration do | for : NP (all NP fireflies) do | for : NP (NP fireflies) do | if (), | move firefly i towards j; | end if | Update attractiveness; | Update light intensity; | end for j | end for i | ; | Step 4. end while | Step 5. Output the results. | End. |
|