Research Article

Optimized Sizing, Selection, and Economic Analysis of Battery Energy Storage for Grid-Connected Wind-PV Hybrid System

Pseudocode 1

Initialize bat population.
Evaluate the objective function for each bat individual.
Specify loudness , rate of emission and frequency limits ( and ) for emitting pulses.
Generate bat population for battery size using as the maximum boundary limit and evaluate the
objective function for each individual.
Identify the best solution .
while (iteration count < max. iterations)
Vary frequency () and update velocity () and location () using the below equations
if (rand > )
    Generate local solutions around the best solution.
end if
if (rand <   &   < )
    Include newly generated individuals and increase and reduce .
end if
    Prioritize bat individuals based on their loudness (proximity to solution).
end while