Blog articleMethodology & analyticsEngineering & technology

The grey wolf optimiser in a thesis: how it works, its known bias, and how to test it on economic emission dispatch

The grey wolf optimiser is a popular nature-inspired algorithm in engineering theses. This article explains its update rules in plain optimisation terms, the origin bias reported in the literature, and how to benchmark it fairly on combined economic emission dispatch.

What you will learn

  • Explain the update rules of the original grey wolf optimiser and the role of the parameter a
  • Distinguish the original algorithm from chaotic and hybrid variants
  • Explain the origin bias reported for GWO and how to test for it
  • Formulate combined economic emission dispatch and judge when a metaheuristic is needed
  • Design a fair comparison with baselines, equal budgets, repeated runs and nonparametric tests

What you will unlearn

  • The wolf hierarchy explains why GWO works.The metaphor labels the three best solutions; performance depends on the update rules and the problem, not on wolf biology.
  • Good results on classic test functions show that GWO is a strong optimiser.GWO is biased towards the origin, where many classic functions have their optimum, so shifted problems are needed.
  • Economic dispatch always needs a metaheuristic.Smooth convex dispatch is solved exactly by classical methods; metaheuristics are for non-convex formulations.
  • A chaotic GWO and the original GWO are the same algorithm.Chaotic, random-walk and hybrid versions are distinct variants that must be named and cited.

Skills you will practise

  • Metaheuristic description
  • Problem formulation for power dispatch
  • Constraint handling
  • Benchmark design
  • Nonparametric comparison of algorithms
  • Reporting stochastic results

Why a thesis needs more than "GWO works well"

The grey wolf optimiser (GWO) is a population-based metaheuristic proposed by Mirjalili et al. (2014). It borrows the vocabulary of a wolf pack, with leaders and followers that encircle and attack prey, to describe how candidate solutions move through a search space. It has no gradient, few parameters and a short implementation, which helps explain why it has been applied so widely: a review of work published between 2019 and 2022 alone covered more than 200 articles, mostly in computer science and engineering (Makhadmeh et al., 2023).

This rebuilt version keeps the description but adds what an examiner will ask about: what the update rules actually do, a known defect in the algorithm, and how to test it fairly on a power system problem. For the general method of choosing and benchmarking a metaheuristic, see the companion article on elephant herding optimisation.

The wolf-pack metaphor

GWO ranks the pack into four levels. Alpha wolves lead, beta wolves assist and are next in line, delta wolves act as scouts, sentinels, hunters and caretakers, and omega wolves follow. Hunting is modelled in phases: tracking and approaching the prey, encircling and harassing it until it stops moving, then attacking (Mirjalili et al., 2014).

Pyramid of grey wolf hierarchy: alpha, beta, delta and omega
Figure 1. The social hierarchy used as the metaphor for GWO (after Mirjalili et al., 2014).

Treat this as a metaphor, not as biology. Wolf researchers have cautioned that a rigid dominance ranking mostly reflects studies of unrelated wolves kept in captivity, whereas wild packs are mainly family groups led by the breeding pair. Nothing in the algorithm depends on the biology being right, which is exactly why the metaphor adds little to a thesis. Critics of metaphor-based metaheuristics argue that many such algorithms are familiar search operators described in new words (Tzanetos & Dounias, 2021; Aranha et al., 2022), so describe GWO in optimisation terms: what moves, towards what, and with how much randomness.

How the original algorithm updates its solutions

Each wolf is a candidate solution. After evaluating the population, the three best solutions are labelled alpha, beta and delta. Every wolf then computes three provisional moves, one towards each leader, and takes their average as its new position (Mirjalili et al., 2014). For the move towards a leader at position Xp, the distance is D = |C·Xp − X| and the provisional position is Xp − A·D, where A = 2a·r1 − a and C = 2r2, with r1 and r2 random in [0, 1].

The parameter a falls linearly from 2 to 0 over the run. While |A| is larger than 1, wolves may be pushed away from a leader, which encourages exploration; as a shrinks, |A| falls below 1 and the population converges on the region around the three leaders, which is exploitation. Apart from population size and iteration budget, the original algorithm has no parameters to tune.

Diagram of a wolf position updated from alpha, beta and delta wolves around the prey
Figure 2. Moving towards the prey: positions updated from the alpha, beta and delta estimates (after Niu et al., 2019).
  1. 1Initialise wolves at random within the bounds
  2. 2Evaluate fitness; label the best three alpha, beta, delta
  3. 3Update a, A and C
  4. 4Move each wolf to the average of its moves towards alpha, beta and delta
  5. 5Repeat until the evaluation budget is used; return alpha
Figure 3. Main loop of the original grey wolf optimiser.

