Research Article
Improved Firefly Algorithm: A Novel Method for Optimal Operation of Thermal Generating Units
Algorithm 1
The pseudo code of the proposed IFA method.
Set control parameters to values | Randomly initialize population | Calculate fitness of the whole population | Determine the best solution and the worst solution | Set ; | While | Set ; | Calculate , and | For | For | If | Determine and | | | If | | Else | | End | Determine | | Determine attractiveness β and new solution | | | Calculate fitness function of | End % if | End % for | Compare each old solution and each new solution to keep better one. | Compare these fitness function to choose the best fitness function | Set with the lowest fitness to | End % for | Determine the best solution and the worst solution | End % while |
|