Opytimark: Python Optimization Benchmarking Functions
Opytimark provides ready-to-use benchmark functions for evaluating optimization algorithms.
Opytimark supports Python 3.11 or newer. Read the full API reference at opytimark.readthedocs.io.
Installation
Opytimark is published on PyPI. Add it to a project managed by uv with:
uv add opytimark
For a consumer installation in an existing Python environment, pip is also supported:
pip install opytimark
Usage
import numpy as np
from opytimark.markers.n_dimensional import Sphere
value = Sphere()(np.array([1.0, 2.0, 3.0]))
print(value)
More examples are available in examples/.
Reproducibility
Imports do not reset NumPy's random state. For reproducible noisy or randomized
benchmarks, call np.random.seed(your_seed) explicitly before the experiment.
The 3.0.1 CEC conditioning, group-rotation, and composition corrections change some fitness values relative to 3.0.0. See numerical behavior before comparing old and new optimization results.
Development
Install uv, clone the repository, then run:
uv sync --locked
uv run pytest
uv run pre-commit run --all-files
uv run --locked --group docs sphinx-build -W --keep-going -b html docs docs/_build/html
uv build
Citation
If you use Opytimark, please cite:
@misc{rosa2019opytimizer,
title={Opytimizer: A Nature-Inspired Python Optimizer},
author={Gustavo H. de Rosa and João P. Papa},
year={2019},
eprint={1912.13002},
archivePrefix={arXiv},
primaryClass={cs.NE}
}
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 opytimark-3.0.1.tar.gz.
File metadata
- Download URL: opytimark-3.0.1.tar.gz
- Upload date:
- Size: 5.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83c9676322cb8667954cacb4d5db21a739c61c0a46a05a82acc4e218bf8279aa
|
|
| MD5 |
46f5925b9229bbc7f673632cfb79f149
|
|
| BLAKE2b-256 |
00194a88a9a7297af571088c6445fc73944e7a52395c88a90908e3ca2de97c43
|
File details
Details for the file opytimark-3.0.1-py3-none-any.whl.
File metadata
- Download URL: opytimark-3.0.1-py3-none-any.whl
- Upload date:
- Size: 5.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de0b1708572279c533b7f4abc2f1cdaf2426f18f4b4626f3ed9290245a62fe9f
|
|
| MD5 |
ae5825cc98d278845bbe76d7d0b2ed0f
|
|
| BLAKE2b-256 |
b1e01aa38e0efef51c6760098c46d0e007deef7624a2aa00cc70887b0d793259
|