Dynamic Hierarchical Cooperative Swarm Optimization (DHCS)
Project description
Dynamic Hierarchical Cooperative Swarm Algorithm (DHCS)
Overview
The Dynamic Hierarchical Cooperative Swarm Algorithm (DHCS) is a novel optimization technique inspired by swarm intelligence. The algorithm involves agents that adapt their roles dynamically to balance exploration and exploitation in high-dimensional optimization landscapes. The agents cooperate by forming clusters, sharing solutions, and periodically synchronizing to avoid stagnation.
This approach is particularly effective for solving complex optimization problems such as the Ackley function.
- Refer DOMCUMENT to know more.
Features
- Dynamic Agent Roles: Agents take on different roles such as explorers, refiners, and leaders based on their performance.
- Memory Sharing: Agents maintain and share high-quality solutions to improve convergence.
- Dynamic Clustering: Agents form clusters based on proximity and fitness, with cluster leaders guiding others.
- Synchronization: Periodic synchronization of agents’ positions and velocities to prevent divergence.
Algorithm Details
- Agent Behavior: Agents explore, exploit, and lead other agents to find optimal solutions.
- Memory and Role Adaptation: Agents store their best-found solutions and adapt their roles based on fitness improvement.
- Cluster Formation: Agents are grouped based on proximity and fitness, with the best agent becoming a leader.
- Synchronization: Agents are synchronized if no significant improvement occurs for a set number of iterations.
Requirements
To run this algorithm, the following Python packages are required:
numpy(for numerical operations)matplotlib(for plotting the convergence history)random(for generating random values)time(for measuring execution time)
You can install the necessary dependencies using pip:
pip install numpy matplotlib
Usage
- Install via pip:
pip install dhcs_algorithm
License Terms
MIT License
Copyright (c) [2025] [Krishna Bajpai]
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Usage
Until permission is granted, this software should not be used, distributed, or modified.
Terms of Use:
- The use of this algorithm is restricted to specific permissions granted by the owner.
- Any usage outside of these permissions is prohibited.
For permission to use or modify this algorithm, please contact bajpaikrishna715@gmail.com.
Acknowledgements
This work is based on ideas from swarm intelligence and optimization techniques. Special thanks to the community for contributing to the development of optimization algorithms and mathematical models.
Contact
For any inquiries or further information, please contact the author at bajpaikrishna715@gmail.com.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dhcs_algorithm-0.1.0.tar.gz.
File metadata
- Download URL: dhcs_algorithm-0.1.0.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83f93cb4407a4890ae498d5b8ccd8ca3efcb5e6b06064d19a286c19d7d3056ef
|
|
| MD5 |
ad569c798695920c7bb68b8b37c56b00
|
|
| BLAKE2b-256 |
533cc9a4eaa31b200fd0fa3e7ac1c97f5efd5e3ad0d52821e56191ab817e7688
|
File details
Details for the file dhcs_algorithm-0.1.0-py3-none-any.whl.
File metadata
- Download URL: dhcs_algorithm-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b380bb7a551241cac30fc49448bdb12dd1ef9e27fe4760c73e600aa09bf23266
|
|
| MD5 |
e4844e9bd385b80a301b976360efb3fc
|
|
| BLAKE2b-256 |
33b74d7296e493373c8a65947219dd7c570186427996194e300eda93a895f28c
|