An eight-step "working process" with a chaotic map, a chaotic number update and the worst wolf replaced by the best, describes a chaotic GWO variant rather than the original. Variants of this kind (chaotic maps, random walks, mutation operators, hybrids with other optimisers) are catalogued in several reviews (Faris et al., 2018; Dada et al., 2022; Makhadmeh et al., 2023). If you use one, name it precisely and cite its source.

A known defect: bias towards the origin

Niu et al. (2019) reported a defect in GWO, traced it to the structure of the update rules, suggested that other algorithms may share it, and proposed a test to detect it. The practical issue is that GWO performs particularly well when the optimum lies at the origin of the coordinate system, which is where many classic test functions such as the sphere function place it, and less well when the same function is shifted.

This matters because the evidence for many metaheuristics comes from exactly those functions. Kudela (2022) showed more generally that several recently published methods contained a centre-bias operator that let them find optima at the centre of the feasible set with ease, and that most of them lost their advantage once the problems were shifted. Kudela did not test GWO, but the lesson transfers: any claim that GWO beats another method should rest on shifted and rotated problems, not on unshifted classic functions.

Combined economic emission dispatch: what the problem is

Economic dispatch decides how much power each committed generating unit should produce to meet demand at least fuel cost. Fuel cost is usually modelled as a quadratic function of each unit's output. Combined economic emission dispatch adds a second objective, the emissions (for example of nitrogen oxides) produced by the same schedule. The two objectives conflict, because the cheapest units are not always the cleanest.

  • Objectives. Total fuel cost and total emissions, each a function of every unit's output.
  • Combining them. Either weight emissions by a price penalty factor and minimise one combined cost, or treat the problem as bi-objective and approximate the Pareto front of trade-offs.
  • Constraints. Generation must equal demand plus transmission losses (power balance), and each unit must stay between its minimum and maximum output; ramp-rate limits and prohibited operating zones are often added.
  • Non-smoothness. Valve-point effects add a rippling term to the cost curve, making it non-convex and non-differentiable.

The last point decides whether a metaheuristic is needed at all. With smooth quadratic costs and simple limits, dispatch is a convex problem that classical methods such as lambda iteration or quadratic programming solve exactly and quickly. Metaheuristics become reasonable when valve-point effects, prohibited zones or multiple fuels make the problem non-convex. GWO and hybrid GWO methods have been applied to economic load dispatch with such features (Pradhan et al., 2016; Jayabarathi et al., 2016), and reviews list power and energy systems among its main application areas (Faris et al., 2018; Dada et al., 2022).

Testing GWO fairly on dispatch problems

The no-free-lunch theorems show that, averaged over all problems, no optimiser outperforms any other (Wolpert & Macready, 1997). The question for a thesis is therefore not whether GWO is good, but whether it suits your dispatch formulation better than the alternatives. Four practices make the answer credible.

  1. Include strong baselines. Differential evolution and particle swarm optimisation, and an exact method on any convex version of the problem, so the size of any advantage is visible.
  2. Use problems that cannot be gamed. Shifted and rotated benchmark suites such as COCO (Hansen et al., 2016), a shift test for origin bias (Niu et al., 2019; Kudela, 2022), and standard dispatch test systems of several sizes.
  3. Equalise effort. Give every algorithm the same number of objective function evaluations and the same tuning effort, and handle constraints the same way for all of them.
  4. Run enough repetitions and test properly. Many independent runs per instance, with nonparametric tests such as Wilcoxon or Friedman with post hoc procedures (Derrac et al., 2011); the numbers of algorithms, problems and runs all affect what can be concluded (Veček et al., 2017).

Worked example: planning a GWO dispatch study (illustrative)

Illustrative case. A doctoral researcher in electrical engineering wants to study CEED with valve-point effects and transmission losses on test systems of 6, 10 and 40 units.

  1. Formulate. Fuel cost with valve-point terms, quadratic emissions, power balance with losses, unit limits and ramp limits. Decide between a price penalty factor and a Pareto front, and justify the choice.
  2. Check the easy case. Solve the smooth version exactly to obtain a reference optimum for validation.
  3. Choose methods. Original GWO, one published variant, differential evolution and particle swarm optimisation, all with the same penalty or repair method for the balance constraint.
  4. Screen for bias. Run all methods on shifted and unshifted benchmark functions before the dispatch runs.
  5. Run and analyse. Thirty independent runs per method per system, equal evaluation budgets, median and spread of cost and emissions, constraint violation, Friedman test with post hoc comparisons.
  6. Report honestly. If differential evolution matches GWO, say so; the contribution may lie in the formulation or the constraint handling rather than the optimiser.

What to report, and common mistakes

