Harris Hawks Optimization

Decision Sciences
Introduced by
Ali Asghar Heidari
Year
2019
Type
Nature-inspired metaheuristic algorithm
Family
Swarm Intelligence

What does it do?

Harris Hawks Optimization (HHO) is a population-based metaheuristic introduced by Heidari et al. in 2019.

It is inspired by the cooperative hunting behaviour of Harris's hawks and by the way prey escapes during a pursuit. HHO is intended for continuous optimization problems in which the search landscape is multimodal.

The intuition behind the method

Harris's hawks hunt cooperatively and adjust their approach when the prey tries to escape. HHO models this as a search with two phases. In the first phase, hawks spread out across the search space and perch at different positions to survey it. In the second phase, the hawks pursue the best-known region using attack patterns chosen according to the prey's escape energy. Escape energy is a control quantity that varies over the run; its magnitude determines whether the search explores or exploits, so the balance between the two phases shifts without the user having to set a separate switching rule.

History

HHO was introduced by Ali Asghar Heidari and co-authors in 2019 and published in Future Generation Computer Systems (Heidari et al., 2019). The algorithm is based on observed cooperative hunting and escape behaviour in Harris's hawks (Parabuteo unicinctus).

When to use it

Choose HHO for continuous, bounded optimization problems where a population-based search is acceptable and the objective function has several local optima. It can be tried for continuous hyperparameter search and for engineering design or parameter estimation problems, particularly when the number of variables is not small. Before relying on it, compare it with other population-based methods at an equal evaluation budget on the target problem. Do not choose HHO for problems that are naturally discrete or combinatorial unless you have a suitable mapping from continuous to discrete variables, and avoid it when the evaluation budget is so small that the per-iteration overhead of the pursuit calculations matters. If the problem is smooth and convex, gradient-based methods are usually more appropriate.

Limitations and considerations

  • Each iteration involves more calculations than a simple velocity-based update, so the cost per iteration is higher, which matters when each objective evaluation is cheap.
  • Because the transition from exploration to exploitation depends on the escape-energy behaviour over the iteration budget, a short run may leave too little time for exploitation to refine solutions.
  • No general performance advantage over other metaheuristics is established by the sources used here; results depend on the landscape and should be checked on the target problem.
  • The sources used here do not establish how HHO performs on very high-dimensional problems; test it on the target problem before relying on it at high dimension.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Escape energy is a single control quantity that governs the shift from exploration to exploitation over the run, so the balance between the two phases does not have to be specified separately.
  • The pursuit phase uses several attack patterns, selected by escape energy and a random component, which gives the search more varied moves than a single update rule.
  • Few control settings must be chosen by the user beyond population size and iteration budget, because the escape-energy schedule is built into the update rules.

Applications

  • Image processing: satellite image de-noising using wavelet-based methods with a differential-evolution-assisted HHO variant

How it works

How it works

1

Create an initial population of hawks distributed across the bounded search space, each representing a candidate solution.

2

While escape energy is large in magnitude, hawks reposition across the space, partly at random, to survey it and locate promising regions (exploration).

3

When escape energy changes so that exploitation takes over, hawks switch to one of the attack patterns: soft besiege, hard besiege, or their variants with progressive rapid dives. The pattern is selected according to the escape energy and a random escape-success value. The search is concentrated near the best solution found so far (exploitation).

4

Evaluate the objective function at each hawk's position and update the best solution found so far.

Common pitfalls

  • Running with a very small iteration budget may leave too little time for the search to move from exploration to exploitation, so the final solutions may be poorly refined.
  • Initialising the population in a narrow region of the search space limits exploration from the start, because the perching phase can only survey the area the hawks begin in.
  • Failing to match the bounds to the physical or feasible range of each variable can waste evaluations on infeasible positions and slow convergence.

Frequently asked questions

What is the escape energy in Harris Hawks Optimization and how does it work?

Escape energy represents the prey's energy for escaping. It changes over the course of the run, and its magnitude determines whether hawks explore by perching at varied positions or move to coordinated attack patterns that concentrate the search. The schedule is part of the algorithm's update rules, so the user does not set a separate exploration-exploitation switch.

How does HHO compare to Particle Swarm Optimization?

HHO moves hawks according to escape energy and a set of attack patterns, whereas PSO moves particles according to velocity updates. Which performs better depends on the problem, so the two should be compared on the target objective with a fixed evaluation budget.

Can HHO handle discrete optimization problems?

HHO is designed for continuous variables. For discrete problems, a mapping such as rounding or thresholding can convert continuous positions into discrete values, but solution quality may be lower than with an algorithm designed for discrete search.

What population size should I use for HHO?

The method does not fix a population size. Larger populations give broader coverage at higher cost per iteration, while smaller ones are cheaper but may miss regions. Test a few settings on your problem and compare convergence and final solution quality at equal evaluation budgets.

Related methods

Sources

  1. Heidari, A. A., Mirjalili, S., Faris, H., Aljarah, I., Mafarja, M., & Chen, H. (2019). Harris hawks optimization: Algorithm and applications. Future Generation Computer Systems, 97, 849-872.

    Open DOI reference
  2. BOOK-linguistic-methods-under-fuzzy-information-in-system-safety-and--2022, p. 200