Research Article

Application of the Firefly Algorithm for Solving the Economic Emissions Load Dispatch Problem

Pseudocode 2

Repair procedure for the generator capacity constraints.
Repeat for each firefly 𝑖
If 𝑃 𝐺 𝑖 < 𝑃 𝑖 m i n
 Then 𝑃 𝐺 𝑖 = 𝑃 𝑖 m i n
If 𝑃 𝐺 𝑖 > 𝑃 𝑖 m a x
 Then 𝑃 𝐺 𝑖 = 𝑃 𝑖 m a x
End of Repeat