Skip to main content

Taking the pain out of choosing a Python global optimizer

Project description

Humpday: Pure Python or Javascript Derivative-Free Optimization

CI License: MIT Python 3.9+

Documentation & Live Demos

22 derivative-free optimization algorithms in pure Python. No compilation, just numpy.

Install & Use

pip install humpday
from humpday import minimize

def objective(x):
    return (x[0] - 2)**2 + (x[1] - 3)**2

result = minimize(objective, bounds=[(-5, 5), (-5, 5)], method='DifferentialEvolution')
print(f"Solution: {result.x}")  # [2.0, 3.0]

Algorithms

22 validated optimizers: See them in action | Source code

Trust region methods, evolutionary algorithms, metaheuristics.

Comparison

Library Dependencies Install Size Global Optimizers Pure Python
Humpday numpy only ~1MB 22 validated
SciPy C/Fortran libs ~50MB 3
Optuna Many ~100MB 100+
Nevergrad Many ~200MB 200+

Humpday's niche: When you need optimization that works anywhere Python runs, without dependencies or compilation.

License

MIT - Use freely in commercial and research projects.

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

humpday-0.9.0.tar.gz (3.9 MB view details)

Uploaded Source

Built Distribution

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

humpday-0.9.0-py3-none-any.whl (87.2 kB view details)

Uploaded Python 3

File details

Details for the file humpday-0.9.0.tar.gz.

File metadata

  • Download URL: humpday-0.9.0.tar.gz
  • Upload date:
  • Size: 3.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for humpday-0.9.0.tar.gz
Algorithm Hash digest
SHA256 6d6631a8a9aa7a6527d9a08886c40e33852f4dfaf34e0715866e914d05d1278e
MD5 2e87e82ca59f3f19bd2d758d913aac3f
BLAKE2b-256 f7d57306a4abaf9a6de11d146e6664fd79bf45bd97c81d2505c08038b956dcab

See more details on using hashes here.

Provenance

The following attestation bundles were made for humpday-0.9.0.tar.gz:

Publisher: publish.yml on microprediction/humpday

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file humpday-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: humpday-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 87.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for humpday-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d551b8a78440f90d529c822ed6569a4a8b23a873a4cfbc6afbf9566b71d02233
MD5 03577b1c34abcb4feaac5ac897daf5df
BLAKE2b-256 252a88e00750230216524584a640ae48ba12d2302cc58dd61ff1d89bc6d35dfa

See more details on using hashes here.

Provenance

The following attestation bundles were made for humpday-0.9.0-py3-none-any.whl:

Publisher: publish.yml on microprediction/humpday

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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