Swarm intelligence
Swarm Intelligence
- Estimated duration
- 25 minutes
- Related questions
- 5
- Related algorithms
- 5
- Status
- Log in to track
Lesson objectives
- Defining swarm intelligence and its properties.
- Knowing its best-known algorithms.
- Evaluating metaphors critically.
Explanation
Ant colonies and bird flocks solve complex problems without a central leader: each individual follows simple local rules, and intelligent behaviour emerges from the interaction.
The properties of swarm intelligence: decentralization, local interaction, self-organization, and robustness to the failure of some individuals. Communication happens directly (exchanging positions, as in PSO) or indirectly through the environment (Stigmergy, the pheromone in ACO).
The best-known algorithms: PSO (1995), ACO (1992/1996), ABC (2005/2007), then a large wave after 2010: FA, BA, CS, GWO, WOA, HHO and others. Published critical studies (Sörensen 2015; Camacho-Villalón et al. 2022) have warned that a number of recent algorithms reformulate the mechanisms of PSO or DE with new metaphors without a clear conceptual addition, so an algorithm should be judged by its mathematical mechanisms and fair results, not by its metaphor.
Mathematics
PSO as a reference model
v \leftarrow w v + c_1 r_1(p - x) + c_2 r_2(g - x)Python code
# See the PSO lesson for a full implementation.Simplified teaching code that works with NumPy only; for research experiments use a documented library and fix the random seed.
Practical exercise
Run PSO, GWO and WOA on the same function in the simulator's fair comparison mode (the same dimensions and budget, and several seeds).
Common mistakes
- Treating the biological metaphor as evidence of quality.
- Comparing a new algorithm only with old, untuned versions of PSO and GA.
Summary
Swarm intelligence is behaviour that emerges from local interactions; evaluate algorithms by their mechanisms and results.
References
- Verified Metaheuristics—the metaphor exposed Kenneth Sörensen (2015) 10.1111/itor.12001
- Verified Exposing the grey wolf, moth-flame, whale, firefly, bat, and antlion algorithms: six misleading optimization techniques inspired by bestial metaphors Christian L. Camacho-Villalón; Marco Dorigo; Thomas… (2022) 10.1111/itor.13176
Related papers in the repository
Short quiz
5 questions are chosen at random from 5 questions linked to this lesson, and the quiz is graded on the server.
Links within the lab
- Algorithms
- Related lessons
- In the paths
