Research Article

Maximizing Electric Power Recovery through Advanced Compensation with MPPT Algorithms

Algorithm 1

Optimization algorithm by Harris Hawks.
Inputs: Population size N and maximum number of iterations T
Outputs: Rabbit location and fitness value Initialize random population 𝑋(i = 1, 2,..............., N)
As long as (stopping condition not met) do
Calculate vehicle speed values
Set π‘‹π‘Ÿπ‘Žπ‘π‘π‘–π‘‘ as vehicle location (best location)
End
For (each device( 𝑋𝑖 )) do
Update initial energy E0 and displacement force J β–ΊE0=2rand ()-1, J=2(1-rand ())
Update E using Eq. (3)
If ( β‰₯ ) then                   ►Exploration phase
Update the location vector using Eq. (2)
If ( < ) then β–ΊExploration phase
If (π‘Ÿ β‰₯ 0 5 𝒆𝒕 β‰₯ 0 5 𝐚π₯𝐨𝐫𝐬)             ► gentle siege
Update the location vector using Eq. (5)
If no if (π‘Ÿ β‰₯ 0 5 𝒆𝒕 < 0 5 ) then         ► Soft seat with fast Progressive dives (6)
If not if (π‘Ÿ < 0 5 𝒆𝒕 β‰₯ 0 5 ) then    ► Gentle siege with progressive fast dives updates the location vector using . . (Eq (5))
If not if (π‘Ÿ < 0 5 𝒆𝒕 < 0 5 ) then β–ΊHard seating with progressive fast dives updates the location vector using (Eq (6))
Return π‘Ώπ’“π’‚π’ƒπ’Šπ’•
End.