Skip to main content

Evolutionary optimization algorithms in JAX

Project description

Mutax

SciPy-like differential evolution for JAX

Fully jitted optimization of any JAX-compatible function. Serial and parallel execution on CPU, GPU, and TPU.

Documentation CI Codecov Ruff ty uv Publish PyPI PyPI - Python Version

Installation

pip install mutax

Quick start

import jax.numpy as jnp
from mutax import differential_evolution

def cost_function(x):
    return jnp.sum(x**2)

bounds = [(-5, 5)] * 10  # 10-dimensional problem with bounds for each dimension

result = differential_evolution(cost_function, bounds)
print("Best solution:", result.x)
print("Objective value:", result.fun)

Documentation

The documentation is available at Read the Docs.

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

mutax-0.4.3.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mutax-0.4.3-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file mutax-0.4.3.tar.gz.

File metadata

  • Download URL: mutax-0.4.3.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.8.24

File hashes

Hashes for mutax-0.4.3.tar.gz
Algorithm Hash digest
SHA256 3ac5f447d72f2e336ba47e1d6fe8966d0c05d4d3814fa1f43b9a0cd383964fae
MD5 48241a2eccb3190fea5c28047b602fd9
BLAKE2b-256 66ac7a6f1cc673297f4a43518756725d98fb95f989bae2c4c7237910ee0e0e41

See more details on using hashes here.

File details

Details for the file mutax-0.4.3-py3-none-any.whl.

File metadata

  • Download URL: mutax-0.4.3-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.8.24

File hashes

Hashes for mutax-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3ca3d9b02b01f0a64ebdd567c2bbcda2b199003d13952b66697edc4906738a93
MD5 732dc9c46cbf3470f69d7cecd105478d
BLAKE2b-256 ae45436eefcb533190662192da14fd3a13c1af08f6b088db864e91a0b2bb32c1

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