Canine Olfactory Optimization Algorithm
Project description
Canine Olfactory Optimizer (COO)
"""
Canine Olfactory Optimization (COO)
A nature-inspired metaheuristic optimization algorithm based on the olfactory tracking behavior of canines.
Features
- Bio-inspired algorithm based on canine pack hunting
- Surrogate-assisted optimization for expensive functions
- Multi-pack architecture for diverse exploration
- Adaptive population sizing
- Easy-to-use API
Installation
pip install coo-optimizer
Quick Start
from coo_optimizer import CanineOlfactoryOptimization
import numpy as np
# Define your objective function (to maximize)
def sphere(x):
return -np.sum(x**2)
# Set bounds
bounds = [(-5, 5)] * 10 # 10-dimensional problem
# Create optimizer
coo = CanineOlfactoryOptimization(
bounds=bounds,
n_packs=2,
init_pack_size=10,
max_iterations=100,
random_state=42
)
# Optimize
best_position, best_fitness, history, diagnostics = coo.optimize(sphere)
print(f"Best fitness: {best_fitness}")
print(f"Best position: {best_position}")
Testing
Run tests with pytest:
pytest tests/ -v --cov=coo_optimizer
License
MIT License """
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
coo_algorithm-1.0.0.tar.gz
(25.0 kB
view details)
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 coo_algorithm-1.0.0.tar.gz.
File metadata
- Download URL: coo_algorithm-1.0.0.tar.gz
- Upload date:
- Size: 25.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
109037f93d413eec76d58f70dafa3023106325d264eddb75f69d595f1ef3d0b4
|
|
| MD5 |
153333f9e3bfeee045f867640a52412e
|
|
| BLAKE2b-256 |
407841adc1dbcdf9a0125495b9cd401bc68ded8941ea0ec82066bb0e3bd8709c
|
File details
Details for the file coo_algorithm-1.0.0-py3-none-any.whl.
File metadata
- Download URL: coo_algorithm-1.0.0-py3-none-any.whl
- Upload date:
- Size: 25.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e82f7fa0f7df77e3cfbbca6fd4aea3b210b7c428712b7b8819be2ea9430068eb
|
|
| MD5 |
997e140f4c37558402c392498c21b717
|
|
| BLAKE2b-256 |
7fa72180c066c9a0d54d91d449843b6758fda43201a6ba971648967879ebc46b
|