Table 1. What to report when using GWO for dispatch problems
ItemWhat to report
AlgorithmOriginal GWO or a named variant, with update rules, population size and budget
ProblemObjectives, constraints, test systems and data sources, including valve-point and loss models
Constraint handlingPenalty, repair or feasibility rules, identical for all methods
BaselinesEstablished methods and, where possible, an exact solution of a convex case
Bias checksResults on shifted versus unshifted problems
ResultsMedian and spread over independent runs, feasibility rate, convergence curves
StatisticsTests used, with corrections for multiple comparisons (Derrac et al., 2011)
  • Presenting the wolf hierarchy as an explanation of performance.
  • Describing a chaotic or hybrid variant as "GWO" without naming it.
  • Testing only on unshifted classic functions with optima at the origin (Niu et al., 2019).
  • Applying a metaheuristic to a smooth convex dispatch problem that classical methods solve exactly.
  • Reporting the best run instead of the distribution of results over many runs.
  • Claiming novelty for a new metaphor rather than a new mechanism (Aranha et al., 2022).

Further directions, such as placing and sizing active power filters in radial distribution systems and combining GWO with adaptive neuro-fuzzy inference systems, are legitimate topics, but they call for the same fair benchmarking. For related explainers, see a critical review of cuckoo search, social spider optimisation and using ANOVA to compare algorithms.

Key takeaways

Your next step

Want to apply this to your own study?

  1. 1Tell us your topic, data and deadline
  2. 2A statistician reviews your work with you
  3. 3You get a plan and a quote
Quantitative analysis

References

  1. Aranha, C., Camacho Villalón, C. L., Campelo, F., Dorigo, M., Ruiz, R., Sevaux, M., Sörensen, K., & Stützle, T. (2022). Metaphor-based metaheuristics, a call for action: The elephant in the room. Swarm Intelligence, 16, 1–6. https://doi.org/10.1007/s11721-021-00202-9
  2. Dada, E. G., Joseph, S., Oyewola, D., Fadele, A., Chiroma, H., & Abdulhamid, S. M. (2022). Application of grey wolf optimization algorithm: Recent trends, issues, and possible horizons. Gazi University Journal of Science, 35(2), 485–504. https://doi.org/10.35378/gujs.820885
  3. Derrac, J., García, S., Molina, D., & Herrera, F. (2011). A practical tutorial on the use of nonparametric statistical tests as a methodology for comparing evolutionary and swarm intelligence algorithms. Swarm and Evolutionary Computation, 1(1), 3–18. https://doi.org/10.1016/j.swevo.2011.02.002
  4. Faris, H., Aljarah, I., Al-Betar, M. A., & Mirjalili, S. (2018). Grey wolf optimizer: A review of recent variants and applications. Neural Computing and Applications, 30(2), 413–435. https://doi.org/10.1007/s00521-017-3272-5
  5. Hansen, N., Auger, A., Mersmann, O., Tušar, T., & Brockhoff, D. (2016). COCO: A platform for comparing continuous optimizers in a black-box setting (arXiv:1603.08785). arXiv. https://arxiv.org/abs/1603.08785
  6. Jayabarathi, T., Raghunathan, T., Adarsh, B. R., & Suganthan, P. N. (2016). Economic dispatch using hybrid grey wolf optimizer. Energy, 111, 630–641. https://doi.org/10.1016/j.energy.2016.05.105
  7. Kudela, J. (2022). A critical problem in benchmarking and analysis of evolutionary computation methods. Nature Machine Intelligence, 4, 1238–1245. https://doi.org/10.1038/s42256-022-00579-0
  8. Makhadmeh, S. N., Al-Betar, M. A., Doush, I. A., Awadallah, M. A., Kassaymeh, S., Mirjalili, S., & Zitar, R. A. (2023). Recent advances in grey wolf optimizer, its versions and applications: Review. IEEE Access. Advance online publication. https://research-repository.griffith.edu.au/items/1c515ae6-c3de-4bba-ae9d-fac9451a8ec8
  9. Mirjalili, S., Mirjalili, S. M., & Lewis, A. (2014). Grey wolf optimizer. Advances in Engineering Software, 69, 46–61. https://doi.org/10.1016/j.advengsoft.2013.12.007
  10. Niu, P., Niu, S., Liu, N., & Chang, L. (2019). The defect of the grey wolf optimization algorithm and its verification method. Knowledge-Based Systems, 171, 37–43. https://doi.org/10.1016/j.knosys.2019.01.018
  11. Pradhan, M., Roy, P. K., & Pal, T. (2016). Grey wolf optimization applied to economic load dispatch problems. International Journal of Electrical Power & Energy Systems, 83, 325–334. https://doi.org/10.1016/j.ijepes.2016.04.034
  12. Tzanetos, A., & Dounias, G. (2021). Nature inspired optimization algorithms or simply variations of metaheuristics? Artificial Intelligence Review, 54, 1841–1862. https://doi.org/10.1007/s10462-020-09893-8
  13. Veček, N., Črepinšek, M., & Mernik, M. (2017). On the influence of the number of algorithms, problems, and independent runs in the comparison of evolutionary algorithms. Applied Soft Computing, 54, 23–45. https://doi.org/10.1016/j.asoc.2017.01.011
  14. Wolpert, D. H., & Macready, W. G. (1997). No free lunch theorems for optimization. IEEE Transactions on Evolutionary Computation, 1(1), 67–82. https://doi.org/10.1109/4235.585893

