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.0.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.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aqhso-1.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 f91fd82dba870a70687e1a5d62ac61dbba67ac27cfcc620b851468aa6635858e
MD5 41cb995e00f86283c63c032b4a7ba460
BLAKE2b-256 c3bbe2c59e50045be174ffcdcfdd0247f3df2b545923980248e216774587ccfd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aqhso-1.0.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d29cb776976b35c693a7df2fdac29c132fafb2289b0f25e41b4f760ac9e264e0
MD5 cf0889b23380ca659538313bec41ebb5
BLAKE2b-256 54e88baf7ead362b2c65c862e4cded03b103fa7760634ca28da37c1eb2cde2eb

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