Skip to main content

Optimization toolkit for complex, high-dimensional, non-differentiable problems.

Project description

hdim-opt: High-Dimensional Optimization Toolkit

A modern optimization suite for complex, high-dimensional problems. This package provides state-of-the-art algorithms to accelerate convergence and intelligently explore the search space, including an evolutionary optimizer and a Quasi-Monte Carlo sampler.


Installation

Installed via hdim-opt directly from PyPI:

pip install hdim-opt

QUASAR Optimizer (Quasi-Adaptive Search with Asymptotic Reinitialization)

QUASAR is a quantum-inspired evolutionary algorithm, highly efficient for minimizing complex high-dimensional, non-differentiable, and non-parametric objective functions.

  • Benefit: Statistically significant improvements in convergence speed and solution quality compared to contemporary optimizers.

Quick Use Example:

import hdim_opt
import numpy as np

def obj_func(x):
    y = np.sum(x**2)
    return y

# define search space
n_dim = 100
bounds = [(-100,100)] * n_dim

# run QUASAR
solution, fitness = hdim_opt.quasar(func=obj_func, bounds=bounds)

HDS Sampler (Hyperellipsoid Density Sampling)

HDS is a non-uniform Quasi-Monte Carlo sampling method specifically designed to exploit promising regions of the search space.

  • Benefit: Provides control over the sample distribution, and results in higher average optimization solution quality when used for population initialization compared to uniform QMC methods.

  • Reference: See experimental trials and analysis: [https://arxiv.org/abs/2511.07836].

Quick Use Example:

import hdim_opt

# define search space
n_dim = 100
bounds = [(-100,100)] * n_dim
n_samples = 1000

# generate HDS samples
hds_samples = hdim_opt.hds(n_samples, bounds)

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

hdim_opt-1.0.1.tar.gz (16.8 kB view details)

Uploaded Source

Built Distribution

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

hdim_opt-1.0.1-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

Details for the file hdim_opt-1.0.1.tar.gz.

File metadata

  • Download URL: hdim_opt-1.0.1.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for hdim_opt-1.0.1.tar.gz
Algorithm Hash digest
SHA256 656be7310def05b0e4d10d61a41601df531e00ffd63b6d63bf788eb5c57aa8ff
MD5 0f19cc1db61be1896c3ebf5ba12285fb
BLAKE2b-256 e38f0cfc8317e70a3ba176fc5ed281471b356dfb7879dc27231917518d64a32f

See more details on using hashes here.

File details

Details for the file hdim_opt-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: hdim_opt-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 16.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for hdim_opt-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 226f491a31c5d1dc3d5a2d27059a7edb5569c114862a235c61263fb5263945bb
MD5 1124cdf583121fdafd95f77a50e8d686
BLAKE2b-256 bf91e64da3b26d9e460d09b69232b996d532c69f012d693f89b72fb16d51c650

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