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.3.1.tar.gz (9.5 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.3.1-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mutax-0.3.1.tar.gz
Algorithm Hash digest
SHA256 8ad8bf283bdd8d722f3a00769273c6f1c3750a365a4e9d3da02de57357ccccfd
MD5 d7b1924f88d4c317b6e6c713786105a0
BLAKE2b-256 64c248ca41d4527855beee5b5edf7e68fbec6df0841a5e23c50b5a3d73be1e33

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mutax-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9a5e7c567ae8745ad56900fa5516799916caae6583d2361e06c9e0fa9d0a7972
MD5 5a506a762f78f42db3e1f71feede63ea
BLAKE2b-256 2fc92602442f755b65578db9e9cd85ae87735054042b12f211fba80ae9c92156

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