Skip to main content

Adaptive Quantum Hybrid Swarm Optimizer: A Three-Phase Metaheuristic

Project description

AQHSO: Adaptive Quantum Hybrid Swarm Optimizer

Python 3.8+ License: MIT

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

  1. Phase 1 (Epochs 0–20%) | GWO Exploitation: Fast initial basin targeting. Uses OBL (Opposition-based learning) for initialization.
  2. Phase 2 (Epochs 20–70%) | Quantum FA Attraction: Superpositioned spatial brightness evaluated strictly inside angular bounds ($\theta$-space). Dynamic stagnation handling.
  3. 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.

📄 Citation

If you find our work useful in your research, cite our original paper:

@article{reddy2026aqhso,
  title   = {AQHSO: Adaptive Quantum Hybrid Swarm Optimizer — A Novel Three-Phase Metaheuristic},
  author  = {Puneeth Reddy T and Katyayni Aarya},
  journal = {Pending Publication},
  year    = {2026}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aqhso-1.0.1.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aqhso-1.0.1-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file aqhso-1.0.1.tar.gz.

File metadata

  • Download URL: aqhso-1.0.1.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for aqhso-1.0.1.tar.gz
Algorithm Hash digest
SHA256 7c550f1fe6f2299e4b8c111dd37227b9fef2bdb9d171e4d1e17c7451024a82d5
MD5 c420f30f8d94aab6b3ee72451115a49a
BLAKE2b-256 aad9bc306bb8391be2e9fe1c5a7f870fa46b4837f575e7a4c5a16a3c8f41d3b9

See more details on using hashes here.

File details

Details for the file aqhso-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: aqhso-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for aqhso-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d77018b9dee13a9475d38fbcc8cb88ddefc325c47a65880a656ec77a8f26de59
MD5 9a636339ea0686019e11593622652dc0
BLAKE2b-256 29b2cd94154cb44a01042b125432a4c5c2a756bee0feaf8364b02f8b8958b416

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page