Skip to main content

Opytimark: Python Optimization Benchmarking Functions

Latest release CI Documentation Open issues License

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.

Library diagnostics use Python logging rather than writing to standard output. Applications control log handlers, output streams, and levels.

Development

Follow the project conventions when changing Python code, scientific documentation, or tests.

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}
}

Metadata

Release files for opytimark 3.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for opytimark 3.0.2
File Size Uploaded Provenance
opytimark-3.0.2.tar.gz 5.5 MB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for opytimark 3.0.2
File Interpreter ABI Platform
opytimark-3.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 11.0 MB

Release files / opytimark-3.0.2.tar.gz

Download URL opytimark-3.0.2.tar.gz
Size 5.5 MB
Tags Source
SHA-256 checksum
How to use checksums
4daa13c3f8de6a6968411fbc32627c103edfa448042551914570e8ba7f762ae6
BLAKE2b-256 checksum
How to use checksums
194b946df1b652160060e27900428d0162c3911426407fd78bace33ba31b63f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / opytimark-3.0.2-py3-none-any.whl

Download URL opytimark-3.0.2-py3-none-any.whl
Size 5.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
ba9f2d8a333ea7826601e703c7091e756d1f867d13c114d933f1aaa5e1f78ba0
BLAKE2b-256 checksum
How to use checksums
fa6cd35723d732de4b9188de193211e0488f5b99c309866096d0e2ce0d52c47a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for opytimark 3.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page