Skip to main content

fcmaes-rust for Python

Choosing an optimization tool? Start with the shared solver-selection and agent guide or the optimization ecosystem overview. This distribution exposes the Rust optimizers to Python. For parallel Python callbacks, compare with fcmaes (fast-cma-es); the job worker and experimental surrogate are source-only components, not part of this wheel.

fcmaes-rust provides Python access to fast, parallel, gradient-free optimization algorithms implemented in native Rust. The optimizer core is pure Rust and does not compile, link, or load the historical C++ backend.

Installation

Not yet in a PyPI release (build from the repository): ArchiveDE, BordaBoxIndex, GridBoxIndex, ParetoArchive2D, ParetoArchiveND and igd for NumPy users. See the front tools guide.

python -m pip install fcmaes-rust

The initial release supports CPython 3.11 through 3.13 on the platforms for which wheels are listed on PyPI.

To build from source, install Rust 1.88 or newer (https://rustup.rs), then either let pip build the source distribution (python -m pip install --no-binary fcmaes-rust fcmaes-rust) or build a checkout of the repository:

git clone https://github.com/dietmarwo/fcmaes-rust
cd fcmaes-rust
python -m pip install .

The Python package depends on NumPy and SciPy and, at build time, on crates.io crates only.

Quick check

import fcmaes_rust

print(fcmaes_rust.__version__)
print(fcmaes_rust.phase1_build_info())

Optimizers

The package exposes one-shot and ask/tell interfaces for Differential Evolution, jSO, active CMA-ES, CR-FM-NES, PGPE and BiteOpt, plus Dual Annealing, MODE, MAP-Elites, the Diversifier, independent retry, coordinated retry and weighted multi-objective retry.

The functions currently return low-level NumPy arrays, tuples or dictionaries. See the Python binding guide for signatures, examples, parallelism behavior and result layouts. Every exported function, stateful method, and property also provides an installed runtime docstring, for example help(fcmaes_rust.optimize_de) or help(fcmaes_rust.MODE). SciPy is a runtime dependency because retry callbacks receive a public scipy.optimize.Bounds object.

import numpy as np
import fcmaes_rust

def sphere(x):
    return float(np.dot(x, x))

dim = 4
empty = np.empty(0, dtype=np.float64)
x, value, evaluations, iterations, stop = fcmaes_rust.optimize_de(
    sphere,
    dim,
    np.full(dim, -5.0),
    np.full(dim, 5.0),
    empty,
    empty,
    np.empty(0, dtype=np.bool_),
    seed=7,
    max_evaluations=4_000,
    popsize=20,
)
print(value, evaluations, x)

Python callbacks must reacquire the GIL. Native Rust objectives offer the strongest parallel scaling; cheap pure-Python callbacks are usually callback-bound.

License

MIT

Metadata

Release files for fcmaes-rust 0.5.0

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

Source distribution (sdist)

Source distribution for fcmaes-rust 0.5.0
File Size Uploaded Provenance Actions
fcmaes_rust-0.5.0.tar.gz 293.2 kB Without provenance Details for fcmaes_rust-0.5.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for fcmaes-rust 0.5.0
File Actions
fcmaes_rust-0.5.0-pp311-pypy311_pp73-manylinux2014_x86_64.manylinux_2_17_x86_64.whl PyPy 3.11 PyPy 3.11 7.3 Linux glibc 2.17+ x86-64 Details for fcmaes_rust-0.5.0-pp311-pypy311_pp73-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
fcmaes_rust-0.5.0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for fcmaes_rust-0.5.0-cp313-cp313-win_amd64.whl
fcmaes_rust-0.5.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ x86-64 Details for fcmaes_rust-0.5.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
fcmaes_rust-0.5.0-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for fcmaes_rust-0.5.0-cp313-cp313-macosx_11_0_arm64.whl
fcmaes_rust-0.5.0-cp313-cp313-macosx_10_12_x86_64.whl CPython 3.13 CPython 3.13 macOS 10.12+ x86-64 Details for fcmaes_rust-0.5.0-cp313-cp313-macosx_10_12_x86_64.whl
fcmaes_rust-0.5.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for fcmaes_rust-0.5.0-cp312-cp312-win_amd64.whl
fcmaes_rust-0.5.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details for fcmaes_rust-0.5.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
fcmaes_rust-0.5.0-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for fcmaes_rust-0.5.0-cp312-cp312-macosx_11_0_arm64.whl
fcmaes_rust-0.5.0-cp312-cp312-macosx_10_12_x86_64.whl CPython 3.12 CPython 3.12 macOS 10.12+ x86-64 Details for fcmaes_rust-0.5.0-cp312-cp312-macosx_10_12_x86_64.whl
fcmaes_rust-0.5.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for fcmaes_rust-0.5.0-cp311-cp311-win_amd64.whl
fcmaes_rust-0.5.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details for fcmaes_rust-0.5.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
fcmaes_rust-0.5.0-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for fcmaes_rust-0.5.0-cp311-cp311-macosx_11_0_arm64.whl
fcmaes_rust-0.5.0-cp311-cp311-macosx_10_12_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.12+ x86-64 Details for fcmaes_rust-0.5.0-cp311-cp311-macosx_10_12_x86_64.whl

Total release size: 12.3 MB

Release files / fcmaes_rust-0.5.0.tar.gz

Download URL fcmaes_rust-0.5.0.tar.gz
Size 293.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f9792d4c63cb59c44206d8f53d6627425b4c5ae5b29535ce03af5f6ddc29f1cd
BLAKE2b-256 checksum
How to use checksums
ceb61ec8808f2e30442191d39bd5b089fcac9632dff5512116ecbf0012ef78c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fcmaes_rust-0.5.0-pp311-pypy311_pp73-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL fcmaes_rust-0.5.0-pp311-pypy311_pp73-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 971.4 kB
Tags Linux glibc 2.17+ x86-64 PyPy 3.11 PyPy 3.11 7.3
SHA-256 checksum
How to use checksums
7b2836386f6e1828568e4d1e2c76217c24650650019ced119f87ce9d5673a2e3
BLAKE2b-256 checksum
How to use checksums
ac4043d180f48e3df05ae11d470ecfdf6e45acd18c52a5a2c730710bc8d8c148
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fcmaes_rust-0.5.0-cp313-cp313-win_amd64.whl

Download URL fcmaes_rust-0.5.0-cp313-cp313-win_amd64.whl
Size 953.9 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
ecfb8729755c25fcd16f281f4e44cddba98dcebc9ec6c6e2eaf35552b6695f9e
BLAKE2b-256 checksum
How to use checksums
27d4680ab08f6bc97084830defbf4bd3eac6a7f5181d85633f0baf41695ee449
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fcmaes_rust-0.5.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL fcmaes_rust-0.5.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 971.7 kB
Tags CPython 3.13 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
642cf562554cbd77d54dafd73f7d0d994eb199e1c831f04a11e935f502ff7695
BLAKE2b-256 checksum
How to use checksums
6add04b6e69dd4908fe6ea660199b5761467489ee2c4cae54561660d2e065c94
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fcmaes_rust-0.5.0-cp313-cp313-macosx_11_0_arm64.whl

Download URL fcmaes_rust-0.5.0-cp313-cp313-macosx_11_0_arm64.whl
Size 842.6 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
6e382beedc9a332dc1d2562dff8a287e95c88f5225b79ecce4b2b79ee0d2ba44
BLAKE2b-256 checksum
How to use checksums
24124c408a7aa3bbf050fdcfffb7689ed73da6026729cc8f512bfe2723f3d1af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fcmaes_rust-0.5.0-cp313-cp313-macosx_10_12_x86_64.whl

Download URL fcmaes_rust-0.5.0-cp313-cp313-macosx_10_12_x86_64.whl
Size 924.7 kB
Tags CPython 3.13 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
5ce646d21b085189b11296e4e07e8074209f0407c1044f43d3a2dccc913e2394
BLAKE2b-256 checksum
How to use checksums
b4f83cb0ba43a2dd76dcb4094ef344307c552bcda02e2bb206b8204e60b8cde2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fcmaes_rust-0.5.0-cp312-cp312-win_amd64.whl

Download URL fcmaes_rust-0.5.0-cp312-cp312-win_amd64.whl
Size 954.2 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
b2dd049e848d933299fc0e4b9c93df796a9bea744b6836d3b30bfe9ebe5fd95f
BLAKE2b-256 checksum
How to use checksums
2546ae7393d98f58394494b9e6d6c4e9edaea0d75101c388b3efbbb1b974a1df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fcmaes_rust-0.5.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL fcmaes_rust-0.5.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 972.2 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
fa86406e0e57d42dd86dbe8431524be6c1c1503b4551873163f42ba435896dfe
BLAKE2b-256 checksum
How to use checksums
c21d1b1dca43c2d21ce4c61e56ce27ecb9b13e137e90809bfdee760e432daf03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fcmaes_rust-0.5.0-cp312-cp312-macosx_11_0_arm64.whl

Download URL fcmaes_rust-0.5.0-cp312-cp312-macosx_11_0_arm64.whl
Size 843.0 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
45715e25537d1a8e434fd6529c83a5dfa820cf7edc1414090994a15ac9fefa26
BLAKE2b-256 checksum
How to use checksums
bc4bfff7b6f04f76b4c7243574ad0f0c6f498d9ec42ed5b24029126cdce18473
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fcmaes_rust-0.5.0-cp312-cp312-macosx_10_12_x86_64.whl

Download URL fcmaes_rust-0.5.0-cp312-cp312-macosx_10_12_x86_64.whl
Size 925.1 kB
Tags CPython 3.12 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
50414001f7bc32af2e0f6c0c179b0ce2ce4a340eac7f23da9c7186816d97a5b2
BLAKE2b-256 checksum
How to use checksums
4ffee3791521c99208d1bf98b14022b074ea651830e41fae4acaa796ec733376
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fcmaes_rust-0.5.0-cp311-cp311-win_amd64.whl

Download URL fcmaes_rust-0.5.0-cp311-cp311-win_amd64.whl
Size 950.5 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
941e20f95f83bb7f75d75676f5ab79053fce73e90fccffcfb62c392355ef57ef
BLAKE2b-256 checksum
How to use checksums
9b8705a26de2b792521f02a31d19cbd8bb5866f2cde4cd68e0dbfea969aa9ba7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fcmaes_rust-0.5.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL fcmaes_rust-0.5.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 970.6 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
4a149bbc265bb99f3f07db7c4feda1b3e86b43692672e9603b23e3de098fd412
BLAKE2b-256 checksum
How to use checksums
e318f10fc40e5e00dbc53a0dc7e362cd7fe5d6614094d3c9cb6042a05dcfe66a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fcmaes_rust-0.5.0-cp311-cp311-macosx_11_0_arm64.whl

Download URL fcmaes_rust-0.5.0-cp311-cp311-macosx_11_0_arm64.whl
Size 842.8 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
cb10fce3336cb406cedabe37ed4cdd7675a66dffdeab6d5465e82910f493833a
BLAKE2b-256 checksum
How to use checksums
9ff692c252959f6e45184db61615a7a3e2d88dd1b02d38ff74f19fcc9e07a527
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fcmaes_rust-0.5.0-cp311-cp311-macosx_10_12_x86_64.whl

Download URL fcmaes_rust-0.5.0-cp311-cp311-macosx_10_12_x86_64.whl
Size 925.7 kB
Tags CPython 3.11 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
e67c64652a33eb5c8c0f67f3697132182786ce38015e51977d636712262eedaf
BLAKE2b-256 checksum
How to use checksums
7acb3c97789571a33cab605ae899d94410291fc85adc1dba587eb92f5c2b318e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for fcmaes-rust 0.5.0

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