Animal and swarm-inspired algorithmsVerified

Nutcracker Optimizer

Nutcracker Optimizer (NOA)

Year introduced
2023
Original authors
Mohamed Abdel-Basset; Reda Mohamed; Mohammed Jameel; Mohamed Abouhawwash
Source of inspiration
The nutcracker (Nucifraga)
Search space
Continuous
Optimization types
Hyperparameter Optimization
Applied research in the repository
0

Overview

It imitates how the nutcracker bird collects seeds and caches them in summer and autumn, then retrieves them in winter and spring using spatial memory and several reference landmarks.

Source of inspiration and mechanism

Image illustrating the source of inspiration of the NOA algorithm: the nutcracker bird (Nucifraga)
The nutcracker (Nucifraga)Image: kuhnmi · CC BY 2.0 · Wikimedia Commons

The nutcracker hides thousands of seeds in scattered places and remembers their locations months later using landmarks in its environment, even under snow.

Initialization

Random.

Update mechanism

The strategy is chosen with a probability, then greedy acceptance.

Exploration

Caching in random places and the population mean.

Exploitation

Retrieval around the best through reference points.

Mathematical description

Two strategies: (1) searching for seeds and caching them: exploratory moves around the mean and random places, or exploitative moves around the best. (2) Retrieving the caches: two reference points are generated for each bird, and it moves to the cache through one of them according to its memory.

This algorithm's equations were not included because they have not yet been matched with the original text. See the original reference below.

Computational complexity: O(T\cdot N\cdot (D + C_f))

Flowchart

StartInitialisationRandomEvaluationCompute the objective and find the bestsolutiont ≤ T ?ExplorationCaching in random places and the populationmeanExploitationRetrieval around the best through referencepointsUpdate ruleThe strategy is chosen with a probability,then greedy acceptanceUpdate bestKeep the best solution and set t = t + 1EndReturn the best solutionYesNo

A simplified chart summarising the algorithm phases as described on its card in the lab; it is not the original figure published in the paper.

Pseudocode

Initialize
for t = 1..T:
    if rand < Pa1: foraging & storage strategy (exploration/exploitation)
    else:          cache-search & recovery strategy (two reference points)
    greedy selection
return best

Python implementation

There is currently no tested python implementation of this algorithm in the lab. We did not include untested code so that it is not used as a reference implementation.

Coefficients

ParameterSymbolTypical valueRangeDescription
Pa1
P_{a1}
0.2
Pa2
P_{a2}
0.4

Advantages

A good balance between exploration and exploitation in the paper's studies on CEC.

Limitations

Several probability parameters (Pa1, Pa2, δ).

Use in artificial intelligence

Domains documented in the card: Machine learning, hyperparameter tuning

Continuous optimization and engineering design problems.

Hybridization potential

No hybridization partners recorded in the card.

Applied research from the repository

An aspect that did not appear in the current search results within the repository. This does not mean there is no published research outside it.

Original reference

Mohamed Abdel-Basset; Reda Mohamed; Mohammed Jameel; Mohamed Abouhawwash (2023). Nutcracker optimizer: A novel nature-inspired metaheuristic algorithm for global optimization and engineering design problems. Knowledge-Based Systems, Elsevier BV.

Verified DOI: 10.1016/j.knosys.2022.110248

The bibliographic data match the Crossref record (checked 2026-11-20). There is no tested Python code for this algorithm in this version.