Adaptive Quantum Hybrid Swarm Optimizer: A Three-Phase Metaheuristic
Project description
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.
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 aqhso-1.0.2.tar.gz.
File metadata
- Download URL: aqhso-1.0.2.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3da7038a62a232fa67ba861257339e9b37db87e012403aa12f0d497aaf7a20e
|
|
| MD5 |
d6162df26ba2c66f156d539cd4f9558d
|
|
| BLAKE2b-256 |
1287a1e41e84d154095963e35e80acc25813283bf174804ec664b61cb98de6de
|
File details
Details for the file aqhso-1.0.2-py3-none-any.whl.
File metadata
- Download URL: aqhso-1.0.2-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d04c39465d32a383b0ee81a7af992b2d2645c7dd9851db97e49157b6472f1783
|
|
| MD5 |
1de685c108abeab88b56250788c75d73
|
|
| BLAKE2b-256 |
1a83168f0e09506e3ea021cb154fb10db25179e8b2bbee12120b217a81422ea1
|