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(xs):
    return jnp.sum(xs**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.6.tar.gz (6.1 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.6-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mutax-0.4.6.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for mutax-0.4.6.tar.gz
Algorithm Hash digest
SHA256 7986f44a013d8b1085f6595be33196d74a32fda19eed9097439816fe5d3e489f
MD5 3b7a25c4ccaba1c14d8cf04c43a9a447
BLAKE2b-256 278e1f1a3f8197f58f1556deb678ab76e713f2ec06ade373c5f843975aad03b7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mutax-0.4.6-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for mutax-0.4.6-py3-none-any.whl
Algorithm Hash digest
SHA256 60dabbd5b184cf8aa05a1824b0f4187e3424cd1f136f210cf04a4d5880714520
MD5 70ae6a7f494f1b5c5c4ed5c53eee67ea
BLAKE2b-256 27b5d7bd21a60c23ecf80f1c8e1d14705d950edafb5663f99160073e56939fe9

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