How to cite this article

Choose your referencing style, then copy. Check your university's or journal's guide for local variations.

PhD Research Lab Academy. (2019, December 12). The grey wolf optimiser in a thesis: how it works, its known bias, and how to test it on economic emission dispatch. PhD Research Lab. https://www.phdassistance.com/blog/dissertation-algorithm-development-tips-for-developing-grey-wolf-optimization-algorithm-where-and-how-it-is-solve-combined-economic-emission-dispatch-problems/

PhD Research Lab Academy. “The Grey Wolf Optimiser in a Thesis: How It Works, Its Known Bias, and How to Test It on Economic Emission Dispatch.” PhD Research Lab, 12 Dec. 2019, www.phdassistance.com/blog/dissertation-algorithm-development-tips-for-developing-grey-wolf-optimization-algorithm-where-and-how-it-is-solve-combined-economic-emission-dispatch-problems. Accessed [access date].

PhD Research Lab Academy (2019) The grey wolf optimiser in a thesis: how it works, its known bias, and how to test it on economic emission dispatch. PhD Research Lab. Available at: https://www.phdassistance.com/blog/dissertation-algorithm-development-tips-for-developing-grey-wolf-optimization-algorithm-where-and-how-it-is-solve-combined-economic-emission-dispatch-problems/ (Accessed: [access date]).

PhD Research Lab Academy. “The Grey Wolf Optimiser in a Thesis: How It Works, Its Known Bias, and How to Test It on Economic Emission Dispatch.” PhD Research Lab. December 12, 2019. https://www.phdassistance.com/blog/dissertation-algorithm-development-tips-for-developing-grey-wolf-optimization-algorithm-where-and-how-it-is-solve-combined-economic-emission-dispatch-problems.

PhD Research Lab Academy, ‘The Grey Wolf Optimiser in a Thesis: How It Works, Its Known Bias, and How to Test It on Economic Emission Dispatch’ (PhD Research Lab, 12 December 2019) <https://www.phdassistance.com/blog/dissertation-algorithm-development-tips-for-developing-grey-wolf-optimization-algorithm-where-and-how-it-is-solve-combined-economic-emission-dispatch-problems> accessed [access date].

PhD Research Lab Academy. The grey wolf optimiser in a thesis: how it works, its known bias, and how to test it on economic emission dispatch [Internet]. PhD Research Lab; 2019 Dec 12 [cited [access date]]. Available from: https://www.phdassistance.com/blog/dissertation-algorithm-development-tips-for-developing-grey-wolf-optimization-algorithm-where-and-how-it-is-solve-combined-economic-emission-dispatch-problems/

PhD Research Lab Academy, “The grey wolf optimiser in a thesis: how it works, its known bias, and how to test it on economic emission dispatch,” PhD Research Lab, Dec. 12, 2019. [Online]. Available: https://www.phdassistance.com/blog/dissertation-algorithm-development-tips-for-developing-grey-wolf-optimization-algorithm-where-and-how-it-is-solve-combined-economic-emission-dispatch-problems. [Accessed: [access date]].

@online{dissertation_algorithm_development_tips_for_developing_grey_wolf_optimization_algorithm_where_and_how_it_is_solve_combined_economic_emission_dispatch_problems_2019,
  author = {{PhD Research Lab Academy}},
  title = {{The grey wolf optimiser in a thesis: how it works, its known bias, and how to test it on economic emission dispatch}},
  organization = {PhD Research Lab},
  date = {2019-12-12},
  url = {https://www.phdassistance.com/blog/dissertation-algorithm-development-tips-for-developing-grey-wolf-optimization-algorithm-where-and-how-it-is-solve-combined-economic-emission-dispatch-problems},
  urldate = {[access date]}
}

This article is for learning. Use it to understand the method and cite the original sources above in your own work; do not copy or submit it as your own.

The grey wolf optimiser in a thesisNeed help applying it to your study?
Quantitative analysis