| Algorithm 1: The AHALA |
|
Initialize parameters: Population size (), Maximum iterations (), Dimensions (), Upper and lower bounds () Initialize exploration parameters: Frequency of Hill Climbing (), Maximum Hill Climbing Iterations () Set step size parameters: Initial Step Size (), Step size decay factor () Initialize a population of agents () with random positions within the search space Evaluate the fitness of each agent Calculate the Current Optimal Solution For ( = 1 to ) Calculate the value of E by Equation (14) For each search agents If E > 1 then If rand < 0.3 then Update the current Position by Equation (3) else Update the current Position by Equation (7) else If rand < 0.5 then Update the current Position by Equation (9) else Update the current Position by Equation (12) End Evaluate the fitness of all modified population If the current iteration is divisible by : Perform Hill Climbing on top-performing agents: For each selected agent (based on fitness ranking): Initialize step size = α For t = 1 to M: Update agent position using Hill Climbing mechanism by Equation (15) Evaluate the new fitness If new fitness is better, accept the solution Decay the step size by factor β by Equation (16) End Update population with new agent positions Store and track the best global solution End Return: Best global solution , and it’s fitnes value |