Holistic Swarm Optimization (HSO) - MATLAB Implementation
Versione 1.0.1 (3,99 KB) da
Ebrahim Akbari
Metaphor-less optimization using full-population guidance. MATLAB implementation from the published open-access paper.
Holistic Swarm Optimization (HSO)
Holistic Swarm Optimization (HSO) is a metaphor-less, population-based optimization algorithm that utilizes the entire population's fitness landscape to guide search agents. Unlike traditional algorithms that rely on local or partial data, HSO balances exploration and exploitation through:
- Utilizing entire population data
- Root Mean Squared (RMS)-based displacement coefficients
- Simulated Annealing-based selection
- Adaptive mutation
This MATLAB implementation follows the algorithm proposed in:
Holistic Swarm Optimization: A Novel Metaphor-less Algorithm Guided by Whole Population Information for Addressing Exploration-Exploitation Dilemma
Ebrahim Akbari, Abolfazl Rahimnejad, Stephen Andrew Gadsden
📘 *Computer Methods in Applied Mechanics and Engineering*, Elsevier, 2025
---
🔧 How to Run
1. Open `HSO.m` in MATLAB.
2. Ensure `CostFunction.m` is in the same directory.
3. Press **Run** or type:
```matlab
HSO
```
By default, the algorithm minimizes the Sphere function:
```matlab
z = sum(x.^2);
```
You can replace `CostFunction.m` with any benchmark or real-world objective function of your choice.
---
📊 Sample Output
The algorithm prints iteration-wise best cost and plots a **convergence curve**:
```
Iter = 1, Best Cost = 2.764838e+04
Iter = 2, Best Cost = 1.974029e+04
...
Iter = 10000, Best Cost = 9.721004e-16
```
---
📌 Features
- Entire population used to compute directional displacement
- Displacement coefficients based on RMS fitness (global structure)
- Adaptive mutation with time-decaying parameters
- Simulated annealing-based acceptance to escape local optima
- Supports real-valued, high-dimensional optimization
---
📎 Requirements
- MATLAB R2016a or later
- No additional toolboxes needed
---
📜 License
- Code License: This project is released under the MIT License. See the [LICENSE](LICENSE) file for details.
- Article License: The article is open access under the Creative Commons Attribution–NonCommercial 4.0 International (CC BY-NC 4.0) license.
For details, see: https://creativecommons.org/licenses/by-nc/4.0/
---
📬 Contact
For academic questions, contact:
Abolfazl Rahimnejad
📧 a.rahimnejad@mcmaster.ca
---
⭐ Acknowledgments
This implementation was created as a reference implementation of the HSO algorithm proposed in the published paper.
Please cite the paper if you use this code in your work.
Cita come
Ebrahim Akbari (2025). Holistic Swarm Optimization (HSO) - MATLAB Implementation (https://it.mathworks.com/matlabcentral/fileexchange/181607-holistic-swarm-optimization-hso-matlab-implementation), MATLAB Central File Exchange. Recuperato .
Akbari, Ebrahim, et al. “Holistic Swarm Optimization: A Novel Metaphor-Less Algorithm Guided by Whole Population Information for Addressing Exploration-Exploitation Dilemma.” Computer Methods in Applied Mechanics and Engineering, vol. 445, Oct. 2025, p. 118208, https://doi.org/10.1016/j.cma.2025.118208.
Compatibilità della release di MATLAB
Creato con
R2024a
Compatibile con R2016a e release successive
Compatibilità della piattaforma
Windows macOS LinuxTag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
