Skip to main content

Evolutionary optimization algorithms in JAX

Project description

Mutax

SciPy-like differential evolution for JAX

Fully jax.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
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, key=jax.random.key(0))
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.2.0.tar.gz (8.9 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.2.0-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mutax-0.2.0.tar.gz
Algorithm Hash digest
SHA256 5b6c74d2b12c3be4fb3051d7bb83abcce951a21bf3e3efb9ef7550238d79346a
MD5 66b633b4ae813086ba9c0e01bdf0bd24
BLAKE2b-256 bf3ceccf0998d92dee1cc9cede48043827e6dc7a44aef1b97bc5817be883aff1

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mutax-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5629cc5ef3eb2a057814b9bc06f557adeef38f6c490e550cd202119d3ce9a0a1
MD5 d9558357801de709d4b0b6567893a3c5
BLAKE2b-256 eafea2d79ca4ee855a285c4bce736d329f73c85d2d67195eed4a0ca31fcf52db

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