AQHSO: Adaptive Quantum Hybrid Swarm Optimizer
AQHSO is a state-of-the-art three-phase metaheuristic optimization algorithm that unifies Grey Wolf Optimization (GWO), Firefly Algorithm (FA), and Ant Colony Optimization (ACO) under an adaptive quantum rotation framework.
This standalone library executes locally and relies natively on mealpy and numpy.
📦 Installation
Install AQHSO directly from the repository using pip:
pip install git+https://github.com/Puneethreddy2530/Research_Paper.git#subdirectory=package
Alternatively, if you cloned the source directory:
pip install .
🚀 Quick Start Example
It integrates flawlessly as a <mealpy.Optimizer> module into any project.
import numpy as np
from aqhso import AQHSO
from mealpy.utils.space import FloatVar
# 1. Define your objective function (e.g. Sphere function)
def sphere_function(solution):
return np.sum(solution ** 2)
# 2. Define problem boundaries
problem_dict = {
"fit_func": sphere_function,
"obj_func": sphere_function,
"bounds": FloatVar(lb=[-10.0]*30, ub=[10.0]*30),
"minmax": "min", # Goal: minimize
}
# 3. Initialize the Adaptive Quantum optimizer
optimizer = AQHSO(
epoch=500, # Number of iterations
pop_size=30, # Agents in the swarm
theta_max_init=0.1, # Initial quantum rotation max angle
levy_beta=1.5 # Heavy-tail tunneling parameter
)
# 4. Execute optimization
best_agent = optimizer.solve(problem_dict)
print(f"Optimal Minimum Discovered: {best_agent.target.fitness}")
print(f"Coordinates: {best_agent.solution}")
🧠 Architectural Phases
- Phase 1 (Epochs 0–20%) | GWO Exploitation: Fast initial basin targeting. Uses OBL (Opposition-based learning) for initialization.
- Phase 2 (Epochs 20–70%) | Quantum FA Attraction: Superpositioned spatial brightness evaluated strictly inside angular bounds ($\theta$-space). Dynamic stagnation handling.
- Phase 3 (Epochs 70–100%) | Lévy Tunneling & ACO Pheromone: Final granular traps optimization utilizing mathematical heavy-tailed distributions and an historical 1-D coordinate probability matrix.
Metadata
Release files for aqhso 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aqhso-1.0.2.tar.gz | 9.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aqhso-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.8 kB
Release files / aqhso-1.0.2.tar.gz
| Download URL | aqhso-1.0.2.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d3da7038a62a232fa67ba861257339e9b37db87e012403aa12f0d497aaf7a20e
|
|
BLAKE2b-256 checksum How to use checksums |
1287a1e41e84d154095963e35e80acc25813283bf174804ec664b61cb98de6de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Release files / aqhso-1.0.2-py3-none-any.whl
| Download URL | aqhso-1.0.2-py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d04c39465d32a383b0ee81a7af992b2d2645c7dd9851db97e49157b6472f1783
|
|
BLAKE2b-256 checksum How to use checksums |
1a83168f0e09506e3ea021cb154fb10db25179e8b2bbee12120b217a81422ea1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|